codesesh 0.16.0 → 0.17.0
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/{chunk-MWSJTNOW.js → chunk-7APNDHQ6.js} +1545 -1021
- package/dist/chunk-7APNDHQ6.js.map +1 -0
- package/dist/{chunk-EWC6IODK.js → chunk-A4U2SMJJ.js} +5 -2
- package/dist/{chunk-EWC6IODK.js.map → chunk-A4U2SMJJ.js.map} +1 -1
- package/dist/dist-KEPJFHOC.js +115 -0
- package/dist/index.js +967 -713
- package/dist/index.js.map +1 -1
- package/dist/scan-refresh-worker.js +70 -64
- package/dist/scan-refresh-worker.js.map +1 -1
- package/dist/search-index-worker.js +2 -7
- package/dist/search-index-worker.js.map +1 -1
- package/dist/smart-tag-worker.js +2 -2
- package/dist/web/assets/index-B076CRkD.js +109 -0
- package/dist/web/assets/index-CWNbVhet.css +2 -0
- package/dist/web/assets/react-D9s532MZ.js +1821 -0
- package/dist/web/assets/{vendor-BVE7Fps8.js → vendor-i9U7_fNF.js} +15 -15
- package/dist/web/index.html +4 -4
- package/package.json +5 -10
- package/dist/chunk-MWSJTNOW.js.map +0 -1
- package/dist/dist-AIDCOQZO.js +0 -237
- package/dist/web/assets/index-BpmbwB2_.js +0 -113
- package/dist/web/assets/index-Bxe686Vr.css +0 -2
- package/dist/web/assets/react-3acXkZNw.js +0 -1821
- package/dist/web/icon/agent/antigravity.svg +0 -1
- package/dist/web/icon/agent/kilocode.svg +0 -1
- /package/dist/{dist-AIDCOQZO.js.map → dist-KEPJFHOC.js.map} +0 -0
|
@@ -1,1821 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{l as n,u as r}from"./markdown-dR4kAewZ.js";var i=t((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,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=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&&E());){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&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),a=t(((e,t)=>{t.exports=i()})),o=t((e=>{var t=r();function n(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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.7`})),s=t(((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=o()})),c=t((e=>{var t=a(),n=r(),i=s();function o(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(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 u(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 d(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 f(e){if(l(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=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 P(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 y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w: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?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},ee=[],te=-1;function z(e){return{current:e}}function ne(e){0>te||(e.current=ee[te],ee[te]=null,te--)}function B(e,t){te++,ee[te]=e.current,e.current=t}var re=z(null),ie=z(null),V=z(null),ae=z(null);function oe(e,t){switch(B(V,t),B(ie,e),B(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(re),B(re,e)}function se(){ne(re),ne(ie),ne(V)}function ce(e){e.memoizedState!==null&&B(ae,e);var t=re.current,n=Wd(t,e.type);t!==n&&(B(ie,e),B(re,n))}function le(e){ie.current===e&&(ne(re),ne(ie)),ae.current===e&&(ne(ae),ep._currentValue=R)}var ue,de;function fe(e){if(ue===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ue=t&&t[1]||``,de=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+ue+e+de}var pe=!1;function me(e,t){if(!e||pe)return``;pe=!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(`
|
|
4
|
-
`),l=s.split(`
|
|
5
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function H(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,ye=t.unstable_shouldYield,be=t.unstable_requestPaint,xe=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ee=t.unstable_LowPriority,De=t.unstable_IdlePriority,Oe=t.log,ke=t.unstable_setDisableYieldValue,Ae=null,U=null;function je(e){if(typeof Oe==`function`&&ke(e),U&&typeof U.setStrictMode==`function`)try{U.setStrictMode(Ae,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var Ie=256,Le=262144,Re=4194304;function ze(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 Be(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=ze(n))):i=ze(o):i=ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ze(n))):i=ze(o)):i=ze(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 Ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(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 Ue(){var e=Re;return Re<<=1,!(Re&62914560)&&(Re=4194304),e}function We(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ge(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ke(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-Me(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&&qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Me(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ye(e,t){var n=t&-t;return n=n&42?1:Xe(n),(n&(e.suspendedLanes|t))===0?n:0}function Xe(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 Ze(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Qe(){var e=L.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function W(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var $e=Math.random().toString(36).slice(2),et=`__reactFiber$`+$e,G=`__reactProps$`+$e,tt=`__reactContainer$`+$e,K=`__reactEvents$`+$e,nt=`__reactListeners$`+$e,rt=`__reactHandles$`+$e,it=`__reactResources$`+$e,at=`__reactMarker$`+$e;function ot(e){delete e[et],delete e[G],delete e[K],delete e[nt],delete e[rt]}function st(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[et])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function ct(e){if(e=e[et]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function lt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ut(e){var t=e[it];return t||=e[it]={hoistableStyles:new Map,hoistableScripts:new Map},t}function dt(e){e[at]=!0}var ft=new Set,pt={};function mt(e,t){ht(e,t),ht(e+`Capture`,t)}function ht(e,t){for(pt[e]=t,e=0;e<t.length;e++)ft.add(t[e])}var gt=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]*$`),_t={},vt={};function yt(e){return ge.call(vt,e)?!0:ge.call(_t,e)?!1:gt.test(e)?vt[e]=!0:(_t[e]=!0,!1)}function bt(e,t,n){if(yt(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 xt(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 St(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 Ct(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function wt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Tt(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 Et(e){if(!e._valueTracker){var t=wt(e)?`checked`:`value`;e._valueTracker=Tt(e,t,``+e[t])}}function Dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=wt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ot(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 kt=/[\n"\\]/g;function At(e){return e.replace(kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function jt(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=``+Ct(t)):e.value!==``+Ct(t)&&(e.value=``+Ct(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Nt(e,o,Ct(n)):Nt(e,o,Ct(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=``+Ct(s):e.removeAttribute(`name`)}function Mt(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)){Et(e);return}n=n==null?``:``+Ct(n),t=t==null?n:``+Ct(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),Et(e)}function Nt(e,t,n){t===`number`&&Ot(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Pt(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=``+Ct(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 Ft(e,t,n){if(t!=null&&(t=``+Ct(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ct(n)}function It(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(F(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}n=Ct(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Et(e)}function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rt=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 zt(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||Rt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Bt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(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 i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&zt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&zt(e,a,t[a])}function Vt(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 Ht=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`]]),Ut=/^[\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 Wt(e){return Ut.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Gt(){}var Kt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jt=null,Yt=null;function Xt(e){var t=ct(e);if(t&&(e=t.stateNode)){var n=e[G]||null;a:switch(e=t.stateNode,t.type){case`input`:if(jt(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="`+At(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[G]||null;if(!i)throw Error(o(90));jt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Dt(r)}break a;case`textarea`:Ft(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Pt(e,!!n.multiple,t,!1)}}}var Zt=!1;function Qt(e,t,n){if(Zt)return e(t,n);Zt=!0;try{return e(t)}finally{if(Zt=!1,(Jt!==null||Yt!==null)&&(xu(),Jt&&(t=Jt,e=Yt,Yt=Jt=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function $t(e,t){var n=e.stateNode;if(n===null)return null;var r=n[G]||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(o(231,t,typeof n));return n}var en=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,"passive",{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function q(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.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 on=i.slice(e,1<r?1-r:void 0)}function sn(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 cn(){return!0}function ln(){return!1}function un(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)?cn:ln,this.isPropagationStopped=ln,this}return h(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=cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=cn)},persist:function(){},isPersistent:cn}),t}var dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=un(dn),pn=h({},dn,{view:0,detail:0}),mn=un(pn),hn,gn,_n,vn=h({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==_n&&(_n&&e.type===`mousemove`?(hn=e.screenX-_n.screenX,gn=e.screenY-_n.screenY):gn=hn=0,_n=e),hn)},movementY:function(e){return`movementY`in e?e.movementY:gn}}),yn=un(vn),bn=un(h({},vn,{dataTransfer:0})),xn=un(h({},pn,{relatedTarget:0})),Sn=un(h({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),Cn=un(h({},dn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),wn=un(h({},dn,{data:0})),Tn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},En={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`},Dn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dn[e])?!!t[e]:!1}function kn(){return On}var An=un(h({},pn,{key:function(e){if(e.key){var t=Tn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?En[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return e.type===`keypress`?sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),jn=un(h({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=un(h({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=un(h({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(h({},vn,{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})),Fn=un(h({},dn,{newState:0,oldState:0})),In=[9,13,27,32],Ln=en&&`CompositionEvent`in window,Rn=null;en&&`documentMode`in document&&(Rn=document.documentMode);var zn=en&&`TextEvent`in window&&!Rn,Bn=en&&(!Ln||Rn&&8<Rn&&11>=Rn),Vn=` `,Hn=!1;function Un(e,t){switch(e){case`keyup`:return In.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Wn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Gn=!1;function Kn(e,t){switch(e){case`compositionend`:return Wn(t);case`keypress`:return t.which===32?(Hn=!0,Vn):null;case`textInput`:return e=t.data,e===Vn&&Hn?null:e;default:return null}}function qn(e,t){if(Gn)return e===`compositionend`||!Ln&&Un(e,t)?(e=q(),on=an=rn=null,Gn=!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 Bn&&t.locale!==`ko`?null:t.data;default:return null}}var Jn={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 Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Jn[e.type]:t===`textarea`}function Xn(e,t,n,r){Jt?Yt?Yt.push(r):Yt=[r]:Jt=r,t=Dd(t,`onChange`),0<t.length&&(n=new fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Qn=null;function $n(e){Z(e,0)}function er(e){if(Dt(lt(e)))return e}function tr(e,t){if(e===`change`)return t}var nr=!1;if(en){var rr;if(en){var ir=`oninput`in document;if(!ir){var ar=document.createElement(`div`);ar.setAttribute(`oninput`,`return;`),ir=typeof ar.oninput==`function`}rr=ir}else rr=!1;nr=rr&&(!document.documentMode||9<document.documentMode)}function or(){Zn&&(Zn.detachEvent(`onpropertychange`,sr),Qn=Zn=null)}function sr(e){if(e.propertyName===`value`&&er(Qn)){var t=[];Xn(t,Qn,e,qt(e)),Qt($n,t)}}function cr(e,t,n){e===`focusin`?(or(),Zn=t,Qn=n,Zn.attachEvent(`onpropertychange`,sr)):e===`focusout`&&or()}function lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return er(Qn)}function ur(e,t){if(e===`click`)return er(t)}function dr(e,t){if(e===`input`||e===`change`)return er(t)}function fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pr=typeof Object.is==`function`?Object.is:fr;function mr(e,t){if(pr(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(!ge.call(t,i)||!pr(e[i],t[i]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gr(e,t){var n=hr(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=hr(n)}}function _r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ot(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=Ot(e.document)}return t}function yr(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 br=en&&`documentMode`in document&&11>=document.documentMode,xr=null,Sr=null,Cr=null,wr=!1;function Tr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||xr==null||xr!==Ot(r)||(r=xr,`selectionStart`in r&&yr(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}),Cr&&mr(Cr,r)||(Cr=r,r=Dd(Sr,`onSelect`),0<r.length&&(t=new fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Dr={animationend:Er(`Animation`,`AnimationEnd`),animationiteration:Er(`Animation`,`AnimationIteration`),animationstart:Er(`Animation`,`AnimationStart`),transitionrun:Er(`Transition`,`TransitionRun`),transitionstart:Er(`Transition`,`TransitionStart`),transitioncancel:Er(`Transition`,`TransitionCancel`),transitionend:Er(`Transition`,`TransitionEnd`)},Or={},kr={};en&&(kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),`TransitionEvent`in window||delete Dr.transitionend.transition);function Ar(e){if(Or[e])return Or[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kr)return Or[e]=t[n];return e}var jr=Ar(`animationend`),Mr=Ar(`animationiteration`),Nr=Ar(`animationstart`),Pr=Ar(`transitionrun`),Fr=Ar(`transitionstart`),Ir=Ar(`transitioncancel`),Lr=Ar(`transitionend`),Rr=new Map,zr=`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(` `);zr.push(`scrollEnd`);function Br(e,t){Rr.set(e,t),mt(t,[e])}var Vr=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)},Hr=[],Ur=0,Wr=0;function Gr(){for(var e=Ur,t=Wr=Ur=0;t<e;){var n=Hr[t];Hr[t++]=null;var r=Hr[t];Hr[t++]=null;var i=Hr[t];Hr[t++]=null;var a=Hr[t];if(Hr[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&&Yr(n,i,a)}}function Kr(e,t,n,r){Hr[Ur++]=e,Hr[Ur++]=t,Hr[Ur++]=n,Hr[Ur++]=r,Wr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function qr(e,t,n,r){return Kr(e,t,n,r),Xr(e)}function Jr(e,t){return Kr(e,null,null,t),Xr(e)}function Yr(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-Me(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Xr(e){if(50<fu)throw fu=0,pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zr={};function Qr(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 $r(e,t,n,r){return new Qr(e,t,n,r)}function ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ti(e,t){var n=e.alternate;return n===null?(n=$r(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 ni(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 ri(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)ei(e)&&(s=1);else if(typeof e==`string`)s=Gf(e,n,re.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=$r(31,n,t,i),e.elementType=k,e.lanes=a,e;case y:return ii(n.children,i,a,t);case b:s=8,i|=24;break;case x:return e=$r(12,n,t,i|2),e.elementType=x,e.lanes=a,e;case T:return e=$r(13,n,t,i),e.elementType=T,e.lanes=a,e;case E:return e=$r(19,n,t,i),e.elementType=E,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=$r(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ii(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function ai(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function oi(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function si(e,t,n){return t=$r(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ci=new WeakMap;function li(e,t){if(typeof e==`object`&&e){var n=ci.get(e);return n===void 0?(t={value:e,source:t,stack:H(t)},ci.set(e,t),t):n}return{value:e,source:t,stack:H(t)}}var ui=[],di=0,fi=null,pi=0,mi=[],hi=0,gi=null,_i=1,vi=``;function yi(e,t){ui[di++]=pi,ui[di++]=fi,fi=e,pi=t}function bi(e,t,n){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,gi=e;var r=_i;e=vi;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var a=32-Me(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,_i=1<<32-Me(t)+i|n<<i|r,vi=a+e}else _i=1<<a|n<<i|r,vi=e}function xi(e){e.return!==null&&(yi(e,1),bi(e,1,0))}function Si(e){for(;e===fi;)fi=ui[--di],ui[di]=null,pi=ui[--di],ui[di]=null;for(;e===gi;)gi=mi[--hi],mi[hi]=null,vi=mi[--hi],mi[hi]=null,_i=mi[--hi],mi[hi]=null}function Ci(e,t){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,_i=t.id,vi=t.overflow,gi=e}var wi=null,Ti=null,Ei=!1,Di=null,Oi=!1,ki=Error(o(519));function Ai(e){throw Ii(li(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ki}function ji(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[et]=e,t[G]=r,n){case`dialog`:bd(`cancel`,t),bd(`close`,t);break;case`iframe`:case`object`:case`embed`:bd(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)bd(vd[n],t);break;case`source`:bd(`error`,t);break;case`img`:case`image`:case`link`:bd(`error`,t),bd(`load`,t);break;case`details`:bd(`toggle`,t);break;case`input`:bd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:bd(`invalid`,t);break;case`textarea`:bd(`invalid`,t),It(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||Nd(t.textContent,n)?(r.popover!=null&&(bd(`beforetoggle`,t),bd(`toggle`,t)),r.onScroll!=null&&bd(`scroll`,t),r.onScrollEnd!=null&&bd(`scrollend`,t),r.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||Ai(e,!0)}function Mi(e){for(wi=e.return;wi;)switch(wi.tag){case 5:case 31:case 13:Oi=!1;return;case 27:case 3:Oi=!0;return;default:wi=wi.return}}function Ni(e){if(e!==wi)return!1;if(!Ei)return Mi(e),Ei=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&Ti&&Ai(e),Mi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ti=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ti=ff(e)}else t===27?(t=Ti,$d(e.type)?(e=df,df=null,Ti=e):Ti=t):Ti=wi?uf(e.stateNode.nextSibling):null;return!0}function Pi(){Ti=wi=null,Ei=!1}function Fi(){var e=Di;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Di=null),e}function Ii(e){Di===null?Di=[e]:Di.push(e)}var Li=z(null),Ri=null,zi=null;function Bi(e,t,n){B(Li,t._currentValue),t._currentValue=n}function Vi(e){e._currentValue=Li.current,ne(Li)}function Hi(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 Ui(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Hi(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Wi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;pr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ae.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ep]:e.push(ep))}i=i.return}e!==null&&Ui(t,e,n,r),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ki(e){Ri=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qi(e){return Yi(Ri,e)}function Ji(e,t){return Ri===null&&Ki(e),Yi(e,t)}function Yi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zi===null){if(e===null)throw Error(o(308));zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zi=zi.next=t;return n}var Xi=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()})}},Zi=t.unstable_scheduleCallback,Qi=t.unstable_NormalPriority,$i={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ea(){return{controller:new Xi,data:new Map,refCount:0}}function ta(e){e.refCount--,e.refCount===0&&Zi(Qi,function(){e.controller.abort()})}var na=null,ra=0,ia=0,aa=null;function oa(e,t){if(na===null){var n=na=[];ra=0,ia=X(),aa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ra++,t.then(sa,sa),t}function sa(){if(--ra===0&&na!==null){aa!==null&&(aa.status=`fulfilled`);var e=na;na=null,ia=0,aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ca(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 la=I.S;I.S=function(e,t){tu=xe(),typeof t==`object`&&t&&typeof t.then==`function`&&oa(e,t),la!==null&&la(e,t)};var ua=z(null);function da(){var e=ua.current;return e===null?Il.pooledCache:e}function fa(e,t){t===null?B(ua,ua.current):B(ua,t.pool)}function pa(){var e=da();return e===null?null:{parent:$i._currentValue,pool:e}}var ma=Error(o(460)),ha=Error(o(474)),ga=Error(o(542)),_a={then:function(){}};function va(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e;default:if(typeof t.status==`string`)t.then(Gt,Gt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Ca(e),e}throw xa=t,ma}}function ba(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(xa=e,ma):e}}var xa=null;function Sa(){if(xa===null)throw Error(o(459));var e=xa;return xa=null,e}function Ca(e){if(e===ma||e===ga)throw Error(o(483))}var wa=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,wa===null&&(wa=[]),ya(wa,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(e,t){throw t.$$typeof===g?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ka(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 i(e,t){return e=ti(e,t),e.index=0,e.sibling=null,e}function a(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=ai(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===O&&ba(a)===t.type)?(t=i(t,n.props),Da(t,n),t.return=e,t):(t=ri(n.type,n.key,n.props,null,e.mode,r),Da(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=si(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ii(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ai(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ri(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case v:return t=si(t,e.mode,n),t.return=e,t;case O:return t=ba(t),f(e,t,n)}if(F(t)||M(t))return t=ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===C)return f(e,Ji(e,t),n);Oa(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 _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ba(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ea(n),r);if(n.$$typeof===C)return p(e,t,Ji(e,n),r);Oa(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 _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ba(r),m(e,t,n,r,i)}if(F(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,Ea(r),i);if(r.$$typeof===C)return m(e,t,n,Ji(t,r),i);Oa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ei&&yi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Ei&&yi(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),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ei&&yi(i,h),l}function g(i,s,c,l){if(c==null)throw Error(o(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(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ei&&yi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ei&&yi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ei&&yi(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ba(l)===r.type){n(e,r.sibling),c=i(r,a.props),Da(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=ii(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=ri(a.type,a.key,a.props,null,e.mode,c),Da(c,a),c.return=e,e=c)}return s(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=si(a,e.mode,c),c.return=e,e=c}return s(e);case O:return a=ba(a),b(e,r,a,c)}if(F(a))return h(e,r,a,c);if(M(a)){if(l=M(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ea(a),c);if(a.$$typeof===C)return b(e,r,Ji(e,a),c);Oa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=ai(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=b(e,t,n,r);return wa=null,i}catch(t){if(t===ma||t===ga)throw t;var a=$r(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(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 Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Xr(e),Yr(e,null,n),t}return Kr(e,r,t,n),Xr(e)}function La(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,Je(e,n)}}function Ra(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 za=!1;function Ba(){if(za){var e=aa;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!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,p=f!==s.lane;if(p?(Rl&f)===f:(r&f)===f){f!==0&&f===ia&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ma=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var J=z(null),Wa=z(0);function Ga(e,t){e=Wl,B(Wa,e),B(J,t),Wl=e|t.baseLanes}function Ka(){B(Wa,Wl),B(J,J.current)}function qa(){Wl=Wa.current,ne(J),ne(Wa)}var Ja=z(null),Ya=null;function Xa(e){var t=e.alternate;B(to,to.current&1),B(Ja,e),Ya===null&&(t===null||J.current!==null||t.memoizedState!==null)&&(Ya=e)}function Za(e){B(to,to.current),B(Ja,e),Ya===null&&(Ya=e)}function Qa(e){e.tag===22?(B(to,to.current),B(Ja,e),Ya===null&&(Ya=e)):$a(e)}function $a(){B(to,to.current),B(Ja,Ja.current)}function eo(e){ne(Ja),Ya===e&&(Ya=null),ne(to)}var to=z(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(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 ro=0,Y=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(o(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return ro=a,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){I.H=Ms;var t=io!==null&&io.next!==null;if(ro=0,ao=io=Y=null,oo=!1,uo=0,fo=null,t)throw Error(o(300));e===null||Zs||(e=e.dependencies,e!==null&&Gi(e)&&(Zs=!0))}function vo(e,t,n,r){Y=e;var i=0;do{if(so&&(fo=null),uo=0,so=!1,25<=i)throw Error(o(301));if(i+=1,ao=io=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}I.H=Fs,a=t(n,r)}while(so);return a}function yo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(Y.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}ro=0,ao=io=Y=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Y.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=Y.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?Y.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw Y.alternate===null?Error(o(467)):Error(o(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?Y.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=ya(fo,e,t),t=Y,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return qi(e)}throw Error(o(438,String(e)))}function Oo(e){var t=null,n=Y.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Y.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=To(),Y.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 ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ro&f)===f:(Rl&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===ia&&(d=!0);else if((ro&p)===p){u=u.next,p===ia&&(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=a):l=l.next=f,Y.lanes|=p,Kl|=p;f=u.action,co&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,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=a):l=l.next=p,Y.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!pr(a,e.memoizedState)&&(Zs=!0,d&&(n=aa,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);pr(a,t.memoizedState)||(Zs=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function No(e,t,n){var r=Y,i=wo(),a=Ei;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!pr((io||i).memoizedState,n);if(s&&(i.memoizedState=n,Zs=!0),i=i.queue,is(Io.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,i,n,t),null),Il===null)throw Error(o(349));a||ro&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t=To(),Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function Ro(e){var t=Jr(e,2);t!==null&&gu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,i){if(ks(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};I.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Ho(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Ei){var n=Il.formState;if(n!==null){a:{var r=Y;if(Ei){if(Ti){b:{for(var i=Ti,a=Oi;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ti=uf(i.nextSibling),r=i.data===`F!`;break a}}Ai(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,Y,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,Y,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,Y,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===ma?ga:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Y.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Y.updateQueue,t===null&&(t=To(),Y.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 es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();Y.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(Y.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){Y.flags|=4;var t=Y.updateQueue;if(t===null)t=To(),Y.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(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 us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||ro&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),Y.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return pr(n,t)?n:J.current===null?!(ro&42)||ro&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=hu(),Y.lanes|=e,Kl|=e,t):(e=ms(e,n,r),pr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Os(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,ca(c,r),mu(e)):Ds(e,t,r,mu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=ys(e).queue;gs(e,i,t,R,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},mu())}function xs(){return qi(ep)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Fa(n);var r=Ia(t,e,n);r!==null&&(gu(r,t,n),La(r,t,n)),t={cache:ea()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=qr(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,mu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(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,pr(s,o))return Kr(e,t,i,0),Il===null&&Gr(),!1}catch{}if(n=qr(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:X(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(o(479))}else t=qr(e,n,r,2),t!==null&&gu(t,e,2)}function ks(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}var Ms={readContext:qi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:qi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:qi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){je(!0);try{n(t)}finally{je(!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=Ts.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,Y,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,Y,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Y,i=Co();if(Ei){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Il===null)throw Error(o(349));Rl&127||Po(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,rs(Io.bind(null,r,a,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),n},useId:function(){var e=Co(),t=Il.identifierPrefix;if(Ei){var n=vi,r=_i;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,Y,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,Y)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:qi,use:Do,useCallback:fs,useContext:qi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:qi,use:Do,useCallback:fs,useContext:qi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(gu(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(gu(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(gu(t,e,n),La(t,e,n))}};function Rs(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?!mr(n,r)||!mr(i,a):!0}function zs(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&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(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=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Vr(e)}function Hs(e){console.error(e)}function Us(e){Vr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(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 Ks(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Fa(e),e.tag=3,e}function Js(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(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Wi(t,n,i,!0),n=Ja.current,n!==null){switch(n.tag){case 31:case 13:return Ya===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===_a?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,i)),!1;case 22:return n.flags|=65536,r===_a?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)),qu(e,r,i)),!1}throw Error(o(435,n.tag))}return qu(e,r,i),Ou(),!1}if(Ei)return t=Ja.current,t===null?(r!==ki&&(t=Error(o(423),{cause:r}),Ii(li(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=li(r,n),i=Ks(e.stateNode,r,i),Ra(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ki&&(e=Error(o(422),{cause:r}),Ii(li(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=li(a,n),Zl===null?Zl=[a]:Zl.push(a),Gl!==4&&(Gl=2),t===null)return!0;r=li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ks(n.stateNode,r,e),Ra(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(iu===null||!iu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=qs(i),Js(i,e,n,r),Ra(n,i),!1}n=n.return}while(n!==null);return!1}var Xs=Error(o(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function $s(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 Ki(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Ei&&s&&xi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ei(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ri(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?mr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=ti(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(mr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(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 ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fa(t,a===null?null:a.cachePool),a===null?Ka():Ga(t,a),Qa(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&fa(t,null),Ka(),$a(t)):(fa(t,a.cachePool),Ga(t,a),$a(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=da();return a=a===null?null:{parent:$i._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&fa(t,null),Ka(),Qa(t),e!==null&&Wi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Aa(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ei){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Za(t),(e=Ti)?(e=of(e,Oi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw Ai(t);return t.lanes=536870912,null}return ac(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(Za(t),i)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Zs||Wi(e,t,n,!1),i=(n&e.childLanes)!==0,Zs||i){if(r=Il,r!==null&&(s=Ye(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,Jr(e,s),gu(r,e,s),Xs;Ou(),t=oc(e,t,n)}else e=a.treeContext,Ti=uf(s.nextSibling),wi=t,Ei=!0,Di=null,Oi=!1,e!==null&&Ci(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ti(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(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(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Ki(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Ei&&r&&xi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Ki(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Cc(e,t,a)):(Ei&&r&&xi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Ki(t),t.stateNode===null){var a=Zr,o=n.contextType;typeof o==`object`&&o&&(a=qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?qi(o):Zr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(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&&Ls.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),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=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Zr,typeof u==`object`&&u&&(o=qi(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)&&zs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Ma||Rs(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,Pa(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Zr,typeof l==`object`&&l&&(c=qi(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)&&zs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Ma||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Gi(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,cc(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=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Pi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:pa()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(to.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ei){if(i?Xa(t):$a(t),(e=Ti)?(e=of(e,Oi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw Ai(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?($a(t),i=t.mode,c=vc({mode:`hidden`,children:c},i),r=ii(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Xa(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(Xa(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?($a(t),c=r.fallback,i=t.mode,r=vc({mode:`visible`,children:r.children},i),c=ii(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):($a(t),t.child=e.child,t.flags|=128,t=null);else if(Xa(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Ii({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Wi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=Ye(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Jr(e,r),gu(s,e,r),Xs;sf(c)||Ou(),t=yc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ti=uf(c.nextSibling),wi=t,Ei=!0,Di=null,Oi=!1,e!==null&&Ci(t,e),t=_c(t,r.children),t.flags|=4096);return t}return i?($a(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ti(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ii(c,i,n,null),c.flags|=2):c=ti(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(i=c.cachePool,i===null?i=pa():(l=$i._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=ti(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 _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=$r(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Aa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hi(e.return,t,n)}function xc(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 Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,B(to,o),Qs(e,t,r,n),r=Ei?pi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(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&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(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&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Gi(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Bi(t,$i,e.memoizedState.cache),Pi();break;case 27:case 5:ce(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Za(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Xa(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Xa(t),t.flags|=128,null);Xa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Wi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(to,to.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Bi(t,$i,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Ei&&t.flags&1048576&&bi(t,pi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e==`function`)ei(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(i===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=P(e)||e,Error(o(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Bs(r,t.pendingProps),dc(e,t,r,i,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Pa(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Bi(t,$i,r),r!==a.cache&&Ui(t,[$i],n,!0),Ba(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==i){i=li(Error(o(424)),t),Ii(i),t=fc(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(Ti=uf(e.firstChild),wi=t,Ei=!0,Di=null,Oi=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pi(),r===i){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=jf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ei||(n=t.type,e=t.pendingProps,r=Hd(V.current).createElement(n),r[et]=t,r[G]=e,Id(r,n,e),dt(r),t.stateNode=r):t.memoizedState=jf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&Ei&&(r=t.stateNode=mf(t.type,t.pendingProps,V.current),wi=t,Oi=!0,i=Ti,$d(t.type)?(df=i,Ti=uf(r.firstChild)):Ti=i),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ei&&((i=r=Ti)&&(r=rf(r,t.type,t.pendingProps,Oi),r===null?i=!1:(t.stateNode=r,wi=t,Ti=uf(r.firstChild),Oi=!1,i=!0)),i||Ai(t)),ce(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Gd(i,a)?r=null:s!==null&&Gd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=go(e,t,yo,null,null,n),ep._currentValue=i),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Ei&&((e=n=Ti)&&(n=af(n,t.pendingProps,Oi),n===null?e=!1:(t.stateNode=n,wi=t,Ti=null,e=!0)),e||Ai(t)),null;case 13:return gc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Bi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Ki(t),i=qi(i),r=r(i),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Ki(t),r=qi($i),e===null?(i=da(),i===null&&(i=Il,a=ea(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Na(t),Bi(t,$i,i)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Bi(t,$i,r),r!==i.cache&&Ui(t,[$i],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Bi(t,$i,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Dc(e){e.flags|=4}function Oc(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(Tu())e.flags|=8192;else throw xa=_a,ha}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t))if(Tu())e.flags|=8192;else throw xa=_a,ha}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ue(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!Ei)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 Mc(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 Nc(e,t,n){var r=t.pendingProps;switch(Si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vi($i),se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ni(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fi())),Mc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Dc(t),a===null?(Mc(t),Oc(t,i,null,r,n)):(Mc(t),kc(t,a))):a?a===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,a)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,i,e,r,n)),null;case 27:if(le(t),n=V.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Mc(t),null}e=re.current,Ni(t)?ji(t,e):(e=mf(i,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(le(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Mc(t),null}if(a=re.current,Ni(t))ji(t,a);else{var s=Hd(V.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[et]=t,a[G]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.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=a;a:switch(Id(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=V.current,Ni(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=wi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ai(t,!0)}else e=Hd(e).createTextNode(r),e[et]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ni(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[et]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(o(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ni(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[et]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),i=!1}else i=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return se(),e===null&&Cd(t.stateNode.containerInfo),Mc(t),null;case 10:return Vi(t.type),Mc(t),null;case 19:if(ne(to),r=t.memoizedState,r===null)return Mc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=no(e),a!==null){for(t.flags|=128,jc(r,!1),e=a.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ni(n,e),n=n.sibling;return B(to,to.current&1|2),Ei&&yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>nu&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=no(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Ei)return Mc(t),null}else 2*xe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=to.current,B(to,i?n&1|2:n&1),Ei&&yi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(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&&ne(ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vi($i),Mc(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Pc(e,t){switch(Si(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi($i),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(o(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(to),null;case 4:return se(),null;case 10:return Vi(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&ne(ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vi($i),null;case 25:return null;default:return null}}function Fc(e,t){switch(Si(t),t.tag){case 3:Vi($i),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:ne(to);break;case 10:Vi(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&ne(ua);break;case 24:Vi($i)}}function Ic(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){Ku(t,t.return,e)}}function Lc(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){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Ku(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Bc(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){Ku(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(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){Ku(e,t,n)}else n.current=null}function Hc(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){Ku(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[G]=t}catch(t){Ku(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(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&&$d(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 Kc(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=Gt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(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&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[et]=e,t[G]=n}catch(t){Ku(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Bd=cp,e=vr(e),yr(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 i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.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||i!==0&&f.nodeType!==3||(c=s+i),f!==a||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===i&&(c=s),p===a&&++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(Vd={focusedElem:e,selectionRange:n},cp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,a=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++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Bs(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(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{Ua(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ot(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 rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(U&&typeof U.onCommitFiberUnmount==`function`)try{U.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;$d(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),hf(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):ef(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Ku(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Ku(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(o(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(o(160));ol(a,s,i),rl=null,il=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(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 i=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var a=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,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[at]||a[et]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Id(a,r,n),a[et]=e,dt(a),r=a;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),Id(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=Uf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),Id(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[et]=e,dt(a),r=a}e.stateNode=r}else Wf(i,e.type,e.stateNode);else e.stateNode=Rf(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Wf(i,e.type,e.stateNode):Rf(i,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){i=e.stateNode;try{Lt(i,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Uc(e,i,n===null?i:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Hf=null,i=fl,fl=vf(t.containerInfo),dl(t,e),fl=i,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Ku(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=vf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||i,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.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){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?tf(m,!0):tf(l.stateNode,!1)}catch(e){Ku(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,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;qc(e,Gc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Lt(a,``),n.flags&=-33),qc(e,Gc(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(o(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:hf(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(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:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(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++)Ha(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(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&&ta(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(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&&ta(e)));break;case 12:if(i&2048){xl(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){Ku(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(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:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(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:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&qf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=vf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(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 kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(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:ta(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=qi($i),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return qi($i).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:I.T===null?Qe():X()}function hu(){if(Yl===0)if(!(Rl&536870912)||Ei){var e=Le;Le<<=1,!(Le&3932160)&&(Le=262144),Yl=e}else Yl=536870912;return e=Ja.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),Ge(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),ad(e))}function _u(e,t,n){if(Fl&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ve(e,t),i=r?ju(e,t):ku(e,t,!0),a=r;do{if(i===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!yu(n)){i=ku(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)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;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=a,ql|=a,i=4;break a}a=Ql,Ql=i,a!==null&&(Ql===null?Ql=a:Ql.push.apply(Ql,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=eu+300-xe(),10<i)){if(bu(r,t,Yl,!Vl),Be(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Jd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,null,-0,0)}}break}while(1);ad(e)}function vu(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:Gt},Dl(t,a,d);var m=(a&62914560)===a?eu-xe():(a&4194048)===a?tu-xe():0;if(m=Yf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(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(!pr(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 bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Me(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&qe(e,n,t)}function xu(){return Fl&6?!0:(od(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,zi=Ri=null,So(e),wa=null,Ta=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=ti(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Ve(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Me(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Gr(),n}function wu(e,t){Y=null,I.H=Ms,t===ma||t===ga?(t=Sa(),zl=3):t===ha?(t=Sa(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,li(t,e.current)))}function Tu(){var e=Ja.current;return e===null?!0:(Rl&4194048)===Rl?Ya===null:(Rl&62914560)===Rl||Rl&536870912?e===Ya:!1}function Eu(){var e=I.H;return I.H=Ms,e===null?Ms:e}function Du(){var e=I.A;return I.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&Ja.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:Ja.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,zi=Ri=null,Fl=r,I.H=i,I.A=a,Ll===null&&(Il=null,Rl=0,Gr()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),i=Du();Il!==e||Rl!==t?(ru=null,nu=xe()+500,Cu(e,t)):Hl=Ve(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var a=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,a,1);break;case 2:case 9:if(va(a)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),ad(e)},a.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:va(a)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,a,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?Kf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,a,5);break;case 6:zl=0,Bl=null,Fu(e,t,a,6);break;case 8:Su(),Gl=6;break a;default:throw Error(o(462))}}Mu();break}catch(t){wu(e,t)}while(1);return zi=Ri=null,I.H=r,I.A=i,Fl=n,Ll===null?(Il=null,Rl=0,Gr(),Gl):0}function Mu(){for(;Ll!==null&&!ye();)Nu(Ll)}function Nu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:So(t);default:Fc(n,t),t=Ll=ni(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){zi=Ri=null,So(t),wa=null,Ta=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,li(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,li(n,e.current)),Ll=null;return}t.flags&32768?(Ei||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ja.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=Wr,Ke(e,n,a,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=a,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Te,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,i=L.p,L.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,L.p=i,I.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Vd,o=vr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&_r(s.ownerDocument.documentElement,s)){if(c!==null&&yr(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 _=gr(s,h),v=gr(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}}cp=!!Bd,Vd=Bd=null}finally{Fl=i,L.p=r,I.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,L.p=r,I.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,be();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ze(n),t=t.stateNode,U&&typeof U.onCommitFiberRoot==`function`)try{U.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.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{I.T=t,L.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ta(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=Ze(cu),r=I.T,i=L.p;try{L.p=32>n?32:n,I.T=null,n=uu,uu=null;var a=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(o(331));var c=Fl;if(Fl|=4,Al(a.current),Sl(a,a.current,s,n),Fl=c,od(0,!1),U&&typeof U.onPostCommitFiberRoot==`function`)try{U.onPostCommitFiberRoot(Ae,a)}catch{}return!0}finally{L.p=i,I.T=r,Hu(e,t)}}function Gu(e,t,n){t=li(n,t),t=Ks(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ge(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=li(n,e),n=qs(2),r=Ia(t,n,2),r!==null&&(Js(n,r,t,e),Ge(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;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)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>xe()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ue()),e=Jr(e,t),e!==null&&(Ge(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return _e(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;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-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=Be(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ve(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=xe(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Me(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=He(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=Be(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ve(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ve(r),Ze(n)){case 2:case 8:n=we;break;case 32:n=Te;break;case 268435456:n=De;break;default:n=Te}return r=ud.bind(null,e),n=_e(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ve(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=Be(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),ld(e,xe()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Uu())return null;_u(e,t,!0)}function fd(){Zd(function(){Fl&6?_e(Ce,sd):cd()})}function X(){if(id===0){var e=ia;e===0&&(e=Ie,Ie<<=1,!(Ie&261888)&&(Ie=256)),id=e}return id}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Wt(``+e)}function md(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 hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[G]||null).action),o=r.submitter;o&&(t=(t=o[G]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?md(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<zr.length;gd++){var _d=zr[gd];Br(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Br(jr,`onAnimationEnd`),Br(Mr,`onAnimationIteration`),Br(Nr,`onAnimationStart`),Br(`dblclick`,`onDoubleClick`),Br(`focusin`,`onFocus`),Br(`focusout`,`onBlur`),Br(Pr,`onTransitionRun`),Br(Fr,`onTransitionStart`),Br(Ir,`onTransitionCancel`),Br(Lr,`onTransitionEnd`),ht(`onMouseEnter`,[`mouseout`,`mouseover`]),ht(`onMouseLeave`,[`mouseout`,`mouseover`]),ht(`onPointerEnter`,[`pointerout`,`pointerover`]),ht(`onPointerLeave`,[`pointerout`,`pointerover`]),mt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),mt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),mt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),mt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),mt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),mt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function Z(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){Vr(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){Vr(e)}i.currentTarget=null,a=c}}}}function bd(e,t){var n=t[K];n===void 0&&(n=t[K]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,ft.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!tn||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 Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=st(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Qt(function(){var r=a,i=qt(n),o=[];a:{var s=Rr.get(e);if(s!==void 0){var c=fn,u=e;switch(e){case`keypress`:if(sn(n)===0)break a;case`keydown`:case`keyup`:c=An;break;case`focusin`:u=`focus`,c=xn;break;case`focusout`:u=`blur`,c=xn;break;case`beforeblur`:case`afterblur`:c=xn;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`:c=yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Mn;break;case jr:case Mr:case Nr:c=Sn;break;case Lr:c=Nn;break;case`scroll`:case`scrollend`:c=mn;break;case`wheel`:c=Pn;break;case`copy`:case`cut`:case`paste`:c=Cn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=jn;break;case`toggle`:case`beforetoggle`:c=Fn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;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=$t(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Kt&&(u=n.relatedTarget||n.fromElement)&&(st(u)||u[tt]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(u=n.relatedTarget||n.toElement,c=r,u=u?st(u):null,u!==null&&(f=l(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(c=null,u=r),c!==u)){if(d=yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=jn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?s:lt(c),h=u==null?s:lt(u),s=new d(g,m+`leave`,c,n,i),s.target=f,s.relatedTarget=h,g=null,st(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,c&&u)b:{for(d=Od,p=c,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;c!==null&&kd(o,s,c,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?lt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var v=tr;else if(Yn(s))if(nr)v=dr;else{v=lr;var y=cr}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Vt(r.elementType)&&(v=tr):v=ur;if(v&&=v(e,r)){Xn(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Nt(s,`number`,s.value)}switch(y=r?lt(r):window,e){case`focusin`:(Yn(y)||y.contentEditable===`true`)&&(xr=y,Sr=r,Cr=null);break;case`focusout`:Cr=Sr=xr=null;break;case`mousedown`:wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:wr=!1,Tr(o,n,i);break;case`selectionchange`:if(br)break;case`keydown`:case`keyup`:Tr(o,n,i)}var b;if(Ln)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 Gn?Un(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Bn&&n.locale!==`ko`&&(Gn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Gn&&(b=q()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Gn=!0)),y=Dd(r,x),0<y.length&&(x=new wn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Wn(n),b!==null&&(x.data=b)))),(b=zn?Kn(e,n):qn(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new wn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}Z(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(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=$t(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=$t(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(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=$t(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=$t(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
|
|
9
|
-
`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Lt(e,``+r);break;case`className`:xt(e,`class`,r);break;case`tabIndex`:xt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:xt(e,n,r);break;case`style`:Bt(e,r,a);break;case`data`:if(t!==`object`){xt(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=Wt(``+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 a==`function`&&(n===`formAction`?(t!==`input`&&Pd(e,t,`name`,i.name,i,null),Pd(e,t,`formEncType`,i.formEncType,i,null),Pd(e,t,`formMethod`,i.formMethod,i,null),Pd(e,t,`formTarget`,i.formTarget,i,null)):(Pd(e,t,`encType`,i.encType,i,null),Pd(e,t,`method`,i.method,i,null),Pd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(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=Wt(``+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`:bd(`beforetoggle`,e),bd(`toggle`,e),bt(e,`popover`,r);break;case`xlinkActuate`:St(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:St(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:St(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:St(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:St(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:St(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:bt(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=Ht.get(n)||n,bt(e,n,r))}}function Fd(e,t,n,r,i,a){switch(n){case`style`:Bt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!pt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[G]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):bt(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:bd(`error`,e),bd(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Pd(e,t,a,s,n,null)}}i&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:bd(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:Pd(e,t,r,d,n,null)}}Mt(e,a,c,l,u,s,i,!1);return;case`select`:for(i in bd(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Pt(e,!!r,n,!0):Pt(e,!!r,t,!1);return;case`textarea`:for(s in bd(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:Pd(e,t,s,c,n,null)}It(e,r,i,a);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:Pd(e,t,l,r,n,null)}return;case`dialog`:bd(`beforetoggle`,e),bd(`toggle`,e),bd(`cancel`,e),bd(`close`,e);break;case`iframe`:case`object`:bd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)bd(vd[r],e);break;case`image`:bd(`error`,e),bd(`load`,e);break;case`details`:bd(`toggle`,e);break;case`embed`:case`source`:case`link`:bd(`error`,e),bd(`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(o(137,t));default:Pd(e,t,u,r,n,null)}return;default:if(Vt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Ld(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 i=null,a=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)||Pd(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`:a=m;break;case`name`:i=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(o(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}jt(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Pd(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&Pd(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Pt(e,!!n,n?[]:``,!1):Pt(e,!!n,t,!0)):Pt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&Pd(e,t,s,i,r,a)}Ft(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:Pd(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:Pd(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)&&Pd(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(o(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if(Vt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(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||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(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||Pd(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){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&&Rd(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&&Rd(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 Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(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 Wd(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 Gd(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 Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(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),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[at]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Pp(t)}function tf(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 nf(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`:nf(n),ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(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[at])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=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(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 uf(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 df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(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 mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ot(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=L.d;L.d={f:bf,r:xf,D:wf,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function bf(){var e=yf.f(),t=xu();return e||t}function xf(e){var t=ct(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=At(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),dt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+At(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+At(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+At(n.imageSizes)+`"]`)):i+=`[href="`+At(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),dt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+At(r)+`"][href="`+At(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),dt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=ut(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);dt(c),Id(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,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=ut(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=h({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),dt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=ut(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),dt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=V.current)?vf(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=ut(i).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=Mf(n.href);var a=ut(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Nf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),gf.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},gf.set(e,n),a||Ff(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=ut(i).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(o(444,e))}}function Mf(e){return`href="`+At(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(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}),Id(t,`link`,n),dt(t),e.head.appendChild(t))}function If(e){return`[src="`+At(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+At(n.href)+`"]`);if(r)return t.instance=r,dt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),dt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var a=e.querySelector(Nf(i));if(a)return t.state.loading|=4,t.instance=a,dt(a),a;r=Pf(n),(i=gf.get(i))&&Bf(r,i),a=(e.ownerDocument||e).createElement(`link`),dt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(a,`link`,r),t.state.loading|=4,zf(a,n.precedence,e),t.instance=a;case`script`:return a=If(n.src),(i=e.querySelector(Lf(a)))?(t.instance=i,dt(i),i):(r=n,(i=gf.get(a))&&(r=h({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),dt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(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 Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,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[at]||a[et]||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 Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(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 Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(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=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,dt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(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=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.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=Xf.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 ep={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function tp(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=We(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=We(0),this.hiddenUpdates=We(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 np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=$r(3,null,null,t),e.current=a,a.stateNode=e,t=ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function rp(e){return e?(e=Zr,e):Zr}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(gu(n,e,t),La(n,e,t))}function Q(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){Q(e,t),(e=e.alternate)&&Q(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Jr(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=Xe(t);var n=Jr(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ze(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Me(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Fl&6)&&(nu=xe()+500,od(0,!1))}}break;case 31:case 13:s=Jr(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=qt(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=st(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 pp=e,null}function hp(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(Se()){case Ce:return 2;case we:return 8;case Te:case Ee:return 32;case De:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(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=ct(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=st(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,W(e.priority,function(){sp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,W(e.priority,function(){sp(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 Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kt=r,n.target.dispatchEvent(r),Kt=null}else return t=ct(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=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(mp(r||n)===null)continue;break}var a=ct(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.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[G]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[G]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;ip(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),xu(),t[tt]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.7`)throw Error(o(527,Rp,`19.2.7`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ae=Bp.inject(zp),U=Bp}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(o(299));var n=!1,r=``,i=Vs,a=Hs,s=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=np(e,1,!1,null,null,n,r,null,i,a,s,Fp),e[tt]=t.current,Cd(e),new Ip(t)}})),l=t(((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=c()})),u=e(r(),1);function d(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 f=d(`https://base-ui.com/production-error`,`Base UI`),p=u.createContext(!1),m=u.createContext(void 0);function h(e){let t=u.useContext(m);if(e===!1&&t===void 0)throw Error(f(27));return t}var g={};function _(e,t){let n=u.useRef(g);return n.current===g&&(n.current=e(t)),n}function v(e,t,n,r){let i=_(b).current;return x(i,e,t,n,r)&&C(i,[e,t,n,r]),i.callback}function y(e){let t=_(b).current;return S(t,e)&&C(t,e),t.callback}function b(){return{callback:null,cleanup:null,refs:[]}}function x(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function S(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function C(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:}}}}}}var w=19;function T(e){return w>=e}function E(e){if(!u.isValidElement(e))return null;let t=e,n=t.props;return(T(19)?n?.ref:t.ref)??null}function D(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function O(){}var k=Object.freeze([]),A=Object.freeze({});function j(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 M(e,t){return typeof e==`function`?e(t):e}function N(e,t){return typeof e==`function`?e(t):e}var P={};function F(e,t,n,r,i){if(!n&&!r&&!i&&!e)return L(t);let a=L(e);return t&&(a=R(a,t)),n&&(a=R(a,n)),r&&(a=R(a,r)),i&&(a=R(a,i)),a}function I(e){if(e.length===0)return P;if(e.length===1)return L(e[0]);let t=L(e[0]);for(let n=1;n<e.length;n+=1)t=R(t,e[n]);return t}function L(e){return ne(e)?{...B(e,P)}:ee(e)}function R(e,t){return ne(t)?B(t,e):te(e,t)}function ee(e){let t={...e};for(let e in t){let n=t[e];z(e,n)&&(t[e]=ie(n))}return t}function te(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=D(e.style,r);break;case`className`:e[n]=ae(e.className,r);break;default:z(n,r)?e[n]=re(e[n],r):e[n]=r}}return e}function z(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 ne(e){return typeof e==`function`}function B(e,t){return ne(e)?e(t):e??P}function re(e,t){return t?e?(...n)=>{let r=n[0];if(oe(r)){let i=r;V(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:ie(t):e}function ie(e){return e&&((...t)=>{let n=t[0];return oe(n)&&V(n),e(...t)})}function V(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ae(e,t){return t?e?t+` `+e:t:e}function oe(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function se(e,t,n={}){let r=t.render,i=ce(t,n);return n.enabled===!1?null:de(e,r,i,n.state??A)}function ce(e,t={}){let{className:n,style:r,render:i}=e,{state:a=A,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?M(n,a):void 0,d=l?N(r,a):void 0,f=l?j(a,c):A,p=l&&s?le(s):void 0,m=l?D(f,p)??{}:A;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=y([m.ref,E(i),...o]):m.ref=v(m.ref,E(i),o):v(null,null)),l?(u!==void 0&&(m.className=ae(m.className,u)),d!==void 0&&(m.style=D(m.style,d)),m):A}function le(e){return Array.isArray(e)?I(e):F(void 0,e)}var ue=Symbol.for(`react.lazy`);function de(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=F(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===ue&&(i=u.Children.toArray(t)[0]),u.cloneElement(i,e)}if(e&&typeof e==`string`)return fe(e,n);throw Error(f(8))}function fe(e,t){return e===`button`?(0,u.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,u.createElement)(`img`,{alt:``,...t,key:t.key}):u.createElement(e,t)}var pe=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),me={[pe.startingStyle]:``},he={[pe.endingStyle]:``},H={transitionStatus(e){return e===`starting`?me:e===`ending`?he:null}},ge=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=pe.startingStyle]=`startingStyle`,e[e.endingStyle=pe.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),_e=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({});_e.popupOpen;var ve={[_e.popupOpen]:``,[_e.pressed]:``},ye={[ge.open]:``},be={[ge.closed]:``},xe={[ge.anchorHidden]:``},Se={open(e){return e?ve:null}},Ce={open(e){return e?ye:be},anchorHidden(e){return e?xe:null}},we={...Ce,...H},Te=u.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=h(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return se(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:we,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function Ee(){return typeof window<`u`}function De(e){return Ae(e)?(e.nodeName||``).toLowerCase():`#document`}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){return((Ae(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ae(e){return Ee()?e instanceof Node||e instanceof Oe(e).Node:!1}function U(e){return Ee()?e instanceof Element||e instanceof Oe(e).Element:!1}function je(e){return Ee()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function Me(e){return!Ee()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function Ne(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=We(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pe(e){return/^(table|td|th)$/.test(De(e))}function Fe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ie=/transform|translate|scale|rotate|perspective|filter/,Le=/paint|layout|strict|content/,Re=e=>!!e&&e!==`none`,ze;function Be(e){let t=U(e)?We(e):e;return Re(t.transform)||Re(t.translate)||Re(t.scale)||Re(t.rotate)||Re(t.perspective)||!He()&&(Re(t.backdropFilter)||Re(t.filter))||Ie.test(t.willChange||``)||Le.test(t.contain||``)}function Ve(e){let t=Ke(e);for(;je(t)&&!Ue(t);){if(Be(t))return t;if(Fe(t))return null;t=Ke(t)}return null}function He(){return ze??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ze}function Ue(e){return/^(html|body|#document)$/.test(De(e))}function We(e){return Oe(e).getComputedStyle(e)}function Ge(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ke(e){if(De(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Me(e)&&e.host||ke(e);return Me(t)?t.host:t}function qe(e){let t=Ke(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:je(t)&&Ne(t)?t:qe(t)}function Je(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qe(e),i=r===e.ownerDocument?.body,a=Oe(r);if(i){let e=Ye(a);return t.concat(a,a.visualViewport||[],Ne(r)?r:[],e&&n?Je(e):[])}else return t.concat(r,Je(r,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Xe={...u},Ze=Xe.useInsertionEffect,Qe=Ze&&Ze!==Xe.useLayoutEffect?Ze:e=>e();function W(e){let t=_($e).current;return t.next=e,Qe(t.effect),t.trampoline}function $e(){let e={next:void 0,callback:et,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function et(){}var G=typeof document<`u`?u.useLayoutEffect:()=>{},tt=e(s(),1),K=n(),nt=u.createContext(void 0);function rt(e=!1){let t=u.useContext(nt);if(t===void 0&&!e)throw Error(f(16));return t}function it(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:u.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function at(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=u.useRef(null),s=rt(!0),c=a??s!==void 0,{props:l}=it({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),d=u.useCallback(()=>{let e=o.current;ot(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return G(d,[d]),{getButtonProps:u.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return F({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(V(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=ot(a),l=!i&&st(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(V(e),a?.(e),e.target===e.currentTarget&&i&&c&&ot(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:W(e=>{o.current=e,d()})}}function ot(e){return je(e)&&e.tagName===`BUTTON`}function st(e){return!!(e?.tagName===`A`&&e?.href)}var ct=`none`,lt=`trigger-press`,ut=`trigger-hover`,dt=`trigger-focus`,ft=`outside-press`,pt=`item-press`,mt=`close-press`,ht=`focus-out`,gt=`escape-key`,_t=`list-navigation`,vt=`cancel-open`,yt=`sibling-open`,bt=`imperative-action`;function xt(e,t,n,r){let i=!1,a=!1,o=r??A;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 St=u.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=h(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=at({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,xt(mt,e.nativeEvent))}return se(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Ct=0;function wt(e,t=`mui`){let[n,r]=u.useState(e),i=e||n;return u.useEffect(()=>{n??(Ct+=1,r(`${t}-${Ct}`))},[n,t]),i}var Tt=Xe.useId;function Et(e,t){if(Tt!==void 0){let n=Tt();return e??(t?`${t}-${n}`:n)}return wt(e,t)}function Dt(e){return Et(e,`base-ui`)}var Ot=[];function kt(e){u.useEffect(e,Ot)}var At=0,jt=class e{static create(){return new e}currentId=At;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=At,t()},e)}isStarted(){return this.currentId!==At}clear=()=>{this.currentId!==At&&(clearTimeout(this.currentId),this.currentId=At)};disposeEffect=()=>this.clear};function Mt(){let e=_(jt.create).current;return kt(e.disposeEffect),e}function Nt(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Pt,platform:Ft,maxTouchPoints:It}=Nt(),Lt=Pt.toLowerCase(),Rt=Ft.toLowerCase(),zt=/^i(os$|p)/.test(Rt)||Rt===`macintel`&&It>1,Bt=`android`,Vt=Rt===Bt||Lt.includes(Bt),Ht=!zt&&Rt.startsWith(`mac`);Rt.startsWith(`win`),!Vt&&/^(linux|chrome os)/.test(Rt);var Ut=Ht||zt,Wt=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Wt&&Lt.includes(`firefox`),!Wt&&Lt.includes(`chrom`);var Gt=Ut,Kt=/jsdom|happydom/.test(Lt);function qt(e){e.preventDefault(),e.stopPropagation()}function Jt(e){return`nativeEvent`in e}function Yt(e){return e.pointerType===``&&e.isTrusted?!0:Vt&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Xt(e){return Kt?!1:!Vt&&e.width===0&&e.height===0||Vt&&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 Zt(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Qt(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var $t=`data-base-ui-focusable`,en=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,tn=`ArrowLeft`,nn=`ArrowRight`,rn=`ArrowUp`,an=`ArrowDown`;function on(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function q(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Me(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function sn(e){return`composedPath`in e?e.composedPath()[0]:e.target}function cn(e,t){if(!U(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(q(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function ln(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 un(e){return e.matches(`html,body`)}function dn(e){return je(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function fn(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${en}`)!=null}function pn(e){return e?e.getAttribute(`role`)===`combobox`&&dn(e):!1}function mn(e){if(!e||Kt)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function hn(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function gn(e,t){return t!=null&&!Zt(t)?0:typeof e==`function`?e():e}function _n(e,t,n){let r=gn(e,n);return typeof r==`number`?r:r?.[t]}function vn(e){return typeof e==`function`?e():e}function yn(e,t){return t||e===`click`||e===`mousedown`}function bn(e){return e?.includes(`mouse`)&&e!==`mousedown`}function xn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Sn(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Cn(e){let t=_(wn,e).current;return t.next=e,G(t.effect),t}function wn(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Tn=null;globalThis.requestAnimationFrame;var En=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)}},Dn=class e{static create(){return new e}static request(e){return En.request(e)}static cancel(e){return En.cancel(e)}currentId=Tn;request(e){this.cancel(),this.currentId=En.request(()=>{this.currentId=Tn,e()})}cancel=()=>{this.currentId!==Tn&&(En.cancel(this.currentId),this.currentId=Tn)};disposeEffect=()=>this.cancel};function On(){let e=_(Dn.create).current;return kt(e.disposeEffect),e}function kn(e){return e?.ownerDocument||document}var An={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},jn={...An,position:`fixed`,top:0,left:0};({...An});var Mn=u.forwardRef(function(e,t){let[n,r]=u.useState();G(()=>{Gt&&Wt&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,K.jsx)(`span`,{...e,ref:t,style:jn,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),Nn=[`top`,`right`,`bottom`,`left`],Pn=Math.min,Fn=Math.max,In=Math.round,Ln=Math.floor,Rn=e=>({x:e,y:e}),zn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Bn(e,t,n){return Fn(e,Pn(t,n))}function Vn(e,t){return typeof e==`function`?e(t):e}function Hn(e){return e.split(`-`)[0]}function Un(e){return e.split(`-`)[1]}function Wn(e){return e===`x`?`y`:`x`}function Gn(e){return e===`y`?`height`:`width`}function Kn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function qn(e){return Wn(Kn(e))}function Jn(e,t,n){n===void 0&&(n=!1);let r=Un(e),i=qn(e),a=Gn(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=rr(o)),[o,rr(o)]}function Yn(e){let t=rr(e);return[Xn(e),t,Xn(t)]}function Xn(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Zn=[`left`,`right`],Qn=[`right`,`left`],$n=[`top`,`bottom`],er=[`bottom`,`top`];function tr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Qn:Zn:t?Zn:Qn;case`left`:case`right`:return t?$n:er;default:return[]}}function nr(e,t,n,r){let i=Un(e),a=tr(Hn(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Xn)))),a}function rr(e){let t=Hn(e);return zn[t]+e.slice(t.length)}function ir(e){return{top:0,right:0,bottom:0,left:0,...e}}function ar(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ir(e)}function or(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 sr(e,t){return t<0||t>=e.length}function cr(e,t){return ur(e.current,{disabledIndices:t})}function lr(e,t){return ur(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ur(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&dr(e,a,r));return a}function dr(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!pr(r)||!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function fr(e){return e.visibility===`hidden`||e.visibility===`collapse`}function pr(e,t=e?We(e):null){return!e||!e.isConnected||!t||fr(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var mr=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function hr(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Me(n)?n.host:null}function gr(e){for(let t of Array.from(e.children))if(De(t)===`summary`)return t;return null}function _r(e,t){let n=gr(t);return!!n&&(e===n||q(n,e))}function vr(e){let t=e?De(e):``;return e!=null&&e.matches(mr)&&(t!==`summary`||e.parentElement!=null&&De(e.parentElement)===`details`&&gr(e.parentElement)===e)&&(t!==`details`||gr(e)==null)&&(t!==`input`||e.type!==`hidden`)}function yr(e){if(!vr(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=hr(t)){let n=t!==e,r=De(t)===`slot`;if(t.hasAttribute(`inert`)||n&&De(t)===`details`&&!t.open&&!_r(e,t)||t.hasAttribute(`hidden`)||!r&&!br(t,n))return!1}return!0}function br(e,t){let n=We(e);return t?n.display!==`none`:pr(e,n)}function xr(e){let t=e.tabIndex;if(t<0){let t=De(e);if(t===`details`||t===`audio`||t===`video`||je(e)&&e.isContentEditable)return 0}return t}function Sr(e){if(De(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Cr(e,t){let n=Sr(e);if(!n)return!0;let r=t.find(e=>{let t=Sr(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Sr(e);return t?.name===n.name&&t.form===n.form})===n}function wr(e){if(je(e)&&De(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return je(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Tr(e,t){wr(e).forEach(e=>{vr(e)&&t.push(e),Tr(e,t)})}function Er(e,t,n){wr(e).forEach(e=>{je(e)&&e.matches(t)&&n.push(e),Er(e,t,n)})}function Dr(e){return yr(e)&&xr(e)>=0}function Or(e){let t=[];return Tr(e,t),t.filter(yr)}function kr(e){let t=Or(e);return t.filter(e=>xr(e)>=0&&Cr(e,t))}function Ar(e,t){let n=kr(e),r=n.length;if(r===0)return;let i=on(kn(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function jr(e){return Ar(kn(e).body,1)||e}function Mr(e){return Ar(kn(e).body,-1)||e}function Nr(e,t){if(!e)return null;let n=kr(kn(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 Pr(e){return Nr(e,1)}function Fr(e){return Nr(e,-1)}function Ir(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!q(n,r)}function Lr(e){kr(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Rr(e){let t=[];Er(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 zr(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...zr(e,t.id,n)])}function Br(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 Vr(e){return`data-base-ui-${e}`}var Hr=0;function Ur(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Hr);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),O;let o=requestAnimationFrame(a);return Hr=o,()=>{Hr===o&&(cancelAnimationFrame(o),Hr=0)}}var Wr={inert:new WeakMap,"aria-hidden":new WeakMap},Gr=`data-base-ui-inert`,Kr={inert:new WeakSet,"aria-hidden":new WeakSet},qr=new WeakMap,Jr=0;function Yr(e){return Kr[e]}function Xr(e){return e?Me(e)?e.host:Xr(e.parentNode):null}var Zr=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Xr(t);return e.contains(n)?n:null}).filter(e=>e!=null),Qr=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},$r=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{De(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function ei(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=Zr(t,e),l=i?$r(t,Qr(c),new Set(c)):[],u=[],d=[];if(a){let e=Wr[a],n=Yr(a);s=n,o=e;let r=Zr(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);$r(t,Qr(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(qr.get(e)||0)+1;qr.set(e,t),d.push(e),t===1&&e.setAttribute(Gr,``)}),Jr+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(qr.get(e)||0)-1;qr.set(e,t),t||e.removeAttribute(Gr)}),--Jr,Jr||(Wr.inert=new WeakMap,Wr[`aria-hidden`]=new WeakMap,Kr.inert=new WeakSet,Kr[`aria-hidden`]=new WeakSet,qr=new WeakMap)}}function ti(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=kn(e[0]).body;return ei(e,a,n,r,{mark:i})}var ni={style:{transition:`none`}},ri={fallbackAxisSide:`none`},ii={fallbackAxisSide:`end`},ai={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},oi=u.createContext(null),si=()=>u.useContext(oi),ci=Vr(`portal`);function li(e={}){let{ref:t,container:n,componentProps:r=A,elementProps:i}=e,a=Et(),o=si()?.portalNode,[s,c]=u.useState(null),[l,d]=u.useState(null),f=W(e=>{e!==null&&d(e)}),p=u.useRef(null);G(()=>{if(n===null){p.current&&(p.current=null,d(null),c(null));return}if(a==null)return;let e=(n&&(Ae(n)?n:n.current))??o??document.body;if(e==null){p.current&&(p.current=null,d(null),c(null));return}p.current!==e&&(p.current=e,d(null),c(e))},[n,o,a]);let m=se(`div`,r,{ref:[t,f],props:[{id:a,[ci]:``},i]});return{portalNode:l,portalSubtree:s&&m?tt.createPortal(m,s):null}}var ui=u.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:d}=li({container:o,ref:t,componentProps:e,elementProps:c}),f=u.useRef(null),p=u.useRef(null),m=u.useRef(null),h=u.useRef(null),[g,_]=u.useState(null),v=u.useRef(!1),y=g?.modal,b=g?.open,x=typeof s==`boolean`?s:!!g&&!g.modal&&g.open&&!!l;u.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Ir(e)&&(e.type===`focusin`?v.current&&=(Rr(l),!1):(Lr(l),v.current=!0))}return Sn(xn(l,`focusin`,e,!0),xn(l,`focusout`,e,!0))},[l,y]),G(()=>{!l||b!==!0||!v.current||(Rr(l),v.current=!1)},[b,l]);let S=u.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,K.jsxs)(u.Fragment,{children:[d,(0,K.jsxs)(oi.Provider,{value:S,children:[x&&l&&(0,K.jsx)(Mn,{"data-type":`outside`,ref:f,onFocus:e=>{Ir(e,l)?m.current?.focus():Mr(g?g.domReference:null)?.focus()}}),x&&l&&(0,K.jsx)(`span`,{"aria-owns":l.id,style:ai}),l&&tt.createPortal(a,l),x&&l&&(0,K.jsx)(Mn,{"data-type":`outside`,ref:p,onFocus:e=>{Ir(e,l)?h.current?.focus():(jr(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,xt(`focus-out`,e.nativeEvent)))}})]})]})});function di(){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 fi=class{nodesRef={current:[]};events=di();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)}},pi=u.createContext(null),mi=u.createContext(null),hi=()=>u.useContext(pi)?.id||null,gi=e=>{let t=u.useContext(mi);return e??t};function _i(e){let t=Et(),n=gi(e),r=hi();return G(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function vi(e){let{children:t,id:n}=e,r=hi();return(0,K.jsx)(pi.Provider,{value:u.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function yi(e){let{children:t,externalTree:n}=e,r=_(()=>n??new fi).current;return(0,K.jsx)(mi.Provider,{value:r,children:t})}function bi(e){return e==null?e:`current`in e?e.current:e}function xi(e,t){let n=Oe(sn(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Si=20,Ci=[];function wi(){Ci=Ci.filter(e=>e.deref()?.isConnected)}function Ti(e){wi(),e&&De(e)!==`body`&&(Ci.push(new WeakRef(e)),Ci.length>Si&&(Ci=Ci.slice(-20)))}function Ei(){return wi(),Ci[Ci.length-1]?.deref()}function Di(e){return e?Dr(e)?e:kr(e)[0]||e:null}function Oi(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Or(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Dr(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function ki(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=`rootStore`in t?t.rootStore:t,_=g.useState(`open`),y=g.useState(`domReferenceElement`),b=g.useState(`floatingElement`),{events:x,dataRef:S}=g.context,C=W(()=>S.current.floatingContext?.nodeId),w=i===!1,T=pn(y)&&w,E=Cn(i),D=Cn(a),O=Cn(l),k=Cn(_),A=gi(m),j=si(),M=u.useRef(!1),N=u.useRef(!1),P=u.useRef(!1),F=u.useRef(null),I=u.useRef(``),L=u.useRef(``),R=u.useRef(null),ee=u.useRef(null),te=v(R,p,j?.beforeInsideRef),z=v(ee,j?.afterInsideRef),ne=Mt(),B=Mt(),re=On(),ie=j!=null,V=hn(b),ae=W((e=V)=>e?kr(e):[]),oe=W(()=>h?.().filter(e=>e!=null)??[]);u.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&q(V,on(kn(V)))&&ae().length===0&&!T&&qt(e)}return xn(kn(V),`keydown`,e)},[r,V,s,T,ae]),u.useEffect(()=>{if(r||!_)return;let e=kn(V);function t(){P.current=!1}function n(e){let t=sn(e),n=oe(),r=q(b,t)||q(y,t)||q(j?.portalNode,t)||n.some(e=>e===t||q(e,t));P.current=!r,L.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(N.current=!0,B.start(0,()=>{N.current=!1}))}function i(){L.current=`keyboard`}return Sn(xn(e,`pointerdown`,n,!0),xn(e,`pointerup`,t,!0),xn(e,`pointercancel`,t,!0),xn(e,`keydown`,i,!0),t)},[r,b,y,V,_,j,B,oe]),u.useEffect(()=>{if(r||!c)return;let e=kn(V);function t(){N.current=!0,B.start(0,()=>{N.current=!1})}function n(e){let t=sn(e);Dr(t)&&(F.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=sn(t);s&&n==null&&i!=null&&q(b,i)&&Ti(i),queueMicrotask(()=>{let a=C(),c=g.context.triggerElements,l=oe(),u=n?.hasAttribute(Vr(`focus-guard`))&&[R.current,ee.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,bi(f),bi(d)].includes(n),p=!(q(y,n)||q(b,n)||q(n,b)||q(j?.portalNode,n)||l.some(e=>e===n||q(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>q(e,n))||u||A&&(zr(A.nodesRef.current,a).find(e=>q(e.context?.elements.floating,n)||q(e.context?.elements.domReference,n))||Br(A.nodesRef.current,a).find(e=>[e.context?.elements.floating,hn(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===y&&V&&Oi(V),o&&r!==y&&!pr(i)&&on(e)===e.body){if(je(V)&&(V.focus(),o===`popup`)){re.request(()=>{V.focus()});return}let e=ae(),t=F.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;je(n)&&n.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(T||!s)&&n&&p&&!N.current&&(T||n!==Ei())&&(M.current=!0,g.setOpen(!1,xt(ht,t)))})}function a(){P.current||(S.current.insideReactTree=!0,ne.start(0,()=>{S.current.insideReactTree=!1}))}let l=je(y)?y:null;if(!(!b&&!l))return Sn(l&&xn(l,`focusout`,i),l&&xn(l,`pointerdown`,t),b&&xn(b,`focusin`,n),b&&xn(b,`focusout`,i),b&&j&&xn(b,`focusout`,a,!0))},[r,y,b,V,s,A,j,g,c,o,ae,T,C,S,ne,B,re,d,f,oe]),u.useEffect(()=>{if(r||!b||!_)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${Vr(`portal`)}]`)||[]),t=(A?Br(A.nodesRef.current,C()):[]).find(e=>pn(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ti([b,...e,R.current,ee.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...oe(),t,bi(f),bi(d),T?y:null].filter(e=>e!=null),{ariaHidden:s||T,mark:!1}),i=ti([b,...e].filter(e=>e!=null));return()=>{i(),n()}},[_,r,y,b,s,j,T,A,C,d,f,oe]),G(()=>{if(!_||r||!je(V))return;let e=kn(V),t=on(e);queueMicrotask(()=>{let n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||q(V,t))return;let i=null,a=()=>(i??=ae(V),i[0]||V),o;o=r===!0||r===null?a():bi(r),o||=a();let s=q(V,on(e));Ur(o,{preventScroll:o===V,shouldFocus(){if(!k.current)return!1;if(s)return!0;let t=on(e);return!(t!==o&&q(V,t))}})})},[r,_,V,ae,E,O,k]),G(()=>{if(r||!V)return;let e=kn(V),t=on(e),n=O.current==null;Ti(t);function i(e){if(e.open||(I.current=xi(e.nativeEvent,L.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(M.current=!0),e.reason===`outside-press`)if(e.nested)M.current=!1;else if(Yt(e.nativeEvent)||Xt(e.nativeEvent))M.current=!1;else{let e=!1;kn(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?M.current=!1:M.current=!0}}x.on(`openchange`,i);function a(){let e=D.current,r=typeof e==`function`?e(I.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=y?.isConnected?y:null,a=t?.isConnected&&De(t)!==`body`?t:null,o=n?a||i:i||a;return o||=Ei()||null,typeof r==`boolean`?o:bi(r)||o||null}return()=>{x.off(`openchange`,i);let t=on(e),n=oe(),r=q(b,t)||n.some(e=>e===t||q(e,t))||A&&zr(A.nodesRef.current,C(),!1).some(e=>q(e.context?.elements.floating,t)),o=D.current,s=a();queueMicrotask(()=>{let n=Di(s),i=typeof o!=`boolean`;o&&!M.current&&je(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),M.current=!1})}},[r,b,V,D,O,x,A,y,C,oe]),G(()=>{if(!Wt||_||!b)return;let e=on(kn(b));!je(e)||!dn(e)||q(b,e)&&e.blur()},[_,b]),G(()=>{if(!(r||!j))return j.setFocusManagerState({modal:s,closeOnFocusOut:c,open:_,onOpenChange:g.setOpen,domReference:y}),()=>{j.setFocusManagerState(null)}},[r,j,s,_,g,c,y]),G(()=>{if(!(r||!V))return Oi(V),()=>{queueMicrotask(wi)}},[r,V]);let se=!r&&(!s||!T)&&(ie||s);return(0,K.jsxs)(u.Fragment,{children:[se&&(0,K.jsx)(Mn,{"data-type":`inside`,ref:te,onFocus:e=>{if(s){let e=ae();Ur(e[e.length-1])}else j?.portalNode&&(M.current=!1,Ir(e,j.portalNode)?jr(y)?.focus():bi(f??j.beforeOutsideRef)?.focus())}}),n,se&&(0,K.jsx)(Mn,{"data-type":`inside`,ref:z,onFocus:e=>{s?Ur(ae()[0]):j?.portalNode&&(c&&(M.current=!0),Ir(e,j.portalNode)?Mr(y)?.focus():bi(d??j.afterOutsideRef)?.focus())}})]})}function Ai(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=lt}=t,l=`rootStore`in e?e.rootStore:e,d=l.context.dataRef,f=u.useRef(void 0),p=On(),m=Mt(),h=u.useMemo(()=>{function e(e,t,n,r){let i=xt(c,t,n);e&&r===`touch`&&s>0?m.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||Zt(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=sn(o);if(dn(u)){e(c,o,u,i);return}let d=n.currentTarget;p.request(()=>{e(c,o,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}Zt(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,a,c,l,o,i,p,m,s]);return u.useMemo(()=>n?{reference:h}:A,[n,h])}function ji(){return!1}function Mi(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Ni(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=ji,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,d=l.useState(`open`),f=l.useState(`floatingElement`),{dataRef:p}=l.context,m=gi(c),h=W(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=W(()=>a),{escapeKey:y,outsidePress:b}=Mi(s),x=u.useRef(!1),S=u.useRef(!1),C=u.useRef(!1),w=u.useRef(!1),T=u.useRef(``),E=u.useRef(null),D=Mt(),O=Mt(),k=W(()=>{O.clear(),p.current.insideReactTree=!1}),A=W(e=>{let t=p.current.floatingContext?.nodeId;return(m?zr(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=W(e=>ln(e,l.select(`floatingElement`))||ln(e,l.select(`domReferenceElement`))),M=W(e=>{o()&&l.setOpen(!1,xt(lt,e.nativeEvent))}),N=W(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&A(`__escapeKeyBubbles`))return;let t=xt(gt,Jt(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),P=W(()=>{p.current.insideReactTree=!0,O.start(0,k)}),F=W(e=>{if(!d||!n||e.button!==0)return;let t=sn(e.nativeEvent);q(l.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),I=W(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});u.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new jt,t=new jt;function i(){e.clear(),w.current=!0}function a(){e.start(Wt?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function u(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&zr(m.nodesRef.current,t).some(t=>ln(e,t.context?.elements.floating));return j(e)||n}function O(e){if(u(e)){e.type!==`click`&&!j(e)&&(t.clear(),C.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=sn(e),r=`[${Vr(`inert`)}]`,i=U(n)?n.getRootNode():null,a=Array.from((Me(i)?i:kn(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>q(e,n))))return;let s=U(n)?n:null;for(;s&&!Ue(s);){let e=Ke(s);if(Ue(e)||!U(e))break;s=e}if(!(a.length&&U(n)&&!un(n)&&!q(n,l.select(`floatingElement`))&&a.every(e=>!q(s,e)))){if(je(n)&&!(`touches`in e)){let t=Ue(n),r=We(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(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||A(`__outsidePressBubbles`)||(l.setOpen(!1,xt(ft,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||j(e)||O(e)}function P(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 F(e,t){let n=sn(e);if(!n)return;let r=xn(n,e.type,()=>{t(e),r()})}function I(e){T.current=`touch`,F(e,P)}function L(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function R(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,k())}}}function ee(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&&(O(e),D.clear(),E.current=null)}function te(e){F(e,ee)}function z(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function ne(e){F(e,z)}let B=kn(f),re=Sn(r&&Sn(xn(B,`keydown`,N),xn(B,`compositionstart`,i),xn(B,`compositionend`,a)),_&&Sn(xn(B,`click`,L,!0),xn(B,`pointerdown`,L,!0),xn(B,`pointerup`,R,!0),xn(B,`pointercancel`,R,!0),xn(B,`mousedown`,L,!0),xn(B,`mouseup`,R,!0),xn(B,`touchstart`,I,!0),xn(B,`touchmove`,te,!0),xn(B,`touchend`,ne,!0)));return()=>{re(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,N,k,v,A,j,m,l,D]),u.useEffect(k,[g,k]);let L=u.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),R=u.useMemo(()=>({onKeyDown:N,onPointerDown:I,onMouseDown:I,onClickCapture:P,onMouseDownCapture(e){P(),F(e)},onPointerDownCapture(e){P(),F(e)},onMouseUpCapture:P,onTouchEndCapture:P,onTouchMoveCapture:P}),[N,P,F,I]);return u.useMemo(()=>n?{reference:L,floating:R,trigger:L}:{},[n,L,R])}function Pi(e,t,n){let{reference:r,floating:i}=e,a=Kn(t),o=qn(t),s=Gn(o),c=Hn(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(Un(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 Fi(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}=Vn(t,e),p=ar(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=or(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=or(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 Ii=50,Li=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Fi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Pi(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<Ii&&(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}=Pi(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ri=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}=Vn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Hn(r),_=Kn(o),v=Hn(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[rr(o)]:Yn(o)),x=p!==`none`;!d&&x&&b.push(...nr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Jn(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Kn(t))||T.every(e=>Kn(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.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=T.filter(e=>{if(x){let t=Kn(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 zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bi(e){return Nn.some(t=>e[t]>=0)}var Vi=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Vn(e,t);switch(i){case`referenceHidden`:{let e=zi(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Bi(e)}}}case`escaped`:{let e=zi(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Bi(e)}}}default:return{}}}}},Hi=new Set([`left`,`top`]);async function Ui(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Hn(n),s=Un(n),c=Kn(n)===`y`,l=Hi.has(o)?-1:1,u=a&&c?-1:1,d=Vn(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 Wi=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 Ui(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}}}}},Gi=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}=Vn(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Kn(Hn(i)),p=Wn(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=Bn(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=Bn(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}}}}}},Ki=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}=Vn(e,t),u={x:n,y:r},d=Kn(i),f=Wn(d),p=u[f],m=u[d],h=Vn(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=Hi.has(Hn(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}}}},qi=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}=Vn(e,t),u=await o.detectOverflow(t,l),d=Hn(i),f=Un(i),p=Kn(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=Pn(h-u[g],v),x=Pn(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=Fn(u.left,0),t=Fn(u.right,0),n=Fn(u.top,0),r=Fn(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Fn(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Fn(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ji(e){let t=We(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=je(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=In(n)!==a||In(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Yi(e){return U(e)?e:e.contextElement}function Xi(e){let t=Yi(e);if(!je(t))return Rn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ji(t),o=(a?In(n.width):n.width)/r,s=(a?In(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Zi=Rn(0);function Qi(e){let t=Oe(e);return!He()||!t.visualViewport?Zi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $i(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Oe(e)?!1:t}function ea(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Yi(e),o=Rn(1);t&&(r?U(r)&&(o=Xi(r)):o=Xi(e));let s=$i(a,n,r)?Qi(a):Rn(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=Oe(a),t=r&&U(r)?Oe(r):r,n=e,i=Ye(n);for(;i&&r&&t!==n;){let e=Xi(i),t=i.getBoundingClientRect(),r=We(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=Oe(i),i=Ye(n)}}return or({width:u,height:d,x:c,y:l})}function ta(e,t){let n=Ge(e).scrollLeft;return t?t.left+n:ea(ke(e)).left+n}function na(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ta(e,n),y:n.top+t.scrollTop}}function ra(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ke(r),s=t?Fe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Rn(1),u=Rn(0),d=je(r);if((d||!d&&!a)&&((De(r)!==`body`||Ne(o))&&(c=Ge(r)),d)){let e=ea(r);l=Xi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?na(o,c):Rn(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 ia(e){return Array.from(e.getClientRects())}function aa(e){let t=ke(e),n=Ge(e),r=e.ownerDocument.body,i=Fn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Fn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ta(e),s=-n.scrollTop;return We(r).direction===`rtl`&&(o+=Fn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var oa=25;function sa(e,t){let n=Oe(e),r=ke(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=He();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ta(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<=oa&&(a-=o)}else l<=oa&&(a+=l);return{width:a,height:o,x:s,y:c}}function ca(e,t){let n=ea(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=je(e)?Xi(e):Rn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function la(e,t,n){let r;if(t===`viewport`)r=sa(e,n);else if(t===`document`)r=aa(ke(e));else if(U(t))r=ca(t,n);else{let n=Qi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return or(r)}function ua(e,t){let n=Ke(e);return n===t||!U(n)||Ue(n)?!1:We(n).position===`fixed`||ua(n,t)}function da(e,t){let n=t.get(e);if(n)return n;let r=Je(e,[],!1).filter(e=>U(e)&&De(e)!==`body`),i=null,a=We(e).position===`fixed`,o=a?Ke(e):e;for(;U(o)&&!Ue(o);){let t=We(o),n=Be(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ne(o)&&!n&&ua(e,o))?r=r.filter(e=>e!==o):i=t,o=Ke(o)}return t.set(e,r),r}function fa(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fe(t)?[]:da(t,this._c):[].concat(n),r],o=la(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=la(t,a[e],i);s=Fn(n.top,s),c=Pn(n.right,c),l=Pn(n.bottom,l),u=Fn(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function pa(e){let{width:t,height:n}=Ji(e);return{width:t,height:n}}function ma(e,t,n){let r=je(t),i=ke(t),a=n===`fixed`,o=ea(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Rn(0);function l(){c.x=ta(i)}if(r||!r&&!a)if((De(t)!==`body`||Ne(i))&&(s=Ge(t)),r){let e=ea(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?na(i,s):Rn(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 ha(e){return We(e).position===`static`}function ga(e,t){if(!je(e)||We(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ke(e)===n&&(n=n.ownerDocument.body),n}function _a(e,t){let n=Oe(e);if(Fe(e))return n;if(!je(e)){let t=Ke(e);for(;t&&!Ue(t);){if(U(t)&&!ha(t))return t;t=Ke(t)}return n}let r=ga(e,t);for(;r&&Pe(r)&&ha(r);)r=ga(r,t);return r&&Ue(r)&&ha(r)&&!Be(r)?n:r||Ve(e)||n}var va=async function(e){let t=this.getOffsetParent||_a,n=this.getDimensions,r=await n(e.floating);return{reference:ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ya(e){return We(e).direction===`rtl`}var ba={convertOffsetParentRelativeRectToViewportRelativeRect:ra,getDocumentElement:ke,getClippingRect:fa,getOffsetParent:_a,getElementRects:va,getClientRects:ia,getDimensions:pa,getScale:Xi,isElement:U,isRTL:ya};function xa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sa(e,t){let n=null,r,i=ke(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=Ln(d),h=Ln(i.clientWidth-(u+f)),g=Ln(i.clientHeight-(d+p)),_=Ln(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Fn(0,Pn(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&&!xa(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 Ca(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=Yi(e),u=i||a?[...l?Je(l):[],...t?Je(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Sa(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?ea(e):null;c&&g();function g(){let t=ea(e);h&&!xa(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 wa=Wi,Ta=Gi,Ea=Ri,Da=qi,Oa=Vi,ka=Ki,Aa=(e,t,n)=>{let r=new Map,i={platform:ba,...n},a={...i.platform,_c:r};return Li(e,t,{...i,platform:a})},ja=typeof document<`u`?u.useLayoutEffect:function(){};function Ma(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(!Ma(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)&&!Ma(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Na(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pa(e,t){let n=Na(e);return Math.round(t*n)/n}function Fa(e){let t=u.useRef(e);return ja(()=>{t.current=e}),t}function Ia(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,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=u.useState(r);Ma(p,r)||m(r);let[h,g]=u.useState(null),[_,v]=u.useState(null),y=u.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=u.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=u.useRef(null),w=u.useRef(null),T=u.useRef(d),E=c!=null,D=Fa(c),O=Fa(i),k=Fa(l),A=u.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),Aa(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Ma(T.current,t)&&(T.current=t,tt.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);ja(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let j=u.useRef(!1);ja(()=>(j.current=!0,()=>{j.current=!1}),[]),ja(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=u.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=u.useMemo(()=>({reference:x,floating:S}),[x,S]),P=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Pa(N.floating,d.x),r=Pa(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Na(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var La=(e,t)=>{let n=wa(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ra=(e,t)=>{let n=Ta(e);return{name:n.name,fn:n.fn,options:[e,t]}},za=(e,t)=>({fn:ka(e).fn,options:[e,t]}),Ba=(e,t)=>{let n=Ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},Va=(e,t)=>{let n=Da(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ha=(e,t)=>{let n=Oa(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Ua(e){let t=u.useRef(!0);t.current&&(t.current=!1,e())}var J=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(f(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},Wa=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Ga=t(((e,t)=>{t.exports=Wa()})),Ka=t((e=>{var t=r(),n=Ga();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),qa=t(((e,t)=>{t.exports=Ka()})),Ja=Ga(),Ya=qa(),Xa=[],Za=void 0;function Qa(){return Za}function $a(e){Xa.push(e)}function eo(e){let t=(t,n)=>{let r=_(no).current,i;try{Za=r;for(let e of Xa)e.before(r);i=e(t,n);for(let e of Xa)e.after(r);r.didInitialize=!0}finally{Za=void 0}return i};return t.displayName=e.displayName||e.name,t}function to(e){return u.forwardRef(eo(e))}function no(){return{didInitialize:!1}}var ro=T(19)?ao:oo;function Y(e,t,n,r,i){return ro(e,t,n,r,i)}function io(e,t,n,r,i){let a=u.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ja.useSyncExternalStore)(e.subscribe,a,a)}$a({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,Ja.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ao(e,t,n,r,i){let a=Qa();if(!a)return io(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 oo(e,t,n,r,i){return(0,Ya.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var so=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 Y(this,e,t,n,r)}},co=class extends so{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){u.useDebugValue(e);let n=this;G(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;G(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;G(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){u.useDebugValue(e);let n=this,r=t!==void 0;G(()=>{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 u.useDebugValue(e),Y(this,this.selectors[e],t,n,r)}useContextCallback(e,t){u.useDebugValue(e);let n=W(t??O);this.context[e]=n}useStateSetter(e){let t=u.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)}})}},lo={open:J(e=>e.open),transitionStatus:J(e=>e.transitionStatus),domReferenceElement:J(e=>e.domReferenceElement),referenceElement:J(e=>e.positionReference??e.referenceElement),floatingElement:J(e=>e.floatingElement),floatingId:J(e=>e.floatingId)},uo=class extends co{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:di(),nested:n,triggerElements:i},lo),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Qt(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 fo(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`),d=t.context.triggerElements,f=o,p=u.useRef(null);r===void 0&&p.current===null&&(p.current=new uo({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:d,onOpenChange:f,floatingId:i,syncOnly:!0,nested:a}));let m=r??p.current;return t.useSyncedValue(`floatingId`,i),G(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};U(c)&&(e.domReferenceElement=c),m.state.positionReference===m.state.referenceElement&&(e.positionReference=c),m.update(e)},[s,i,c,l,m]),m.context.onOpenChange=f,m.context.nested=a,m}function po(e,t=!1,n=!1){let[r,i]=u.useState(e&&t?`idle`:void 0),[a,o]=u.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),G(()=>{if(!e&&a&&r!==`ending`&&n){let e=Dn.request(()=>{i(`ending`)});return()=>{Dn.cancel(e)}}},[e,a,r,n]),G(()=>{if(!e||t)return;let n=Dn.request(()=>{i(void 0)});return()=>{Dn.cancel(n)}},[t,e]),G(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Dn.request(()=>{i(`idle`)});return()=>{Dn.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function mo(e,t=!1,n=!0){let r=On();return W((i,a=null)=>{r.cancel();let o=bi(e);if(o==null)return;let s=o,c=()=>{tt.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=pe.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 ho(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=W(i),o=mo(r,n,!1);u.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var go={tabIndex:-1,[$t]:``};function _o(e){return t=>t!==`touch`||e.current}function vo(e,t,n=!1){let r=Et(),i=hi()!=null,a=u.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return fo({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function yo(e,t){let n=u.useRef(null),r=u.useRef(null);return u.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 bo(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 xo(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function So(e,t,n,r){Ua(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Co(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=yo(e,n),o=W(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 G(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function wo(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);G(()=>{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=xt(ct);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function To(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=po(e),o=t.useState(`preventUnmountingOnClose`),s=!e&&o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=W(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ho({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Eo(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:A,inactiveTriggerProps:A,popupProps:A})},[e])}function Do(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Oo=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 ko(){return new uo({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Oo,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Ao(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ko(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:A,inactiveTriggerProps:A,popupProps:A}}function jo(e,t,n=!1){return new uo({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Mo=J(e=>e.triggerIdProp??e.activeTriggerId),No=J(e=>e.openProp??e.open),Po=J(e=>(e.popupElement?.id??e.floatingId)||void 0);function Fo(e,t){return t!==void 0&&No(e)&&Mo(e)===t}function Io(e,t){return Fo(e,t)?!0:t!==void 0&&No(e)&&Mo(e)==null&&e.triggerCount===1}var Lo={open:No,mounted:J(e=>e.mounted),transitionStatus:J(e=>e.transitionStatus),floatingRootContext:J(e=>e.floatingRootContext),triggerCount:J(e=>e.triggerCount),preventUnmountingOnClose:J(e=>e.preventUnmountingOnClose),payload:J(e=>e.payload),activeTriggerId:Mo,activeTriggerElement:J(e=>e.mounted?e.activeTriggerElement:null),popupId:Po,isTriggerActive:J((e,t)=>t!==void 0&&Mo(e)===t),isOpenedByTrigger:J((e,t)=>Fo(e,t)),isMountedByTrigger:J((e,t)=>t!==void 0&&Mo(e)===t&&e.mounted),triggerProps:J((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:J((e,t)=>Io(e,t)?Po(e):void 0),popupProps:J(e=>e.popupProps),popupElement:J(e=>e.popupElement),positionerElement:J(e=>e.positionerElement)};function Ro(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Et(),a=hi()!=null,o=_(()=>new uo({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Oo,floatingId:i,syncOnly:!1,nested:a})).current;return G(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=U(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 zo(e={}){let{nodeId:t,externalTree:n}=e,r=Ro(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`),[d,f]=u.useState(null),[p,m]=u.useState(void 0),[h,g]=u.useState(void 0),_=u.useRef(null),v=gi(n),y=u.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),b=Ia({...e,elements:{...y,...d&&{reference:d}}}),x=U(p)?p:null,S=h===void 0?i.state.floatingElement:h;i.useSyncedValue(`referenceElement`,p??null),i.useSyncedValue(`domReferenceElement`,p===void 0?s:x),i.useSyncedValue(`floatingElement`,S);let C=u.useCallback(e=>{let t=U(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),b.refs.setReference(t)},[b.refs]),w=u.useCallback(e=>{(U(e)||e===null)&&(_.current=e,m(e)),(U(b.refs.reference.current)||b.refs.reference.current===null||e!==null&&!U(e))&&b.refs.setReference(e)},[b.refs,m]),T=u.useCallback(e=>{g(e),b.refs.setFloating(e)},[b.refs]),E=u.useMemo(()=>({...b.refs,setReference:w,setFloating:T,setPositionReference:C,domReference:_}),[b.refs,w,T,C]),D=u.useMemo(()=>({...b.elements,domReference:s}),[b.elements,s]),O=u.useMemo(()=>({...b,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[b,E,D,t,i,c,l]);return G(()=>{s&&(_.current=s)},[s]),G(()=>{i.context.dataRef.current.floatingContext=O;let e=v?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),u.useMemo(()=>({...b,context:O,refs:E,elements:D,rootStore:i}),[b,E,D,O,i])}var Bo=Ht&&Wt;function Vo(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=u.useRef(!1),c=u.useRef(null),l=u.useRef(!0),d=Mt();u.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Oe(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&je(e)&&e===on(kn(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Sn(xn(t,`blur`,r),Bo&&xn(t,`keydown`,a,!0),Bo&&xn(t,`pointerdown`,o,!0))},[i,n]),u.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);U(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let f=u.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=sn(t.nativeEvent);if(U(a)){if(Bo&&!t.relatedTarget){if(!l.current&&!dn(a))return}else if(!mn(a))return}let o=cn(t.relatedTarget,i.context.triggerElements),{nativeEvent:u,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,xt(dt,u,f));return}d.start(p,()=>{s.current||i.setOpen(!0,xt(dt,u,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=U(n)&&n.hasAttribute(Vr(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=i.select(`domReferenceElement`),t=on(kn(e));!n&&t===e||q(o.current.floatingContext?.refs.floating.current,t)||q(e,t)||a||cn(n??t,i.context.triggerElements)||i.setOpen(!1,xt(dt,r))})}}},[o,r,i,d]);return u.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}var Ho=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 jt,this.restTimeout=new jt,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Uo=new WeakMap;function Wo(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Uo.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Uo.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Go(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Uo.get(n);a&&a!==e&&Wo(a),Wo(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Uo.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Ko(e){let t=e.context.dataRef.current,n=_(()=>t.hoverInteractionState??Ho.create()).current;return t.hoverInteractionState||=n,kt(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function qo(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,d=gi(),f=hi(),p=Ko(a),m=Mt(),h=W(()=>yn(l.current.openEvent?.type,p.interactedInside)),g=W(()=>bn(l.current.openEvent?.type)),_=W(()=>{Wo(p)});G(()=>{o||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,_())},[o,p,_]),u.useEffect(()=>_,[_]),G(()=>{if(n&&o&&p.handleCloseOptions?.blockPointerEvents&&g()&&U(c)&&s){let e=c,t=s,n=kn(s),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=p.pointerEventsScopeElement===t?null:p.pointerEventsScopeElement,a=r===t?null:r,o=p.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Go(p,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,o,c,s,p,g,d,f,_]),u.useEffect(()=>{if(!n)return;function e(){return!!(d&&f&&zr(d.nodesRef.current,f).length>0)}function t(e){let t=_n(r,`close`,p.pointerType),n=()=>{a.setOpen(!1,xt(ut,e)),d?.events.emit(`floating.closed`,e)};t?p.openChangeTimeout.start(t,n):(p.openChangeTimeout.clear(),n())}function o(e){let t=sn(e);if(!fn(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){p.openChangeTimeout.clear(),m.clear(),d?.events.off(`floating.closed`,v),_()}function u(n){if(e()&&d){d.events.on(`floating.closed`,v);return}if(cn(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(d&&r&&U(o)&&zr(d.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o)))){if(p.handler){p.handler(n);return}_(),g()&&!h()&&t(n)}}function v(t){!d||!f||e()||m.start(0,()=>{d.events.off(`floating.closed`,v),a.setOpen(!1,xt(ut,t)),d.events.emit(`floating.closed`,t)})}let y=s;return Sn(y&&xn(y,`mouseenter`,c),y&&xn(y,`mouseleave`,u),y&&xn(y,`pointerdown`,o,!0),()=>{d?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,g,h,_,p,d,f,m])}var Jo={current:null};function Yo(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Jo,externalTree:l,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=gi(l),y=Ko(h),b=u.useRef(!1),x=Cn(i),S=Cn(r),C=Cn(o),w=Cn(n),T=Cn(m),E=Cn(p),D=W(()=>yn(g.current.openEvent?.type,y.interactedInside)),O=W(()=>T.current?.()!==!1),k=W((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!q(e,t);if(!U(n))return!1;let i=n;return r.hasMatchingElement(e=>q(e,i))&&(!e||!q(e,i))}),A=W(()=>{y.handler&&=(kn(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=W(()=>{Wo(y)});return d&&(y.handleCloseOptions=x.current?.__options),u.useEffect(()=>A,[A]),u.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===ut,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,A]),u.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=_n(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,xt(ut,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,xt(ut,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(d?h.select(`domReferenceElement`):null);if(!U(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!Zt(y.pointerType))return;let t=vn(C.current),n=_n(S.current,`open`,y.pointerType),r=sn(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(U(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(q(e,r)){s=e;break}}U(i)&&U(o)&&!h.context.triggerElements.hasElement(i)&&q(i,o)&&(s=o);let c=s!=null&&k(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&U(s)&&U(o)&&q(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){O()&&h.setOpen(!0,xt(ut,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&h.setOpen(!0,xt(ut,e,s))}):g&&O()&&h.setOpen(!0,xt(ut,e,s)))}function i(t){if(D()){j();return}A();let n=kn(h.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let r=g.current.floatingContext??f?.();if(!cn(t.relatedTarget,h.context.triggerElements)){if(x.current&&r){h.select(`open`)||y.openChangeTimeout.clear();let i=c.current;y.handler=x.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){j(),A(),w.current&&!D()&&i===h.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!q(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Sn(xn(t,`mousemove`,r,{once:!0}),xn(t,`mouseenter`,r),xn(t,`mouseleave`,i)):Sn(xn(t,`mouseenter`,r),xn(t,`mouseleave`,i))},[A,j,g,S,h,n,x,y,d,k,D,a,s,C,c,v,w,f,E,O]),u.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=k(r,n,e.target);if(a&&!Zt(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Go(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=vn(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&h.setOpen(!0,xt(ut,t,n))}y.pointerType===`touch`?tt.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,h,C,O])}var Xo=`Escape`;function Zo(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Qo(e,t){return Zo(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function $o(e,t,n){return Zo(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function es(e,t,n){return Zo(t,n?e===tn:e===nn,e===an)}function ts(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Xo:Zo(t,n?e===nn:e===tn,e===rn)}function ns(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p=`auto`,focusItemOnHover:m=!0,openOnArrowKeyDown:h=!0,disabledIndices:g=void 0,orientation:_=`vertical`,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,grid:S}=t,C=S!=null,w=`rootStore`in e?e.rootStore:e,T=w.useState(`open`),E=w.useState(`floatingElement`),D=w.useState(`domReferenceElement`),O=w.context.dataRef,k=hn(E),A=pn(D),j=Cn(k),M=hi(),N=gi(x),P=u.useRef(p),F=u.useRef(o??-1),I=u.useRef(null),L=u.useRef(!0),R=W(e=>{i(F.current===-1?null:F.current,e)}),ee=u.useRef(!!E),te=u.useRef(T),z=u.useRef(!1),ne=u.useRef(!1),B=u.useRef(null),re=Cn(g),ie=Cn(T),V=Cn(o),ae=Cn(b),oe=On(),se=On(),ce=W(()=>{function e(e){f?N?.events.emit(`virtualfocus`,e):B.current=Ur(e,{sync:z.current,preventScroll:!0})}let t=n.current[F.current],r=ne.current;t&&e(t),(z.current?e=>e():e=>oe.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),me&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});G(()=>{O.current.orientation=_},[O,_]),G(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ne.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),G(()=>{if(a){if(!T){z.current=!1;return}if(E)if(r==null){if(z.current=!1,V.current!=null)return;if(ee.current&&(F.current=-1,ce()),(!te.current||!ee.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>se.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||$o(I.current,_,d)||l?cr(n):lr(n),I.current=null,R())};t()}}else sr(n.current,r)||(F.current=r,ce(),ne.current=!1)}},[a,T,E,r,V,l,n,_,d,R,ce,se]),G(()=>{if(!a||E||!N||f||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=on(kn(D??t??null)),r=e.some(e=>e.context&&q(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,f]),G(()=>{te.current=T,ee.current=!!E}),G(()=>{T||(I.current=null,P.current=p)},[T,p]);let le=r!=null,ue=W(e=>{if(!ie.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),de=W(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),fe=W(()=>cr(n,re.current)),pe=W(e=>{if(L.current=!1,z.current=!0,e.which===229||!ie.current&&e.currentTarget===j.current)return;if(l&&ts(e.key,_,d,C)){Qo(e.key,de())||qt(e),w.setOpen(!1,xt(_t,e.nativeEvent)),je(D)&&(f?N?.events.emit(`virtualfocus`,D):D.focus());return}let t=F.current,r=cr(n,g),i=lr(n,g);if(A||(e.key===`Home`&&(qt(e),F.current=r,R(e)),e.key===`End`&&(qt(e),F.current=i,R(e))),S!=null){let t=S(e,F.current,n,_,c,d,g,r,i);if(t!=null&&(F.current=t,R(e)),_===`both`)return}if(Qo(e.key,_)){if(qt(e),T&&!f&&on(e.currentTarget.ownerDocument)===e.currentTarget){F.current=$o(e.key,_,d)?r:i,R(e);return}$o(e.key,_,d)?c?t>=i?s&&t!==n.current.length?F.current=-1:(z.current=!1,F.current=r):F.current=ur(n.current,{startingIndex:t,disabledIndices:g}):F.current=Math.min(i,ur(n.current,{startingIndex:t,disabledIndices:g})):c?t<=r?s&&t!==-1?F.current=n.current.length:(z.current=!1,F.current=i):F.current=ur(n.current,{startingIndex:t,decrement:!0,disabledIndices:g}):F.current=Math.max(r,ur(n.current,{startingIndex:t,decrement:!0,disabledIndices:g})),sr(n.current,F.current)&&(F.current=-1),R(e)}}),me=u.useMemo(()=>({onFocus(e){z.current=!0,ue(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){z.current=!0,ne.current=!1,m&&ue(e)},onPointerLeave(e){if(!ie.current||!L.current||e.pointerType===`touch`)return;z.current=!0;let t=e.relatedTarget;if(!(!m||n.current.includes(t))&&ae.current&&(B.current?.(),B.current=null,F.current=-1,R(e),!f)){let e=j.current,t=on(kn(e));e&&q(e,t)&&e.focus({preventScroll:!0})}}}),[ue,ie,j,m,n,R,ae,f]),he=u.useMemo(()=>f&&T&&le&&{"aria-activedescendant":`${y}-${r}`},[f,T,le,y,r]),H=u.useMemo(()=>({"aria-orientation":_===`both`?void 0:_,...A?{}:he,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&T&&!f){let t=sn(e.nativeEvent);if(t&&!q(j.current,t))return;qt(e),w.setOpen(!1,xt(ht,e.nativeEvent)),je(D)&&D.focus();return}pe(e)},onPointerMove(){L.current=!0}}),[he,pe,j,_,A,w,T,f,D]),ge=u.useMemo(()=>{function e(e){w.setOpen(!0,xt(_t,e.nativeEvent,e.currentTarget))}function t(e){p===`auto`&&Yt(e.nativeEvent)&&(P.current=!f)}function n(e){P.current=p,p===`auto`&&Xt(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(t){let n=w.select(`open`);L.current=!1;let r=t.key.startsWith(`Arrow`),i=es(t.key,de(),d),a=Qo(t.key,_),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(f&&n)return pe(t);if(!(!n&&!h&&r)){if(o){let e=Qo(t.key,de());I.current=l&&e?null:t.key}if(l){i&&(qt(t),n?(F.current=fe(),R(t)):e(t));return}a&&(V.current!=null&&(F.current=V.current),qt(t),!n&&h?e(t):pe(t),n&&R(t))}},onFocus(e){w.select(`open`)&&!f&&(F.current=-1,R(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[pe,p,fe,l,R,w,h,_,de,d,V,f]),_e=u.useMemo(()=>({...he,...ge}),[he,ge]);return u.useMemo(()=>a?{reference:_e,floating:H,item:me,trigger:ge}:{},[a,_e,H,ge,me])}function rs(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:d=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=Mt(),h=u.useRef(``),g=u.useRef(d??i??-1),_=u.useRef(null),v=W(e=>{function t(e){let t=r?.current[e];return!t||pr(t)}function c(e){return t(e)?o==null||!dr(k,e,o):!1}function u(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(!(!e[n]?.toLowerCase().startsWith(i)||!c(n)))return n}return-1}let f=n.current;if(h.current.length>0&&e.key===` `&&(qt(e),s?.(!0)),h.current.length>0&&h.current[0]!==` `&&u(f,h.current)===-1&&e.key!==` `&&s?.(!1),f==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(qt(e),s?.(!0));let v=h.current===``;v&&(g.current=d??i??-1),f.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,g.current=_.current),h.current+=e.key,m.start(l,()=>{h.current=``,g.current=_.current,s?.(!1)});let y=((v?d??i??-1:g.current)??0)+1,b=u(f,h.current,y);b===-1?e.key!==` `&&(h.current=``,s?.(!1)):(a?.(b),_.current=b)}),y=W(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);q(n,t)||q(r,t)||(m.clear(),h.current=``,g.current=_.current,s?.(!1))});G(()=>{!p&&d!==null||(m.clear(),_.current=null,h.current!==``&&(h.current=``))},[p,d,m]),G(()=>{p&&h.current===``&&(g.current=d??i??-1)},[p,d,i]);let b=u.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return u.useMemo(()=>c?{reference:b,floating:b}:{},[c,b])}var is=.1,as=is*is,os=.5;function ss(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function cs(e,t,n,r,i,a,o,s,c,l){let u=!1;return ss(e,t,n,r,i,a)&&(u=!u),ss(e,t,i,a,o,s)&&(u=!u),ss(e,t,o,s,c,l)&&(u=!u),ss(e,t,c,l,n,r)&&(u=!u),u}function ls(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function us(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 ds(e={}){let{blockPointerEvents:t=!1}=e,n=new jt,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*as;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=sn(r),g=r.type===`mouseleave`,_=q(u,h),v=q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&U(r.relatedTarget)&&q(u,r.relatedTarget))return;function y(){return!!(s&&zr(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,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?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 j=!1;switch(c){case`top`:j=us(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=us(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=us(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=us(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!ls(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?os/2:os*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+os+1,o=C||T?S.bottom-os:S.top,s=C?T?S.bottom-os:S.top:S.bottom-os;M=cs(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?os/2:os*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-os,o=C||T?S.top+os:S.bottom,s=C?T?S.top+os:S.bottom:S.top+os;M=cs(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?os/2:os*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+os+1,o=w||E?S.right-os:S.left,s=w?E?S.right-os:S.left:S.right-os;M=cs(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?os/2:os*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-os,o=w||E?S.left+os:S.right,s=w?E?S.left+os:S.right:S.left+os;M=cs(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var fs=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),ps=function(e){return e[e.open=ge.open]=`open`,e[e.closed=ge.closed]=`closed`,e[e.startingStyle=ge.startingStyle]=`startingStyle`,e[e.endingStyle=ge.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),ms=u.createContext(void 0);function hs(){let e=u.useContext(ms);if(e===void 0)throw Error(f(26));return e}var gs=`ArrowUp`,_s=`ArrowDown`,vs=`ArrowLeft`,ys=`ArrowRight`,bs=`Home`,xs=new Set([vs,ys]),Ss=new Set([gs,_s]),Cs=new Set([...xs,...Ss]),ws=new Set([...Cs,bs,`End`]),Ts={...Ce,...H,nestedDialogOpen(e){return e?{[ps.nestedDialogOpen]:``}:null}},Es=u.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=h(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),g=c.useState(`nested`),_=c.useState(`nestedOpenDialogCount`),v=c.useState(`open`),y=c.useState(`openMethod`),b=c.useState(`titleElementId`),x=c.useState(`transitionStatus`),S=c.useState(`role`),C=d.useState(`floatingId`),w=s.id??C;hs(),ho({open:v,ref:c.context.popupRef,onComplete(){v&&c.context.onOpenChangeComplete?.(!0)}});let T=o===void 0?_o(c.context.popupRef):o,E=_>0,D=c.useStateSetter(`popupElement`),O=se(`div`,e,{state:{open:v,nested:g,transitionStatus:x,nestedDialogOpen:E},props:[f,{id:w,"aria-labelledby":b??void 0,"aria-describedby":l??void 0,role:S,...go,hidden:!m,onKeyDown(e){ws.has(e.key)&&e.stopPropagation()},style:{[fs.nestedDialogs]:_}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:Ts});return(0,K.jsx)(ki,{context:d,openInteractionType:y,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})});function Ds(e){return T(19)?e:e?`true`:void 0}var Os=u.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,K.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),ks=u.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=h(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,K.jsx)(ms.Provider,{value:n,children:(0,K.jsxs)(ui,{ref:t,...r,children:[a&&o===!0&&(0,K.jsx)(Os,{ref:i.context.internalBackdropRef,inert:Ds(!s)}),e.children]})}):null}),As={},js={},Ms=``;function Ns(e){if(typeof document>`u`)return!1;let t=kn(e);return Oe(t).innerWidth-t.documentElement.clientWidth>0}function Ps(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=kn(e),n=t.documentElement,r=t.body,i=Ne(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Fs(e){let t=kn(e),n=t.documentElement,r=t.body,i=Ne(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Is(e){let t=kn(e),n=t.documentElement,r=t.body,i=Oe(n),a=0,o=0,s=!1,c=Dn.create();if(Wt&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,As={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Ms=n.style.scrollBehavior,js={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Ne(n)?n:r;if(s=Ps(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,As),Object.assign(r.style,js),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Ms)}function d(){u(),c.request(l)}l();let f=xn(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Ls=new class{lockCount=0;restore=null;timeoutLock=jt.create();timeoutUnlock=jt.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=kn(e).documentElement,n=Oe(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=O;return}let r=zt||!Ns(e);this.restore=r?Fs(e):Is(e)}};function Rs(e=!0,t=null){G(()=>{if(e)return Ls.acquire(t)},[e,t])}function zs(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);Do(t,r),wo(t);let{forceUnmount:i}=To(r,t),a=u.useCallback(()=>{t.setOpen(!1,xt(bt))},[t]);u.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function Bs({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=u.useState(0),[d,f]=u.useState(0),p=c===0,m=Ni(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=sn(t);return p&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||q(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:p});return Rs(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),f(0)}),u.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,d+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,d,t]),Eo(e,{activeTriggerProps:m.reference??A,inactiveTriggerProps:m.trigger??A,popupProps:m.floating??A,nestedOpenDialogCount:c,nestedOpenDrawerCount:d}),null}var Vs={...Lo,modal:J(e=>e.modal),nested:J(e=>e.nested),nestedOpenDialogCount:J(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:J(e=>e.nestedOpenDrawerCount),disablePointerDismissal:J(e=>e.disablePointerDismissal),openMethod:J(e=>e.openMethod),descriptionElementId:J(e=>e.descriptionElementId),titleElementId:J(e=>e.titleElementId),viewportElement:J(e=>e.viewportElement),role:J(e=>e.role)},Hs=class e extends co{constructor(e,t,n=!1){let r=new Oo,i=Us(e);i.floatingRootContext=jo(r,t,n),super(i,{popupRef:u.createRef(),backdropRef:u.createRef(),internalBackdropRef:u.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},Vs)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};bo(n,e,t.trigger),this.update(n)};static useStore(t,n){return vo(t,(t,r)=>new e(n,t,r),!0).store}};function Us(e={}){return{...Ao(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Ws(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:d,triggerId:f,defaultTriggerId:g=null}=e,_=t===`drawer`,v=t===`alert-dialog`,y=v?!0:c,b=v||s,x=v?`alertdialog`:`dialog`,S=h(!0),C={modal:y,disablePointerDismissal:b,nested:!!S,role:x},w=Hs.useStore(d?.store,{open:i,openProp:r,activeTriggerId:g,triggerIdProp:f,...C});Ua(()=>{let e=r===void 0&&w.state.open===!1&&i===!0?{open:!0,activeTriggerId:g}:null;v?w.update(e?{...C,...e}:C):e&&w.update(e)}),w.useControlledProp(`openProp`,r),w.useControlledProp(`triggerIdProp`,f),w.useSyncedValues(C),w.useContextCallback(`onOpenChange`,a),w.useContextCallback(`onOpenChangeComplete`,o);let T=w.useState(`open`),E=w.useState(`mounted`),D=w.useState(`payload`);zs({store:w,actionsRef:l});let O=T||E,k=u.useMemo(()=>({store:w}),[w]);return(0,K.jsx)(p.Provider,{value:!1,children:(0,K.jsxs)(m.Provider,{value:k,children:[O&&(0,K.jsx)(Bs,{store:w,parentContext:S?.store.context,isDrawer:_}),typeof n==`function`?n({payload:D}):n]})})}function Gs(e){return Ws(e,u.useContext(p)?`drawer`:`dialog`)}var Ks=u.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=h(),c=Dt(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),se(`h2`,e,{ref:t,props:[{id:c},o]})});function qs(e){let t=u.useRef(``),n=u.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:u.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Js(e,t){let n=u.useRef(e),r=W(t);G(()=>{n.current!==e&&r(n.current)},[e,r]),G(()=>{n.current=e},[e])}function Ys(e,t){let{onClick:n,onPointerDown:r}=qs(W((n,r)=>{(typeof e==`function`?e():e)||t(r||(zt?`touch`:``))}));return u.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Xs(e){let[t,n]=u.useState(null),r=Ys(e,n);return Js(e,t=>{t&&!e&&n(null)}),u.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Zs=u.createContext(void 0);function Qs(e){let t=u.useContext(Zs);if(t===void 0&&!e)throw Error(f(33));return t}var $s=u.createContext(void 0);function ec(e){let t=u.useContext($s);if(t===void 0&&!e)throw Error(f(36));return t}var tc=u.createContext(void 0);function nc(e=!0){let t=u.useContext(tc);if(t===void 0&&!e)throw Error(f(25));return t}function rc(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),d=a.useState(`open`),f=nc(!0),p=f!==void 0;return u.useMemo(()=>({id:r,role:`menuitem`,tabIndex:d&&n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:pt})},onMouseUp(e){if(f){let t=f.initialCursorPointRef.current;if(f.initialCursorPointRef.current=null,p&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||p&&!Ht&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!p||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,d,a,o,s,f,p,c])}var ic={type:`regular-item`};function ac(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,d=a.useState(`disabled`),f=n||d,p=u.useRef(null),{getButtonProps:m,buttonRef:h}=at({disabled:f,focusableWhenDisabled:!0,native:s,composite:!0}),g=rc({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:p,itemMetadata:c}),_=u.useCallback(e=>F(g,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,m),[g,m,c]),y=v(p,h);return u.useMemo(()=>({getItemProps:_,itemRef:y}),[_,y])}var oc=u.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function sc(){return u.useContext(oc)}var cc=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function lc(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:d,nextIndexRef:f}=sc(),p=u.useRef(-1),[m,h]=u.useState(a??(i===cc.GuessFromOrder?()=>{if(p.current===-1){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),g=u.useRef(null),_=u.useCallback(e=>{if(g.current=e,m!==-1&&e!==null&&(l.current[m]=e,d)){let n=t!==void 0;d.current[m]=n?t:r?.current?.textContent??e.textContent}},[m,l,d,t,r]);return G(()=>{if(a!=null)return;let e=g.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),G(()=>{if(a==null)return c(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&h(t)})},[a,c,h]),{ref:_,index:m}}var uc=u.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=lc({label:a}),f=Qs(!0),p=Dt(i),{store:m}=ec(),h=m.useState(`isActive`,d.index),g=m.useState(`itemProps`),{getItemProps:_,itemRef:v}=ac({closeOnClick:c,disabled:s,highlighted:h,id:p,store:m,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:ic});return se(`div`,e,{state:{disabled:s,highlighted:h},props:[g,u,_],ref:[v,t,d.ref]})}),dc=u.createContext(void 0);function fc(e){let t=u.useContext(dc);if(t===void 0&&!e)throw Error(f(69));return t}function pc(e){return e===`starting`?ni:A}var mc={...Ce,...H},hc=u.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s}=ec(),{side:c,align:l}=Qs(),d=fc(!0)!=null,f=s.useState(`open`),p=s.useState(`transitionStatus`),m=s.useState(`popupProps`),h=s.useState(`mounted`),g=s.useState(`instantType`),_=s.useState(`activeTriggerElement`),v=s.useState(`parent`),y=s.useState(`lastOpenChangeReason`),b=s.useState(`rootId`),x=s.useState(`floatingRootContext`),S=s.useState(`floatingTreeRoot`),C=s.useState(`closeDelay`),w=s.useState(`activeTriggerElement`),T=s.useState(`hoverEnabled`),E=s.useState(`disabled`),D=s.useState(`openMethod`),O=v.type===`context-menu`;ho({open:f,ref:s.context.popupRef,onComplete(){f&&s.context.onOpenChangeComplete?.(!0)}}),u.useEffect(()=>{function e(e){s.setOpen(!1,xt(e.reason,e.domEvent))}return S.events.on(`close`,e),()=>{S.events.off(`close`,e)}},[S.events,s]),qo(x,{enabled:T&&!E&&!O&&v.type!==`menubar`,closeDelay:C});let k=u.useCallback(e=>{s.set(`popupElement`,e)},[s]),A=se(`div`,e,{state:{transitionStatus:p,side:c,align:l,open:f,nested:v.type===`menu`,instant:g},ref:[t,s.context.popupRef,k],stateAttributesMapping:mc,props:[m,{onKeyDown(e){d&&ws.has(e.key)&&e.stopPropagation()}},pc(p),o,{"data-rootownerid":b}]}),j=v.type===void 0||O;return(_||v.type===`menubar`&&y!==`outside-press`)&&(j=!0),(0,K.jsx)(ki,{context:x,openInteractionType:D,modal:O,disabled:!h,returnFocus:a===void 0?j:a,initialFocus:v.type!==`menu`,restoreFocus:!0,externalTree:v.type===`menubar`?void 0:S,previousFocusableElement:w,nextFocusableElement:v.type===void 0?s.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?s.context.beforeContentFocusGuardRef:void 0,children:A})}),gc=u.createContext(void 0);function _c(){let e=u.useContext(gc);if(e===void 0)throw Error(f(32));return e}var vc=u.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=ec();return i.useState(`mounted`)||n?(0,K.jsx)(gc.Provider,{value:n,children:(0,K.jsx)(ui,{ref:t,...r})}):null}),yc=u.createContext(void 0);function bc(){return u.useContext(yc)?.direction??`ltr`}var xc=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`}=Vn(e,t)||{};if(l==null)return{};let f=ar(u),p={x:n,y:r},m=qn(i),h=Gn(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 T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Bn(k,j,A),N=!c.arrow&&Un(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Sc=(e,t)=>({...xc(e),options:[e,t]}),Cc=Ha().fn,wc={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 Cc(e)).data?.referenceHidden||a}}}},Tc={sideX:`left`,sideY:`top`},Ec={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Oe(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Tc};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=kn(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Hn(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`:Tc.sideX,g=f===`top`?`bottom`:Tc.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Dc(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 Oc(e,t,n){let{rects:r,placement:i}=e;return{side:Dc(t,Hn(i),n),align:Un(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function kc(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:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=u.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=W(O),A=O?k:t,j=Cn(t),M=Cn(g),N=bc()===`rtl`,P=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],F=a===`center`?P:`${P}-${a}`,I=c,L=+(r===`bottom`),R=+(r===`top`),ee=+(r===`right`),te=+(r===`left`);typeof I==`number`?I={top:I+L,right:I+te,bottom:I+R,left:I+ee}:I&&={top:(I.top||0)+L,right:(I.right||0)+te,bottom:(I.bottom||0)+R,left:(I.left||0)+ee};let z={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:I},ne=u.useRef(null),B=Cn(i),re=Cn(o),ie=typeof i==`function`?0:i,V=typeof o==`function`?0:o,ae=[];p&&ae.push(p),ae.push(La(e=>{let t=Oc(e,r,N),n=typeof B.current==`function`?B.current(t):B.current,i=typeof re.current==`function`?re.current(t):re.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[ie,V,N,r]));let oe=E===`none`&&T!==`shift`,se=!oe&&(l||v||T===`shift`),ce=T===`none`?null:Ba({...z,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!v&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),le=oe?null:Ra(e=>{let t=kn(e.elements.floating).documentElement;return{...z,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:se,limiter:l||v?void 0:za(e=>{if(!ne.current)return{};let{width:t,height:n}=ne.current.getBoundingClientRect(),r=Kn(Hn(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[z,l,v,I,E]);T===`shift`||E===`shift`||a===`center`?ae.push(le,ce):ae.push(ce,le),ae.push(Va({...z,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=Oe(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`)}}),Sc(e=>({element:ne.current||kn(e.elements.floating).createElement(`div`),padding:d,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Hn(a),l=Kn(c),u=ne.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(Oc(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`,se&&l===`y`&&b?S:x),{}}},wc,b),G(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ue=u.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:de,elements:fe,x:pe,y:me,middlewareData:he,update:H,placement:ge,context:_e,isPositioned:ve,floatingStyles:ye}=zo({rootContext:h,open:m?g:void 0,placement:F,middleware:ae,strategy:n,whileElementsMounted:m?void 0:(...e)=>Ca(...e,ue),nodeId:y,externalTree:S}),{sideX:be,sideY:xe}=he.adaptiveOrigin||Tc,Se=ve?n:`fixed`,Ce=u.useMemo(()=>{let e=b?{position:Se,[be]:pe,[xe]:me}:{position:Se,...ye};return ve||(e.opacity=0),e},[b,Se,be,pe,xe,me,ye,ve]),we=u.useRef(null);G(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(Ac(t)?t.current:t)||null;n!==we.current&&(de.setPositionReference(n),we.current=n)},[g,de,A,j]),u.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&Ac(e)&&e.current!==we.current&&(de.setPositionReference(e.current),we.current=e.current)},[g,de,A,j]),u.useEffect(()=>{if(m&&g&&fe.reference&&fe.floating)return Ca(fe.reference,fe.floating,H,ue)},[m,g,fe,H,ue]);let Te=Hn(ge),Ee=Dc(r,Te,N),De=Un(ge)||`center`,ke=!!he.hide?.referenceHidden;G(()=>{x&&g&&ve&&w(Te)},[x,g,ve,Te]);let Ae=u.useMemo(()=>({position:`absolute`,top:he.arrow?.y,left:he.arrow?.x}),[he.arrow]),U=he.arrow?.centerOffset!==0;return u.useMemo(()=>({positionerStyles:Ce,arrowStyles:Ae,arrowRef:ne,arrowUncentered:U,side:Ee,align:De,physicalSide:Te,anchorHidden:ke,refs:de,context:_e,isPositioned:ve,update:H}),[Ce,Ae,ne,U,Ee,De,Te,ke,de,_e,ve,H])}function Ac(e){return e!=null&&`current`in e}function jc(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=W(i),o=u.useRef(0),s=_(Nc).current,c=_(Mc).current,[l,d]=u.useState(0),f=u.useRef(l),p=W((e,t)=>{c.set(e,t??null),f.current+=1,d(f.current)}),m=W(e=>{c.delete(e),f.current+=1,d(f.current)}),h=u.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Pc).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);G(()=>{if(typeof MutationObserver!=`function`||h.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(f.current+=1,d(f.current))});return h.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[h]),G(()=>{f.current===l&&(n.current.length!==h.size&&(n.current.length=h.size),r&&r.current.length!==h.size&&(r.current.length=h.size),o.current=h.size),a(h)},[a,h,n,r,l]),G(()=>()=>{n.current=[]},[n]),G(()=>()=>{r&&(r.current=[])},[r]);let g=W(e=>(s.add(e),()=>{s.delete(e)}));G(()=>{s.forEach(e=>e(h))},[s,h]);let v=u.useMemo(()=>({register:p,unregister:m,subscribeMapChange:g,elementsRef:n,labelsRef:r,nextIndexRef:o}),[p,m,g,n,r,o]);return(0,K.jsx)(oc.Provider,{value:v,children:t})}function Mc(){return new Map}function Nc(){return new Set}function Pc(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Fc(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),se(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},pc(r),i],stateAttributesMapping:Ce})}var Ic=20;function Lc(e,t,n,r){let[i,a]=u.useState(!1);G(()=>{if(!e||!t||n==null){a(!1);return}let r=kn(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ic)},[e,t,n]),Rs(e&&(!t||i),r)}var Rc=u.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=ri,style:_,...v}=e,{store:y}=ec(),b=_c(),x=nc(!0),S=y.useState(`parent`),C=y.useState(`floatingRootContext`),w=y.useState(`floatingTreeRoot`),T=y.useState(`mounted`),E=y.useState(`open`),D=y.useState(`modal`),O=y.useState(`openMethod`),k=y.useState(`activeTriggerElement`),A=y.useState(`transitionStatus`),j=y.useState(`positionerElement`),M=y.useState(`instantType`),N=y.useState(`hasViewport`),P=y.useState(`lastOpenChangeReason`),F=y.useState(`floatingNodeId`),I=y.useState(`floatingParentNodeId`),L=C.useState(`domReferenceElement`),R=u.useRef(null),ee=mo(j,!1,!1),te=n,z=c,ne=l,B=s,re=g;S.type===`context-menu`&&(te=n??S.context?.anchor,B??=`start`,!o&&B!==`center`&&(ne=e.alignOffset??2,z=e.sideOffset??-5));let ie=o,V=B;S.type===`menu`?(ie??=`inline-end`,V??=`start`,re=e.collisionAvoidance??ii):S.type===`menubar`&&(ie??=S.context.orientation===`vertical`?`inline-end`:`bottom`,V??=`start`);let ae=S.type===`context-menu`,oe=kc({anchor:te,floatingRootContext:C,positionMethod:x?`fixed`:r,mounted:T,side:ie,sideOffset:z,align:V,alignOffset:ne,arrowPadding:ae?0:p,collisionBoundary:d,collisionPadding:f,sticky:m,nodeId:F,keepMounted:b,disableAnchorTracking:h,collisionAvoidance:re,shiftCrossAxis:ae&&!(`side`in re&&re.side===`flip`),externalTree:w,adaptiveOrigin:N?Ec:void 0});u.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===F&&y.set(`hoverEnabled`,!1),e.nodeId!==F&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,xt(yt)))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[y,w.events,F]),u.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,xt(t))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[w.events,y]);let se=Mt();u.useEffect(()=>{E||se.clear()},[E,se]),u.useEffect(()=>{function e(e){if(!(!E||e.nodeId!==y.select(`floatingParentNodeId`)))if(e.target&&k&&k!==e.target){let e=y.select(`closeDelay`);e>0?se.isStarted()||se.start(e,()=>{y.setOpen(!1,xt(yt))}):y.setOpen(!1,xt(yt))}else se.clear()}return w.events.on(`itemhover`,e),()=>{w.events.off(`itemhover`,e)}},[w.events,E,k,y,se]),u.useEffect(()=>{let e={open:E,nodeId:F,parentNodeId:I,reason:y.select(`lastOpenChangeReason`)};w.events.emit(`menuopenchange`,e)},[w.events,E,y,F,I]),G(()=>{let e=L,t=R.current;if(e&&(R.current=e),t&&e&&e!==t){y.set(`instantType`,void 0);let e=new AbortController;return ee(()=>{y.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[L,ee,y]);let ce={open:E,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,nested:S.type===`menu`,instant:M},le=S.type===`menubar`&&S.context.modal;Lc(E&&(le||D&&P!==`trigger-hover`),O===`touch`,j,k);let ue=Fc(e,ce,{styles:oe.positionerStyles,transitionStatus:A,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!T,inert:!E}),de=T&&S.type!==`menu`&&(S.type!==`menubar`&&D&&P!==`trigger-hover`||S.type===`menubar`&&S.context.modal),fe=null;return S.type===`menubar`?fe=S.context.contentElement:S.type===void 0&&(fe=k),(0,K.jsxs)(Zs.Provider,{value:oe,children:[de&&(0,K.jsx)(Os,{ref:S.type===`context-menu`||S.type===`nested-context-menu`?S.context.internalBackdropRef:null,inert:Ds(!E),cutout:fe}),(0,K.jsx)(vi,{id:F,children:(0,K.jsx)(jc,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:ue})})]})}),zc=u.createContext(null);function Bc(e){let t=u.useContext(zc);if(t===null&&!e)throw Error(f(5));return t}var Vc={...Lo,disabled:J(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:J(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:J(e=>e.openMethod),allowMouseEnter:J(e=>e.allowMouseEnter),highlightItemOnHover:J(e=>e.highlightItemOnHover),stickIfOpen:J(e=>e.stickIfOpen),parent:J(e=>e.parent),rootId:J(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:J(e=>e.activeIndex),isActive:J((e,t)=>e.activeIndex===t),hoverEnabled:J(e=>e.hoverEnabled),instantType:J(e=>e.instantType),lastOpenChangeReason:J(e=>e.openChangeReason),floatingTreeRoot:J(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:J(e=>e.floatingNodeId),floatingParentNodeId:J(e=>e.floatingParentNodeId),itemProps:J(e=>e.itemProps),closeDelay:J(e=>e.closeDelay),hasViewport:J(e=>e.hasViewport),keyboardEventRelay:J(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},Hc=class e extends co{constructor(e){super({...Uc(),...e},{positionerRef:u.createRef(),popupRef:u.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:u.createRef(),beforeContentFocusGuardRef:u.createRef(),onOpenChangeComplete:void 0,triggerElements:new Oo},Vc),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=_(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function Uc(){return{...Ao(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new fi,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:A,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var Wc=u.createContext(void 0);function Gc(){return u.useContext(Wc)}var Kc=eo(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0}=e,_=nc(!0),v=ec(!0),y=Bc(!0),b=Gc(),x=u.useMemo(()=>b&&v?{type:`menu`,store:v.store}:y?{type:`menubar`,context:y}:_&&!v?{type:`context-menu`,context:_}:{type:void 0},[_,v,y,b]),S=Hc.useStore(p?.store,{open:a,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:x});So(S,n,a,h),S.useControlledProp(`openProp`,n),S.useControlledProp(`triggerIdProp`,m),S.useContextCallback(`onOpenChangeComplete`,i);let C=Et(),w=Et(),T=S.useState(`floatingTreeRoot`),E=_i(T),D=hi(),O=S.useState(`open`),j=S.useState(`activeTriggerElement`),M=S.useState(`positionerElement`),N=S.useState(`hoverEnabled`),P=S.useState(`disabled`),I=S.useState(`lastOpenChangeReason`),L=S.useState(`parent`),R=S.useState(`activeIndex`),ee=S.useState(`payload`),te=S.useState(`floatingParentNodeId`),z=u.useRef(null),ne=u.useRef(L.type!==`context-menu`),B=Mt(),re=u.useRef(!0),ie=Mt(),V=te!=null,{openMethod:ae,triggerProps:oe}=Xs(O);S.useSyncedValues({disabled:o,highlightItemOnHover:g,modal:L.type===void 0?s:void 0,openMethod:ae,rootId:C}),wo(S);let{forceUnmount:se}=To(O,S,()=>{S.update({allowMouseEnter:!1,stickIfOpen:!0})});G(()=>{_&&!v?S.update({parent:{type:`context-menu`,context:_},floatingNodeId:E,floatingParentNodeId:D}):v&&S.update({floatingNodeId:E,floatingParentNodeId:D})},[_,v,E,D,S]),u.useEffect(()=>{if(O||(z.current=null),L.type===`context-menu`){if(!O){B.clear(),ne.current=!1;return}B.start(500,()=>{ne.current=!0})}},[B,O,L.type]),G(()=>{!O&&!N&&S.set(`hoverEnabled`,!0)},[O,N,S]);let ce=W((e,t)=>{let n=t.reason;if(O===e&&t.trigger===j&&I===n)return;let i=xo(t);if(!e&&t.trigger==null&&(t.trigger=j??void 0),r?.(e,t),t.isCanceled)return;S.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!re.current)return;e&&n===`trigger-focus`?(re.current=!1,ie.start(300,()=>{re.current=!0})):(re.current=!0,ie.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0&&a?.isTrusted,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};z.current=t.event??null,bo(c,e,t.trigger,i()),S.update(c),L.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?S.set(`instantType`,`group`):o||s?S.set(`instantType`,o?`click`:`dismiss`):S.set(`instantType`,void 0)}),le=fo({popupStore:S,floatingId:w,nested:D!=null,onOpenChange:ce}),ue=le.context.events;u.useEffect(()=>{let e=({open:e,eventDetails:t})=>ce(e,t);return ue.on(`setOpen`,e),()=>{ue?.off(`setOpen`,e)}},[ue,ce]);let de=u.useCallback(()=>{S.setOpen(!1,xt(bt))},[S]);u.useImperativeHandle(d,()=>({unmount:se,close:de}),[se,de]);let fe;L.type===`context-menu`&&(fe=L.context),u.useImperativeHandle(fe?.positionerRef,()=>M,[M]),u.useImperativeHandle(fe?.actionsRef,()=>({setOpen:ce}),[ce]);let pe=Ni(le,{enabled:!P,bubbles:{escapeKey:f&&L.type===`menu`},outsidePress(){return L.type!==`context-menu`||z.current?.type===`contextmenu`||ne.current},externalTree:V?T:void 0}),me=bc(),he=u.useCallback(e=>{S.select(`activeIndex`)!==e&&S.set(`activeIndex`,e)},[S]),H=ns(le,{enabled:!P,listRef:S.context.itemDomElements,activeIndex:R,nested:L.type!==void 0,loopFocus:c,orientation:l,parentOrientation:L.type===`menubar`?L.context.orientation:void 0,rtl:me===`rtl`,disabledIndices:k,onNavigate:he,openOnArrowKeyDown:L.type!==`context-menu`,externalTree:V?T:void 0,focusItemOnHover:g}),ge=u.useCallback(e=>{S.context.typingRef.current=e},[S]),_e=rs(le,{enabled:!P,listRef:S.context.itemLabels,elementsRef:S.context.itemDomElements,activeIndex:R,resetMs:500,onMatch:e=>{O&&e!==R&&S.set(`activeIndex`,e)},onTyping:ge});Eo(S,{floatingRootContext:le,activeTriggerProps:u.useMemo(()=>{let e=F(_e.reference,H.reference,pe.reference,{onMouseMove(){S.set(`allowMouseEnter`,!0)}},oe);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=O,e},[S,_e.reference,H.reference,pe.reference,oe,O]),inactiveTriggerProps:u.useMemo(()=>{let e=F(H.trigger,pe.trigger,oe);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[H.trigger,pe.trigger,oe]),popupProps:u.useMemo(()=>F(go,{id:w,role:`menu`,"aria-labelledby":j?.id,onMouseMove(){S.set(`allowMouseEnter`,!0),L.type===`menu`&&S.set(`hoverEnabled`,!1)},onClick(){S.select(`hoverEnabled`)&&S.set(`hoverEnabled`,!1)},onKeyDown(e){let t=S.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},_e.floating,H.floating,pe.floating),[j,w,L.type,S,_e.floating,H.floating,pe.floating]),itemProps:H.item??A});let ve=u.useMemo(()=>({store:S,parent:x}),[S,x]),ye=(0,K.jsx)($s.Provider,{value:ve,children:typeof t==`function`?t({payload:ee}):t});return L.type===void 0||L.type===`context-menu`?(0,K.jsx)(yi,{externalTree:T,children:ye}):ye});function qc(e){let t=e.getBoundingClientRect(),n=Oe(e);if(Kt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Jc(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=rt(),{ref:i,index:a}=lc(e),o=n===a,s=u.useRef(null),c=v(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Yc(e){let{render:t,className:n,style:r,state:i=A,props:a=k,refs:o=k,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Jc({metadata:s});return se(l,e,{state:i,ref:[...o,f],props:[d,...a,u],stateAttributesMapping:c})}function Xc(e){if(je(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Ue(e))return Xc(Ke(e))}function Zc(e,t){let n=u.useRef(null);function r(t){tt.flushSync(()=>{e.setOpen(!1,xt(ht,t.nativeEvent,t.currentTarget))}),Fr(n.current)?.focus()}function i(n){let r=e.select(`positionerElement`);if(r&&Ir(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{tt.flushSync(()=>{e.setOpen(!1,xt(ht,n.nativeEvent,n.currentTarget))});let i=Pr(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&q(r,i);){let e=i;if(i=jr(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Qc(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=u.useRef(!1);return u.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,kn(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:A,[t,n,r])}var $c=2,el=to(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:d=0,handle:p,payload:m,...h}=e,g=ec(!0),_=p?.store??g?.store;if(!_)throw Error(f(85));let v=Dt(s),y=_.useState(`isTriggerActive`,v),b=_.useState(`floatingRootContext`),x=_.useState(`isOpenedByTrigger`,v),S=_.useState(`triggerPopupId`,v),C=u.useRef(null),w=nl(),T=rt(!0),E=gi(),D=u.useMemo(()=>E??new fi,[E]),{registerTrigger:O,isMountedByThisTrigger:k}=Co(v,C,_,{payload:m,closeDelay:d,parent:w,floatingTreeRoot:D,floatingNodeId:_i(D),floatingParentNodeId:hi(),keyboardEventRelay:T?.relayKeyboardEvent}),j=w.type===`menubar`,M=_.useState(`disabled`),N=a||M||j&&w.context.disabled,{getButtonProps:P,buttonRef:I}=at({disabled:N,native:o});u.useEffect(()=>{!x&&w.type===void 0&&(_.context.allowMouseUpTriggerRef.current=!1)},[_,x,w.type]);let L=u.useRef(null),R=Mt(),ee=W(e=>{if(!L.current)return;R.clear(),_.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(q(L.current,t)||q(_.select(`positionerElement`),t)||t===L.current||t!=null&&Xc(t)===_.select(`rootId`))return;let n=qc(L.current);e.clientX>=n.left-$c&&e.clientX<=n.right+$c&&e.clientY>=n.top-$c&&e.clientY<=n.bottom+$c||D.events.emit(`close`,{domEvent:e,reason:vt})});u.useEffect(()=>{x&&_.select(`lastOpenChangeReason`)===`trigger-hover`&&kn(L.current).addEventListener(`mouseup`,ee,{once:!0})},[x,ee,_]);let te=j&&w.context.hasSubmenuOpen,z=Yo(b,{enabled:(c??te)&&!N&&w.type!==`context-menu`&&(!j||te&&!k),handleClose:ds({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:w.type===void 0?l:void 0,delay:{close:d},triggerElementRef:C,externalTree:D,isActiveTrigger:y,isClosing:()=>_.select(`transitionStatus`)===`ending`}),ne=tl(x,_.select(`lastOpenChangeReason`)),B=Ai(b,{enabled:!N&&w.type!==`context-menu`,event:x&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:w.type===void 0&&ne}),re=Vo(b,{enabled:!N&&te}),ie=Qc({open:x,enabled:j,mouseDownAction:`open`}),V=u.useMemo(()=>F(re.reference,B.reference),[re.reference,B.reference]),ae=_.useState(`triggerProps`,k),{preFocusGuardRef:oe,handlePreFocusGuardFocus:ce,handleFocusTargetFocus:le}=Zc(_,C),ue={disabled:N,open:x},de=[L,t,I,O,C],fe=[V,z??A,ae,{"aria-haspopup":`menu`,"aria-controls":S,id:v,onMouseDown:e=>{_.select(`open`)||(R.start(200,()=>{_.context.allowMouseUpTriggerRef.current=!0}),kn(e.currentTarget).addEventListener(`mouseup`,ee,{once:!0}))}},j?{role:`menuitem`}:{},ie,h,P],pe=se(`button`,e,{enabled:!j,stateAttributesMapping:Se,state:ue,ref:de,props:fe});return j?(0,K.jsx)(Yc,{tag:`button`,render:n,className:r,style:i,state:ue,refs:de,props:fe,stateAttributesMapping:Se}):x?(0,K.jsxs)(u.Fragment,{children:[(0,K.jsx)(Mn,{ref:oe,onFocus:ce},`${v}-pre-focus-guard`),(0,K.jsx)(u.Fragment,{children:pe},v),(0,K.jsx)(Mn,{ref:_.context.triggerFocusTargetRef,onFocus:le},`${v}-post-focus-guard`)]}):(0,K.jsx)(u.Fragment,{children:pe},v)});function tl(e,t){let n=Mt(),[r,i]=u.useState(!1);return G(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function nl(){let e=nc(!0),t=ec(!0),n=Bc(!0);return u.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}var rl=`file-tree-container`,il=`data-file-tree-style`,al=`data-file-tree-unsafe-css`,ol=`data-file-tree-scrollbar-measure`,sl=`data-file-tree-scrollbar-gutter-measured`,cl=`--trees-scrollbar-gutter-measured`,ll=`header`,ul=`context-menu`,dl=`context-menu-trigger`,fl=typeof window>`u`?u.useEffect:u.useLayoutEffect;function pl(e,t,n){let r=e==null?null:(0,K.jsx)(`div`,{slot:ll,children:e}),i=t!=null&&n!=null?(0,K.jsx)(`div`,{slot:ul,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,K.jsxs)(K.Fragment,{children:[r,i]})}function ml(e,t){return typeof window>`u`&&t!=null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,K.jsx)(K.Fragment,{children:e})}function hl(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement||e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function gl(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function _l({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...a}){let[o,s]=(0,u.useState)(null),[c,l]=(0,u.useState)(null),d=(0,u.useRef)(n.getComposition()),f=(0,u.useRef)(n);f.current!==n&&(f.current=n,d.current=n.getComposition());let p=i!=null,m=(0,u.useCallback)(()=>{s(null)},[]),h=(0,u.useCallback)((e,t)=>{s({context:t,item:e})},[]),g=d.current,_=(0,u.useMemo)(()=>gl(g,e,p,m,h),[g,m,h,p,e]),v=(0,u.useCallback)(e=>{l(e)},[]);(0,u.useEffect)(()=>{p||s(null)},[p]),fl(()=>{n.setComposition(_)},[_,n]),fl(()=>{if(c!=null)return r!=null&&hl(c)?n.hydrate({fileTreeContainer:c}):n.render({fileTreeContainer:c}),()=>{n.unmount(),n.setComposition(g)}},[g,c,n,r]);let y=ml(pl(e,i,o),r),b=t??r?.id,x={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...a.style};return(0,K.jsx)(rl,{...a,id:b,ref:v,style:x,suppressHydrationWarning:r!=null,children:y})}var vl=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
10
|
-
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
11
|
-
<path d="M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06" fill="currentcolor"/>
|
|
12
|
-
</symbol>
|
|
13
|
-
<symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
|
|
14
|
-
<circle cx="3" cy="3" r="3" />
|
|
15
|
-
</symbol>
|
|
16
|
-
<symbol id="file-tree-icon-file" viewBox="0 0 16 16">
|
|
17
|
-
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".5"/>
|
|
18
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
19
|
-
</symbol>
|
|
20
|
-
<symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
|
|
21
|
-
<path fill="currentcolor" d="M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10" />
|
|
22
|
-
</symbol>
|
|
23
|
-
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
24
|
-
<path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
|
|
25
|
-
</symbol>
|
|
26
|
-
</svg>`,yl=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
|
|
27
|
-
<path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
|
|
28
|
-
<path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
|
|
29
|
-
</symbol>`,bl=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
|
|
30
|
-
<path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
|
|
31
|
-
</symbol>`,xl=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
|
|
32
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
33
|
-
<path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
|
|
34
|
-
</symbol>`,Sl=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
|
|
35
|
-
<path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
|
|
36
|
-
</symbol>`,Cl=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
|
|
37
|
-
<path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
|
|
38
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
|
|
39
|
-
</symbol>`,wl=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
|
|
40
|
-
<path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
|
|
41
|
-
<path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
|
|
42
|
-
<path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
|
|
43
|
-
</symbol>`,Tl=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
|
|
44
|
-
<path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
|
|
45
|
-
</symbol>`,El=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
|
|
46
|
-
<path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
|
|
47
|
-
</symbol>`,Dl=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
|
|
48
|
-
<path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
|
|
49
|
-
<path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
|
|
50
|
-
</symbol>`,Ol=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
|
|
51
|
-
<path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
|
|
52
|
-
<path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
|
|
53
|
-
<path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
|
|
54
|
-
</symbol>`,kl=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
|
|
55
|
-
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
56
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
57
|
-
</symbol>`,Al=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
|
|
58
|
-
<path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
|
|
59
|
-
<path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
|
|
60
|
-
</symbol>`,jl=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
|
|
61
|
-
<path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
|
|
62
|
-
<path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
|
|
63
|
-
</symbol>`,Ml=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
|
|
64
|
-
<path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
|
|
65
|
-
</symbol>`,Nl=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
|
|
66
|
-
<path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
|
|
67
|
-
</symbol>`,Pl=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
|
|
68
|
-
<path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
|
|
69
|
-
</symbol>`,Fl=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
|
|
70
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
|
|
71
|
-
</symbol>`,Il=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
|
|
72
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
73
|
-
<path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
|
|
74
|
-
</symbol>`,Ll=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
|
|
75
|
-
<path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
|
|
76
|
-
<path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
|
|
77
|
-
</symbol>`,Rl=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
|
|
78
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
79
|
-
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
|
|
80
|
-
</symbol>`,zl=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
|
|
81
|
-
<path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
|
|
82
|
-
</symbol>`,Bl=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
|
|
83
|
-
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
84
|
-
</symbol>`,Vl=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
|
|
85
|
-
<path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
|
|
86
|
-
<path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
|
|
87
|
-
</symbol>`,Hl=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
|
|
88
|
-
<defs>
|
|
89
|
-
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
90
|
-
<stop stop-color="currentColor"/>
|
|
91
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0"/>
|
|
92
|
-
</linearGradient>
|
|
93
|
-
</defs>
|
|
94
|
-
<path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
|
|
95
|
-
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
96
|
-
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
97
|
-
</symbol>`,Ul=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
|
|
98
|
-
<path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
|
|
99
|
-
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
100
|
-
</symbol>`,Wl=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
|
|
101
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
|
|
102
|
-
</symbol>`,Gl=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
|
|
103
|
-
<path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
|
|
104
|
-
</symbol>`,Kl=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
|
|
105
|
-
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
106
|
-
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
107
|
-
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
108
|
-
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
109
|
-
</symbol>`,ql=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
|
|
110
|
-
<path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
|
|
111
|
-
<path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
|
|
112
|
-
</symbol>`,Jl=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
|
|
113
|
-
<path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
|
|
114
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
|
|
115
|
-
</symbol>`,Yl=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
|
|
116
|
-
<path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
|
|
117
|
-
</symbol>`,Xl=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
|
|
118
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
|
|
119
|
-
</symbol>`,Zl=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
|
|
120
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
|
|
121
|
-
</symbol>`,Ql=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
|
|
122
|
-
<path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
|
|
123
|
-
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
124
|
-
</symbol>`,$l=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
|
|
125
|
-
<path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
|
|
126
|
-
</symbol>`,eu=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
|
|
127
|
-
<path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
|
|
128
|
-
<path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
|
|
129
|
-
</symbol>`,tu=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
|
|
130
|
-
<path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
|
|
131
|
-
<path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
|
|
132
|
-
</symbol>`,nu=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
|
|
133
|
-
<path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
|
|
134
|
-
</symbol>`,ru=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
|
|
135
|
-
<path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
|
|
136
|
-
<path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
137
|
-
</symbol>`,iu=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
|
|
138
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
|
|
139
|
-
</symbol>`,au=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
|
|
140
|
-
<path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
|
|
141
|
-
</symbol>`,ou=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
|
|
142
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
|
|
143
|
-
<path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
|
|
144
|
-
</symbol>`,su=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
|
|
145
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
146
|
-
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
|
|
147
|
-
</symbol>`,cu=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
|
|
148
|
-
<path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
|
|
149
|
-
</symbol>`,lu=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
|
|
150
|
-
<path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
|
|
151
|
-
<path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
|
|
152
|
-
<path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
|
|
153
|
-
</symbol>`,uu=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
|
|
154
|
-
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
155
|
-
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
156
|
-
</symbol>`,du=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
|
|
157
|
-
<path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
|
|
158
|
-
<path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
|
|
159
|
-
<path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
|
|
160
|
-
</symbol>`,fu=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
|
|
161
|
-
<path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
|
|
162
|
-
<path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
|
|
163
|
-
</symbol>`,pu=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
|
|
164
|
-
<path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
|
|
165
|
-
</symbol>`,mu=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
|
|
166
|
-
<path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
|
|
167
|
-
<path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
|
|
168
|
-
</symbol>`,hu=[xl,Dl,Ol,kl,Ml,Nl,Pl,Il,Ll,Rl,zl,Bl,Vl,ql,Yl,Xl,nu,ru,ou,su,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
|
|
169
|
-
<path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
170
|
-
<path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
|
|
171
|
-
</symbol>`],gu=[yl,bl,Sl,Cl,wl,Tl,El,Al,jl,Fl,Hl,Ul,Wl,Gl,Kl,Jl,Zl,Ql,$l,eu,tu,iu,au,cu,lu,uu,du,fu,pu,mu];function _u(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
|
|
172
|
-
`)}\n</svg>`)}var vu=_u(vl,hu),yu={minimal:vl,standard:vu,complete:_u(vu,gu)},bu={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},xu={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,htm:`html`,html:`html`,icns:`image`,ico:`image`,ini:`text`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},Su={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},Cu=new Set([`bash`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),wu=new Set([`complete`]);function Tu(e){return yu[e===`none`?`minimal`:e]}function Eu(e){return`file-tree-builtin-${e}`}function Du(e){return e!==`none`&&wu.has(e)}function Ou(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=bu[t.toLowerCase()];if(i!=null&&(r||Cu.has(i)))return i;for(let e of n){if(r){let t=Su[e];if(t!=null)return t}let t=xu[e];if(t!=null&&(r||Cu.has(t)))return t}return`default`}function ku(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function Au(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(ku(e)?`none`:`complete`),colored:e.colored??!0}}var ju={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function Mu(e,t){if(typeof e==`number`)return{itemHeight:t??ju.default.itemHeight,factor:e};let n=ju[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var Nu=ju.default.itemHeight,Pu=`@layer base, theme, unsafe;
|
|
173
|
-
|
|
174
|
-
@layer base {
|
|
175
|
-
:host {
|
|
176
|
-
/*
|
|
177
|
-
CSS variables use a fallback stack to ensure user and theme colors slot
|
|
178
|
-
in with ease. User colors take precedence over theme colors, which take
|
|
179
|
-
precedence over defaults.
|
|
180
|
-
|
|
181
|
-
Fallback order:
|
|
182
|
-
|
|
183
|
-
1. --trees-*-override (explicit)
|
|
184
|
-
2. --trees-theme-* (e.g. Shiki/VS Code tokens)
|
|
185
|
-
3. defaults
|
|
186
|
-
|
|
187
|
-
Theme variable names mirror Shiki/VS Code theme file JSON tokens.
|
|
188
|
-
|
|
189
|
-
// Available CSS Color Overrides
|
|
190
|
-
--trees-fg-override
|
|
191
|
-
--trees-fg-muted-override
|
|
192
|
-
--trees-bg-override
|
|
193
|
-
--trees-bg-muted-override
|
|
194
|
-
--trees-accent-override
|
|
195
|
-
--trees-border-color-override
|
|
196
|
-
|
|
197
|
-
--trees-focus-ring-color-override
|
|
198
|
-
--trees-focus-ring-width-override
|
|
199
|
-
--trees-focus-ring-offset-override
|
|
200
|
-
|
|
201
|
-
--trees-search-fg-override
|
|
202
|
-
--trees-search-font-weight-override
|
|
203
|
-
--trees-search-bg-override
|
|
204
|
-
|
|
205
|
-
--trees-selected-fg-override
|
|
206
|
-
--trees-selected-bg-override
|
|
207
|
-
--trees-selected-focused-border-color-override
|
|
208
|
-
|
|
209
|
-
// Git Status Color Overrides
|
|
210
|
-
--trees-status-added-override
|
|
211
|
-
--trees-status-ignored-override
|
|
212
|
-
--trees-status-modified-override
|
|
213
|
-
--trees-status-renamed-override
|
|
214
|
-
--trees-status-untracked-override
|
|
215
|
-
--trees-status-deleted-override
|
|
216
|
-
--trees-git-added-color-override
|
|
217
|
-
--trees-git-ignored-color-override
|
|
218
|
-
--trees-git-modified-color-override
|
|
219
|
-
--trees-git-renamed-color-override
|
|
220
|
-
--trees-git-untracked-color-override
|
|
221
|
-
--trees-git-deleted-color-override
|
|
222
|
-
|
|
223
|
-
// Built-in File Icon Color Overrides
|
|
224
|
-
--trees-file-icon-color
|
|
225
|
-
--trees-file-icon-color-astro
|
|
226
|
-
--trees-file-icon-color-babel
|
|
227
|
-
--trees-file-icon-color-bash
|
|
228
|
-
--trees-file-icon-color-biome
|
|
229
|
-
--trees-file-icon-color-bootstrap
|
|
230
|
-
--trees-file-icon-color-browserslist
|
|
231
|
-
--trees-file-icon-color-bun
|
|
232
|
-
--trees-file-icon-color-claude
|
|
233
|
-
--trees-file-icon-color-css
|
|
234
|
-
--trees-file-icon-color-database
|
|
235
|
-
--trees-file-icon-color-default
|
|
236
|
-
--trees-file-icon-color-docker
|
|
237
|
-
--trees-file-icon-color-eslint
|
|
238
|
-
--trees-file-icon-color-git
|
|
239
|
-
--trees-file-icon-color-go
|
|
240
|
-
--trees-file-icon-color-graphql
|
|
241
|
-
--trees-file-icon-color-html
|
|
242
|
-
--trees-file-icon-color-image
|
|
243
|
-
--trees-file-icon-color-javascript
|
|
244
|
-
--trees-file-icon-color-json
|
|
245
|
-
--trees-file-icon-color-markdown
|
|
246
|
-
--trees-file-icon-color-mcp
|
|
247
|
-
--trees-file-icon-color-npm
|
|
248
|
-
--trees-file-icon-color-oxc
|
|
249
|
-
--trees-file-icon-color-postcss
|
|
250
|
-
--trees-file-icon-color-prettier
|
|
251
|
-
--trees-file-icon-color-python
|
|
252
|
-
--trees-file-icon-color-react
|
|
253
|
-
--trees-file-icon-color-ruby
|
|
254
|
-
--trees-file-icon-color-rust
|
|
255
|
-
--trees-file-icon-color-sass
|
|
256
|
-
--trees-file-icon-color-svg
|
|
257
|
-
--trees-file-icon-color-svelte
|
|
258
|
-
--trees-file-icon-color-svgo
|
|
259
|
-
--trees-file-icon-color-swift
|
|
260
|
-
--trees-file-icon-color-table
|
|
261
|
-
--trees-file-icon-color-text
|
|
262
|
-
--trees-file-icon-color-tailwind
|
|
263
|
-
--trees-file-icon-color-terraform
|
|
264
|
-
--trees-file-icon-color-typescript
|
|
265
|
-
--trees-file-icon-color-vite
|
|
266
|
-
--trees-file-icon-color-vscode
|
|
267
|
-
--trees-file-icon-color-vue
|
|
268
|
-
--trees-file-icon-color-wasm
|
|
269
|
-
--trees-file-icon-color-webpack
|
|
270
|
-
--trees-file-icon-color-yml
|
|
271
|
-
--trees-file-icon-color-zig
|
|
272
|
-
--trees-file-icon-color-zip
|
|
273
|
-
|
|
274
|
-
// Density
|
|
275
|
-
//
|
|
276
|
-
// A unitless scale factor for padding, gaps, and indentation. Usually
|
|
277
|
-
// set via \`density\` on useFileTree. Individual overrides take precedence.
|
|
278
|
-
//
|
|
279
|
-
// Compact: 0.8
|
|
280
|
-
// Default: 1
|
|
281
|
-
// Relaxed: 1.2
|
|
282
|
-
//
|
|
283
|
-
--trees-density-override
|
|
284
|
-
|
|
285
|
-
// Available CSS Layout Overrides
|
|
286
|
-
--trees-gap-override
|
|
287
|
-
--trees-border-radius-override
|
|
288
|
-
--trees-font-family-override
|
|
289
|
-
--trees-font-size-override
|
|
290
|
-
--trees-font-weight-regular-override
|
|
291
|
-
--trees-font-weight-semibold-override
|
|
292
|
-
--trees-level-gap-override
|
|
293
|
-
--trees-item-padding-x-override
|
|
294
|
-
--trees-item-margin-x-override
|
|
295
|
-
--trees-item-row-gap-override
|
|
296
|
-
--trees-icon-width-override
|
|
297
|
-
--trees-icon-nudge-override
|
|
298
|
-
--trees-scrollbar-gutter-override
|
|
299
|
-
--trees-padding-inline-override
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
--trees-accent: var(--trees-accent-override, #009fff);
|
|
303
|
-
--trees-fg: var(
|
|
304
|
-
--trees-fg-override,
|
|
305
|
-
var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1))
|
|
306
|
-
);
|
|
307
|
-
--trees-fg-muted: var(
|
|
308
|
-
--trees-fg-muted-override,
|
|
309
|
-
var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a))
|
|
310
|
-
);
|
|
311
|
-
--trees-bg: var(
|
|
312
|
-
--trees-bg-override,
|
|
313
|
-
var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415))
|
|
314
|
-
);
|
|
315
|
-
/* var(--trees-theme-list-hover-bg, light-dark(#dfebff59, #19283c59)) */
|
|
316
|
-
--trees-bg-muted: var(
|
|
317
|
-
--trees-bg-muted-override,
|
|
318
|
-
var(
|
|
319
|
-
--trees-theme-list-hover-bg,
|
|
320
|
-
light-dark(
|
|
321
|
-
color-mix(
|
|
322
|
-
in lab,
|
|
323
|
-
var(--trees-accent) var(--trees-bg-alpha-light, 8%),
|
|
324
|
-
var(--trees-bg)
|
|
325
|
-
),
|
|
326
|
-
color-mix(
|
|
327
|
-
in lab,
|
|
328
|
-
var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
|
|
329
|
-
var(--trees-bg)
|
|
330
|
-
)
|
|
331
|
-
)
|
|
332
|
-
)
|
|
333
|
-
);
|
|
334
|
-
--trees-input-bg: var(
|
|
335
|
-
--trees-input-bg-override,
|
|
336
|
-
light-dark(#f8f8f8, #070707)
|
|
337
|
-
);
|
|
338
|
-
|
|
339
|
-
--trees-added-light: #16a994;
|
|
340
|
-
--trees-added-dark: #00cab1;
|
|
341
|
-
--trees-ignored-light: #adadb1;
|
|
342
|
-
--trees-ignored-dark: #4a4a4e;
|
|
343
|
-
--trees-modified-light: #1ca1c7;
|
|
344
|
-
--trees-modified-dark: #08c0ef;
|
|
345
|
-
--trees-renamed-light: #d5a910;
|
|
346
|
-
--trees-renamed-dark: #ffd452;
|
|
347
|
-
--trees-untracked-light: #16a994;
|
|
348
|
-
--trees-untracked-dark: #00cab1;
|
|
349
|
-
--trees-deleted-light: #ff2e3f;
|
|
350
|
-
--trees-deleted-dark: #ff6762;
|
|
351
|
-
|
|
352
|
-
--trees-border-color: var(
|
|
353
|
-
--trees-border-color-override,
|
|
354
|
-
var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707))
|
|
355
|
-
);
|
|
356
|
-
--trees-indent-guide-bg: var(
|
|
357
|
-
--trees-indent-guide-bg-override,
|
|
358
|
-
color-mix(in lab, var(--trees-fg-muted) 25%, transparent)
|
|
359
|
-
);
|
|
360
|
-
--trees-density: var(--trees-density-override, 1);
|
|
361
|
-
--trees-border-radius: var(
|
|
362
|
-
--trees-border-radius-override,
|
|
363
|
-
calc(6px * var(--trees-density))
|
|
364
|
-
);
|
|
365
|
-
|
|
366
|
-
--trees-font-family: var(--trees-font-family-override, system-ui);
|
|
367
|
-
--trees-font-size: var(--trees-font-size-override, 13px);
|
|
368
|
-
--trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
|
|
369
|
-
--trees-font-weight-semibold: var(
|
|
370
|
-
--trees-font-weight-semibold-override,
|
|
371
|
-
600
|
|
372
|
-
);
|
|
373
|
-
|
|
374
|
-
--trees-focus-ring-color: var(
|
|
375
|
-
--trees-focus-ring-color-override,
|
|
376
|
-
var(--trees-theme-focus-ring, var(--trees-accent))
|
|
377
|
-
);
|
|
378
|
-
--trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
|
|
379
|
-
--trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
|
|
380
|
-
|
|
381
|
-
--trees-search-fg: var(
|
|
382
|
-
--trees-search-fg-override,
|
|
383
|
-
var(--trees-theme-input-fg, var(--trees-fg))
|
|
384
|
-
);
|
|
385
|
-
--trees-search-font-weight: var(--trees-search-font-weight-override, 600);
|
|
386
|
-
--trees-search-bg: var(
|
|
387
|
-
--trees-search-bg-override,
|
|
388
|
-
var(--trees-theme-input-bg, var(--trees-input-bg))
|
|
389
|
-
);
|
|
390
|
-
|
|
391
|
-
--trees-scrollbar-thumb: var(
|
|
392
|
-
--trees-scrollbar-thumb-override,
|
|
393
|
-
var(
|
|
394
|
-
--trees-theme-scrollbar-thumb,
|
|
395
|
-
color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))
|
|
396
|
-
)
|
|
397
|
-
);
|
|
398
|
-
|
|
399
|
-
--trees-selected-fg: var(
|
|
400
|
-
--trees-selected-fg-override,
|
|
401
|
-
var(--trees-theme-list-active-selection-fg, var(--trees-fg))
|
|
402
|
-
);
|
|
403
|
-
--trees-selected-bg: var(
|
|
404
|
-
--trees-selected-bg-override,
|
|
405
|
-
var(
|
|
406
|
-
--trees-theme-list-active-selection-bg,
|
|
407
|
-
light-dark(
|
|
408
|
-
color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)),
|
|
409
|
-
color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg))
|
|
410
|
-
)
|
|
411
|
-
)
|
|
412
|
-
);
|
|
413
|
-
--trees-selected-focused-border-color: var(
|
|
414
|
-
--trees-selected-focused-border-color-override,
|
|
415
|
-
var(--trees-theme-focus-ring, var(--trees-accent))
|
|
416
|
-
);
|
|
417
|
-
|
|
418
|
-
/* Git status (e.g. from Shiki theme gitDecoration.*) */
|
|
419
|
-
--trees-status-added: var(
|
|
420
|
-
--trees-status-added-override,
|
|
421
|
-
var(
|
|
422
|
-
--trees-theme-git-added-fg,
|
|
423
|
-
light-dark(var(--trees-added-light), var(--trees-added-dark))
|
|
424
|
-
)
|
|
425
|
-
);
|
|
426
|
-
--trees-status-ignored: var(
|
|
427
|
-
--trees-status-ignored-override,
|
|
428
|
-
var(
|
|
429
|
-
--trees-theme-git-ignored-fg,
|
|
430
|
-
light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))
|
|
431
|
-
)
|
|
432
|
-
);
|
|
433
|
-
--trees-status-modified: var(
|
|
434
|
-
--trees-status-modified-override,
|
|
435
|
-
var(
|
|
436
|
-
--trees-theme-git-modified-fg,
|
|
437
|
-
light-dark(var(--trees-modified-light), var(--trees-modified-dark))
|
|
438
|
-
)
|
|
439
|
-
);
|
|
440
|
-
--trees-status-renamed: var(
|
|
441
|
-
--trees-status-renamed-override,
|
|
442
|
-
var(
|
|
443
|
-
--trees-theme-git-renamed-fg,
|
|
444
|
-
light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))
|
|
445
|
-
)
|
|
446
|
-
);
|
|
447
|
-
--trees-status-untracked: var(
|
|
448
|
-
--trees-status-untracked-override,
|
|
449
|
-
var(
|
|
450
|
-
--trees-theme-git-untracked-fg,
|
|
451
|
-
light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))
|
|
452
|
-
)
|
|
453
|
-
);
|
|
454
|
-
--trees-status-deleted: var(
|
|
455
|
-
--trees-status-deleted-override,
|
|
456
|
-
var(
|
|
457
|
-
--trees-theme-git-deleted-fg,
|
|
458
|
-
light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))
|
|
459
|
-
)
|
|
460
|
-
);
|
|
461
|
-
--trees-git-modified-color: var(
|
|
462
|
-
--trees-git-modified-color-override,
|
|
463
|
-
var(--trees-status-modified)
|
|
464
|
-
);
|
|
465
|
-
--trees-git-added-color: var(
|
|
466
|
-
--trees-git-added-color-override,
|
|
467
|
-
var(--trees-status-added)
|
|
468
|
-
);
|
|
469
|
-
--trees-git-ignored-color: var(
|
|
470
|
-
--trees-git-ignored-color-override,
|
|
471
|
-
var(--trees-status-ignored)
|
|
472
|
-
);
|
|
473
|
-
--trees-git-deleted-color: var(
|
|
474
|
-
--trees-git-deleted-color-override,
|
|
475
|
-
var(--trees-status-deleted)
|
|
476
|
-
);
|
|
477
|
-
--trees-git-renamed-color: var(
|
|
478
|
-
--trees-git-renamed-color-override,
|
|
479
|
-
var(--trees-status-renamed)
|
|
480
|
-
);
|
|
481
|
-
--trees-git-untracked-color: var(
|
|
482
|
-
--trees-git-untracked-color-override,
|
|
483
|
-
var(--trees-status-untracked)
|
|
484
|
-
);
|
|
485
|
-
|
|
486
|
-
--trees-icon-gray: light-dark(#84848a, #adadb1);
|
|
487
|
-
--trees-icon-red: light-dark(#d52c36, #ff6762);
|
|
488
|
-
--trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
|
|
489
|
-
--trees-icon-orange: light-dark(#d47628, #ffa359);
|
|
490
|
-
--trees-icon-yellow: light-dark(#d5a910, #ffd452);
|
|
491
|
-
--trees-icon-green: light-dark(#199f43, #5ecc71);
|
|
492
|
-
--trees-icon-teal: light-dark(#17a5af, #64d1db);
|
|
493
|
-
--trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
|
|
494
|
-
--trees-icon-blue: light-dark(#1a85d4, #69b1ff);
|
|
495
|
-
--trees-icon-indigo: light-dark(#693acf, #9d6afb);
|
|
496
|
-
--trees-icon-purple: light-dark(#a631be, #d568ea);
|
|
497
|
-
--trees-icon-pink: light-dark(#d32a61, #ff678d);
|
|
498
|
-
--trees-icon-mauve: light-dark(#594c5b, #79697b);
|
|
499
|
-
|
|
500
|
-
--trees-file-icon-color-default: var(
|
|
501
|
-
--trees-file-icon-color,
|
|
502
|
-
var(--trees-icon-gray)
|
|
503
|
-
);
|
|
504
|
-
--trees-file-icon-color-astro: var(
|
|
505
|
-
--trees-file-icon-color,
|
|
506
|
-
var(--trees-icon-purple)
|
|
507
|
-
);
|
|
508
|
-
--trees-file-icon-color-babel: var(
|
|
509
|
-
--trees-file-icon-color,
|
|
510
|
-
var(--trees-icon-yellow)
|
|
511
|
-
);
|
|
512
|
-
--trees-file-icon-color-bash: var(
|
|
513
|
-
--trees-file-icon-color,
|
|
514
|
-
var(--trees-icon-green)
|
|
515
|
-
);
|
|
516
|
-
--trees-file-icon-color-biome: var(
|
|
517
|
-
--trees-file-icon-color,
|
|
518
|
-
var(--trees-icon-blue)
|
|
519
|
-
);
|
|
520
|
-
--trees-file-icon-color-bootstrap: var(
|
|
521
|
-
--trees-file-icon-color,
|
|
522
|
-
var(--trees-icon-indigo)
|
|
523
|
-
);
|
|
524
|
-
--trees-file-icon-color-browserslist: var(
|
|
525
|
-
--trees-file-icon-color,
|
|
526
|
-
var(--trees-icon-yellow)
|
|
527
|
-
);
|
|
528
|
-
--trees-file-icon-color-bun: var(
|
|
529
|
-
--trees-file-icon-color,
|
|
530
|
-
var(--trees-icon-mauve)
|
|
531
|
-
);
|
|
532
|
-
--trees-file-icon-color-claude: var(
|
|
533
|
-
--trees-file-icon-color,
|
|
534
|
-
var(--trees-icon-orange)
|
|
535
|
-
);
|
|
536
|
-
--trees-file-icon-color-css: var(
|
|
537
|
-
--trees-file-icon-color,
|
|
538
|
-
var(--trees-icon-indigo)
|
|
539
|
-
);
|
|
540
|
-
--trees-file-icon-color-database: var(
|
|
541
|
-
--trees-file-icon-color,
|
|
542
|
-
var(--trees-icon-purple)
|
|
543
|
-
);
|
|
544
|
-
--trees-file-icon-color-docker: var(
|
|
545
|
-
--trees-file-icon-color,
|
|
546
|
-
var(--trees-icon-blue)
|
|
547
|
-
);
|
|
548
|
-
--trees-file-icon-color-eslint: var(
|
|
549
|
-
--trees-file-icon-color,
|
|
550
|
-
var(--trees-icon-indigo)
|
|
551
|
-
);
|
|
552
|
-
--trees-file-icon-color-git: var(
|
|
553
|
-
--trees-file-icon-vermilion,
|
|
554
|
-
var(--trees-icon-vermilion)
|
|
555
|
-
);
|
|
556
|
-
--trees-file-icon-color-go: var(
|
|
557
|
-
--trees-file-icon-color,
|
|
558
|
-
var(--trees-icon-cyan)
|
|
559
|
-
);
|
|
560
|
-
--trees-file-icon-color-graphql: var(
|
|
561
|
-
--trees-file-icon-color,
|
|
562
|
-
var(--trees-icon-pink)
|
|
563
|
-
);
|
|
564
|
-
--trees-file-icon-color-html: var(
|
|
565
|
-
--trees-file-icon-color,
|
|
566
|
-
var(--trees-icon-orange)
|
|
567
|
-
);
|
|
568
|
-
--trees-file-icon-color-image: var(
|
|
569
|
-
--trees-file-icon-color,
|
|
570
|
-
var(--trees-icon-pink)
|
|
571
|
-
);
|
|
572
|
-
--trees-file-icon-color-javascript: var(
|
|
573
|
-
--trees-file-icon-color,
|
|
574
|
-
var(--trees-icon-yellow)
|
|
575
|
-
);
|
|
576
|
-
--trees-file-icon-color-json: var(
|
|
577
|
-
--trees-file-icon-color,
|
|
578
|
-
var(--trees-icon-orange)
|
|
579
|
-
);
|
|
580
|
-
--trees-file-icon-color-markdown: var(
|
|
581
|
-
--trees-file-icon-color,
|
|
582
|
-
var(--trees-icon-green)
|
|
583
|
-
);
|
|
584
|
-
--trees-file-icon-color-mcp: var(
|
|
585
|
-
--trees-file-icon-color,
|
|
586
|
-
var(--trees-icon-teal)
|
|
587
|
-
);
|
|
588
|
-
--trees-file-icon-color-npm: var(
|
|
589
|
-
--trees-file-icon-color,
|
|
590
|
-
var(--trees-icon-red)
|
|
591
|
-
);
|
|
592
|
-
--trees-file-icon-color-oxc: var(
|
|
593
|
-
--trees-file-icon-cyan,
|
|
594
|
-
var(--trees-icon-cyan)
|
|
595
|
-
);
|
|
596
|
-
--trees-file-icon-color-postcss: var(
|
|
597
|
-
--trees-file-icon-color,
|
|
598
|
-
var(--trees-icon-red)
|
|
599
|
-
);
|
|
600
|
-
--trees-file-icon-color-prettier: var(
|
|
601
|
-
--trees-file-icon-color,
|
|
602
|
-
var(--trees-icon-teal)
|
|
603
|
-
);
|
|
604
|
-
--trees-file-icon-color-python: var(
|
|
605
|
-
--trees-file-icon-color,
|
|
606
|
-
var(--trees-icon-blue)
|
|
607
|
-
);
|
|
608
|
-
--trees-file-icon-color-react: var(
|
|
609
|
-
--trees-file-icon-color,
|
|
610
|
-
var(--trees-icon-cyan)
|
|
611
|
-
);
|
|
612
|
-
--trees-file-icon-color-ruby: var(
|
|
613
|
-
--trees-file-icon-color,
|
|
614
|
-
var(--trees-icon-red)
|
|
615
|
-
);
|
|
616
|
-
--trees-file-icon-color-rust: var(
|
|
617
|
-
--trees-file-icon-color,
|
|
618
|
-
var(--trees-icon-orange)
|
|
619
|
-
);
|
|
620
|
-
--trees-file-icon-color-sass: var(
|
|
621
|
-
--trees-file-icon-color,
|
|
622
|
-
var(--trees-icon-pink)
|
|
623
|
-
);
|
|
624
|
-
--trees-file-icon-color-svg: var(
|
|
625
|
-
--trees-file-icon-color,
|
|
626
|
-
var(--trees-icon-orange)
|
|
627
|
-
);
|
|
628
|
-
--trees-file-icon-color-svelte: var(
|
|
629
|
-
--trees-file-icon-color,
|
|
630
|
-
var(--trees-icon-red)
|
|
631
|
-
);
|
|
632
|
-
--trees-file-icon-color-svgo: var(
|
|
633
|
-
--trees-file-icon-color,
|
|
634
|
-
var(--trees-icon-green)
|
|
635
|
-
);
|
|
636
|
-
--trees-file-icon-color-swift: var(
|
|
637
|
-
--trees-file-icon-color,
|
|
638
|
-
var(--trees-icon-orange)
|
|
639
|
-
);
|
|
640
|
-
--trees-file-icon-color-table: var(
|
|
641
|
-
--trees-file-icon-color,
|
|
642
|
-
var(--trees-icon-teal)
|
|
643
|
-
);
|
|
644
|
-
--trees-file-icon-color-text: var(
|
|
645
|
-
--trees-file-icon-color,
|
|
646
|
-
var(--trees-icon-gray)
|
|
647
|
-
);
|
|
648
|
-
--trees-file-icon-color-tailwind: var(
|
|
649
|
-
--trees-file-icon-color,
|
|
650
|
-
var(--trees-icon-cyan)
|
|
651
|
-
);
|
|
652
|
-
--trees-file-icon-color-terraform: var(
|
|
653
|
-
--trees-file-icon-color,
|
|
654
|
-
var(--trees-icon-indigo)
|
|
655
|
-
);
|
|
656
|
-
--trees-file-icon-color-typescript: var(
|
|
657
|
-
--trees-file-icon-color,
|
|
658
|
-
var(--trees-icon-blue)
|
|
659
|
-
);
|
|
660
|
-
--trees-file-icon-color-vite: var(
|
|
661
|
-
--trees-file-icon-color,
|
|
662
|
-
var(--trees-icon-purple)
|
|
663
|
-
);
|
|
664
|
-
--trees-file-icon-color-vscode: var(
|
|
665
|
-
--trees-file-icon-color,
|
|
666
|
-
var(--trees-icon-blue)
|
|
667
|
-
);
|
|
668
|
-
--trees-file-icon-color-vue: var(
|
|
669
|
-
--trees-file-icon-color,
|
|
670
|
-
var(--trees-icon-green)
|
|
671
|
-
);
|
|
672
|
-
--trees-file-icon-color-wasm: var(
|
|
673
|
-
--trees-file-icon-color,
|
|
674
|
-
var(--trees-icon-indigo)
|
|
675
|
-
);
|
|
676
|
-
--trees-file-icon-color-webpack: var(
|
|
677
|
-
--trees-file-icon-color,
|
|
678
|
-
var(--trees-icon-blue)
|
|
679
|
-
);
|
|
680
|
-
--trees-file-icon-color-yml: var(
|
|
681
|
-
--trees-file-icon-color,
|
|
682
|
-
var(--trees-icon-red)
|
|
683
|
-
);
|
|
684
|
-
--trees-file-icon-color-zig: var(
|
|
685
|
-
--trees-file-icon-color,
|
|
686
|
-
var(--trees-icon-orange)
|
|
687
|
-
);
|
|
688
|
-
--trees-file-icon-color-zip: var(
|
|
689
|
-
--trees-file-icon-color,
|
|
690
|
-
var(--trees-icon-orange)
|
|
691
|
-
);
|
|
692
|
-
|
|
693
|
-
--trees-level-gap: var(
|
|
694
|
-
--trees-level-gap-override,
|
|
695
|
-
calc(8px * var(--trees-density))
|
|
696
|
-
);
|
|
697
|
-
--trees-item-padding-x: var(
|
|
698
|
-
--trees-item-padding-x-override,
|
|
699
|
-
calc(8px * var(--trees-density))
|
|
700
|
-
);
|
|
701
|
-
--trees-item-margin-x: var(
|
|
702
|
-
--trees-item-margin-x-override,
|
|
703
|
-
calc(2px * var(--trees-density))
|
|
704
|
-
);
|
|
705
|
-
--trees-item-row-gap: var(
|
|
706
|
-
--trees-item-row-gap-override,
|
|
707
|
-
calc(6px * var(--trees-density))
|
|
708
|
-
);
|
|
709
|
-
--trees-icon-width: var(--trees-icon-width-override, 16px);
|
|
710
|
-
--trees-icon-nudge: var(
|
|
711
|
-
--trees-icon-nudge-override,
|
|
712
|
-
calc(1px * var(--trees-density))
|
|
713
|
-
);
|
|
714
|
-
--trees-row-height: var(--trees-item-height, 30px);
|
|
715
|
-
--trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
|
|
716
|
-
--trees-action-lane-width: var(
|
|
717
|
-
--trees-action-lane-width-override,
|
|
718
|
-
calc(var(--trees-icon-width) + 2px)
|
|
719
|
-
);
|
|
720
|
-
/* Keep the floating trigger aligned with the row's action lane. Going in
|
|
721
|
-
from the root's right edge: the scroll container reserves
|
|
722
|
-
\`--trees-padding-inline\` of effective inset on each side (its asymmetric
|
|
723
|
-
padding formula cancels the scrollbar gutter on the right), the row
|
|
724
|
-
sits inside that inset, and its trailing \`--trees-item-padding-x\` is the
|
|
725
|
-
action lane itself. The trigger's own focus-ring margin then trims one
|
|
726
|
-
pixel back so the button's visible right edge lines up with the lane. */
|
|
727
|
-
--trees-context-menu-trigger-inline-offset: calc(
|
|
728
|
-
var(--trees-padding-inline) + var(--trees-item-padding-x) -
|
|
729
|
-
var(--trees-focus-ring-width)
|
|
730
|
-
);
|
|
731
|
-
|
|
732
|
-
--trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
|
|
733
|
-
--trees-padding-inline: var(--trees-padding-inline-override, 16px);
|
|
734
|
-
|
|
735
|
-
color-scheme: light dark;
|
|
736
|
-
display: flex;
|
|
737
|
-
flex-direction: column;
|
|
738
|
-
font-size: var(--trees-font-size);
|
|
739
|
-
color: var(--trees-fg);
|
|
740
|
-
background-color: var(--trees-bg);
|
|
741
|
-
--truncate-marker-background-color: var(--trees-bg);
|
|
742
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
743
|
-
font-family: var(--trees-font-family);
|
|
744
|
-
font-weight: var(--trees-font-weight-regular);
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
:host([data-file-tree-virtualized='true']) {
|
|
748
|
-
height: 100%;
|
|
749
|
-
overflow: hidden;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
[data-file-tree-virtualized-wrapper='true'] {
|
|
753
|
-
height: 100%;
|
|
754
|
-
overflow: hidden;
|
|
755
|
-
display: flex;
|
|
756
|
-
flex-direction: column;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
[data-file-tree-virtualized-root='true'] {
|
|
760
|
-
height: 100%;
|
|
761
|
-
display: flex;
|
|
762
|
-
flex-direction: column;
|
|
763
|
-
overflow: hidden;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
[data-file-tree-virtualized-scroll='true'],
|
|
767
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
768
|
-
overflow-y: auto;
|
|
769
|
-
scrollbar-gutter: stable;
|
|
770
|
-
|
|
771
|
-
&::-webkit-scrollbar {
|
|
772
|
-
width: var(--trees-scrollbar-gutter);
|
|
773
|
-
height: var(--trees-scrollbar-gutter);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
&::-webkit-scrollbar-track {
|
|
777
|
-
background: transparent;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
&::-webkit-scrollbar-thumb {
|
|
781
|
-
background-color: var(--trees-scrollbar-thumb);
|
|
782
|
-
border: 1px solid transparent;
|
|
783
|
-
background-clip: content-box;
|
|
784
|
-
border-radius: calc(var(--trees-scrollbar-gutter) / 2);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
&::-webkit-scrollbar-corner {
|
|
788
|
-
background-color: transparent;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/* These are styles for a temporarily generated element to measure the size
|
|
793
|
-
* of the scrollbar. It's intended to be somewhat similar in scrollbar style
|
|
794
|
-
* scope to the scrollable tree so \`--trees-scrollbar-gutter-measured\` is an
|
|
795
|
-
* accurate reflection of the size the scrollbar gutter takes up. */
|
|
796
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
797
|
-
position: absolute;
|
|
798
|
-
top: 0;
|
|
799
|
-
left: 0;
|
|
800
|
-
visibility: hidden;
|
|
801
|
-
pointer-events: none;
|
|
802
|
-
width: 100px;
|
|
803
|
-
height: 100px;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
@supports (-moz-appearance: none) {
|
|
807
|
-
[data-file-tree-virtualized-scroll='true'],
|
|
808
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
809
|
-
scrollbar-width: thin;
|
|
810
|
-
scrollbar-color: var(--trees-scrollbar-thumb) transparent;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
[data-file-tree-virtualized-scroll='true'] {
|
|
815
|
-
position: relative;
|
|
816
|
-
overflow-y: auto;
|
|
817
|
-
flex: 1 1 0;
|
|
818
|
-
min-height: 0;
|
|
819
|
-
padding-inline: max(
|
|
820
|
-
calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
821
|
-
0px
|
|
822
|
-
)
|
|
823
|
-
/* NOTE(amadeus): We can assume that all Webkit based browser gutters
|
|
824
|
-
* will align to the value of '--trees-scrollbar-gutter', however if not, then
|
|
825
|
-
* \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
|
|
826
|
-
* hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
|
|
827
|
-
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
828
|
-
*/
|
|
829
|
-
max(
|
|
830
|
-
calc(
|
|
831
|
-
var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
832
|
-
var(
|
|
833
|
-
--trees-scrollbar-gutter-measured,
|
|
834
|
-
var(--trees-scrollbar-gutter)
|
|
835
|
-
)
|
|
836
|
-
),
|
|
837
|
-
0px
|
|
838
|
-
);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
@supports (-moz-appearance: none) {
|
|
842
|
-
[data-file-tree-virtualized-scroll='true'] {
|
|
843
|
-
padding-inline: max(
|
|
844
|
-
calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
845
|
-
0px
|
|
846
|
-
)
|
|
847
|
-
/* NOTE(amadeus): However on Firefox it can vary a little bit, but most
|
|
848
|
-
* likely the majority of cases will default to a 0px width scrollbar lets
|
|
849
|
-
* inherit that first to avoid SSR jumps. In non-SSR'd environments
|
|
850
|
-
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
851
|
-
*/
|
|
852
|
-
max(
|
|
853
|
-
calc(
|
|
854
|
-
var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
855
|
-
var(--trees-scrollbar-gutter-measured, 0px)
|
|
856
|
-
),
|
|
857
|
-
0px
|
|
858
|
-
);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
[data-file-tree-sticky-overlay='true'] {
|
|
863
|
-
position: sticky;
|
|
864
|
-
top: 0;
|
|
865
|
-
height: 0;
|
|
866
|
-
z-index: 4;
|
|
867
|
-
overflow: visible;
|
|
868
|
-
pointer-events: none;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/* The overlay DOM is kept populated even at scrollTop=0 so the browser has
|
|
872
|
-
* the rendered rows on hand the moment scrolling begins — otherwise the
|
|
873
|
-
* compositor paints a scrolled frame before React can mount the overlay,
|
|
874
|
-
* and the topmost sticky folder jumps up by a couple of pixels before it
|
|
875
|
-
* "snaps" into its pinned position. We hide it via CSS whenever the scroll
|
|
876
|
-
* is at the top and no scroll is in progress, so the preview doesn't leak
|
|
877
|
-
* through at rest. \`data-overlay-reveal\` is stamped on the root only when
|
|
878
|
-
* the user initiates a scroll while already at the top — exactly the case
|
|
879
|
-
* where we need the pre-mounted overlay to be visible through the first
|
|
880
|
-
* compositor frame. It is deliberately distinct from the general
|
|
881
|
-
* \`data-is-scrolling\` flag so a scroll that ends at the top (e.g. ArrowUp
|
|
882
|
-
* navigation) re-hides the overlay the instant the scroll lands, rather
|
|
883
|
-
* than waiting for the hover-suppression timer to elapse. */
|
|
884
|
-
[data-file-tree-virtualized-root='true'][data-scroll-at-top='true']:not(
|
|
885
|
-
[data-overlay-reveal]
|
|
886
|
-
)
|
|
887
|
-
[data-file-tree-sticky-overlay='true'] {
|
|
888
|
-
visibility: hidden;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
[data-file-tree-sticky-overlay-content='true'] {
|
|
892
|
-
background-color: var(--trees-bg);
|
|
893
|
-
position: relative;
|
|
894
|
-
pointer-events: none;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
[data-file-tree-virtualized-list='true'] {
|
|
898
|
-
background-color: var(--trees-bg);
|
|
899
|
-
position: relative;
|
|
900
|
-
min-height: 100%;
|
|
901
|
-
width: 100%;
|
|
902
|
-
overflow-anchor: none;
|
|
903
|
-
|
|
904
|
-
&[data-is-scrolling] {
|
|
905
|
-
pointer-events: none;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
[data-file-tree-virtualized-sticky-offset='true'] {
|
|
910
|
-
contain: layout size;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
[data-file-tree-virtualized-sticky='true'] {
|
|
914
|
-
position: sticky;
|
|
915
|
-
top: 0;
|
|
916
|
-
width: 100%;
|
|
917
|
-
display: flex;
|
|
918
|
-
flex-direction: column;
|
|
919
|
-
isolation: isolate;
|
|
920
|
-
/* Promote to its own compositor layer so text inside the window is
|
|
921
|
-
* rasterized once and GPU-translated during scroll. Without this, the
|
|
922
|
-
* browser re-paints the window (and its text) at every scroll frame,
|
|
923
|
-
* which produces visible 1px shake / character tearing. */
|
|
924
|
-
will-change: transform;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
[data-file-tree-search-container] {
|
|
928
|
-
display: flex;
|
|
929
|
-
padding: 0;
|
|
930
|
-
padding-inline: var(--trees-padding-inline);
|
|
931
|
-
margin-bottom: var(--trees-item-row-gap);
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
[data-file-tree-search-input] {
|
|
935
|
-
--trees-focus-ring-width: 2px;
|
|
936
|
-
font-family: var(--trees-font-family);
|
|
937
|
-
font-size: var(--trees-font-size);
|
|
938
|
-
flex: 1;
|
|
939
|
-
height: var(--trees-row-height);
|
|
940
|
-
/* 1px breathing room so the focus-visible outline isn't clipped when the
|
|
941
|
-
* input sits flush against the top of the scroll container. */
|
|
942
|
-
margin-block: 1px;
|
|
943
|
-
padding-inline: var(--trees-item-padding-x);
|
|
944
|
-
line-height: var(--trees-row-height);
|
|
945
|
-
color: var(--trees-search-fg);
|
|
946
|
-
background-color: var(--trees-search-bg);
|
|
947
|
-
border: 1px solid var(--trees-border-color);
|
|
948
|
-
border-radius: var(--trees-border-radius);
|
|
949
|
-
outline: none;
|
|
950
|
-
|
|
951
|
-
&::placeholder {
|
|
952
|
-
color: color-mix(
|
|
953
|
-
in lab,
|
|
954
|
-
var(--trees-search-fg) 65%,
|
|
955
|
-
var(--trees-search-bg)
|
|
956
|
-
);
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
&:focus-visible,
|
|
960
|
-
&[data-file-tree-search-input-fake-focus='true'] {
|
|
961
|
-
outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
|
|
962
|
-
outline-offset: var(--trees-focus-ring-offset);
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
/* The wrapper for the tree items */
|
|
967
|
-
[role='tree'] {
|
|
968
|
-
position: relative;
|
|
969
|
-
display: flex;
|
|
970
|
-
flex-direction: column;
|
|
971
|
-
gap: var(--trees-gap-override, 0);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
/* LIST ITEM */
|
|
975
|
-
[data-type='item'] {
|
|
976
|
-
color: inherit;
|
|
977
|
-
font-family: var(--trees-font-family);
|
|
978
|
-
font-size: var(--trees-font-size);
|
|
979
|
-
text-align: start;
|
|
980
|
-
outline: none;
|
|
981
|
-
background-color: var(--trees-bg);
|
|
982
|
-
border: none;
|
|
983
|
-
position: relative;
|
|
984
|
-
|
|
985
|
-
padding: 0 var(--trees-item-padding-x);
|
|
986
|
-
margin: 0 var(--trees-item-margin-x);
|
|
987
|
-
cursor: pointer;
|
|
988
|
-
-webkit-user-select: none;
|
|
989
|
-
user-select: none;
|
|
990
|
-
-webkit-touch-callout: none;
|
|
991
|
-
touch-action: manipulation;
|
|
992
|
-
display: flex;
|
|
993
|
-
flex: 0 0 var(--trees-row-height);
|
|
994
|
-
align-items: center;
|
|
995
|
-
height: var(--trees-row-height);
|
|
996
|
-
line-height: var(--trees-row-height);
|
|
997
|
-
gap: var(--trees-item-row-gap);
|
|
998
|
-
border-radius: var(--trees-border-radius);
|
|
999
|
-
/* Row states may be translucent, so markers paint the tree background first
|
|
1000
|
-
* and then the state color on top to avoid compositing the same alpha twice. */
|
|
1001
|
-
--truncate-marker-background-color: var(--trees-bg);
|
|
1002
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
1003
|
-
--truncate-marker-block-inset: 0px;
|
|
1004
|
-
|
|
1005
|
-
&:hover,
|
|
1006
|
-
&[data-item-context-hover='true'] {
|
|
1007
|
-
background-color: var(--trees-bg-muted);
|
|
1008
|
-
--truncate-marker-background-overlay-color: var(--trees-bg-muted);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
&[data-item-focused='true'],
|
|
1012
|
-
&:focus-visible {
|
|
1013
|
-
z-index: 2;
|
|
1014
|
-
|
|
1015
|
-
/* Flattened segment markers sit high enough to cover the row outline unless
|
|
1016
|
-
* their painted background is inset by the focus ring width. */
|
|
1017
|
-
[data-item-flattened-subitems] {
|
|
1018
|
-
--truncate-marker-block-inset: var(--trees-focus-ring-width);
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
&::before {
|
|
1022
|
-
position: absolute;
|
|
1023
|
-
inset: 0;
|
|
1024
|
-
content: '';
|
|
1025
|
-
display: block;
|
|
1026
|
-
border-radius: var(--trees-border-radius);
|
|
1027
|
-
outline: var(--trees-focus-ring-width) solid
|
|
1028
|
-
var(--trees-focus-ring-color);
|
|
1029
|
-
outline-offset: var(--trees-focus-ring-offset);
|
|
1030
|
-
pointer-events: none;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
&[data-item-selected='true']::before {
|
|
1034
|
-
outline-color: var(--trees-selected-focused-border-color);
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
&[data-item-selected='true'] {
|
|
1039
|
-
color: var(--trees-selected-fg);
|
|
1040
|
-
background-color: var(--trees-selected-bg);
|
|
1041
|
-
--truncate-marker-background-overlay-color: var(--trees-selected-bg);
|
|
1042
|
-
z-index: 3;
|
|
1043
|
-
|
|
1044
|
-
[data-item-section='icon'] {
|
|
1045
|
-
color: var(--trees-selected-fg);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
&[data-item-search-match='true'] {
|
|
1050
|
-
font-weight: var(--trees-search-font-weight);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
[data-type='item'][data-file-tree-sticky-row='true'] {
|
|
1055
|
-
pointer-events: auto;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
/* Sticky rows opt back into pointer events because the overlay wrapper is
|
|
1059
|
-
* inert. During scroll, put them back under the same hover suppression as
|
|
1060
|
-
* the virtualized list so translucent hover states and menu triggers do not
|
|
1061
|
-
* paint over rows moving beneath the sticky stack. */
|
|
1062
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1063
|
-
[data-type='item'][data-file-tree-sticky-row='true'] {
|
|
1064
|
-
pointer-events: none;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1068
|
-
[data-type='item'][data-file-tree-sticky-row='true']:hover:not(
|
|
1069
|
-
[data-item-selected='true']
|
|
1070
|
-
),
|
|
1071
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1072
|
-
[data-type='item'][data-file-tree-sticky-row='true'][data-item-context-hover='true']:not(
|
|
1073
|
-
[data-item-selected='true']
|
|
1074
|
-
) {
|
|
1075
|
-
background-color: var(--trees-bg);
|
|
1076
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
[data-item-selected='true']:has(+ [data-item-selected='true']) {
|
|
1080
|
-
border-bottom-left-radius: 0;
|
|
1081
|
-
border-bottom-right-radius: 0;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
[data-item-selected='true'] + [data-item-selected='true'] {
|
|
1085
|
-
border-top-left-radius: 0;
|
|
1086
|
-
border-top-right-radius: 0;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
/* Flattened Directory Parts */
|
|
1090
|
-
[data-item-flattened-subitems] {
|
|
1091
|
-
display: inline-flex;
|
|
1092
|
-
align-items: center;
|
|
1093
|
-
gap: 2px;
|
|
1094
|
-
}
|
|
1095
|
-
[data-item-flattened-subitem]:hover,
|
|
1096
|
-
[data-item-flattened-subitem-drag-target='true'] {
|
|
1097
|
-
text-decoration: underline;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
/* Icon for each item */
|
|
1101
|
-
[data-item-section='icon'] {
|
|
1102
|
-
flex-shrink: 0;
|
|
1103
|
-
display: flex;
|
|
1104
|
-
align-items: center;
|
|
1105
|
-
justify-content: center;
|
|
1106
|
-
color: var(--trees-fg-muted);
|
|
1107
|
-
fill: currentColor;
|
|
1108
|
-
width: var(--trees-icon-width);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
:where([data-item-section='icon'] > [data-icon-token]) {
|
|
1112
|
-
color: var(--trees-fg-muted);
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
[data-file-tree-colored-icons='true'] {
|
|
1116
|
-
[data-icon-token='astro'] {
|
|
1117
|
-
color: var(--trees-file-icon-color-astro);
|
|
1118
|
-
}
|
|
1119
|
-
[data-icon-token='babel'] {
|
|
1120
|
-
color: var(--trees-file-icon-color-babel);
|
|
1121
|
-
}
|
|
1122
|
-
[data-icon-token='bash'] {
|
|
1123
|
-
color: var(--trees-file-icon-color-bash);
|
|
1124
|
-
}
|
|
1125
|
-
[data-icon-token='biome'] {
|
|
1126
|
-
color: var(--trees-file-icon-color-biome);
|
|
1127
|
-
}
|
|
1128
|
-
[data-icon-token='bootstrap'] {
|
|
1129
|
-
color: var(--trees-file-icon-color-bootstrap);
|
|
1130
|
-
}
|
|
1131
|
-
[data-icon-token='browserslist'] {
|
|
1132
|
-
color: var(--trees-file-icon-color-browserslist);
|
|
1133
|
-
}
|
|
1134
|
-
[data-icon-token='bun'] {
|
|
1135
|
-
color: var(--trees-file-icon-color-bun);
|
|
1136
|
-
}
|
|
1137
|
-
[data-icon-token='claude'] {
|
|
1138
|
-
color: var(--trees-file-icon-color-claude);
|
|
1139
|
-
}
|
|
1140
|
-
[data-icon-token='css'] {
|
|
1141
|
-
color: var(--trees-file-icon-color-css);
|
|
1142
|
-
}
|
|
1143
|
-
[data-icon-token='database'] {
|
|
1144
|
-
color: var(--trees-file-icon-color-database);
|
|
1145
|
-
}
|
|
1146
|
-
[data-icon-token='default'] {
|
|
1147
|
-
color: var(--trees-file-icon-color-default);
|
|
1148
|
-
}
|
|
1149
|
-
[data-icon-token='docker'] {
|
|
1150
|
-
color: var(--trees-file-icon-color-docker);
|
|
1151
|
-
}
|
|
1152
|
-
[data-icon-token='eslint'] {
|
|
1153
|
-
color: var(--trees-file-icon-color-eslint);
|
|
1154
|
-
}
|
|
1155
|
-
[data-icon-token='git'] {
|
|
1156
|
-
color: var(--trees-file-icon-color-git);
|
|
1157
|
-
}
|
|
1158
|
-
[data-icon-token='go'] {
|
|
1159
|
-
color: var(--trees-file-icon-color-go);
|
|
1160
|
-
}
|
|
1161
|
-
[data-icon-token='graphql'] {
|
|
1162
|
-
color: var(--trees-file-icon-color-graphql);
|
|
1163
|
-
}
|
|
1164
|
-
[data-icon-token='html'] {
|
|
1165
|
-
color: var(--trees-file-icon-color-html);
|
|
1166
|
-
}
|
|
1167
|
-
[data-icon-token='image'] {
|
|
1168
|
-
color: var(--trees-file-icon-color-image);
|
|
1169
|
-
}
|
|
1170
|
-
[data-icon-token='javascript'] {
|
|
1171
|
-
color: var(--trees-file-icon-color-javascript);
|
|
1172
|
-
}
|
|
1173
|
-
[data-icon-token='json'] {
|
|
1174
|
-
color: var(--trees-file-icon-color-json);
|
|
1175
|
-
}
|
|
1176
|
-
[data-icon-token='markdown'] {
|
|
1177
|
-
color: var(--trees-file-icon-color-markdown);
|
|
1178
|
-
}
|
|
1179
|
-
[data-icon-token='mcp'] {
|
|
1180
|
-
color: var(--trees-file-icon-color-mcp);
|
|
1181
|
-
}
|
|
1182
|
-
[data-icon-token='npm'] {
|
|
1183
|
-
color: var(--trees-file-icon-color-npm);
|
|
1184
|
-
}
|
|
1185
|
-
[data-icon-token='oxc'] {
|
|
1186
|
-
color: var(--trees-file-icon-color-oxc);
|
|
1187
|
-
}
|
|
1188
|
-
[data-icon-token='postcss'] {
|
|
1189
|
-
color: var(--trees-file-icon-color-postcss);
|
|
1190
|
-
}
|
|
1191
|
-
[data-icon-token='prettier'] {
|
|
1192
|
-
color: var(--trees-file-icon-color-prettier);
|
|
1193
|
-
}
|
|
1194
|
-
[data-icon-token='python'] {
|
|
1195
|
-
color: var(--trees-file-icon-color-python);
|
|
1196
|
-
}
|
|
1197
|
-
[data-icon-token='react'] {
|
|
1198
|
-
color: var(--trees-file-icon-color-react);
|
|
1199
|
-
}
|
|
1200
|
-
[data-icon-token='ruby'] {
|
|
1201
|
-
color: var(--trees-file-icon-color-ruby);
|
|
1202
|
-
}
|
|
1203
|
-
[data-icon-token='rust'] {
|
|
1204
|
-
color: var(--trees-file-icon-color-rust);
|
|
1205
|
-
}
|
|
1206
|
-
[data-icon-token='sass'] {
|
|
1207
|
-
color: var(--trees-file-icon-color-sass);
|
|
1208
|
-
}
|
|
1209
|
-
[data-icon-token='svg'] {
|
|
1210
|
-
color: var(--trees-file-icon-color-svg);
|
|
1211
|
-
}
|
|
1212
|
-
[data-icon-token='svelte'] {
|
|
1213
|
-
color: var(--trees-file-icon-color-svelte);
|
|
1214
|
-
}
|
|
1215
|
-
[data-icon-token='svgo'] {
|
|
1216
|
-
color: var(--trees-file-icon-color-svgo);
|
|
1217
|
-
}
|
|
1218
|
-
[data-icon-token='swift'] {
|
|
1219
|
-
color: var(--trees-file-icon-color-swift);
|
|
1220
|
-
}
|
|
1221
|
-
[data-icon-token='table'] {
|
|
1222
|
-
color: var(--trees-file-icon-color-table);
|
|
1223
|
-
}
|
|
1224
|
-
[data-icon-token='text'] {
|
|
1225
|
-
color: var(--trees-file-icon-color-text);
|
|
1226
|
-
}
|
|
1227
|
-
[data-icon-token='tailwind'] {
|
|
1228
|
-
color: var(--trees-file-icon-color-tailwind);
|
|
1229
|
-
}
|
|
1230
|
-
[data-icon-token='terraform'] {
|
|
1231
|
-
color: var(--trees-file-icon-color-terraform);
|
|
1232
|
-
}
|
|
1233
|
-
[data-icon-token='typescript'] {
|
|
1234
|
-
color: var(--trees-file-icon-color-typescript);
|
|
1235
|
-
}
|
|
1236
|
-
[data-icon-token='vite'] {
|
|
1237
|
-
color: var(--trees-file-icon-color-vite);
|
|
1238
|
-
}
|
|
1239
|
-
[data-icon-token='vscode'] {
|
|
1240
|
-
color: var(--trees-file-icon-color-vscode);
|
|
1241
|
-
}
|
|
1242
|
-
[data-icon-token='vue'] {
|
|
1243
|
-
color: var(--trees-file-icon-color-vue);
|
|
1244
|
-
}
|
|
1245
|
-
[data-icon-token='wasm'] {
|
|
1246
|
-
color: var(--trees-file-icon-color-wasm);
|
|
1247
|
-
}
|
|
1248
|
-
[data-icon-token='webpack'] {
|
|
1249
|
-
color: var(--trees-file-icon-color-webpack);
|
|
1250
|
-
}
|
|
1251
|
-
[data-icon-token='yml'] {
|
|
1252
|
-
color: var(--trees-file-icon-color-yml);
|
|
1253
|
-
}
|
|
1254
|
-
[data-icon-token='zig'] {
|
|
1255
|
-
color: var(--trees-file-icon-color-zig);
|
|
1256
|
-
}
|
|
1257
|
-
[data-icon-token='zip'] {
|
|
1258
|
-
color: var(--trees-file-icon-color-zip);
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
/* Chevron rotation and visual alignment */
|
|
1263
|
-
/* Chevron pointing down */
|
|
1264
|
-
[data-icon-name='file-tree-icon-chevron'] {
|
|
1265
|
-
&[data-align-capitals='false'] {
|
|
1266
|
-
transform: translate(0, var(--trees-icon-nudge));
|
|
1267
|
-
}
|
|
1268
|
-
&[data-align-capitals='true'] {
|
|
1269
|
-
transform: translate(0, 0);
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
[data-item-section='content'] {
|
|
1274
|
-
flex: 0 1 auto;
|
|
1275
|
-
text-align: start;
|
|
1276
|
-
min-width: 0;
|
|
1277
|
-
max-width: 100%;
|
|
1278
|
-
overflow: hidden;
|
|
1279
|
-
text-overflow: ellipsis;
|
|
1280
|
-
/* Breaks middle truncate component to also set this */
|
|
1281
|
-
/* white-space: nowrap; */
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
[data-item-section='decoration'] {
|
|
1285
|
-
flex: 1 1 0;
|
|
1286
|
-
min-width: 0;
|
|
1287
|
-
display: flex;
|
|
1288
|
-
justify-content: flex-end;
|
|
1289
|
-
text-align: end;
|
|
1290
|
-
overflow: hidden;
|
|
1291
|
-
color: var(--trees-fg-muted);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
[data-item-section='decoration'] > span {
|
|
1295
|
-
min-width: 0;
|
|
1296
|
-
max-width: 100%;
|
|
1297
|
-
display: inline-flex;
|
|
1298
|
-
align-items: center;
|
|
1299
|
-
justify-content: flex-end;
|
|
1300
|
-
overflow: hidden;
|
|
1301
|
-
text-overflow: ellipsis;
|
|
1302
|
-
white-space: nowrap;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
[data-item-section='git'],
|
|
1306
|
-
[data-item-section='action'] {
|
|
1307
|
-
flex: 0 0 auto;
|
|
1308
|
-
display: flex;
|
|
1309
|
-
align-items: center;
|
|
1310
|
-
justify-content: center;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
[data-item-section='git'] {
|
|
1314
|
-
width: var(--trees-git-lane-width);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
[data-item-section='action'] {
|
|
1318
|
-
width: var(--trees-action-lane-width);
|
|
1319
|
-
color: var(--trees-fg-muted);
|
|
1320
|
-
fill: currentColor;
|
|
1321
|
-
pointer-events: none;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
[data-item-section='git'] > span,
|
|
1325
|
-
[data-item-section='action'] > span {
|
|
1326
|
-
width: 100%;
|
|
1327
|
-
display: inline-flex;
|
|
1328
|
-
align-items: center;
|
|
1329
|
-
justify-content: center;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
[data-item-action-affordance='decorative'] {
|
|
1333
|
-
opacity: 0.85;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
[data-item-rename-input] {
|
|
1337
|
-
appearance: none;
|
|
1338
|
-
width: 100%;
|
|
1339
|
-
min-width: 0;
|
|
1340
|
-
height: calc(var(--trees-row-height) - 4px);
|
|
1341
|
-
font-family: inherit;
|
|
1342
|
-
font-size: inherit;
|
|
1343
|
-
/* line-height: calc(var(--trees-row-height) - 8px); */
|
|
1344
|
-
color: inherit;
|
|
1345
|
-
background-color: transparent;
|
|
1346
|
-
border: 0;
|
|
1347
|
-
padding-inline: 6px;
|
|
1348
|
-
outline: none;
|
|
1349
|
-
box-sizing: border-box;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
[data-item-section='content']:has([data-item-rename-input])
|
|
1353
|
-
~ [data-item-section='action'],
|
|
1354
|
-
[data-item-section='content']:has([data-item-rename-input])
|
|
1355
|
-
~ [data-item-section='decoration'] {
|
|
1356
|
-
display: none;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/* Chevron pointing right */
|
|
1360
|
-
[aria-expanded='false'][data-item-type='folder']
|
|
1361
|
-
> [data-item-section='icon']
|
|
1362
|
-
> [data-icon-name='file-tree-icon-chevron'] {
|
|
1363
|
-
&[data-align-capitals='true'] {
|
|
1364
|
-
transform: rotate(-90deg)
|
|
1365
|
-
translate(
|
|
1366
|
-
calc(var(--trees-icon-nudge) / 2),
|
|
1367
|
-
calc(var(--trees-icon-nudge) / 2)
|
|
1368
|
-
);
|
|
1369
|
-
}
|
|
1370
|
-
&[data-align-capitals='false'] {
|
|
1371
|
-
transform: rotate(-90deg)
|
|
1372
|
-
translate(
|
|
1373
|
-
calc(var(--trees-icon-nudge) / 2 * -1),
|
|
1374
|
-
calc(var(--trees-icon-nudge) / 2)
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
/* LIST IDENTATION */
|
|
1380
|
-
/* Spacing container */
|
|
1381
|
-
[data-item-section='spacing'] {
|
|
1382
|
-
display: flex;
|
|
1383
|
-
flex-direction: row;
|
|
1384
|
-
align-items: center;
|
|
1385
|
-
justify-content: center;
|
|
1386
|
-
height: var(--trees-row-height);
|
|
1387
|
-
padding-left: calc(calc(var(--trees-icon-width) / 2) - 0.5px);
|
|
1388
|
-
|
|
1389
|
-
&:empty {
|
|
1390
|
-
padding-left: 0;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/* Spacing per level */
|
|
1395
|
-
[data-item-section='spacing-item'] {
|
|
1396
|
-
transform: translateX(-0.25px);
|
|
1397
|
-
display: inline-block;
|
|
1398
|
-
border-left: 1px solid var(--trees-indent-guide-bg);
|
|
1399
|
-
height: 100%;
|
|
1400
|
-
margin-right: calc(var(--trees-level-gap) - 1px);
|
|
1401
|
-
opacity: 0;
|
|
1402
|
-
transition: opacity 150ms ease;
|
|
1403
|
-
|
|
1404
|
-
& + & {
|
|
1405
|
-
margin-left: calc(
|
|
1406
|
-
var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - 0.5px
|
|
1407
|
-
);
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
:host(:hover) [data-item-section='spacing-item'] {
|
|
1412
|
-
opacity: 0.75;
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
/* Git status indicator */
|
|
1416
|
-
|
|
1417
|
-
/* This is a folder that contains a git change */
|
|
1418
|
-
[data-item-contains-git-change='true'] > [data-item-section='git'] {
|
|
1419
|
-
color: var(--trees-git-modified-color);
|
|
1420
|
-
opacity: 0.5;
|
|
1421
|
-
fill: currentColor;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
/* These are files that have a git change */
|
|
1425
|
-
[data-item-git-status] {
|
|
1426
|
-
&
|
|
1427
|
-
> :where([data-item-section='icon'])
|
|
1428
|
-
> :where(:not([data-icon-name='file-tree-icon-chevron'])) {
|
|
1429
|
-
color: var(--trees-item-git-status-color);
|
|
1430
|
-
}
|
|
1431
|
-
& > [data-item-section='content'] {
|
|
1432
|
-
color: var(--trees-item-git-status-color);
|
|
1433
|
-
}
|
|
1434
|
-
& > [data-item-section='git'] {
|
|
1435
|
-
color: var(--trees-item-git-status-color);
|
|
1436
|
-
font-weight: var(--trees-font-weight-semibold);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
[data-item-git-status='added'] {
|
|
1441
|
-
--trees-item-git-status-color: var(--trees-git-added-color);
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
[data-item-git-status='deleted'] {
|
|
1445
|
-
--trees-item-git-status-color: var(--trees-git-deleted-color);
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
[data-item-git-status='ignored'] {
|
|
1449
|
-
--trees-item-git-status-color: var(--trees-git-ignored-color);
|
|
1450
|
-
|
|
1451
|
-
& > [data-item-section='icon'] {
|
|
1452
|
-
opacity: 0.5;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
[data-item-section='git'] [data-icon-name='file-tree-icon-dot'] {
|
|
1457
|
-
/* this is a nudge to align the dot with the likely lowercase text. it's slightly
|
|
1458
|
-
generalizable, but other fonts are gonna need other nudges i assume */
|
|
1459
|
-
transform: translateY(calc(0.65ex - 50%));
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
[data-item-git-status='modified'] {
|
|
1463
|
-
--trees-item-git-status-color: var(--trees-git-modified-color);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
[data-item-git-status='renamed'] {
|
|
1467
|
-
--trees-item-git-status-color: var(--trees-git-renamed-color);
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
[data-item-git-status='untracked'] {
|
|
1471
|
-
--trees-item-git-status-color: var(--trees-git-untracked-color);
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
/* Drag and drop */
|
|
1475
|
-
[data-item-drag-target='true'] {
|
|
1476
|
-
background-color: var(--trees-selected-bg);
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
[data-item-dragging='true'] {
|
|
1480
|
-
opacity: 0.5;
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
/* Lock icon for locked paths (sibling of content) */
|
|
1484
|
-
[data-item-section='lock'] {
|
|
1485
|
-
flex: 0 0 auto;
|
|
1486
|
-
margin-left: auto;
|
|
1487
|
-
display: flex;
|
|
1488
|
-
align-items: center;
|
|
1489
|
-
color: var(--trees-fg-muted);
|
|
1490
|
-
}
|
|
1491
|
-
[data-item-section='lock'] svg {
|
|
1492
|
-
display: block;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
[data-type='header-slot'] {
|
|
1496
|
-
display: block;
|
|
1497
|
-
flex: 0 0 auto;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
[data-type='context-menu-wash'] {
|
|
1501
|
-
position: absolute;
|
|
1502
|
-
inset: 0;
|
|
1503
|
-
z-index: 3;
|
|
1504
|
-
background-color: transparent;
|
|
1505
|
-
touch-action: none;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
[data-type='context-menu-anchor'] {
|
|
1509
|
-
position: absolute;
|
|
1510
|
-
top: 0;
|
|
1511
|
-
right: var(--trees-context-menu-trigger-inline-offset);
|
|
1512
|
-
z-index: 4;
|
|
1513
|
-
display: none;
|
|
1514
|
-
align-items: center;
|
|
1515
|
-
|
|
1516
|
-
&[data-visible='true'] {
|
|
1517
|
-
display: flex;
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/* Hide the floating trigger while the scroll container is actively moving.
|
|
1522
|
-
* The anchor is positioned against the root, not the scroll content, so its
|
|
1523
|
-
* \`top\` follows the row via a React state update — one frame behind the
|
|
1524
|
-
* compositor. That delay is visible as the trigger hovering over the wrong
|
|
1525
|
-
* row during the first frame of a scroll. The \`data-is-scrolling\` flag on
|
|
1526
|
-
* the root is flipped synchronously on \`wheel\`/\`touchmove\`/\`keydown\` before
|
|
1527
|
-
* the compositor commits the next paint, so this selector hides the anchor
|
|
1528
|
-
* in the same frame the scroll begins. */
|
|
1529
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1530
|
-
[data-type='context-menu-anchor'] {
|
|
1531
|
-
display: none;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
[data-type='context-menu-anchor'] > slot[name='context-menu'] {
|
|
1535
|
-
display: block;
|
|
1536
|
-
width: 0;
|
|
1537
|
-
min-width: 0;
|
|
1538
|
-
flex: 0 0 0;
|
|
1539
|
-
overflow: visible;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
/* Single floating context menu trigger */
|
|
1543
|
-
[data-type='context-menu-trigger'] {
|
|
1544
|
-
all: unset;
|
|
1545
|
-
align-items: center;
|
|
1546
|
-
justify-content: center;
|
|
1547
|
-
width: var(--trees-action-lane-width);
|
|
1548
|
-
color: var(--trees-fg-muted);
|
|
1549
|
-
fill: currentColor;
|
|
1550
|
-
cursor: pointer;
|
|
1551
|
-
font-family: var(--trees-font-family);
|
|
1552
|
-
font-size: var(--trees-font-size);
|
|
1553
|
-
border-top-right-radius: var(--trees-border-radius);
|
|
1554
|
-
border-bottom-right-radius: var(--trees-border-radius);
|
|
1555
|
-
margin: var(--trees-focus-ring-width);
|
|
1556
|
-
height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
|
|
1557
|
-
border-width: 0;
|
|
1558
|
-
transition: color 120ms ease;
|
|
1559
|
-
|
|
1560
|
-
display: flex;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
[data-type='context-menu-trigger']:hover,
|
|
1564
|
-
[data-type='context-menu-trigger'][aria-expanded='true'] {
|
|
1565
|
-
color: var(--trees-fg);
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
/** @pierre/truncate css here, manually copy pasted for now */
|
|
1569
|
-
[data-truncate-container] {
|
|
1570
|
-
/* CUSTOM TO TREES, TO SUPPORT THE OUTLINE */
|
|
1571
|
-
margin-top: -1px;
|
|
1572
|
-
margin-bottom: -1px;
|
|
1573
|
-
|
|
1574
|
-
/* Width of the fade from default marker to text */
|
|
1575
|
-
--truncate-internal-marker-fade-width: var(
|
|
1576
|
-
--truncate-marker-fade-width,
|
|
1577
|
-
2px
|
|
1578
|
-
);
|
|
1579
|
-
/* Width of the solid color between the fade from the default marker to the text */
|
|
1580
|
-
--truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
|
|
1581
|
-
/* Opacity of the marker 'color' property, not of the element itself */
|
|
1582
|
-
--truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
|
|
1583
|
-
/* Opacity of the marker 'color' property specifically for the middle truncate, not opacity of the element itself */
|
|
1584
|
-
--truncate-internal-middle-marker-opacity: var(
|
|
1585
|
-
--truncate-middle-marker-opacity,
|
|
1586
|
-
80%
|
|
1587
|
-
);
|
|
1588
|
-
/* Background color of the default marker */
|
|
1589
|
-
--truncate-internal-marker-background-color: var(
|
|
1590
|
-
--truncate-marker-background-color,
|
|
1591
|
-
light-dark(white, black)
|
|
1592
|
-
);
|
|
1593
|
-
--truncate-internal-marker-background-overlay-color: var(
|
|
1594
|
-
--truncate-marker-background-overlay-color,
|
|
1595
|
-
transparent
|
|
1596
|
-
);
|
|
1597
|
-
--truncate-internal-marker-block-inset: var(
|
|
1598
|
-
--truncate-marker-block-inset,
|
|
1599
|
-
0px
|
|
1600
|
-
);
|
|
1601
|
-
/* Duration of the fade out animation for the marker */
|
|
1602
|
-
--truncate-internal-marker-fade-out-duration: var(
|
|
1603
|
-
--truncate-marker-fade-out-duration,
|
|
1604
|
-
0ms
|
|
1605
|
-
);
|
|
1606
|
-
/* Duration of the fade in animation for the marker */
|
|
1607
|
-
--truncate-internal-marker-fade-in-duration: var(
|
|
1608
|
-
--truncate-marker-fade-in-duration,
|
|
1609
|
-
100ms
|
|
1610
|
-
);
|
|
1611
|
-
|
|
1612
|
-
/* FADE Variant specifics */
|
|
1613
|
-
--truncate-internal-fade-marker-color: var(
|
|
1614
|
-
--truncate-fade-marker-color,
|
|
1615
|
-
#000
|
|
1616
|
-
);
|
|
1617
|
-
--truncate-internal-fade-marker-width: var(
|
|
1618
|
-
--truncate-fade-marker-width,
|
|
1619
|
-
0.2lh
|
|
1620
|
-
);
|
|
1621
|
-
|
|
1622
|
-
/*
|
|
1623
|
-
In some special cases people might be adding spacing in other ways
|
|
1624
|
-
that would benefit from being able to override this, however the container
|
|
1625
|
-
query below can't use this and would need to be redeclared with the overridden
|
|
1626
|
-
value. It's a bad time, but better than nothing.
|
|
1627
|
-
*/
|
|
1628
|
-
--truncate-internal-single-line-height: 1lh;
|
|
1629
|
-
|
|
1630
|
-
height: var(--truncate-internal-single-line-height);
|
|
1631
|
-
min-width: 0;
|
|
1632
|
-
overflow: hidden;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
[data-truncate-marker] {
|
|
1636
|
-
display: flex;
|
|
1637
|
-
position: absolute;
|
|
1638
|
-
height: var(--truncate-internal-single-line-height);
|
|
1639
|
-
padding-block: var(--truncate-internal-marker-block-inset);
|
|
1640
|
-
box-sizing: border-box;
|
|
1641
|
-
align-items: center;
|
|
1642
|
-
background-clip: content-box;
|
|
1643
|
-
z-index: 2;
|
|
1644
|
-
color: color-mix(
|
|
1645
|
-
in srgb,
|
|
1646
|
-
currentColor var(--truncate-internal-marker-opacity),
|
|
1647
|
-
transparent
|
|
1648
|
-
);
|
|
1649
|
-
|
|
1650
|
-
/* Core trick for hiding the marker until overflow occurs */
|
|
1651
|
-
opacity: 0;
|
|
1652
|
-
transition: opacity var(--truncate-internal-marker-fade-out-duration)
|
|
1653
|
-
ease-in-out;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
@container measure (height > 1lh) {
|
|
1657
|
-
[data-truncate-marker] {
|
|
1658
|
-
opacity: 1;
|
|
1659
|
-
transition: opacity var(--truncate-internal-marker-fade-in-duration)
|
|
1660
|
-
ease-in-out;
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
[data-truncate-grid] {
|
|
1665
|
-
display: grid;
|
|
1666
|
-
position: relative;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
[data-truncate-content='visible'] {
|
|
1670
|
-
white-space: nowrap;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
[data-truncate-content='overflow'] {
|
|
1674
|
-
opacity: 0;
|
|
1675
|
-
pointer-events: none;
|
|
1676
|
-
-webkit-user-select: none;
|
|
1677
|
-
user-select: none;
|
|
1678
|
-
word-break: break-all;
|
|
1679
|
-
margin-top: calc(-1 * var(--truncate-internal-single-line-height));
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
[data-truncate-marker-cell] {
|
|
1683
|
-
container: measure / size;
|
|
1684
|
-
overflow: visible;
|
|
1685
|
-
-webkit-user-select: none;
|
|
1686
|
-
user-select: none;
|
|
1687
|
-
pointer-events: none;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
[data-truncate-container='truncate'] {
|
|
1691
|
-
& [data-truncate-grid] {
|
|
1692
|
-
grid-template-columns: minmax(0, max-content) 0;
|
|
1693
|
-
}
|
|
1694
|
-
& [data-truncate-marker] {
|
|
1695
|
-
right: 0;
|
|
1696
|
-
}
|
|
1697
|
-
& [data-truncate-fade] {
|
|
1698
|
-
margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
[data-truncate-container='fruncate'] {
|
|
1703
|
-
& [data-truncate-grid] {
|
|
1704
|
-
grid-template-columns: 0 minmax(0, max-content) auto;
|
|
1705
|
-
}
|
|
1706
|
-
& [data-truncate-content] {
|
|
1707
|
-
direction: rtl;
|
|
1708
|
-
}
|
|
1709
|
-
& [data-truncate-content] > span {
|
|
1710
|
-
unicode-bidi: plaintext;
|
|
1711
|
-
}
|
|
1712
|
-
& [data-truncate-fade] {
|
|
1713
|
-
margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
[data-truncate-variant='default'] {
|
|
1718
|
-
& [data-truncate-marker] {
|
|
1719
|
-
background-color: var(--truncate-internal-marker-background-color);
|
|
1720
|
-
background-image: linear-gradient(
|
|
1721
|
-
var(--truncate-internal-marker-background-overlay-color),
|
|
1722
|
-
var(--truncate-internal-marker-background-overlay-color)
|
|
1723
|
-
);
|
|
1724
|
-
}
|
|
1725
|
-
& [data-truncate-marker]::after,
|
|
1726
|
-
& [data-truncate-marker]::before {
|
|
1727
|
-
content: '';
|
|
1728
|
-
position: absolute;
|
|
1729
|
-
width: calc(
|
|
1730
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1731
|
-
var(--truncate-internal-marker-gap)
|
|
1732
|
-
);
|
|
1733
|
-
inset-block-start: var(--truncate-internal-marker-block-inset);
|
|
1734
|
-
height: max(
|
|
1735
|
-
0px,
|
|
1736
|
-
calc(
|
|
1737
|
-
var(--truncate-internal-single-line-height) -
|
|
1738
|
-
var(--truncate-internal-marker-block-inset) * 2
|
|
1739
|
-
)
|
|
1740
|
-
);
|
|
1741
|
-
background-color: var(--truncate-internal-marker-background-color);
|
|
1742
|
-
background-image: linear-gradient(
|
|
1743
|
-
var(--truncate-internal-marker-background-overlay-color),
|
|
1744
|
-
var(--truncate-internal-marker-background-overlay-color)
|
|
1745
|
-
);
|
|
1746
|
-
mask-image: linear-gradient(
|
|
1747
|
-
var(--truncate-internal-fade-dir),
|
|
1748
|
-
#000 0%,
|
|
1749
|
-
#000 var(--truncate-internal-marker-gap),
|
|
1750
|
-
transparent 100%
|
|
1751
|
-
);
|
|
1752
|
-
}
|
|
1753
|
-
& [data-truncate-marker]::after {
|
|
1754
|
-
--truncate-internal-fade-dir: to right;
|
|
1755
|
-
right: calc(
|
|
1756
|
-
-1 *
|
|
1757
|
-
(
|
|
1758
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1759
|
-
var(--truncate-internal-marker-gap)
|
|
1760
|
-
)
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
& [data-truncate-marker]::before {
|
|
1764
|
-
--truncate-internal-fade-dir: to left;
|
|
1765
|
-
left: calc(
|
|
1766
|
-
-1 *
|
|
1767
|
-
(
|
|
1768
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1769
|
-
var(--truncate-internal-marker-gap)
|
|
1770
|
-
)
|
|
1771
|
-
);
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
[data-truncate-variant='fade'] {
|
|
1776
|
-
& [data-truncate-marker] {
|
|
1777
|
-
background: transparent;
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
[data-truncate-fade] {
|
|
1782
|
-
box-shadow:
|
|
1783
|
-
0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
|
|
1784
|
-
var(--truncate-internal-fade-marker-color),
|
|
1785
|
-
0 0 var(--truncate-internal-fade-marker-width)
|
|
1786
|
-
var(--truncate-internal-fade-marker-color);
|
|
1787
|
-
width: calc(var(--truncate-internal-fade-marker-width) * 2);
|
|
1788
|
-
height: calc(
|
|
1789
|
-
var(--truncate-internal-single-line-height) -
|
|
1790
|
-
(var(--truncate-internal-fade-marker-width) * 2)
|
|
1791
|
-
);
|
|
1792
|
-
margin: var(--truncate-internal-fade-marker-width) 0;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
[data-truncate-group-container='middle'] {
|
|
1796
|
-
& [data-truncate-container] {
|
|
1797
|
-
--truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
display: flex;
|
|
1801
|
-
min-width: 0;
|
|
1802
|
-
|
|
1803
|
-
& > div {
|
|
1804
|
-
min-width: 0;
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
& > div[data-truncate-segment-priority='1'] {
|
|
1808
|
-
flex: 0 1 max-content;
|
|
1809
|
-
}
|
|
1810
|
-
& > div[data-truncate-segment-priority='2'] {
|
|
1811
|
-
flex: 0 999999 max-content;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
`,Fu=`@layer base, unsafe;`;function Iu(e){return`${Fu}
|
|
1816
|
-
@layer base {
|
|
1817
|
-
${e}
|
|
1818
|
-
}`}function Lu(e){return`${Fu}
|
|
1819
|
-
@layer unsafe {
|
|
1820
|
-
${e}
|
|
1821
|
-
}`}var Ru=new WeakMap;function zu(e){let t=Ru.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(ol,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Ru.set(e,i),i}function Bu(e,t){if(!e.isConnected)return;let n=zu(t);if(n==null)return;let r=t.querySelector(`style[${sl}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(sl,``),t.appendChild(i)),i.textContent=`:host { ${cl}: ${n}px; }`}var Vu;function Hu(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){Vu??(Vu=new CSSStyleSheet,Vu.replaceSync(Iu(Pu)));let t=!1;try{e.adoptedStyleSheets=[Vu],t=!0}catch{}if(t){e.querySelector(`style[${il}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(il,``),t.textContent=Iu(Pu),e.prepend(t)}}function Uu(e,t){Wu(e,t),Hu(t),Bu(e,t)}function Wu(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});Uu(this,e)}}if(customElements.define(rl,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(rl)))e instanceof HTMLElement&&Uu(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Gu=5,Ku=1<<Gu,qu=Ku*4;function Ju(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Yu(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Xu(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function Zu(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function Qu(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function $u(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function ed(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,id(e,t)}function td(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=Zu(e).get(t);if(i===void 0)return;let a=i>>Gu;e.childVisibleChunkSums[a]+=r}function nd(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=ad(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=Ku}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function rd(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>Gu;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<Gu}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function id(e,t){if(t.childIds.length<qu){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/Ku),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>Gu]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function ad(e,t,n,r){let i=Math.min(t.childIds.length,n+Ku),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var od=7,sd=3,cd=1<<sd,ld=4;function ud(e,t,n=0){return e<<ld|n<<sd|t}function dd(e){return e.depthAndFlags>>>ld}function fd(e){return(e.depthAndFlags&cd)>>sd}function X(e){return(e.depthAndFlags&cd)!==0}function pd(e){return e.depthAndFlags&od}function md(e,t){return(pd(e)&t)!==0}function hd(e,t){e.depthAndFlags|=t}function gd(e,t){e.depthAndFlags=ud(t,pd(e),fd(e))}var _d=Symbol(`benchmarkInstrumentation`);function vd(e,t){return t==null||Object.defineProperty(e,_d,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function yd(e){return e==null?null:e[_d]??null}function Z(e,t,n){return e==null?n():e.measurePhase(t,n)}function bd(e,t,n){!Number.isFinite(n)||e==null||e.setCounter(t,n)}function xd(e){return e>=48&&e<=57}function Sd(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!xd(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&xd(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function Cd(e){let t=e.toLowerCase();return{lowerValue:t,tokens:Sd(t)}}function wd(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function Td(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==`string`&&typeof t.tokens[0]==`string`)return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;let n=wd(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function Ed(e,t,n){let r=Td(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function Dd(e,t){return Ed(e,t,Cd)}function Od(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function kd(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=Od(e,r);return a===Od(t,r)?Dd(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function Ad(e,t){return kd(e,t)}function jd(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=Cd(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=Od(e,n);return o===Od(t,n)?Ed(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function Md(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=Cd(r);return e.sortKeyById[t]=i,i}function Nd(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function Pd(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function Fd(e){let{hasTrailingSlash:t,segments:n}=Pd(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function Id(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=Pd(e);return{requiresDirectory:t,segments:n}}var Ld=``;function Rd(){let e=new Map;return e.set(Ld,0),{idByValue:e,valueById:[Ld],sortKeyById:[Cd(Ld)]}}function zd(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function Bd(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var Vd=Symbol(`pathStorePreparedInputKind`);function Hd(e,t){return e[Vd]=t,e}function Ud(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function Wd(e,t,n){return n==="default"?Ad(e,t):n(Ud(e),Ud(t))}function Gd(){return{depthAndFlags:ud(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function Kd(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function qd(e){return e.isDirectory?e.segments.length:e.segments.length-1}function Jd(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function Yd(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Xd(e,t={}){return nf(e,t).map(e=>e.path)}function Zd(e,t={}){let n=nf(e,t);return Hd({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function Qd(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return Hd({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function $d(e){let t=e,n=t.preparedPaths;if(t[Vd]===`prepared`&&n!=null)return n;if(!Jd(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function ef(e){let t=e;return t[Vd]===`presorted`&&t.presortedPaths!=null||Yd(t.presortedPaths)?t.presortedPaths:null}function tf(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function nf(e,t={}){let n=Nd(t),r=yd(t);bd(r,`workload.inputFiles`,e.length);let i=Z(r,`store.preparePathEntries.parse`,()=>e.map(e=>Fd(e)));return Z(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>Wd(e,t,n.sort))),i}var rf=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Gd()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=Rd();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=yd(e),this.options=Nd(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,Ju())}appendPaths(e){return Z(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>Fd(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,Z(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return Z(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null)if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:ud(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:ud(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:ud(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=Fd(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null)if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:ud(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:ud(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=Fd(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(Z(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||Z(this.instrumentation,`store.builder.computeSubtreeCounts`,()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&=(this.buildDirectoryIndexes(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?jd(this.lastPreparedPath,e,this.segmentSortKeyCache):Wd(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=qd(e),i=n==null?0:qd(n),a=n==null?0:Kd(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){let r=zd(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:ud(dd(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),Qu(i,s),s}createFileChildUnchecked(e,t){let n=zd(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:ud(dd(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Qu(r,a),a}getOrCreateDirectoryChild(e,t){let n=zd(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!X(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:ud(dd(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Qu(r,a),this.directories.set(a,Ju()),a}createDirectoryChild(e,t){let n=zd(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:ud(dd(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Qu(r,a),this.directories.set(a,Ju()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!X(n))throw Error(`Path is not a directory: "${t}"`);if(md(n,1))throw Error(`Duplicate path: "${t}"`);hd(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,Yu());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(X(a)){let t=Yu();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;X(n)&&this.directories.set(t,Ju());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),Qu(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!X(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return ed(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function af(e,t=`closed`,n=null){let r=sf(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r===`open`,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:``,version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function of(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function sf(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function cf(e,t){return md(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&dd(t)<=e.defaultExpansion}function lf(e,t,n=e.snapshot.nodes[t]){return n==null||!X(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:cf(e,n)}function uf(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!X(r))return;let i=cf(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function df(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function ff(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function pf(e,t){let n=df(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function mf(e,t){let n=df(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function hf(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function gf(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function _f(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function vf(e,t){e.directoryLoadInfoById.delete(t)}function yf(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function bf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function xf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function Sf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function Cf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function wf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function Tf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Ef(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`begin-child-load`,path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function Df(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Of(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`complete-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function kf(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:`fail-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function Af(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:`cleanup`,projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function jf(e,t,n){return{...n,visibleCountDelta:Hf(e)-t}}function Mf(e,t){let n=Hf(e),r=of();e.transactionStack.push(r);try{t()}catch(t){throw Ff(e,r,!1),t}Ff(e,r,!0,Hf(e)-n)}function Nf(e,t){let n=e.instrumentation;if(n==null){Pf(e,t);return}Z(n,`store.events.record`,()=>Pf(e,t))}function Pf(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){Bf(e,t);return}n.events.push(t),zf(n,t)}function Ff(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?Rf(i,t):Z(n,`store.events.batch.merge`,()=>Rf(i,t));return}let a=If(t,r),o=e.instrumentation;if(o==null){Bf(e,a);return}Z(o,`store.events.batch.commit`,()=>Bf(e,a))}function If(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function Lf(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function Rf(e,t){for(let n of t.events)e.events.push(n);Lf(e,t)}function zf(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function Bf(e,t){let n=e.instrumentation;if(n==null){Vf(e,t);return}Z(n,`store.events.emit`,()=>Vf(e,t))}function Vf(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function Hf(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function Uf(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!X(n)||md(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!X(a)?null:i}function Wf(e,t){let n=t;for(;;){let t=Uf(e,n);if(t==null)return n;n=t}}function Gf(e,t){let n=[t],r=t;for(;;){let t=Uf(e,r);if(t==null)return n;n.push(t),r=t}}function Kf(e,t){let n=t==null?e.snapshot.rootId:np(e,t);return n==null?[]:ap(e,n)}function qf(e,t){let n=Fd(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=bp(e,yp(e,r)),{createdNodeIds:a,directoryId:o}=op(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=Q(e,o);if(md(n,1))throw Error(`Path already exists: "${t}"`);hd(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=cp(e,o,n.basename),s.add(c);$f(e,o);let l=bp(e,o);return bf({affectedAncestorIds:tp(e,c),affectedNodeIds:[...s],path:t,projectionChanged:xp(i,l)})}function Jf(e,t,n){let r=np(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=Q(e,r);if(md(i,2))throw Error(`The root node cannot be removed`);if(X(i)&&ip(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=bp(e,a),s=_p(e,r);dp(e,a,r,i.nameId),vp(e,a),$f(e,a);let c=bp(e,a);return xf({affectedAncestorIds:tp(e,a),affectedNodeIds:s,path:t,projectionChanged:xp(o,c),recursive:n.recursive===!0})}function Yf(e,t,n,r){let i=np(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=Q(e,i);if(md(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=hp(e,i,n),c=bp(e,a.parentId),l=bp(e,s.parentId),u=Bd(e.snapshot.segmentTable,a.nameId),d=zd(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(X(a)&&Tp(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=Xu(e.snapshot.nodes,ip(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&gp(e,p,o,fd(a))===`skip`)return null;let m=a.parentId;dp(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),wp(e,i),up(e,s.parentId,i),vp(e,m),e.pathCacheVersion++,$f(e,m),s.parentId!==m&&$f(e,s.parentId);let h=bp(e,m),g=bp(e,s.parentId);return Sf({affectedAncestorIds:[...new Set([...tp(e,m),...tp(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:Sp([c,l],[h,g]),to:Qf(e,i)})}function Xf(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function Zf(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function Qf(e,t){let n=Q(e,t),r=Xf(e,t);if(r!=null)return r;if(md(n,2))return Zf(e,t,``);let i=Qf(e,n.parentId),a=Bd(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return Zf(e,t,X(n)?`${o}/`:o)}function $f(e,t){let n=e.instrumentation;if(n==null){Dp(e,t);return}Z(n,`store.recomputeCountsUpwardFrom`,()=>Dp(e,t))}function ep(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!X(o)){Ep(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){Ep(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function tp(e,t){let n=[],r=t;for(;r!=null;){let t=Q(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function np(e,t){if(t.length===0)return e.snapshot.rootId;let n=Id(t);return rp(e,n.segments,n.requiresDirectory)}function rp(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=ip(e,r),a=Xu(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=Q(e,r);return n&&!X(i)?null:r}function ip(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function Q(e,t){let n=e.snapshot.nodes[t];if(n===void 0||md(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function ap(e,t){let n=e.snapshot.nodes[t];if(n===void 0||md(n,4))return[];if(!X(n))return[Qf(e,t)];if(ip(e,t).childIds.length===0)return md(n,1)&&!md(n,2)?[Qf(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||md(n,4)){i.pop();continue}if(!X(n)){r.push(Qf(e,t.nodeId)),i.pop();continue}let a=ip(e,t.nodeId);if(a.childIds.length===0){md(n,1)&&!md(n,2)&&r.push(Qf(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function op(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=zd(e.snapshot.segmentTable,i),a=ip(e,r),o=Xu(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!X(Q(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=sp(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function sp(e,t,n){let r=Q(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:ud(dd(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,Ju()),up(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function cp(e,t,n){let r=zd(e.snapshot.segmentTable,n),i=ip(e,t);if(Xu(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${kp(e,t,n)}"`);let a=Q(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:ud(dd(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),up(e,t,o),e.activeNodeCount++,o}function lp(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}fp(e,n,o)<0?i=a:r=a+1}return r}function up(e,t,n){let r=ip(e,t),i=Q(e,n);Xu(e.snapshot.nodes,r).set(i.nameId,n),td(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=lp(e,r,n);r.childIds.splice(a,0,n),$u(r,a),id(e.snapshot.nodes,r)}function dp(e,t,n,r){let i=ip(e,t),a=Zu(i),o=a.get(n)??-1;Xu(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&td(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),$u(i,o),id(e.snapshot.nodes,i))}function fp(e,t,n){let r=e.snapshot.options.sort;return r==="default"?pp(e,t,n):r(mp(e,t),mp(e,n))}function pp(e,t,n){let r=Q(e,t),i=Q(e,n),a=X(r);if(a!==X(i))return a?-1:1;let o=Td(Md(e.snapshot.segmentTable,r.nameId),Md(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=Bd(e.snapshot.segmentTable,r.nameId),c=Bd(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function mp(e,t){let n=Q(e,t),r=Qf(e,t),i=X(n),a=i?r.slice(0,-1):r;return{basename:Bd(e.snapshot.segmentTable,n.nameId),depth:dd(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function hp(e,t,n){let r=Q(e,t),i=np(e,n);if(i!=null){let t=Q(e,i);if(X(t))return{basename:Bd(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=Id(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=Id(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:rp(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function gp(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${Qf(e,t)}"`);let i=Q(e,t);if(fd(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(X(i)&&ip(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return _p(e,t),dp(e,a,t,o),vp(e,a),$f(e,a),`handled`}function _p(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=Q(e,t.nodeId);if(t.visitedChildren||!X(i)){X(i)&&e.snapshot.directories.delete(t.nodeId),hd(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),vf(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=ip(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function vp(e,t){let n=t;for(;n!=null;){let t=Q(e,n);if(!X(t)||md(t,2)||ip(e,n).childIds.length>0)return;hd(t,1),n=t.parentId===n?null:t.parentId}}function yp(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;let i=Xu(e.snapshot.nodes,ip(e,n)).get(t);if(i==null||!X(Q(e,i)))break;n=i}return n}function bp(e,t){let n=Cp(e,t);if(n==null)return null;let r=Wf(e,n),i=Q(e,r),a=n===r?null:Gf(e,n).map(t=>Qf(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:ip(e,r).childIds.length>0,path:Qf(e,r),terminalKind:fd(i)})}function xp(e,t){return Sp([e],[t])}function Sp(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function Cp(e,t){let n=t;for(;n!=null;){let t=Q(e,n);if(!X(t)||md(t,2))return null;if(!lf(e,n,t))return n;n=t.parentId}return null}function wp(e,t){let n=Q(e,t);if(gd(n,(t===e.snapshot.rootId?-1:dd(Q(e,n.parentId)))+1),!X(n))return;let r=ip(e,t);for(let t of r.childIds)wp(e,t)}function Tp(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=Q(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function Ep(e,t,n=Q(e,t),r=!1){let i=e.instrumentation;if(i==null){Op(e,t,n,r);return}Z(i,`store.recomputeNodeCounts`,()=>Op(e,t,n,r))}function Dp(e,t){let n=t;for(;n!=null;){let t=Q(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(Ep(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&td(ip(e,s),n,a,o),n=s}}function Op(e,t,n,r){if(!X(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=ip(e,t);if(r){let t=e.instrumentation;t==null?ed(e.snapshot.nodes,i):Z(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>ed(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,md(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=Uf(e,t)==null?lf(e,t,n)?1+o:1:o}function kp(e,t,n){let r=Qf(e,t);return r.length===0?n:`${r}${n}`}function Ap(e){return e!=null&&!md(e,4)}function jp(e,t){let n=e.snapshot.nodes[t];return!Ap(n)||!X(n)||md(n,2)?null:n}function Mp(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&Ap(e.snapshot.nodes[n])&&(t+=1);return t}function Np(e){return Math.max(0,e.valueById.length-1)}function Pp(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:Mp(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:Np(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function Fp(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function Ip(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)jp(e,n)!=null&&t.push(Qf(e,n));for(let t of e.expandedDirectoryIds)jp(e,t)!=null&&n.push(Qf(e,t));return{collapsedPaths:t,expandedPaths:n}}function Lp(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)jp(e,n)==null||ff(e,n)===`loaded`||t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:Qf(e,n)});return t}function Rp(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=np(e,n);t!=null&&uf(e,t,!0,Q(e,t))}for(let n of t.collapsedPaths){let t=np(e,n);t!=null&&uf(e,t,!1,Q(e,t))}}function zp(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=np(e,n.path);t!=null&&jp(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function Bp(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function Vp(e){let t=e.snapshot.segmentTable,n=Rd();for(let r of e.snapshot.nodes)if(Ap(r)){if(md(r,2)){r.nameId=0;continue}r.nameId=zd(n,Bd(t,r.nameId))}e.snapshot.segmentTable=n}function Hp(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!Ap(r)||!X(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return Ap(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[Q(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),ed(e.snapshot.nodes,n)}}function Up(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(Ap(n))break;--t}e.snapshot.nodes.length=t+1}function Wp(e){let t=Ip(e),n=Lp(e);Z(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>Bp(e)),Z(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>Vp(e)),Z(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>Hp(e)),Z(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>Up(e)),Z(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>Rp(e,t)),Z(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>zp(e,n)),Z(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>ep(e,e.snapshot.rootId))}function Gp(e){let t=Ip(e),n=Lp(e),r=Z(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>Kf(e)),i=vd({...e.snapshot.options},e.instrumentation),a=Z(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new rf(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,Z(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>Rp(e,t)),Z(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>zp(e,n)),Z(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>ep(e,e.snapshot.rootId))}function Kp(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function qp(e,t){let n=Pp(e);t===`stable`?Z(e.instrumentation,`store.cleanup.stable`,()=>Wp(e)):Z(e.instrumentation,`store.cleanup.aggressive`,()=>Gp(e));let r=Pp(e);return Fp(t,t===`stable`,n,r)}var Jp=64;function Yp(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function Xp(e){return Q(e,e.snapshot.rootId).visibleSubtreeCount}function Zp(e,t,n,r){let i=Q(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function Qp(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:_m(e,t.cursor),setSize:t.setSize,subtreeEndIndex:Zp(e,t.cursor,t.index,n)}}function $p(e,t,n,r,i,a){let o=ip(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=nd(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return em(e,u,l,r+c,i+1,s,o.childIds.length,a)}function em(e,t,n,r,i,a,o,s){if(!X(Q(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=dm(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=Q(e,c.terminalNodeId);if(!X(l)||!lf(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return $p(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function tm(e,t){let n=Xp(e);if(t<0||t>=n)return null;let r=$p(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>Qf(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=Qp(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:_m(e,r.cursor),setSize:r.setSize,subtreeEndIndex:Zp(e,r.cursor,r.index,n)}}function nm(e,t,n){let r=e.instrumentation,i=Xp(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return gm(e,o+1);let t=[],n=cm(e,a);for(let r=a;r<=o&&n!=null;r++){let r=_m(e,n);t.push(r),n=pm(e,n)}return t}let s=[],c=0,l=0,u=Z(r,`store.getVisibleSlice.selectFirstRow`,()=>cm(e,a));for(let t=a;t<=o&&u!=null;t++){let t=Z(r,`store.getVisibleSlice.materializeRow`,()=>_m(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=Z(r,`store.getVisibleSlice.advanceCursor`,()=>pm(e,u))}return bd(r,`workload.visibleRowsRead`,s.length),bd(r,`workload.flattenedRowsRead`,c),bd(r,`workload.flattenedSegmentsRead`,l),s}function rm(e,t=Xp(e)){let n=e.instrumentation;return n==null?hm(e,t):Z(n,`store.getVisibleTreeProjection`,()=>hm(e,t))}function im(e){return mm(rm(e))}function am(e,t){let n=np(e,t);if(n==null||n===e.snapshot.rootId||X(Q(e,n))&&Wf(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=Q(e,i).parentId,n=ip(e,t),s=Zu(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=rd(a,n,s),t!==o){let n=Q(e,t),a=Uf(e,t);if(!lf(e,t,n)&&a!==i)return null;Wf(e,t)===t&&(r+=1)}i=t}return r}function om(e,t){let n=np(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Q(e,n);if(!X(r))throw Error(`Path is not a directory: "${t}"`);return lf(e,n,r)?null:(uf(e,n,!0,r),$f(e,n),Cf({affectedAncestorIds:tp(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function sm(e,t){let n=np(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Q(e,n);if(!X(r))throw Error(`Path is not a directory: "${t}"`);return lf(e,n,r)?(uf(e,n,!1,r),$f(e,n),wf({affectedAncestorIds:tp(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function cm(e,t){return t<0||t>=Xp(e)?null:lm(e,e.snapshot.rootId,t,-1)}function lm(e,t,n,r){let i=ip(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?nd(e.snapshot.nodes,i,n):Z(a,`store.getVisibleSlice.selectChildIndex`,()=>nd(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return um(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function um(e,t,n,r){if(!X(Q(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=dm(e,t,r);if(n===0)return i;let a=Q(e,i.terminalNodeId);if(!X(a)||!lf(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return lm(e,i.terminalNodeId,n-1,i.visibleDepth)}function dm(e,t,n){return X(Q(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:Wf(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:Z(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>Wf(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function fm(e,t){let n=Q(e,t);if(!X(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||Uf(e,r)!==t}function pm(e,t){let n=Q(e,t.terminalNodeId);if(X(n)){let r=ip(e,t.terminalNodeId);if(lf(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:um(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=Q(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=ip(e,n),o=Zu(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return um(e,s,0,i);fm(e,r)&&i--,r=n}}function mm(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??null:null,path:e.paths[r]??``,posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function hm(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(Jp);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=Yp(o,y);let x,S=_;if(X(v))S=f?Wf(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:Qf(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&X(C)&&lf(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function gm(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!X(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:Qf(e,f)};continue}let h=l?Wf(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=_m(e,g);let _=i[h];_!=null&&X(_)&&lf(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function _m(e,t){let n=Q(e,t.terminalNodeId),r=X(n)?vm(e,t):null,i=Qf(e,t.terminalNodeId),a=Bd(e.snapshot.segmentTable,n.nameId),o=X(n)&&ip(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?Gf(e,t.headNodeId).map(n=>{let r=Q(e,n);return{isTerminal:n===t.terminalNodeId,name:Bd(e.snapshot.segmentTable,r.nameId),nodeId:n,path:Qf(e,n)}}):Z(c,`store.getVisibleSlice.flatten.collectSegments`,()=>Gf(e,t.headNodeId).map(n=>{let r=Q(e,n);return{isTerminal:n===t.terminalNodeId,name:Bd(e.snapshot.segmentTable,r.nameId),nodeId:n,path:Qf(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:X(n)&&lf(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:X(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function vm(e,t){if(t.headNodeId===t.terminalNodeId)return ff(e,t.terminalNodeId);let n=Gf(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=ff(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}function ym(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!X(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&id(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&X(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,id(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function bm(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var xm=class e{#e;constructor(e={}){let t=yd(e),n=Z(t,`store.builder.create`,()=>new rf(e));if(e.preparedInput!=null){let t=ef(e.preparedInput);t==null?n.appendPreparedPaths($d(e.preparedInput),!1):n.appendPresortedPaths(t,tf(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(Z(t,`store.preparePathEntries`,()=>nf(r,e)))}let r=Z(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=Z(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=Z(t,`store.state.create`,()=>af(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:Z(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||bm(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&Z(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?Z(t,`store.state.initializeOpenVisibleCounts`,()=>ym(this.#e)):Z(t,`store.state.recomputeCounts`,()=>ep(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return Xd(e,t)}static prepareInput(e,t={}){return Zd(e,t)}static preparePresortedInput(e){return Qd(e)}list(e){return Z(this.#e.instrumentation,`store.list`,()=>Kf(this.#e,e))}add(e){Z(this.#e.instrumentation,`store.add`,()=>{let t=Xp(this.#e);Nf(this.#e,jf(this.#e,t,qf(this.#e,e)))})}remove(e,t={}){Z(this.#e.instrumentation,`store.remove`,()=>{let n=Xp(this.#e);Nf(this.#e,jf(this.#e,n,Jf(this.#e,e,t)))})}move(e,t,n={}){Z(this.#e.instrumentation,`store.move`,()=>{let r=Xp(this.#e),i=Yf(this.#e,e,t,n);i!=null&&Nf(this.#e,jf(this.#e,r,i))})}batch(e){Mf(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision});break}})}getVisibleCount(){return Z(this.#e.instrumentation,`store.getVisibleCount`,()=>Xp(this.#e))}getVisibleSlice(e,t){return Z(this.#e.instrumentation,`store.getVisibleSlice`,()=>nm(this.#e,e,t))}getVisibleRowContext(e){return Z(this.#e.instrumentation,`store.getVisibleRowContext`,()=>tm(this.#e,e))}getVisibleTreeProjection(){return im(this.#e)}getVisibleTreeProjectionData(e){return rm(this.#e,e)}getVisibleIndex(e){return Z(this.#e.instrumentation,`store.getVisibleIndex`,()=>am(this.#e,e))}getPathInfo(e){return Z(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=np(this.#e,e);if(t==null)return null;let n=Q(this.#e,t);return{depth:dd(n),kind:X(n)?`directory`:`file`,path:Qf(this.#e,t)}})}isExpanded(e){return Z(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=Q(this.#e,t);return lf(this.#e,t,n)})}expand(e){Z(this.#e.instrumentation,`store.expand`,()=>{let t=Xp(this.#e),n=om(this.#e,e);n!=null&&Nf(this.#e,jf(this.#e,t,n))})}collapse(e){Z(this.#e.instrumentation,`store.collapse`,()=>{let t=Xp(this.#e),n=sm(this.#e,e);n!=null&&Nf(this.#e,jf(this.#e,t,n))})}on(e,t){return yf(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return ff(this.#e,t)}markDirectoryUnloaded(e){Z(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(ip(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=Xp(this.#e);mf(this.#e,t),Nf(this.#e,jf(this.#e,n,Tf({affectedAncestorIds:tp(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return Z(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=Xp(this.#e),r=pf(this.#e,t);return Nf(this.#e,jf(this.#e,n,Ef({affectedAncestorIds:tp(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return Z(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||ff(this.#e,n)!==`loading`||!gf(this.#e,n,e.attemptId))return!1;let r=Qf(this.#e,n);this.validateChildPatch(r,t);let i=Xp(this.#e),a=[];for(let e of t.operations){Sm(r,e);let t=Xp(this.#e);switch(e.type){case`add`:a.push(jf(this.#e,t,qf(this.#e,e.path)));break;case`remove`:a.push(jf(this.#e,t,Jf(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=Yf(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(jf(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return Nf(this.#e,jf(this.#e,i,Df({affectedAncestorIds:tp(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:Qf(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return Z(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=Xp(this.#e),r=hf(this.#e,t,e.attemptId);return Nf(this.#e,jf(this.#e,n,Of({affectedAncestorIds:tp(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:Qf(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return Z(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=Xp(this.#e),i=_f(this.#e,n,e.attemptId,t);return Nf(this.#e,jf(this.#e,r,kf({affectedAncestorIds:tp(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:Qf(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return Z(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(Kp(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=Xp(this.#e),n=qp(this.#e,e.mode??`stable`);return Nf(this.#e,jf(this.#e,t,Af({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=ip(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??Cd(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=Td(Md(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!X(Q(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=Q(this.#e,n);lf(this.#e,n,i)||(uf(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=Q(this.#e,e);if(!lf(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=np(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!X(Q(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!X(Q(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=Q(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=Q(this.#e,e),r=Uf(this.#e,e);if(!lf(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function Sm(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case`move`:if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`);break}}var Cm=e=>e.startsWith(`f::`)?e.slice(3):e;function wm(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Tm(e,t){return e===``?t:`${e}/${t}`}function Em({files:e,path:t,isFolder:n,nextBasename:r}){let i=Cm(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=wm(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=Tm(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function Dm(e){return e.endsWith(`/`)}function Om(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function km(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function Am(e,t){return t.includes(e)?km(t):[e]}function jm(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function Mm(e,t){return{draggedPaths:e,target:t}}function Nm(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(Dm(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function Pm(e,t){return t.kind===`root`||t.directoryPath==null?Om(e):t.directoryPath}function Fm(e,t){let n=e.map(e=>{let n=Pm(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}var Im=Symbol(`FILE_TREE_RENAME_VIEW`);function Lm(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}var Rm=512,zm=512;function Bm(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Vm(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Hm(e){return Vm(e).at(-1)??null}function Um(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}var Wm=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},Gm=e=>e.toLowerCase();function Km(e){return e.endsWith(`/`)}function qm(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Jm(e){return e.endsWith(`/`)?e.slice(0,-1):e}function Ym(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}function Xm(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function Zm(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function Qm(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return Zm(e,t.path)?n?e:null:e;case`move`:return Xm(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=Qm(r,e,n),r==null)return null;return r}}}function $m(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function eh(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function th(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!eh(xm.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function nh(e){switch(e.operation){case`add`:return{...$m(e),operation:`add`,path:e.path};case`remove`:return{...$m(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...$m(e),from:e.from,operation:`move`,to:e.to}}}function rh(e){return{...$m(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>nh(e)),operation:`batch`}}function ih(e){switch(e.operation){case`add`:case`remove`:case`move`:return nh(e);case`batch`:return rh(e);default:return null}}function ah(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=Vm(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function oh(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:ah(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var sh=class{#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=new Set;#z=0;#B;#V=0;#H=!1;#U=0;#W;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=th({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#B=this.#se(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ae(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#R=new Set(d),this.#L=f,this.#z=1),this.#Oe(f,!1),r!=null&&this.#Se(r,!1),this.#W=this.#Fe()}destroy(){this.#W?.(),this.#W=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#pe()}focusFirstItem(){this.#ve().length>0&&this.#Me(0)}focusLastItem(){this.#U<=0||(this.#Ne(),this.#Me(this.#U-1))}focusNextItem(){this.#De(1)}focusParentItem(){if(this.#c==null)return;let e=Hm(this.#c);if(e==null)return;let t=this.#Y(e);t>=0&&this.#Me(t)}focusPath(e){let t=this.#B.getPathInfo(e)?.path??null;if(t==null)return;this.#Ne();let n=this.#Y(t);n>=0&&this.#Me(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Y(t);return n>=0?(this.#Me(n),this.#ve()[n]??t):null}focusPreviousItem(){this.#De(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#X(this.#c)}getFocusedPath(){return this.#c}resolveNearestVisiblePath(e){let t=this.#ve();if(this.#U===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#B.getPathInfo(e)?.path??e,r=this.#Y(n);return r>=0?t[r]??n:this.#J(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#R]}getSelectionVersion(){return this.#z}getVisibleCount(){return this.#U}getVisibleRows(e,t){if(t<e||this.#U===0)return[];let n=Math.max(0,e),r=Math.min(this.#U-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=zm){let e=[];for(let t=n;t<=r;t+=1){let n=this.#B.getVisibleRowContext(t);if(n==null)break;e.push(this.#Q(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ne(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#ye(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#B.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#ye(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#Z(o,i,a,{ancestorPaths:this.#te(a),path:s})})}return this.#B.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#Z(e,r,r,{ancestorPaths:this.#te(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#U===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#U;r+=1){let i=e+r*t,a=Math.min(this.#U-1,Math.floor(i/t)),o=this.#$(a,r)??(a>0?this.#$(a-1,r):void 0);if(o==null)break;n.push({row:this.#Q(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#B.getPathInfo(e);return t==null?null:this.#X(t.path,t)}selectAllVisiblePaths(){this.#Ne();let e=[...this.#ve()];this.#re(e,this.#c??this.#L)}selectOnlyPath(e){let t=this.#Ae(e);t!=null&&this.#re([t],t)}selectPath(e){let t=this.#Ae(e);t==null||this.#R.has(t)||this.#re([...this.#R,t])}deselectPath(e){let t=this.#Ae(e);t==null||!this.#R.has(t)||this.#re([...this.#R].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ae(e);if(t!=null){if(this.#R.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ae(e);if(t!=null){if(this.#R.has(t)){this.#re([...this.#R].filter(e=>e!==t),t);return}this.#re([...this.#R,t],t)}}selectPathRange(e,t){let n=this.#Ae(e);if(n==null)return;this.#Ne();let r=this.#L,i=r==null?-1:this.#be(r),a=this.#be(n);if(i===-1||a===-1){let e=t?[...this.#R,n]:[n];this.#re(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#ve().slice(o,s+1),l=t?[...this.#R,...c]:c;this.#re(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#U-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ne();let r=this.#ve(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#R);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#re([...o],this.#L??i,!1),this.#Me(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ae(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=Am(t,n);return this.#r.canDrag?.(r)===!1?!1:(n.includes(t)||this.#re([t],t,!1),this.#je(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#we(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=Mm(t.draggedPaths,n);(Nm(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}jm(t.target,n)||(this.#i={...t,target:n},this.#we())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#we())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#we(),!1;let n=Mm(e.draggedPaths,t);if(Nm(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#we(),!1;let r=Fm(e.draggedPaths,t);if(r==null)return this.#we(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#B.move(e.from,e.to,{collision:e.collision})}else this.#oe(r.operations),this.#B.batch(r.operations)}catch(e){return this.#we(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#B.add(e)}remove(e,t={}){this.#B.remove(e,t)}move(e,t,n={}){this.#B.move(e,t,n)}batch(e){this.#B.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Se(e,!0)}openSearch(e=``){this.#Se(e,!0)}closeSearch(){this.#Se(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#xe(1)}focusPreviousSearchMatch(){this.#xe(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#B.getPathInfo(e);if(n==null)return!1;let r=n.path,i=Km(r),a=Jm(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of Vm(r))this.#B.isExpanded(e)||this.#B.expand(e);return this.#re([r],r,!1),this.#M!=null&&(this.#Se(null,!1),this.#y?.(this.#M)),this.#je(r),this.#T=r,this.#E=qm(r),this.#D=t.removeIfCanceled??!1,this.#we(),!0}[Im](){return{cancel:()=>{this.#G()},commit:()=>{this.#K()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#q(e)}}}#G(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,Km(e)?{recursive:!0}:void 0);return}this.#je(e),this.#we()}#K(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,Km(e)?{recursive:!0}:void 0);return}let t=Km(e),n=Em({files:this.#B.list(),isFolder:t,nextBasename:this.#E,path:Jm(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#je(e),this.#v?.(n.error),this.#we();return}if(n.sourcePath===n.destinationPath){this.#je(e),this.#we();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(Ym(n.sourcePath,t),Ym(n.destinationPath,t))}#q(e){this.#T==null||this.#E===e||(this.#E=e,this.#we())}resetPaths(e,t={}){let n=this.#B.list().length,r=this.#U,i=th({paths:e,preparedInput:t.preparedInput},`resetPaths`,this.#e.sort),a=this.#se(i.paths,i.preparedInput,t.initialExpandedPaths),o=this.#c,s=this.#T,c=this.getSelectedPaths(),l=this.#L;this.#W?.(),this.#B=a,this.#d.clear(),this.#pe();let u=c.map(e=>a.getPathInfo(e)?.path??null).filter(e=>e!=null),d=!Bm(this.#R,u);this.#R=new Set(u),d&&(this.#z+=1),this.#L=l==null?null:a.getPathInfo(l)?.path??null,this.#T=s==null?null:a.getPathInfo(s)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#Oe(o,o!=null||u.length>0||this.#L!=null),this.#W=this.#Fe(),this.#we(),this.#Te({canonicalChanged:!0,operation:`reset`,pathCountAfter:i.paths.length,pathCountBefore:n,projectionChanged:!0,usedPreparedInput:t.preparedInput!=null,visibleCountDelta:this.#U-r})}#J(e){this.#Ne();let t=Hm(e),n=Um(e,t),r=null,i=null;for(let e of this.#ve()){if(Hm(e)!==t)continue;let a=Um(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Y(e){let t=this.#be(e);if(t!==-1)return t;let n=Vm(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#be(t);if(r!==-1)return r}return this.#ve().length>0?0:-1}#X(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#B.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#ie(r.path):this.#ae(r.path);return this.#d.set(r.path,i),i}#Z(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#R.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#Q(e){return this.#Z(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#$(e,t){let n=this.#B.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ee(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ee(n),n];return this.#a.set(e,r),r}#te(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ee(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ne(e){this.#B.collapse(e)}#re(e,t=this.#L,n=!0){let r=[...new Set(e)],i=!Bm(this.#R,r),a=this.#L!==t;!i&&!a||(this.#R=new Set(r),this.#L=t,i&&(this.#z+=1),n&&this.#we())}#ie(e){return{collapse:()=>{this.#ne(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#Ee(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#B.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#R.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#Ie(e)}}}#ae(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#R.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#oe(e){let t=this.#B.list();this.#se(t).batch(e)}#se(e,t,n){return new xm({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ce(){return this.#h??=this.#B.list(),this.#h}#le(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ce()){e.add(t);for(let n of Vm(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#ue(){return this.#g??=this.#ce().map(Gm),this.#g}#de(){return this.#f??=this.#le().filter(e=>e.endsWith(`/`)),this.#f}#fe(){return this.#p??=this.#de().map(Gm),this.#p}#pe(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#me(){return this.#de().filter(e=>this.#B.isExpanded(e))}#he(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#R)for(let n of Vm(e))t.add(n);this.#ge(t)}#ge(e){this.#H=!0;try{for(let t of this.#de()){let n=e.has(t),r=this.#B.isExpanded(t);n&&!r?this.#B.expand(t):!n&&r&&this.#B.collapse(t)}}finally{this.#H=!1}}#_e(){let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#M==null||this.#M.length===0||this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#U=this.#V;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#U=n.length}#ve(){return this.#I??this.#b}#ye(e){return this.#F?.[e]??e}#be(e){return this.#P?.get(e)??this.#B.getVisibleIndex(e)??-1}#xe(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Se(e,t){let n=e==null?null:Wm(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#me()),this.#M=n,n==null)this.#he(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#Oe(this.#c,!0);else if(n.length===0)this.#he(!1),this.#O.clear(),this.#N=null,this.#Oe(this.#c,!0);else{let e=this.#Ce();this.#Oe(e,!0)}t&&(this.#y?.(this.#M),this.#we())}}#Ce(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ce(),n=this.#ue(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#de(),s=this.#fe();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of Vm(e))l.add(t),c?.add(t)}return this.#ge(l),a??this.#c}#we(){for(let e of this.#t)e()}#Te(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#Ee(e){for(let t of Vm(e))this.#B.isExpanded(t)||this.#B.expand(t);this.#B.isExpanded(e)||this.#B.expand(e)}#De(e){let t=this.#U;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ne(),this.#Me(r))}#Oe(e,t=!0){let n=this.#B.getVisibleCount();this.#V=n;let r=oh(this.#B.getVisibleTreeProjectionData(t?void 0:Math.min(n,Rm)),e,t?e=>this.#B.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#_e(),this.#s=e==null?this.#ve().length>0?0:-1:this.#Y(e),this.#c=this.#s<0?null:this.#ke(this.#s)}#ke(e){return this.#ve()[e]??(this.#F==null?this.#B.getVisibleRowContext(e)?.row.path??null:null)}#Ae(e){return this.#B.getPathInfo(e)?.path??null}#je(e){if(e==null)return;let t=this.#Y(e);t>=0&&this.#Me(t,!1)}#Me(e,t=!0){let n=this.#ke(e);n!=null&&(this.#s===e&&this.#c===n||(this.#s=e,this.#c=n,t&&this.#we()))}#Ne(){this.#l||this.#Oe(this.#c,!0)}#Pe(e){let t=Qm(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=Qm(this.#c,e,!0),r=[...this.#R].map(t=>Qm(t,e)).filter(e=>e!=null).map(e=>this.#B.getPathInfo(e)?.path??null).filter(e=>e!=null),i=Qm(this.#L,e),a=i==null?null:this.#B.getPathInfo(i)?.path??null,o=[...new Set(r)];return Bm(this.#R,o)||(this.#R=new Set(o),this.#z+=1),this.#L=a,n}#Fe(){return this.#B.on(`*`,e=>{if(this.#H)return;e.canonicalChanged&&(this.#d.clear(),this.#pe()),this.#i!=null&&Lm(e)&&(this.#i=null);let t=Lm(e)?this.#Pe(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ce():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#Oe(n,r),this.#we();let i=ih(e);i!=null&&this.#Te(i)})}#Ie(e){if(this.#B.isExpanded(e)){this.#ne(e);return}this.#Ee(e)}},ch=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function lh(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(!(e[t]===`/`||t===e.length)){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function uh(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function dh(e,t){return t?`${e}/`:e}function fh(e,t=null){let n=ch(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set;for(let t of e??[]){let e=lh(t.path);if(e==null)continue;let n=dh(e.path,e.isDirectory);r.set(n,t.status),t.status===`ignored`&&e.isDirectory?a.add(n):e.isDirectory&&a.delete(n);for(let t of uh(e.path))i.add(t)}return{directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}var ph=e=>e.trim().toLowerCase(),mh=e=>e.split(`/`).at(-1)??e,hh=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function gh(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function _h(e){let t=Au(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(ph(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let n=mh(o),s=n.toLowerCase(),c=r.get(s);if(c!=null)return gh(c,e);for(let[t,n]of a)if(s.includes(t))return gh(n,e);let l=hh(n);for(let t of l){let n=i.get(t);if(n!=null)return gh(n,e)}let u=Ou(t.set,n,l);if(u!=null&&t.set!==`none`)return{name:Eu(u),remappedFrom:e,token:u}}let s=n?.[e];return s==null?{name:e}:gh(s,e)}}}var vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh={},kh=[],Ah=Array.isArray,jh=kh.slice,Mh=Object.assign;function Nh(e){e&&e.parentNode&&e.remove()}function Ph(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?jh.call(arguments,2):n),Fh(e,o,r,i,null)}function Fh(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++yh,__i:-1,__u:0};return i==null&&vh.vnode!=null&&vh.vnode(a),a}function Ih(e){return e.children}function Lh(e,t){this.props=e,this.context=t,this.__g=0}function Rh(e,t){if(t==null)return e.__?Rh(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?Rh(e):null}function zh(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return zh(e)}}function Bh(e){(8&e.__g||!(e.__g|=8)||!bh.push(e)||Sh++)&&xh==vh.debounceRendering||((xh=vh.debounceRendering)||queueMicrotask)(Vh)}function Vh(){for(var e,t,n,r,i,a,o,s,c=1;bh.length;)bh.length>c&&bh.sort(Ch),e=bh.shift(),c=bh.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=Mh({},r)).__v=r.__v+1,vh.vnode&&vh.vnode(n),Yh(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??Rh(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,Zh(a,n,o),n.__e!=i&&zh(n)));Sh=0}function Hh(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||kh,b=t.length;for(c=Uh(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?Oh:y[m.__i]||Oh,m.__i=f,_=Yh(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&eg(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=Wh(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function Uh(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?Fh(null,o,null,null,null):Ah(o)?Fh(Ih,{children:o},null,null,null):o.constructor==null&&o.__b>0?Fh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=Gh(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Rh(s)),tg(s,s));return r}function Wh(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=Wh(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Rh(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Gh(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function Kh(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function qh(e,t,n,r,i){var a;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||Kh(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||Kh(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(wh,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=Th,e.addEventListener(t,a?Dh:Eh,a)):e.removeEventListener(t,a?Dh:Eh,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Jh(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=Th++;else if(t.u<n.l)return;return n(vh.event?vh.event(t):t)}}}function Yh(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=vh.__b)&&d(t);n:if(typeof M==`function`)try{if(v=t.props,y=`prototype`in M&&M.prototype.render,b=(d=M.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new M(v,x):(t.__c=f=new Lh(v,x),f.constructor=M,f.render=ng),b&&b.sub(f),f.props=v,f.state||={},f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&M.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Mh({},f.__s)),Mh(f.__s,M.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&M.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&M.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=vh.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=Mh({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===Ih&&d.key==null&&(E=Qh(d.props.children)),s=Hh(e,Ah(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null)if(e.then){for(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(j=a.length;j--;)Nh(a[j]);Xh(t)}else t.__e=n.__e,t.__k=n.__k,e.then||Xh(t);vh.__e(e,t,n)}else s=t.__e=$h(n.__e,t,n,r,i,a,o,c,l,u);return(d=vh.diffed)&&d(t),128&t.__u?void 0:s}function Xh(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(Xh)}function Zh(e,t,n){for(var r=0;r<n.length;r++)eg(n[r],n[++r],n[++r]);vh.__c&&vh.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){vh.__e(e,t.__v)}})}function Qh(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Ah(e)?e.map(Qh):Mh({},e)}function $h(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(vh.__m&&vh.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=jh.call(e.childNodes),v=n.props||Oh,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;qh(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||qh(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),Hh(b==`template`?e.content:e,Ah(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Rh(n,0),s,c,l),a!=null)for(u=a.length;u--;)Nh(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||qh(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&qh(e,u,g,v[u],i))}return e}function eg(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){vh.__e(e,n)}}function tg(e,t,n){var r,i;if(vh.unmount&&vh.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||eg(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){vh.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tg(r[i],t,n||typeof e.type!=`function`);n||Nh(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function ng(e,t,n){return this.constructor(e,n)}function rg(e,t){var n,r,i,a;t==document&&(t=document.documentElement),vh.__&&vh.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=Ph(Ih,null,[e]),i=[],a=[],Yh(t,e,r||Oh,Oh,t.namespaceURI,r?null:t.firstChild?jh.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),Zh(i,e,a)}function ig(e,t){e.__u|=32,rg(e,t)}vh={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw Sh=0,e}},yh=0,Lh.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Mh({},this.state);typeof e==`function`&&(e=e(Mh({},n),this.props)),e&&Mh(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Bh(this))},Lh.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),Bh(this))},Lh.prototype.render=Ih,bh=[],Sh=0,Ch=function(e,t){return e.__v.__b-t.__v.__b},wh=/(PointerCapture)$|Capture$/i,Th=0,Eh=Jh(!1),Dh=Jh(!0);var ag=0;Array.isArray;function $(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ag,__i:-1,__u:0,__source:i,__self:a};return vh.vnode&&vh.vnode(l),l}var og=16,sg=16,cg={};function lg({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=cg[e]??{width:og,height:sg},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return $(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:$(`use`,{href:c})})}var ug=e=>{if(e.length<2)return[e,``];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]},dg=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},fg=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},pg=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},mg=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},hg=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function gg({children:e,marker:t,variant:n=`default`}){"use no memo";return $(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:$(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?$(`span`,{"data-truncate-fade":!0}):t})})}function _g(e){"use no memo";let{mode:t,children:n}=e;return $(`div`,{children:[$(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?$(`span`,{children:n}):n}),$(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?$(`span`,{children:n}):n})]})}function vg({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=$(_g,{mode:t,children:e},`content`),o=$(gg,{marker:n,mode:t,variant:r},`marker`),s=$(`div`,{"data-truncate-fill":!0},`fill`);return $(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:$(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function yg({children:e,...t}){"use no memo";return $(vg,{mode:`truncate`,...t,children:e})}function bg({children:e,...t}){"use no memo";return $(vg,{mode:`fruncate`,...t,children:e})}function xg({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=$(yg,{...s,children:t[0]}),l=$(bg,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return $(`div`,{className:a,style:o});if(e.length<i)return $(n===`end`?bg:yg,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=ug:r===`extension`?t=dg:r===`leaf-path`&&(t=fg);else if(typeof r==`number`)t=pg,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=mg:e===`first`&&(t=hg)}else typeof r==`function`&&(t=r);t??=ug;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=$(yg,{...s,..._,children:f}),l=$(bg,{...s,...v,children:p})}return $(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[$(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),$(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var Sg={endIndex:-1,startIndex:-1};function Cg(e,t,n){return Math.min(Math.max(e,t),n)}function wg(e,t){return e<0||t<e?Sg:{endIndex:t,startIndex:e}}function Tg(e){return e.startIndex<0||e.endIndex<e.startIndex}function Eg(e,t){return Tg(e)?0:(e.endIndex-e.startIndex+1)*t}function Dg(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function Og(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function kg(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function Ag(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function jg(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function Mg(e,t,n){if(e.length===0||t<=0)return[];let r=jg(e),i=kg(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=Ag(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function Ng(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=Cg(t.scrollTop,0,o),c=t.stickyRows??Mg(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=Dg(s,n,t.itemHeight),m=Dg(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?Sg:wg(m,Og(u+d,n,t.itemHeight)),y=g+1,b=Tg(v)?Sg:wg(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=Eg(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:Tg(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var Pg={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},Fg={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},Ig=`Contains git status items`;function Lg(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function Rg(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function zg(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}function Bg(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function Vg(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}var Hg,Ug,Wg,Gg,Kg=Object.is,qg=0,Jg=[],Yg=vh,Xg=Yg.__b,Zg=Yg.__r,Qg=Yg.diffed,$g=Yg.__c,e_=Yg.unmount,t_=Yg.__;function n_(e,t){Yg.__h&&Yg.__h(Ug,e,qg||t),qg=0;var n=Ug.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function r_(e){return qg=1,i_(g_,e)}function i_(e,t,n){var r=n_(Hg++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):g_(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);Kg(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ug,!Ug.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,Kg(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};Ug.__f=!0;var a=Ug.shouldComponentUpdate,o=Ug.componentWillUpdate;Ug.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},Ug.shouldComponentUpdate=i}return r.__N||r.__}function a_(e,t){var n=n_(Hg++,3);!Yg.__s&&h_(n.__H,t)&&(n.__=e,n.u=t,Ug.__H.__h.push(n))}function o_(e,t){var n=n_(Hg++,4);!Yg.__s&&h_(n.__H,t)&&(n.__=e,n.u=t,Ug.__h.push(n))}function s_(e){return qg=5,c_(function(){return{current:e}},[])}function c_(e,t){var n=n_(Hg++,7);return h_(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function l_(e,t){return qg=8,c_(function(){return e},t)}function u_(){for(var e;e=Jg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(p_),e.__H.__h.forEach(m_),e.__H.__h=[]}catch(t){e.__H.__h=[],Yg.__e(t,e.__v)}}Yg.__b=function(e){Ug=null,Xg&&Xg(e)},Yg.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),t_&&t_(e,t)},Yg.__r=function(e){Zg&&Zg(e),Hg=0;var t=(Ug=e.__c).__H;t&&(Wg===Ug?(t.__h=[],Ug.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(p_),t.__h.forEach(m_),t.__h=[],Hg=0)),Wg=Ug},Yg.diffed=function(e){Qg&&Qg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Jg.push(t)!==1&&Gg===Yg.requestAnimationFrame||((Gg=Yg.requestAnimationFrame)||f_)(u_)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Wg=Ug=null},Yg.__c=function(e,t){t.some(function(e){try{e.__h.forEach(p_),e.__h=e.__h.filter(function(e){return!e.__||m_(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],Yg.__e(n,e.__v)}}),$g&&$g(e,t)},Yg.unmount=function(e){e_&&e_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{p_(e)}catch(e){t=e}}),n.__H=void 0,t&&Yg.__e(t,n.__v))};var d_=typeof requestAnimationFrame==`function`;function f_(e){var t,n=function(){clearTimeout(r),d_&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);d_&&(t=requestAnimationFrame(n))}function p_(e){var t=Ug,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Ug=t}function m_(e){var t=Ug;e.__c=e.__(),Ug=t}function h_(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!Kg(t,e[n])})}function g_(e,t){return typeof t==`function`?t(e):t}function __(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function v_(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function y_({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return $(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function b_(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:$(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return $(Ih,{children:[$(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:$(yg,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function x_(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function S_(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function C_(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function w_({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=Ng(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:C_(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?C_(u,1,t,o):i&&r<=0&&c.length>0?Mg(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var T_=400,E_=10,D_=40,O_=18;function k_(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?A_(e,t,n):a instanceof HTMLElement?a:null}function A_(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function j_(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function M_(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function N_(){return navigator.vendor!==`Apple Computer, Inc.`}function P_(e,t){let n=e-t.top;if(n<D_)return-Math.ceil((D_-Math.max(0,n))/D_*O_);let r=t.bottom-e;return r<D_?Math.ceil((D_-Math.max(0,r))/D_*O_):0}function F_(e,t){if(e!=null){let t=Pg[e];return t==null?null:{text:t,title:Fg[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:Ig}:null}function I_(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function L_(e){return e!=null&&`toggle`in e}function R_(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function z_(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function B_(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function V_(e,t){return e!=null&&e>0?e:t}function H_(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function U_(e,t,n,r,i=0){let a=Bg({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a==null?!1:(e.scrollTop=a,!0)}function W_(e,t,n,r,i,a){let o=Vg({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o==null?!1:(e.scrollTop=o,!0)}function G_(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function K_(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function q_(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function J_(e,t){return t&&q_(e)||(e.ctrlKey||e.metaKey)&&R_(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var Y_=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function X_(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function Z_(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function Q_(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function $_(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function ev(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function tv(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function nv(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function rv(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function iv(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=rv(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function av(e,t){return{kind:e.kind,name:S_(e),path:t}}function ov(e){return e==null?void 0:`${e}__tree`}function sv(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function cv(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function lv(e,t){if(e==null)return null;if(`text`in e)return $(`span`,{title:e.title,children:e.text});let n=typeof e.icon==`string`?cv(e.icon)?t(e.icon):{name:e.icon}:cv(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return $(`span`,{title:e.title,children:$(lg,{...n})})}function uv(e){e!=null&&__(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function dv(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=x_(e);return $(Ih,{children:[e.depth>0?$(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>$(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,$(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?$(lg,{...t(`file-tree-icon-chevron`)}):$(lg,{...t(`file-tree-icon-file`,u)})}),$(`div`,{"data-item-section":`content`,children:e.isFlattened?b_(e,c,a):c??$(xg,{minimumLength:5,split:`extension`,children:e.name})}),i?$(`div`,{"data-item-section":`decoration`,children:r==null?null:lv(r,t)}):null,s?$(`div`,{"data-item-section":`git`,children:lv(o,t)}):null,n?$(`div`,{"data-item-section":`action`,children:l?$(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:$(lg,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function fv(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:j,onRowClick:M,onKeyDown:N}=e,P=x_(t),{isParked:F=!1,mode:I=`flow`,style:L}=r,R=I===`sticky`,ee=_?.get(P)??null??I_(t.ancestorPaths,v,y),te=t.kind===`directory`&&(b?.has(P)??!1),z=A(t,P),ne=F_(ee,te),B=S&&w,re=z!=null||x||B,ie=B&&T===`always`,V=a.getPath()===P,ae=V?a.getValue():``,oe=R||!V?null:$(y_,{ref:D,ariaLabel:`Rename ${S_(t)}`,isFlattened:t.isFlattened,value:ae,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),se=dv(t,k,{actionLaneEnabled:B,customDecoration:z,decorationLaneEnabled:re,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:ne,gitLaneActive:x,renameInput:oe,showDecorativeActionAffordance:ie}),ce={...Rg({ariaLabel:S_(t),domId:t.isFocused?sv(h,P,F):void 0,extraStyle:L,features:{actionLaneEnabled:B,contextMenuButtonVisibility:B?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:F,itemHeight:g,mode:I,row:t,state:{containsGitChange:te,effectiveGitStatus:ee,isContextHovered:s===P,isDragTarget:l?.kind===`directory`&&l.directoryPath===P,isDragging:c?.has(P)===!0,isFocusRinged:t.isFocused&&o===P},targetPath:P}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusPath(P),j(t,P,{anchorRect:Q_(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:R?void 0:()=>{i.focusPath(P)},onKeyDown:R?void 0:N,ref:e=>{O(P,e)}};return!R&&V?$(`div`,{...ce,children:se}):$(`button`,{...ce,type:`button`,draggable:u&&!F,onDragEnd:u&&!F?p:void 0,onDragStart:u&&!F?e=>{f(e,t,P)}:void 0,onMouseDown:e=>{if(R){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!F?e=>{m(e,t,P)}:void 0,onClick:e=>{M(e,t,P,I)},children:se})}function pv(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(x_(e))).map((n,r)=>fv(e,n,t.start+r))}function mv({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=Nu,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=s_(null),v=s_(null),y=s_(!1),b=s_(null),x=s_(null),S=s_(null),C=s_(null),w=s_(null),T=s_(new Map),E=s_(new Map),D=s_(()=>{}),O=s_(null),k=s_(!1),A=s_(null),j=s_(null),M=s_(!1),N=s_(null),P=s_(null),F=s_(null),I=s_(null),L=s_(null),R=s_(null),ee=s_(null),te=s_(null),z=s_(!1),ne=s_(null),B=s_(null),re=s_(null),ie=s_(null),V=c_(()=>new Map,[]),[,ae]=r_(0),[oe,se]=r_(null),[ce,le]=r_(null),[ue,de]=r_(null),[fe,pe]=r_(null),[me,he]=r_(0),[H,ge]=r_(null),_e=s_(H);_e.current=H;let ve=s_(null),ye=s_(null),be=s_(null),xe=s_(null),Se=s_(null),Ce=s_(!1),we=()=>{ye.current=null,be.current=null,xe.current=null},Te=(e,t)=>{ye.current=e,be.current=null,xe.current=t==null?null:{path:e,scrollTop:t}},Ee=(e,t)=>{ye.current=null,be.current={path:e,viewportOffset:t},xe.current=null},De=s_(d===`retain`&&t.isSearchOpen()),[Oe,ke]=r_(p);a_(()=>{p||ke(!1)},[p]);let Ae=s_(!1),U=l_(()=>{Ae.current=!0,ke(e=>e&&!1)},[]),[je,Me]=r_(()=>w_({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Ne,Pe]=r_(!1);a_(()=>{Pe(!0)},[]);let Fe=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ie=e?.contextMenu?.triggerMode??(Fe?`right-click`:`both`),Le=Ie===`both`||Ie===`button`,Re=e?.contextMenu?.buttonVisibility??`when-needed`,ze=Ie===`both`||Ie===`right-click`;o_(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Se.current=t,le(t),pe(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Ce.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Be=l_((e,t)=>{ev(T.current,e,t)},[]),Ve=l_((e,t)=>{ev(E.current,e,t)},[]),He=l_(e=>{x.current=e},[]),Ue=l_(e=>tv(e,E.current,T.current),[]),We=n!=null||r!=null||i!=null,{resolveIcon:Ge}=c_(()=>_h(a),[a]),Ke=t[Im](),qe=Ke.getPath(),Je=qe!=null,Ye=t.isSearchOpen(),Xe=t.getSearchValue(),Ze=t.getFocusedPath(),Qe=t.getFocusedIndex(),W=t.isDragAndDropEnabled(),$e=t.getDragSession(),et=c_(()=>$e==null?null:new Set($e.draggedPaths),[$e]),G=$e?.target??null,tt=$e?.primaryPath??null,K=ov(o),{overlayHeight:nt,overlayRows:rt,snapshot:it,visibleRows:at}=je,ot=it.physical.viewportHeight,st=c_(()=>({end:it.window.endIndex,start:it.window.startIndex}),[it.window.endIndex,it.window.startIndex]),ct=rt,lt=it.sticky.rows,ut=it.physical.totalHeight,dt=it.sticky.height,ft=c_(()=>new Set(lt.map(e=>x_(e.row))),[lt]),pt=Qe>=0&&Qe>=st.start&&Qe<=st.end,mt=l_((e,t)=>u?.({item:av(e,t),row:e})??null,[u]),ht=l_(e=>__(e==null?null:T.current.get(e)??null)?!0:__(S.current),[]),gt=l_(e=>{ht(t.focusNearestPath(e))},[t,ht]),_t=s_(gt);_t.current=gt;let vt=s_(!0),yt=s_(()=>{}),bt=l_((t=!0)=>{let n=_e.current;n!=null&&(vt.current=vt.current&&t,ge(null),e?.contextMenu?.onClose?.(),vt.current&>(n.path))},[e?.contextMenu,gt]);yt.current=bt;let xt=l_(e=>{let t=e==null?null:$_(S.current,e);de(e=>e===t?e:t)},[]),St=l_((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Ue(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Te(n,e?.scrollTop??null),k.current=!0,se(e=>e===n?e:n)}i.focus(),xt(a),vt.current=!0,ge({anchorRect:r?.anchorRect??null,item:av(e,n),path:n,source:r?.source??`keyboard`})},[t,Ue,xt]),Ct=l_(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=B_(e,ot);N.current=Qe<0||e==null?null:Math.max(0,Math.min(Qe*s-e.scrollTop,Math.max(0,t-s))),M.current=!0}t.startRenaming(e)!==!1&&(pe(`focus`),ae(e=>e+1))}},[t,Qe,s,l,ot]),wt=l_((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=B_(i,ot),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:w_({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return k.current=!0,W_(i,a,s,l,u,d),D.current(),ve.current=n?e:null,!0},[t,s,c,ot,h]),Tt=()=>y.current===!0||ie.current!=null||z.current===!0,Et=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Dt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Ot=()=>{I.current!=null&&(clearTimeout(I.current),I.current=null),F.current=null},kt=()=>{R.current?.remove(),R.current=null},At=()=>{Dt(P.current),P.current=null,L.current=null},jt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Mt=()=>{te.current?.(),te.current=null,ie.current!=null&&(clearTimeout(ie.current),ie.current=null),z.current=!1,ne.current=null,re.current=null,B.current!=null&&(B.current.setAttribute(`draggable`,`true`),B.current.style.removeProperty(`touch-action`),B.current=null),kt(),Ot(),At(),ee.current=null},Nt=(e,n)=>{let r=S.current?.getRootNode(),i=j_(k_(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Pt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Ot();return}let r=t.getItem(e.directoryPath),i=L_(r)?r:null;if(i==null||i.isExpanded()){Ot();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;F.current!==a&&(Ot(),F.current=a,I.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind!==`directory`||n.directoryPath!==e.directoryPath||n.flattenedSegmentPath!==e.flattenedSegmentPath||i.expand()},n))},Ft=()=>{P.current=null;let e=L.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=P_(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,D.current()),Pt(Nt(e.clientX,e.clientY)),P.current=Et(Ft)},It=(e,t)=>{L.current={clientX:e,clientY:t},P.current??=Et(Ft)},Lt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Mt(),kt(),Ot(),At(),t.startDrag(r)===!1){e.preventDefault();return}if(ee.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),N_())){let t=M_(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),jt(t),R.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Rt=()=>{kt(),Ot(),At(),ee.current=null,t.cancelDrag()},zt=(e,n,r)=>{if(ie.current!=null||z.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;re.current={clientX:i.clientX,clientY:i.clientY},B.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!z.current;ie.current!=null&&(clearTimeout(ie.current),ie.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),te.current===o&&(te.current=null),t&&(a.setAttribute(`draggable`,`true`),B.current===a&&(B.current=null),re.current=null)},s=e=>{let t=e.touches[0],n=re.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=E_*E_||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),te.current=o,ie.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),B.current===a&&(B.current=null),re.current=null;return}z.current=!0,B.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),ee.current=n;let e=a.getBoundingClientRect(),s=M_(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),jt(s),R.current=s,ne.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=ne.current;n!=null&&R.current!=null&&(R.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Pt(Nt(t.clientX,t.clientY)),It(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Nt(n.clientX,n.clientY),t.completeDrag(),Mt()},u=()=>{t.cancelDrag(),Mt()};te.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},T_)},Bt=e=>{if(H!=null){if(e.key===`Escape`){bt(),e.preventDefault(),e.stopPropagation();return}Y_.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Ke.isActive()){if(e.key===`Escape`)Ke.cancel();else if(e.key===`Enter`)Ke.commit();else return;pe(`focus`),ae(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ct(Ze??void 0),e.preventDefault(),e.stopPropagation();return}if(Ye){if(e.key===`Escape`)M.current=!1,N.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=B_(n,ot);N.current=Qe<0||n==null?null:Math.max(0,Math.min(Qe*s-n.scrollTop,Math.max(0,r-s))),M.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;pe(`focus`),ae(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&z_(e)){t.openSearch(e.key),ae(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Fe&&q_(e),r=J_(e,Fe),i=r&&S.current!=null?v_(S.current):null,a=r?new Set(nv(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==Ze&&a.has(o)){let e=C.current;Te(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=L_(p)?p:null,h=u!=null&&(ft.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=tv(u,E.current,T.current);e==null||n==null?y=!1:St(e,u)}else if((e.ctrlKey||e.metaKey)&&R_(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;pe(`focus`);let b=t.getFocusedPath(),x=b!=null&&(ft.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Te(b,v?.scrollTop??null),k.current=!0,se(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Ee(b,iv(S.current,v,i,u,s,dt,ot)),k.current=!0,se(e=>e===b?e:b)):we()}ae(e=>e+1),e.preventDefault(),e.stopPropagation()};o_(()=>{if(!(!f||!Ye)){if(De.current){De.current=!1;return}__(w.current)}},[Ye,f]),o_(()=>{let e=x.current;switch(Lg({hasRenderedInput:e!=null,previousRenamingPath:j.current,renamingPath:qe})){case`reset`:j.current=null;return;case`reveal-canonical`:qe!=null&&wt(qe,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(ve.current=null,j.current=qe,__(e),e.select());return}},[st.end,st.start,qe,wt,ft]),o_(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=v_(e)?.dataset.itemPath??null;se(e=>e===t?e:t)},i=()=>{n(),k.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,v_(e)!=null){r();return}k.current=!1,se(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),k.current=!1,se(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;se(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),o_(()=>{let e=S.current;e!=null&&(it.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[it.physical.scrollTop]),o_(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=B_(n,g);let a=()=>{let e=t.getVisibleCount(),r=V_(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Me(w_({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};D.current=a;let o=!1,l=t.subscribe(()=>{o?ae(e=>e+1):o=!0,a()}),u=()=>{Ce.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,he(e=>e+1),e=null},50))},d=null,f=()=>{i!=null&&delete i.dataset.overlayReveal,d!=null&&(clearTimeout(d),d=null)},p=()=>{i==null||Ce.current===!0||n.scrollTop>0||(i.dataset.overlayReveal=`true`,d!=null&&clearTimeout(d),d=setTimeout(()=>{f()},200))},m=()=>{if(a(),n.scrollTop>0&&f(),_e.current!=null&&y.current&&yt.current(),Ce.current===!0){y.current=!1;return}le(e=>e==null?e:null),u()},_=()=>{u(),p()},v=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),x=e=>{v.has(e.key)&&_()};n.addEventListener(`scroll`,m,{passive:!0}),n.addEventListener(`wheel`,_,{passive:!0}),n.addEventListener(`touchmove`,_,{passive:!0}),n.addEventListener(`keydown`,x);let w=typeof ResizeObserver<`u`?new ResizeObserver(e=>{O.current=(e[0]==null?null:H_(e[0]))??B_(n,g),a()}):null;return w?.observe(n),()=>{D.current=()=>{},l(),n.removeEventListener(`scroll`,m),n.removeEventListener(`wheel`,_),n.removeEventListener(`touchmove`,_),n.removeEventListener(`keydown`,x),e!=null&&clearTimeout(e),d!=null&&clearTimeout(d),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,O.current=null,w?.disconnect()}},[t,g,s,c,h]),o_(()=>{Fe||H==null||bt(!1)},[bt,Fe,H]);let Vt=c_(()=>H==null?null:`${H.path}::${H.source}`,[H]);o_(()=>{if(Vt==null){m?.clearSlotContent(ul);return}let t=_e.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??Z_(n.getBoundingClientRect()),close:e=>{yt.current(e?.restoreFocus??!0)},restoreFocus:()=>{vt.current&&_t.current(_e.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(ul,i),e?.contextMenu?.onOpen?.(t.item,r),uv(i),queueMicrotask(()=>{i==null||!i.isConnected||document.activeElement===i&&uv(i)}),()=>{m?.clearSlotContent(ul)}},[Vt,e?.contextMenu,m]),o_(()=>{H!=null&&t.getItem(H.path)==null&&bt()},[bt,H,t]),o_(()=>{if(H==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(X_(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&bt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),bt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[bt,H]),o_(()=>{let e=C.current,t=S.current;if(e==null||t==null){A.current=Ze;return}let n=Ze==null?null:T.current.get(Ze)??null,r=v_(t),i=r?.dataset.itemPath??null,a=Je&&x.current===r,o=f&&w.current===r,c=M.current&&!Ye,l=N.current??0,u=ve.current,d=ye.current,p=be.current,m=xe.current,h=r!=null,g=k.current||h,_=A.current!==Ze,v=d!=null&&d===Ze&&Ze!=null,y=c&&W_(e,Qe,s,ot,ut,l),b=u!=null&&u===Ze&&W_(e,Qe,s,ot,ut,dt),E=p!=null&&p.path===Ze&&W_(e,Qe,s,ot,ut,p.viewportOffset),O=m!=null&&m.path===Ze&&e.scrollTop!==m.scrollTop;if(O&&(e.scrollTop=m.scrollTop),(O||b||E||y||g&&_&&u!==Ze&&!v&&U_(e,Qe,s,ot,dt))&&D.current(),!g){A.current=Ze;return}if(a){A.current=Ze;return}if(o&&!c){A.current=Ze;return}if(n==null){c&&Qe>=0&&(W_(e,Qe,s,ot,ut,l),D.current()),A.current=Ze;return}(_||c||u===Ze||d===Ze||p?.path===Ze||m?.path===Ze||i==null||i!==Ze)&&(__(n),u===Ze&&(ve.current=null),d===Ze&&(ye.current=null),p?.path===Ze&&(be.current=null),m?.path===Ze&&(xe.current=null),M.current=!1,N.current=null),A.current=Ze},[t,Qe,Ze,pt,s,Je,Ye,st,ot,f,dt,ut,at]);let Ht=Qe>=0&&Qe>=it.visible.startIndex&&Qe<=it.visible.endIndex,Ut=Ze!=null&&ct.some(e=>x_(e.row)===Ze),Wt=Ht||Ut,Gt=Le&&k.current===!0&&Wt?Ze:null,Kt=fe===`pointer`?ce:null,qt=H?.path??Se.current??Kt??Gt??ce,Jt=H?.source===`right-click`;o_(()=>{y.current&&H==null||xt(Ue(qt))},[H,Ue,st,ot,me,ct,qt,xt,at]);let Yt=l_(e=>{if(y.current||X_(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&pe(e=>e===`pointer`?e:`pointer`),le(e=>e===i?e:i)},[]),Xt=l_(()=>{le(null)},[]);o_(()=>{if(!W)return;let e=()=>{Mt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Mt(),t.cancelDrag()}},[t,W]);let Zt=e=>{if(!W||t.getDragSession()==null||z.current)return;let n=j_(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Pt(t.getDragSession()?.target??null),It(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},Qt=e=>{if(!W||t.getDragSession()==null||z.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Ot(),At(),t.setDragTarget(null))},$t=e=>{!W||t.getDragSession()==null||z.current||(e.preventDefault(),Nt(e.clientX,e.clientY),t.completeDrag(),kt(),Ot(),At(),ee.current=null)},en=it.window.height,tn=it.window.offsetTop,nn=Math.min(0,ot-en-dt),rn=oe===Ze||M.current,an=Ze!=null&&rn&&!pt&&Qe>=0?at[Qe]??t.getVisibleRows(Qe,Qe)[0]??null:null,on=an==null?null:G_(Qe,s,st,en),q=ee.current,sn=tt!=null&&q!=null&&q.path===tt&&q.index>=st.start&&q.index<=st.end,cn=tt!=null&&q!=null&&q.path===tt&&!sn&&q.path!==an?.path?q:null,ln=cn==null?null:G_(cn.index,s,st,en),un=K_((Qe>=0?at[Qe]??t.getVisibleRows(Qe,Qe)[0]??null:null)?.ancestorPaths.at(-1)??null),dn=Ye&&Ze!=null?sv(o,Ze,!pt):void 0,fn=H?.path??(Ye?Ze:oe),pn=H?.path??ce,mn=Ue(qt),hn=Fe&&Le&&!Jt&&!Je&&mn!=null&&ue!=null&&qt!=null,gn=Fe&&(hn||H!=null),_n=H?.anchorRect,vn=_n==null&&mn!=null&&ue!=null&&(H!=null||hn)?ue:null,yn=_n==null?vn==null?void 0:{top:`${vn}px`}:{left:`${_n.left}px`,position:`fixed`,right:`auto`,top:`${_n.top}px`},bn=Jt?{opacity:`0`}:void 0,xn=l_((e,n,r,i)=>{let a=t.getItem(r),o=zg({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:t.isSearchOpen(),mode:i});switch(o.selection.kind){case`range`:t.selectPathRange(r,o.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(r);break;case`single`:t.selectOnlyPath(r);break}let s=e.currentTarget instanceof HTMLElement?e.currentTarget:null,c=n.index>=it.visible.startIndex&&n.index<=it.visible.endIndex,l=i===`flow`&&c&&s!=null&&s.dataset.itemParked!==`true`;a?.focus(),l&&(k.current=!0,se(e=>e===r?e:r),pe(`focus`)),o.toggleDirectory&&L_(a)&&a.toggle(),o.closeSearch&&t.closeSearch(),o.revealCanonical&&wt(r,{targetOffset:`sticky-parents`})},[t,it.visible.endIndex,it.visible.startIndex,wt]),Sn=()=>{if(y.current||!Le||qt==null||mn==null)return;let e=t.getItem(qt);e!=null&&(xt(mn),vt.current=!0,ge({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:mn.getAttribute(`aria-label`)??qt,path:e.getPath()},path:e.getPath(),source:`button`}))},Cn={contextHoverPath:pn,contextMenuButtonTriggerEnabled:Le,contextMenuButtonVisibility:Re,contextMenuEnabled:Fe,contextMenuRightClickEnabled:ze,contextMenuTriggerMode:Ie,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:W,draggedPathSet:et,dragTarget:G,gitLaneActive:We,gitStatusByPath:n,handleRowDragEnd:Rt,handleRowDragStart:Lt,handleRowTouchStart:zt,ignoredGitDirectories:r,ignoredInheritanceCache:V,instanceId:o,itemHeight:s,onKeyDown:Bt,onRowClick:xn,openContextMenuForRow:St,registerButton:Be,registerRenameInput:He,renameView:Ke,renderDecorationForRow:mt,resolveIcon:Ge,shouldSuppressContextMenu:Tt,visualFocusPath:fn},wn={...Cn,registerButton:Ve};return $(`div`,{ref:S,id:K,"data-file-tree-context-menu-button-visibility":Fe&&Le?Re:void 0,"data-file-tree-context-menu-trigger-mode":Fe?Ie:void 0,"data-file-tree-has-context-menu-action-lane":Fe&&Le?`true`:void 0,"data-file-tree-has-git-lane":We?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:W?Qt:void 0,onDragOver:W?Zt:void 0,onDrop:W?$t:void 0,onKeyDown:Bt,onPointerLeave:Fe?Xt:void 0,onPointerOver:Fe?Yt:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[$(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:un}}),$(`slot`,{name:ll,"data-type":`header-slot`}),f?$(`div`,{"data-file-tree-search-container":!0,"data-open":Ye?`true`:`false`,children:$(`input`,{ref:w,"aria-activedescendant":dn,"aria-controls":K,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Oe?`true`:void 0,value:Xe,onBlur:()=>{d===`retain`&&!Ae.current||t.closeSearch()},onFocus:U,onPointerDown:U,onInput:e=>{U();let n=e.currentTarget;t.setSearch(n.value)}})}):null,$(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Ne&&ct.length>0?$(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:$(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${nt}px`},children:ct.map((e,t)=>fv(wn,e.row,`sticky:${x_(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${ct.length-t}`}}))})}):null,$(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${ut}px`},children:[$(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${tn}px`}}),$(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${en}px`,top:`${nn}px`,bottom:`${nn}px`},children:[pv(Cn,st,ft),an!=null&&on!=null?fv(Cn,an,`parked:${an.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:tt===an.path?`none`:void 0,position:`absolute`,right:`0`,top:`${on}px`}}):null,cn!=null&&ln!=null?fv(Cn,cn,`parked-drag:${cn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${ln}px`}}):null]})]})]}),Fe?$(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":gn?`true`:`false`,style:yn,children:[$(`button`,{ref:v,type:`button`,"data-type":dl,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":H==null?`false`:`true`,"data-visible":hn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),H!=null){bt();return}Sn()},tabIndex:-1,style:bn,children:$(lg,{...Ge(`file-tree-icon-ellipsis`)})}),H==null?null:$(`slot`,{name:ul})]}):null,H==null?null:$(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),bt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),bt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var hv={hydrateRoot:(e,t)=>{ig(Ph(mv,t),e)},renderRoot:(e,t)=>{rg(Ph(mv,t),e)},unmountRoot:e=>{rg(null,e)}};function gv(e,t){hv.renderRoot(e,t)}function _v(e,t){hv.hydrateRoot(e,t)}function vv(e){hv.unmountRoot(e)}var yv=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};Array.isArray;var bv=0;function xv(e){return e!=null&&e.length>0?e:(bv+=1,`pst_ft_${bv}`)}function Sv({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??Nu)}function Cv(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function wv(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function Tv(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var Ev=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new yv;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=xv(a),this.#p=fh(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=Mu(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new sh({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(vv(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){this.#t.resetPaths(e,t)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),gv(t.wrapper,this.#w()))}setGitStatus(e){this.#p=fh(e,this.#p);let t=this.#T();t!=null&&gv(t.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),gv(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),_v(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),gv(r,this.#w())}#C(){return{initialViewportHeight:Sv({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(ll,e());return}this.#l.setSlotHtml(ll,this.#e?.header?.html??null)}#k(e){let t=Tv(e).find(e=>wv(e)),n=Cv(Tu(Au(this.#m).set));n!=null&&(t!=null&&t.outerHTML===n.outerHTML||(t==null?e.prepend(n):t.replaceWith(n)))}#A(e){let t=Tv(e),n=t.find(e=>wv(e)),r=t.filter(e=>e!==n),i=Au(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=Cv(i);if(a==null){for(let e of r)e.remove();return}if(!(r.length===1&&r[0].outerHTML===a.outerHTML)){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=Au(this.#m);t.colored&&Du(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${al}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}this.#g?.parentNode===e&&this.#_===this.#h||(this.#g??=document.createElement(`style`),this.#g.setAttribute(al,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=Lu(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return Uu(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}};function Dv(e){let t=(0,u.useRef)(null);return t.current??=new Ev(e),(0,u.useEffect)(()=>{let e=t.current;return()=>{e?.cleanUp(),t.current=null}},[]),{model:t.current}}export{s as _,Rc as a,uc as c,ks as d,Es as f,l as g,Te as h,Kc as i,Ks as l,St as m,_l as n,vc as o,qa as p,el as r,hc as s,Dv as t,Gs as u};
|