@void/platform 0.21.1 → 0.21.3

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.
@@ -7,7 +7,7 @@
7
7
  Error generating stack: `+e.message+`
8
8
  `+e.stack}}var Ne=Object.prototype.hasOwnProperty,Pe=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,Le=t.unstable_requestPaint,Re=t.unstable_now,ze=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,Ve=t.unstable_UserBlockingPriority,He=t.unstable_NormalPriority,V=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,H=null,Ke=null;function qe(e){if(typeof We==`function`&&Ge(e),Ke&&typeof Ke.setStrictMode==`function`)try{Ke.setStrictMode(H,e)}catch{}}var Je=Math.clz32?Math.clz32:Ze,Ye=Math.log,Xe=Math.LN2;function Ze(e){return e>>>=0,e===0?32:31-(Ye(e)/Xe|0)|0}var Qe=256,$e=262144,et=4194304;function tt(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&-e;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 nt(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=tt(n))):i=tt(o):i=tt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=tt(n))):i=tt(o)):i=tt(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 rt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Je(n),i=1<<r;t|=e[r],n&=~i}return t}function at(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 ot(){var e=et;return et<<=1,!(et&62914560)&&(et=4194304),e}function st(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ct(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lt(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-Je(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&&U(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function U(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Je(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Je(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(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 pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=B.p;return e===0?(e=window.event,e===void 0?32:kh(e.type)):e}function ht(e,t){var n=B.p;try{return B.p=e,t()}finally{B.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,W=`__reactHandles$`+gt,St=`__reactResources$`+gt,Ct=`__reactMarker$`+gt,wt=`__reactLoad$`+gt;function Tt(e){delete e[_t],delete e[vt],delete e[xt],delete e[W]}function Et(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vm(e);e!==null;){if(n=e[_t])return n;e=vm(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function kt(e){var t=e[St];return t||=e[St]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[Ct]=!0}function jt(e){e[wt]=void 0}var Mt=new Set,Nt={};function Pt(e,t){Ft(e,t),Ft(e+`Capture`,t)}function Ft(e,t){for(Nt[e]=t,e=0;e<t.length;e++)Mt.add(t[e])}var It=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]*$`),Lt={},Rt={};function zt(e){return Ne.call(Rt,e)?!0:Ne.call(Lt,e)?!1:It.test(e)?Rt[e]=!0:(Lt[e]=!0,!1)}var Bt=!1;function Vt(){var e=Bt;return Bt=!1,e}function Ht(e,t,n){if(zt(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 Ut(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 Wt(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 Gt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function qt(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 Jt(e){if(!e._valueTracker){var t=Kt(e)?`checked`:`value`;e._valueTracker=qt(e,t,``+e[t])}}function Yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Xt=/[\n"\\]/g;function Zt(e){return e.replace(Xt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Qt(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=``+Gt(t)):e.value!==``+Gt(t)&&(e.value=``+Gt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):en(e,Gt(n)):o===`number`&&e.value==t?en(e,Gt(e.value)):en(e,Gt(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=``+Gt(s):e.removeAttribute(`name`)}function $t(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)){Jt(e);return}n=n==null?``:``+Gt(n),t=t==null?n:``+Gt(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),Jt(e)}function en(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function tn(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=``+Gt(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 nn(e,t,n){if(t!=null&&(t=``+Gt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Gt(n)}function rn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(de(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Gt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Jt(e)}function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var on=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 sn(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||on.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function cn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Bt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(sn(e,a,r),Bt=!0)}else for(var o in t)t.hasOwnProperty(o)&&sn(e,o,t[o])}function ln(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 un=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`],[`maskType`,`mask-type`],[`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`]]),dn=/^[\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 fn(e){return dn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function pn(){}var mn=null;function hn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gn=null,_n=null;function G(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Qt(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="`+Zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[vt]||null;if(!a)throw Error(i(90));Qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Yt(r)}break a;case`textarea`:nn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var vn=!1;function yn(e,t,n){if(vn)return e(t,n);vn=!0;try{return e(t)}finally{if(vn=!1,(gn!==null||_n!==null)&&(Hd(),gn&&(t=gn,e=_n,_n=gn=null,G(t),e)))for(t=0;t<e.length;t++)G(e[t])}}function bn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var xn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Sn=!1;if(xn)try{var Cn={};Object.defineProperty(Cn,"passive",{get:function(){Sn=!0}}),window.addEventListener(`test`,Cn,Cn),window.removeEventListener(`test`,Cn,Cn)}catch{Sn=!1}var wn=null,Tn=null,En=null;function Dn(){if(En)return En;var e,t=Tn,n=t.length,r,i=`value`in wn?wn.value:wn.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 En=i.slice(e,1<r?1-r:void 0)}function On(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 kn(){return!0}function An(){return!1}function jn(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)?kn:An,this.isPropagationStopped=An,this}return D(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=kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=jn(Mn),Pn=D({},Mn,{view:0,detail:0}),Fn=jn(Pn),In,Ln,Rn,zn=D({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,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!==Rn&&(Rn&&e.type===`mousemove`?(In=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=In=0,Rn=e),In)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=jn(zn),Vn=jn(D({},zn,{dataTransfer:0})),Hn=jn(D({},Pn,{relatedTarget:0})),Un=jn(D({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=jn(D({},Mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=jn(D({},Mn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={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`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=jn(D({},Pn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=On(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?On(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?On(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=jn(D({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=jn(D({},Mn,{submitter:0})),er=jn(D({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=jn(D({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=jn(D({},zn,{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})),rr=jn(D({},Mn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=xn&&`CompositionEvent`in window,or=null;xn&&`documentMode`in document&&(or=document.documentMode);var sr=xn&&`TextEvent`in window&&!or,cr=xn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=Dn(),En=Tn=wn=null,pr=!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 cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){gn?_n?_n.push(r):_n=[r]:gn=r,t=$f(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){Gf(e,0)}function Sr(e){if(Yt(Ot(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(xn){var Tr;if(xn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,hn(e)),yn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(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(!Ne.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(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=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(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=Lr(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=Lr(e.document)}return t}function Hr(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 Ur=xn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(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}),Kr&&Ir(Kr,r)||(Kr=r,r=$f(Gr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};xn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Pt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=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)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[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&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(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-Je(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Md)throw Md=0,Nd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(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 Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(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&1206910976,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 ki(e,t){e.flags&=1206910978;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 Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=$m(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ne:return e=Ei(31,n,t,a),e.elementType=ne,e.lanes=o,e;case j:return ji(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ei(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case ee:return e=Ei(13,n,t,a),e.elementType=ee,e.lanes=o,e;case L:return e=Ei(19,n,t,a),e.elementType=L,e.lanes=o,e;case re:case ae:return e=a|32,e=Ei(30,n,t,e),e.elementType=ae,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case I:s=11;break a;case te:s=14;break a;case R:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:Me(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:Me(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Je(r)-1;r&=~(1<<i),n+=1;var a=32-Je(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Je(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Kf(`cancel`,t),Kf(`close`,t);break;case`iframe`:case`object`:case`embed`:Kf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Uf.length;n++)Kf(Uf[n],t);break;case`source`:Kf(`error`,t);break;case`img`:case`image`:case`link`:Kf(`error`,t),Kf(`load`,t);break;case`details`:Kf(`toggle`,t);break;case`input`:Kf(`invalid`,t),$t(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Kf(`invalid`,t);break;case`textarea`:Kf(`invalid`,t),rn(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||ap(t.textContent,n)?(r.popover!=null&&(Kf(`beforetoggle`,t),Kf(`toggle`,t)),r.onScroll!=null&&Kf(`scroll`,t),r.onScrollEnd!=null&&Kf(`scrollend`,t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||yp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=_m(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=_m(e)}else t===27?(t=Qi,Op(e.type)?(e=gm,gm=null,Qi=e):Qi=t):Qi=Zi?hm(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=he(null),da=null,fa=null;function pa(e,t,n){_e(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,ge(ua)}function ha(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 ga(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ha(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ha(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function _a(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===xe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ph]:e.push(ph))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=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()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=Rf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(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 za=z.S;z.S=function(e,t){if(vd=Re(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=wf;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=wf;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=he(null);function Va(){var e=Ba.current;return e===null?ed.pooledCache:e}function Ha(e,t){t===null?_e(Ba,Ba.current):_e(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(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(pn,pn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(pn,pn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ao(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===R&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(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=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case A:return t=Pi(t,e.mode,n),t.return=e,t;case R:return t=Xa(t),f(e,t,n)}if(de(t)||ce(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===F)return f(e,xa(e,t),n);io(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 k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case R:return n=Xa(n),p(e,t,n,r)}if(de(n)||ce(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===F)return p(e,t,xa(e,n),r);io(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case R:return r=Xa(r),m(e,t,n,r,i)}if(de(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===F)return m(e,t,n,xa(t,r),i);io(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(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(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===R&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case R:return o=Xa(o),_(e,r,o,c)}if(de(o))return h(e,r,o,c);if(ce(o)){if(l=ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,no(o),c);if(o.$$typeof===F)return _(e,r,xa(e,o),c);io(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(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 fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$u&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(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,ut(e,n)}}function ho(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 go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!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?(q&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:co=!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),ld|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=he(null),So=he(0);function Co(e,t){e=sd,_e(So,e),_e(xo,t),sd=e|t.baseLanes}function wo(){_e(So,sd),_e(xo,xo.current)}function To(){sd=So.current,ge(xo),ge(So)}var Eo=he(null),Do=null;function Oo(e){var t=e.alternate;_e(No,No.current&1),_e(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){_e(No,No.current),_e(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(_e(No,No.current),_e(Eo,e),Do===null&&(Do=e)):jo()}function jo(){_e(No,No.current),_e(Eo,Eo.current)}function Mo(e){ge(Eo),Do===e&&(Do=null),ge(No)}var No=he(0);function Po(e,t){_e(Eo,Eo.current),_e(No,t)}function Fo(e){ge(No),ge(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fm(n)||pm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){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 Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?fc:pc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){z.H=dc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||Ac||(e=e.dependencies,e!==null&&va(e)&&(Ac=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=mc,o=t(n,r)}while(Ho);return o}function $o(){var e=z.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?fc:pc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===oe)return;if(e.$$typeof===F)return ba(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.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=as(),Ro.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]=ie;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Lo&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ro.lanes|=p,ld|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ro.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(Ac=!0,d&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(Ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,Ac=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(i(349));o||Lo&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function vs(e){var t=xi(e,2);t!==null&&Ld(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){qe(!0);try{n()}finally{qe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(K(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};z.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=z.T,o={};o.types=a===null?null:a.types,z.T=o;try{var s=n(i,r),c=z.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),z.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if($i){var n=ed.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;){if(!a){i=null;break b}if(i=hm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=hm(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,Ro,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.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 Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if($u&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(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 Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Lo&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),Ro.lanes|=e,ld|=e,n)}function Ys(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(q&261930)?(Ac=!0,e.memoizedState=n):(e=Fd(),Ro.lanes|=e,ld|=e,t):(e=Js(e,n,r),Fr(e,t)||(Ac=!0),e)}function Xs(e,t,n,r,i){var a=B.p;B.p=a!==0&&8>a?a:8;var o=z.T,s={};s.types=o===null?null:o.types,z.T=s,cc(e,!1,t,n);try{var c=i(),l=z.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Ra(c,r),Pd(e)):sc(e,t,r,Pd(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{B.p=a,o!==null&&s.types!==null&&(o.types=s.types),z.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,fe,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Pd())}function tc(){return ba(ph)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=fo(n);var r=po(t,e,n);r!==null&&(Ld(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},K(e)?lc(t,n):(n=bi(e,t,n,r),n!==null&&(Ld(n,e,r),uc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Pd())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(K(e))lc(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,Fr(s,o))return yi(e,t,i,0),ed===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Ld(n,e,r),uc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},K(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Ld(t,e,2)}function K(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function lc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var dc={readContext:ba,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},fc={readContext:ba,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){qe(!0);try{n(t)}finally{qe(!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=ac.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ed===null)throw Error(i(349));q&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=ed.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if($u&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},pc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},mc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Ld(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Ld(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Ld(t,e,n),mo(t,e,n))}};function _c(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?!Ir(n,r)||!Ir(i,a):!0}function vc(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&&gc.enqueueReplaceState(t,t.state,null)}function yc(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function bc(e){mi(e)}function xc(e){console.error(e)}function Sc(e){mi(e)}function Cc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function wc(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 Tc(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){Cc(e,t)},n}function Ec(e){return e=fo(e),e.tag=3,e}function Dc(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(){wc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){wc(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Oc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Yd():n.alternate===null&&cd===0&&(cd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),vf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?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)),vf(e,r,a)),!1}throw Error(i(435,n.tag))}return vf(e,r,a),Yd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Tc(e.stateNode,r,a),ho(e,a),cd!==4&&(cd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),md===null?md=[o]:md.push(o),cd!==4&&(cd=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Tc(n.stateNode,r,e),ho(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ec(a),Dc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var kc=Error(i(461)),Ac=!1;function jc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Mc(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 ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!Ac?(ts(e,t,i),ol(e,t,i)):($i&&s&&Ji(t),t.flags|=1,jc(e,t,r,i),t.child)}function Nc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Pc(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!sl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return ol(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Pc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(Ac=!1,t.pendingProps=r=a,sl(e,i))e.flags&131072&&(Ac=!0);else return t.lanes=e.lanes,ol(e,t,i)}}return Hc(e,t,n,r,i)}function Fc(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 Lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,Lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return jc(e,t,i,n),t.child}function Ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function Rc(e,t){return t=Zc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zc(e,t,n){return oo(t,e.child,null,n),e=Rc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Bc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Rc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ic(null,e);if(ko(t),(e=Qi)?(e=dm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Rc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=zc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Ac||_a(e,t,n,!1),a=(n&e.childLanes)!==0,Ac||a){if(xo.current===null){if(r=ed,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Ld(r,e,s),kc;Yd()}t=zc(e,t,n)}else e=o.treeContext,Qi=hm(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Rc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Hc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!Ac?(ts(e,t,i),ol(e,t,i)):($i&&r&&Ji(t),t.flags|=1,jc(e,t,n,i),t.child)}function Uc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!Ac?(ts(e,t,a),ol(e,t,a)):($i&&r&&Ji(t),t.flags|=1,jc(e,t,n,a),t.child)}function Wc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=gc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(hc(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&&gc.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),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=yc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(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)&&vc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(hc(t,n,d,r),l=t.memoizedState),(c=co||_c(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,uo(e,t),o=t.memoizedProps,u=yc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(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)&&vc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(hc(t,n,s,r),p=t.memoizedState),(u=co||_c(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(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,Vc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):jc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ol(e,t,i),e}function Gc(e,t,n,r){return sa(),t.flags|=256,jc(e,t,n,r),t.child}var Kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qc(e){return{baseLanes:e,cachePool:Ua()}}function Jc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),e}function Yc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=dm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=pm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=Zc({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=qc(n),r.childLanes=Jc(e,o,n),t.memoizedState=Kc,Ic(null,r)):(Oo(t),Xc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return $c(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Ic(null,r),r=t.child,i=e.child.memoizedState,i===null?i=qc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Jc(e,o,n),t.memoizedState=Kc,Ic(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Xc(e,t){return t=Zc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Zc(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function Qc(e,t,n){return oo(t,e.child,null,n),e=Xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $c(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,Qc(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=Zc({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=qc(c),a.childLanes=Jc(e,r,c),t.memoizedState=Kc,Ic(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),pm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),Qc(e,t,c)}if(Ac||_a(e,t,c,!1),r=(c&e.childLanes)!==0,Ac||r){if(xo.current!==null)return Qc(e,t,c);if(r=ed,r!==null&&(a=dt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Ld(r,e,a),kc;return fm(o)||Yd(),Qc(e,t,c)}return fm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=hm(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Xc(t,a.children),t.flags|=134221824,t)}function el(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function tl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function nl(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 rl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function il(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(rl(e),jc(e,t,r,n),rl(e)):jc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&el(e,n,t);else if(e.tag===19)el(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`backwards`:n=tl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,rl(t)),nl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,a,r);break;case`together`:nl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=tl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,a,r)}return t.child}function al(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),jc(e,t,r.children,n),t.child}function ol(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function cl(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:we(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Yc(e,t,n):(Oo(t),e=ol(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return il(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return il(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Fc(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return ol(e,t,n)}function ll(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Ac=!0;else{if(!sl(e,n)&&!(t.flags&128))return Ac=!1,cl(e,t,n);Ac=!!(e.flags&131072)}}else Ac=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=yc(e,r),t.tag=1,t=Wc(null,t,e,r,n)):(t.tag=0,t=Hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Mc(null,t,e,r,n);break a}if(a===te){t.tag=14,t=Nc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=al(null,t,n);break a}}throw t=ue(e)||e,Error(i(306,t,``))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=yc(r,t.pendingProps),Wc(e,t,r,a,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Gc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=Gc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=hm(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=ol(e,t,n);break a}jc(e,t,r,n)}t=t.child}return t;case 26:return Vc(e,t),e===null?(n=zm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=vp(t.type,t.pendingProps,be.current,t)):t.memoizedState=zm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&$i&&(r=t.stateNode=xm(t.type,t.pendingProps,be.current),Zi=t,ta=!0,a=Qi,Op(t.type)?(gm=a,Qi=hm(r.firstChild)):Qi=a),jc(e,t,t.pendingProps.children,n),Vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=lm(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=hm(r.firstChild),ta=!1,a=!0)),a||ra(t)),we(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,yp(a,o)?r=null:s!==null&&yp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),ph._currentValue=a),Vc(e,t),jc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=um(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Yc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):jc(e,t,r,n),t.child;case 11:return Mc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Vc(e,t),jc(e,t,r,n),t.child;case 8:return jc(e,t,t.pendingProps.children,n),t.child;case 12:return jc(e,t,t.pendingProps.children,n),t.child;case 10:return al(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,jc(e,t,r,n),t.child;case 14:return Nc(e,t,t.type,t.pendingProps,n);case 15:return Pc(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return Bc(e,t,n);case 22:return Fc(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=ed,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),jc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Vc(e,t),jc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ul(e){e.flags|=4}function dl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?eh(t,r):eh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Kd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function fl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!th(t)){if(Kd())e.flags|=8192;else throw Za=qa,Ga}}function pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ot(),e.lanes|=t,pd|=t)}function ml(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function hl(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&1206910976,r|=i.flags&1206910976,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 gl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?ul(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),hl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ul(t),o===null?(hl(t),dl(t,a,null,r,n)):(hl(t),fl(t,o))):o?o===e.memoizedState?(hl(t),t.flags&=-16777217):(ul(t),hl(t),fl(t,o)):(e=e.memoizedProps,e!==r&&ul(t),hl(t),dl(t,a,e,r,n)),null;case 27:if(Te(t),n=be.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return hl(t),t.subtreeFlags&=-33554433,null}e=ve.current,oa(t)?ia(t,e):(e=xm(a,r,n),t.stateNode=e,ul(t))}return hl(t),t.subtreeFlags&=-33554433,null;case 5:if(Te(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return hl(t),t.subtreeFlags&=-33554433,null}if(o=ve.current,oa(t))ia(t,o);else{var s=hp(be.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[_t]=t,o[vt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(cp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ul(t)}}return hl(t),t.subtreeFlags&=-33554433,dl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=be.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ap(e.nodeValue,n)),e||ra(t,!0)}else e=hp(e).createTextNode(r),e[_t]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pl(t,t.updateQueue),hl(t),null);case 4:return Ce(),e===null&&Yf(t.stateNode.containerInfo),t.flags|=67108864,hl(t),null;case 10:return ma(t.type),hl(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return hl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ml(r,!1);else{if(cd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,ml(r,!1),e=o.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Re()>yd&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),ml(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return hl(t),null}else 2*Re()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Re(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,_e(Eo,t),_e(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return hl(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(hl(t),t.subtreeFlags&6&&(t.flags|=8192)):hl(t),n=t.updateQueue,n!==null&&pl(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&&ge(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),hl(t),null;case 25:return null;case 30:return t.flags|=33554432,hl(t),null}throw Error(i(156,t.tag))}function _l(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ce(),null;case 10:return ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&ge(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function vl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),Ce();break;case 26:case 27:case 5:Te(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&ge(Ba);break;case 24:ma(Ea)}}function yl(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){_f(t,t.return,e)}}function bl(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){_f(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){_f(t,t.return,e)}}function xl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){_f(e,e.return,t)}}}function Sl(e,t,n){n.props=yc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_f(e,t,n)}}function Cl(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:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Bp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Vp(e);p(e.child,!1,im,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){_f(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){_f(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){_f(e,t,n)}else n.current=null}}function Tl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)om(e.stateNode,t[n])}function El(e){for(var t=e.return;t!==null&&(kl(t)&&om(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Dl(e){for(var t=e.return;t!==null&&(kl(t)&&sm(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Ol(e){return e.tag===5||e.tag===3||e.tag===27}function kl(e){return e&&e.tag===7&&e.stateNode!==null}function Al(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){_f(e,e.return,t)}}function jl(e,t,n){try{var r=e.stateNode;up(r,e.type,n,t),r[vt]=t}catch(t){_f(e,e.return,t)}}function Ml(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Op(e.type)||e.tag===4}function Nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ml(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&&Op(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 Pl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pn)),Tl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Op(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Pl(e,t,n,r),e=e.sibling;e!==null;)Pl(e,t,n,r),e=e.sibling}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Tl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Op(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);cp(t,r,n),t[_t]=e,t[vt]=n}catch(t){_f(e,e.return,t)}}var Ll=!1,Rl=null;function zl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ll=!0)}var Bl=null;function Vl(){var e=Bl;return Bl=null,e}var Hl=0;function Ul(e,t,n,r,i){return Hl=0,Wl(e.child,t,n,r,i)}function Wl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Pp(o);r.push(s),s.view&&(a=!0)}else a||Pp(o).view&&(a=!0);Ll=!0,jp(o,Hl===0?t:t+`_`+Hl,n),Hl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Wl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Gl(e,t){for(;e!==null;)e.tag===5?Mp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Gl(e.child,t)),e=e.sibling}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Kl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Ul(e,n,t,null,!1)||Gl(e.child,!1))}e=e.sibling}}function ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Kl(e):Ul(e,i,a,null,!1)?(Kl(e),n.paired||t||Id(e,r.onEnter)):Gl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e,t),e=e.sibling;else Kl(e)}function Jl(e){if(Rl!==null&&Rl.size!==0){var t=Rl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Ul(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):Gl(e.child,!1)),t.delete(r),t.size===0)break}}}Jl(e)}e=e.sibling}}}function Yl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Rl===null?void 0:Rl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Ul(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Rl.delete(n),Id(e,t.onShare)):Gl(e.child,!1)),Rl!==null&&Jl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Rl!==null&&Jl(e)}function Xl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Ul(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Xl(e);e=e.sibling}}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Gl(e.child,!1))}Zl(e)}e=e.sibling}}function Ql(e){if(e.tag===30)e.stateNode.paired=null,Gl(e.child,!1),Zl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Zl(e)}function $l(e){for(e=e.child;e!==null;)e.tag===30?Gl(e.child,!1):e.subtreeFlags&33554432&&$l(e),e=e.sibling}function eu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Hl<a.length){var l=a[Hl],u=Pp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&jp(c,Hl===0?n:n+`_`+Hl,i),s&&e.flags&4||(Bl===null&&(Bl=[]),Bl.push(c,Hl===0?r:r+`_`+Hl,t.memoizedProps)),Hl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function tu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Fp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Hl=0,i=eu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&tu(e,t);e=e.sibling}}var nu=!1,ru=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,pp=Sh,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(mp={focusedElem:e,selectionRange:r},Sh=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Yl(r[a]);if(e.alternate===null&&e.flags&2)n&&zl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Yl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&zl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Xl(e),pu(n))}}Rl=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=yc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){_f(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)cm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:cm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Ul(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n),r&4&&yl(5,n);break;case 1:if(Pu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){_f(n,n.return,e)}else{var i=yc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_f(n,n.return,e)}}}r&64&&xl(n),r&512&&Cl(n,n.return);break;case 3:if(Pu(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{bo(e,t)}catch(e){_f(n,n.return,e)}}break;case 27:t===null&&r&4&&Il(n);case 26:case 5:Pu(e,n),t===null&&r&4&&Al(n),r&512&&Cl(n,n.return);break;case 12:Pu(e,n);break;case 31:Pu(e,n),r&4&&Cu(e,n);break;case 13:Pu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xf.bind(null,n),mm(e,n))));break;case 22:if(r=n.memoizedState!==null||nu,!r){var a=t!==null&&t.memoizedState!==null||ru;t=nu,i=ru,nu=r,(ru=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Iu(e,n,r)):Pu(e,n),nu=t,ru=i}break;case 30:Pu(e,n),r&512&&Cl(n,n.return);break;case 7:r&512&&Cl(n,n.return);default:Pu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){_f(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Bt=!0}catch(t){_f(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ap(s,!0):Ap(e.stateNode,!1)}catch(t){_f(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(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 yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount==`function`)try{Ke.onCommitFiberUnmount(H,n)}catch{}switch(n.tag){case 26:ru||wl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ru&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ru||wl(n,t),Dl(n);var r=yu,i=bu;Op(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),Sm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:ru||wl(n,t),Dl(n);case 6:if(n.tag===6&&Dl(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),Bt=!0}catch(e){_f(n,t,e)}else try{yu.removeChild(n.stateNode),Bt=!0}catch(e){_f(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,kp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Jh(e)):kp(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:bl(2,n,t),ru||bl(4,n,t),xu(e,t,n);break;case 1:ru||(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Sl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:ru=(r=ru)||n.memoizedState!==null,xu(e,t,n),ru=r;break;case 30:wl(n,t),xu(e,t,n);break;case 7:ru||wl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jh(e)}catch(e){_f(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jh(e)}catch(e){_f(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(i(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Sf.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Op(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(i(160));Su(s,c,o),yu=null,bu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Du(t,e,n),Au(e),a&4&&(bl(3,e,e.return),yl(3,e),bl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),a&64&&nu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Ou,Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(nu)e.stateNode=vp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ct]||r[_t]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),cp(r,t,n),r[_t]=e,At(r),t=r;break a;case`link`:if(o=Zm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Zm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[_t]=e,At(r),t=r}e.stateNode=t}}else nu||Qm(o,e.type,e.stateNode)}else e.stateNode=Km(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&jl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ru||t.parentNode.removeChild(t)):a.count--,n===null?nu||Qm(o,e.type,e.stateNode):Km(o,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),r!==null&&a&4&&jl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=iu,iu=!1,Du(t,e,n),iu=o,Au(e),a&512&&(ru||r===null||wl(r,r.return)),e.flags&32){t=e.stateNode;try{an(t,``),Bt=!0}catch(t){_f(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,jl(e,t,r===null?t:r.memoizedProps)),a&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Bt=!0}catch(t){_f(e,e.return,t)}}break;case 3:if(Bt=!1,Xm=null,o=Ou,Ou=Em(t.containerInfo),Du(t,e,n),Ou=o,Au(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(t.containerInfo)}catch(t){_f(e,e.return,t)}au&&(au=!1,ju(e)),Bt=!1;break;case 4:a=iu,iu=nu,r=Vt(),o=Ou,Ou=Em(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=o,Bt&&lu&&(uu=!0),Bt=r,iu=a;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=Re()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=nu,l=ru,u=iu;nu=c||o,iu=u||o,ru=l||s,Du(t,e,n),ru=l,iu=u,nu=c,Au(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||nu||ru||(t=s||ru,n=nu,r=ru,nu=o||nu,ru=t,Fu(e,2),nu=n,ru=r),!o&&iu||hu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:a&512&&(ru||r===null||wl(r,r.return)),a=Vt(),o=lu,s=(n&335544064)===n,c=e.memoizedProps,lu=s&&pi(c.default,c.update)!==`none`,Du(t,e,n),Au(e),s&&r!==null&&Bt&&(e.flags|=4),lu=o,Bt=a;break;case 21:break;case 7:a&512&&(ru||r===null||wl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ml(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(kl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ol(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Fl(e,Nl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(an(l,``),n.flags&=-33),Fl(e,Nl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Pl(e,Nl(e),u,s);break;default:throw Error(i(161))}}catch(t){_f(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Sh=!0,t.reset(),Sh=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nu(t,e),t=t.sibling;else tu(t,!1)}function Nu(e,t){var n=e.alternate;if(n===null)ql(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Vl(),Mu(t,e),!cu&&!uu){if(e=Bl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Mp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Bl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):ql(e,!1));break;case 30:r=cu,i=Vl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Hl=0,t=eu(e,n,t,o,s,a,!0),Hl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Bl=i):i!==null&&(i.push.apply(i,Bl),Bl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Pu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Fu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:bl(4,n,n.return),Fu(n,r);break;case 1:wl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Sl(n,n.return,i),Fu(n,r);break;case 27:r&2&&Sm(n.stateNode,n.type,n.memoizedProps);case 5:wl(n,n.return),n.tag!==5&&n.tag!==27||Dl(n),Fu(n,r);break;case 6:Dl(n);break;case 26:wl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ru||i.parentNode.removeChild(i),Fu(n,r);break;case 22:n.memoizedState===null&&Fu(n,r);break;case 30:wl(n,n.return),Fu(n,r);break;case 7:wl(n,n.return);default:Fu(n,r)}e=e.sibling}}function Iu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Iu(i,a,n),yl(4,a);break;case 1:if(Iu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){_f(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)yo(l[i],c)}catch(e){_f(r,r.return,e)}}s&&o&64&&xl(a),Cl(a,a.return);break;case 27:n&2&&Il(a);case 5:a.tag!==5&&a.tag!==27||El(a),Iu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 6:El(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||nu||Qm(Em(c.ownerDocument),a.type,c),Iu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 12:Iu(i,a,n);break;case 31:Iu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Iu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Iu(i,a,n),Cl(a,a.return);break;case 30:Iu(i,a,n),Cl(a,a.return);break;case 7:Cl(a,a.return);default:Iu(i,a,n)}t=t.sibling}}function Lu(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&&Oa(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function zu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Bu(e,t,n,r),t=t.sibling;else i&&$l(t)}function Bu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:zu(e,t,n,r),a&2048&&yl(9,t);break;case 1:zu(e,t,n,r);break;case 3:zu(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Oa(a)));break;case 12:if(a&2048){zu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){_f(t,t.return,e)}}else zu(e,t,n,r);break;case 31:zu(e,t,n,r);break;case 13:zu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Ql(t),o._visibility&2?zu(e,t,n,r):(o._visibility|=2,Vu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Ql(s),o._visibility&2?zu(e,t,n,r):Hu(e,t)),a&2048&&Lu(s,t);break;case 24:zu(e,t,n,r),a&2048&&Ru(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Gl(a.child,!0),Gl(t.child,!0))),zu(e,t,n,r);break;default:zu(e,t,n,r)}}function Vu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!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:Vu(a,o,s,c,i),yl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Vu(a,o,s,c,i)):u._visibility&2?Vu(a,o,s,c,i):Hu(a,o),i&&l&2048&&Lu(o.alternate,o);break;case 24:Vu(a,o,s,c,i),i&&l&2048&&Ru(o.alternate,o);break;default:Vu(a,o,s,c,i)}t=t.sibling}}function Hu(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:Hu(n,r),i&2048&&Lu(r.alternate,r);break;case 24:Hu(n,r),i&2048&&Ru(r.alternate,r);break;default:Hu(n,r)}t=t.sibling}}var Uu=8192;function Wu(e,t,n){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:Wu(e,t,n),e.flags&Uu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&rh(n,e)):ih(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Wu(e,t,n),e.flags&Uu&&(e=e.stateNode,(t&335544128)===t&&rh(n,e));break;case 3:case 4:var r=Ou;Ou=Em(e.stateNode.containerInfo),Wu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Uu,Uu=16777216,Wu(e,t,n),Uu=r):Wu(e,t,n));break;case 30:if((e.flags&Uu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Rl===null&&(Rl=new Map),Rl.set(r,i)}Wu(e,t,n);break;default:Wu(e,t,n)}}function Ku(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 qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&bl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:bl(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:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Zu={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,$u=0,ed=null,td=null,q=0,nd=0,rd=null,id=!1,ad=!1,od=!1,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return $u&2&&q!==0?q&-q:z.T===null?mt():Rf()}function Fd(){if(fd===0){if(!(q&536870912)||$i){var e=$e;$e<<=1,!($e&3932160)&&($e=262144),fd=e}else fd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Bp(di(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===ed&&(nd===2||nd===9)||e.cancelPendingCommit!==null)&&(Wd(e,0),Vd(e,q,fd,!1)),ct(e,n),(!($u&2)||e!==ed)&&(e===ed&&(!($u&2)&&(ud|=n),cd===4&&Vd(e,q,fd,!1)),Af(e))}function Rd(e,t,n){if($u&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||rt(e,t),a=r?Qd(e,t):Xd(e,t,!0),o=r;do{if(a===0){ad&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(n)){a=Xd(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Wd(c,s).flags|=256),s=Xd(c,s,!1),s!==2&&s!==6){if(od&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Wd(e,0),Vd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Vd(r,t,fd,!id);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-Re(),10<a)){if(Vd(r,t,fd,!id),nt(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=Sp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,id,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,id,o,null,-0,0)}break}while(1);Af(e)}function zd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Rl=null,Gu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ch.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?_d-Re():(a&4194048)===a?vd-Re():0,m=oh(d,m),m!==null)){Td=a,e.cancelPendingCommit=m(of.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l);return}of(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(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(!Fr(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 Vd(e,t,n,r){t=it(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Je(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&U(e,n,t)}function Hd(){return $u&6?!0:(jf(0,!1),!1)}function Ud(){if(td!==null){if(nd===0)var e=td.return;else e=td,fa=da=null,ns(e),eo=null,to=0,e=td;for(;e!==null;)vl(e.alternate,e),e=e.return;td=null}}function Wd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Cp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Td=0,Ud(),ed=e,td=n=Oi(e.current,null),q=t,nd=0,rd=null,id=!1,ad=rt(e,t),od=!1,pd=fd=dd=ud=ld=cd=0,hd=md=null,gd=!1,sd=it(e,t),vi(),n}function Gd(e,t){Ro=null,z.H=dc,t===Wa||t===Ka?(t=Qa(),nd=3):t===Ga?(t=Qa(),nd=4):nd=t===kc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,rd=t,td===null&&(cd=1,Cc(e,Ii(t,e.current)))}function Kd(){var e=Eo.current;return e===null?!0:(q&4194048)===q?Do===null:(q&62914560)===q||q&536870912?e===Do:!1}function qd(){var e=z.H;return z.H=dc,e===null?dc:e}function Jd(){var e=z.A;return z.A=Zu,e}function Yd(){cd=4,id||(q&4194048)!==q&&Eo.current!==null||(ad=!0),!(ld&134217727)&&!(ud&134217727)||ed===null||Vd(ed,q,fd,!1)}function Xd(e,t,n){var r=$u;$u|=2;var i=qd(),a=Jd();(ed!==e||q!==t)&&(bd=null,Wd(e,t)),t=!1;var o=cd;a:do try{if(nd!==0&&td!==null){var s=td,c=rd;switch(nd){case 8:Ud(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=nd;if(nd=0,rd=null,nf(e,s,c,l),n&&ad){o=0;break a}break;default:l=nd,nd=0,rd=null,nf(e,s,c,l)}}Zd(),o=cd;break}catch(t){Gd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,$u=r,z.H=i,z.A=a,td===null&&(ed=null,q=0,vi()),o}function Zd(){for(;td!==null;)ef(td)}function Qd(e,t){var n=$u;$u|=2;var r=qd(),a=Jd();ed!==e||q!==t?(bd=null,yd=Re()+500,Wd(e,t)):ad=rt(e,t);a:do try{if(nd!==0&&td!==null){t=td;var o=rd;b:switch(nd){case 1:nd=0,rd=null,nf(e,t,o,1);break;case 2:case 9:if(Ja(o)){nd=0,rd=null,tf(t);break}t=function(){nd!==2&&nd!==9||ed!==e||(nd=7),Af(e)},o.then(t,t);break a;case 3:nd=7;break a;case 4:nd=5;break a;case 7:Ja(o)?(nd=0,rd=null,tf(t)):(nd=0,rd=null,nf(e,t,o,7));break;case 5:var s=null;switch(td.tag){case 26:s=td.memoizedState;case 5:case 27:var c=td;if(s?th(s):c.stateNode.complete){nd=0,rd=null;var l=c.sibling;if(l!==null)td=l;else{var u=c.return;u===null?td=null:(td=u,rf(u))}break b}}nd=0,rd=null,nf(e,t,o,5);break;case 6:nd=0,rd=null,nf(e,t,o,6);break;case 8:Ud(),cd=6;break a;default:throw Error(i(462))}}$d();break}catch(t){Gd(e,t)}while(1);return fa=da=null,z.H=r,z.A=a,$u=n,td===null?(ed=null,q=0,vi(),cd):0}function $d(){for(;td!==null&&!Ie();)ef(td)}function ef(e){var t=ll(e.alternate,e,sd);e.memoizedProps=e.pendingProps,t===null?rf(e):td=t}function tf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=Uc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:vl(n,t),t=td=ki(t,sd),t=ll(n,t,sd)}e.memoizedProps=e.pendingProps,t===null?rf(e):td=t}function nf(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(Oc(e,i,t,n,q)){cd=1,Cc(e,Ii(n,e.current)),td=null;return}}catch(t){if(i!==null)throw td=i,t;cd=1,Cc(e,Ii(n,e.current)),td=null;return}t.flags&32768?($i||r===1?e=!0:ad||q&536870912?e=!1:(id=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),af(t,e)):rf(t)}function rf(e){var t=e;do{if(t.flags&32768){af(t,id);return}e=t.return;var n=gl(t.alternate,t,sd);if(n!==null){td=n;return}if(t=t.sibling,t!==null){td=t;return}td=t=e}while(t!==null);cd===0&&(cd=5)}function af(e,t){do{var n=_l(e.alternate,e);if(n!==null){n.flags&=32767,td=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){td=e;return}td=e=n}while(e!==null);cd=6,td=null}function of(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do mf();while(Sd!==0);if($u&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ed&&(td=ed=null,q=0),wd=t,Cd=e,Td=n,Dd=a,Od=r,sf(e,t,n,s,c,l,f)}}function sf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ed=s,s|=_i,lt(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=ja(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Cf(He,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ll=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=z.T,z.T=null,i=B.p,B.p=2,a=$u,$u|=4;try{fu(e,t,n)}finally{$u=a,B.p=i,z.T=r}}Sd=1,Ll?kd=Rp(o,e.containerInfo,jd,uf,df,lf,ff,hf,cf,null,null):(uf(),df(),ff())}function cf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function lf(){Sd===3&&(Sd=0,Nu(wd,Cd),Sd=4)}function uf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=z.T,z.T=null;var i=B.p;B.p=2;var a=$u;$u|=4;try{lu=uu=!1,ku(t,e,n),n=mp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(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 _=zr(s,h),v=zr(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}}Sh=!!pp,mp=pp=null}finally{$u=a,B.p=i,z.T=r}}e.current=t,Sd=2}}function df(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=z.T,z.T=null;var r=B.p;B.p=2;var i=$u;$u|=4;try{mu(e,t.alternate,t)}finally{$u=i,B.p=r,z.T=n}}Sd=3}}function ff(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,Le();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,pf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),pt(r),n=n.stateNode,Ke&&typeof Ke.onCommitFiberRoot==`function`)try{Ke.onCommitFiberRoot(H,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=z.T,a=B.p,B.p=2,z.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{z.T=n,B.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Td&3&&mf(),Af(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),jf(0,!1)}}function pf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function mf(){return kd!==null&&(kd.skipTransition(),kd=null),uf(),df(),ff(),hf()}function hf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=pt(Td),r=z.T,a=B.p;try{B.p=32>n?32:n,z.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,$u&6)throw Error(i(331));var c=$u;if($u|=4,Ju(o.current),Bu(o,o.current,s,n),$u=c,jf(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot==`function`)try{Ke.onPostCommitFiberRoot(H,o)}catch{}return!0}finally{B.p=a,z.T=r,pf(e,t)}}function gf(e,t,n){t=Ii(n,t),t=Tc(e.stateNode,t,2),e=po(e,t,2),e!==null&&(ct(e,2),Af(e))}function _f(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=Ii(n,e),n=Ec(2),r=po(t,n,2),r!==null&&(Dc(n,r,t,e),ct(r,2),Af(r));break}}t=t.return}}function vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;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)||(od=!0,i.add(n),e=yf.bind(null,e,t,n),t.then(e,e))}function yf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(q&n)===n&&(cd===4||cd===3&&(q&62914560)===q&&300>Re()-_d?$u&2?dd|=n:Wd(e,0):dd|=n,pd===q&&(pd=0)),Af(e)}function bf(e,t){t===0&&(t=ot()),e=xi(e,t),e!==null&&(ct(e,t),Af(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),bf(e,n)}function Cf(e,t){return Pe(e,t)}var wf=null,Tf=null,Ef=!1,Df=!1,Of=!1,kf=0;function Af(e){e!==Tf&&e.next===null&&(Tf===null?wf=Tf=e:Tf=Tf.next=e),Df=!0,Ef||(Ef=!0,Lf())}function jf(e,t){if(!Of&&Df){Of=!0;do for(var n=!1,r=wf;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-Je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,If(r,a))}else a=q,a=nt(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||rt(r,a)||(n=!0,If(r,a))}r=r.next}while(n);Of=!1}}function Mf(){Nf()}function Nf(){Df=Ef=!1;var e=0;kf!==0&&xp()&&(e=kf);for(var t=Re(),n=null,r=wf;r!==null;){var i=r.next,a=Pf(r,t);a===0?(r.next=null,n===null?wf=i:n.next=i,i===null&&(Tf=n)):(n=r,(e!==0||a&3)&&(Df=!0)),r=i}Sd!==0&&Sd!==5||jf(e,!1),kf!==0&&(kf=0)}function Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Je(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=at(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=q,n=nt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(nd===2||nd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||rt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Fe(r),pt(n)){case 2:case 8:n=Ve;break;case 32:n=He;break;case 268435456:n=Ue;break;default:n=He}return r=Ff.bind(null,e),n=Pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Fe(r),e.callbackPriority=2,e.callbackNode=null,2}function Ff(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mf()&&e.callbackNode!==n)return null;var r=q;return r=nt(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),Pf(e,Re()),e.callbackNode!=null&&e.callbackNode===n?Ff.bind(null,e):null)}function If(e,t){if(mf())return null;Rd(e,t,!0)}function Lf(){Ep(function(){$u&6?Pe(Be,Mf):Nf()})}function Rf(){if(kf===0){var e=Pa;e===0&&(e=Qe,Qe<<=1,!(Qe&261888)&&(Qe=256)),kf=e}return kf}function zf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:fn(e)}function Bf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=zf((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?zf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Nn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(kf!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Vf=0;Vf<ci.length;Vf++){var Hf=ci[Vf];li(Hf.toLowerCase(),`on`+(Hf[0].toUpperCase()+Hf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),Ft(`onMouseEnter`,[`mouseout`,`mouseover`]),Ft(`onMouseLeave`,[`mouseout`,`mouseover`]),Ft(`onPointerEnter`,[`pointerout`,`pointerover`]),Ft(`onPointerLeave`,[`pointerout`,`pointerover`]),Pt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Pt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Pt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Pt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Uf=`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(` `),Wf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Uf));function Gf(e,t){t=!!(t&4);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){mi(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){mi(e)}i.currentTarget=null,a=c}}}}function Kf(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(Xf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),Xf(n,e,r,t)}var Jf=`_reactListening`+Math.random().toString(36).slice(2);function Yf(e){if(!e[Jf]){e[Jf]=!0,Mt.forEach(function(t){t!==`selectionchange`&&(Wf.has(t)||qf(t,!1,e),qf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jf]||(t[Jf]=!0,qf(`selectionchange`,!1,t))}}function Xf(e,t,n,r){switch(kh(t)){case 2:var i=Ch;break;case 8:i=wh;break;default:i=Th}n=i.bind(null,t,n,e),i=void 0,!Sn||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 Zf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Et(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}yn(function(){var r=a,i=hn(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=Nn,u=e;switch(e){case`keypress`:if(On(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case ei:case ti:case ni:l=Un;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=Fn;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=bn(m,p),g!=null&&d.push(Qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==mn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[yt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Et(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Ot(c),h=l==null?u:Ot(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Et(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,ep):null,c!==null&&tp(s,u,c,d,!1),l!==null&&f!==null&&tp(s,f,l,d,!0)))}a:{if(c=r?Ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&ln(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ot(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=Dn()):(wn=i,Tn=`value`in wn?wn.value:wn.textContent,pr=!0)),v=$f(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=$f(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Bf(s,e,r,n,i)}Gf(s,t)})}function Qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(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=bn(e,n),i!=null&&r.unshift(Qf(e,i,a)),i=bn(e,t),i!=null&&r.push(Qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ep(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tp(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=bn(n,a),l!=null&&o.unshift(Qf(n,l,c))):i||(l=bn(n,a),l!=null&&o.push(Qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var np=/\r\n?/g,rp=/\u0000|\uFFFD/g;function ip(e){return(typeof e==`string`?e:``+e).replace(np,`
9
9
  `).replace(rp,``)}function ap(e,t){return t=ip(t),ip(e)===t}function op(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||an(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&an(e,``+r);else return;break;case`className`:Ut(e,`class`,r);break;case`tabIndex`:Ut(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ut(e,n,r);break;case`style`:cn(e,r,o);return;case`data`:if(t!==`object`){Ut(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=fn(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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&op(e,t,`name`,a.name,a,null),op(e,t,`formEncType`,a.formEncType,a,null),op(e,t,`formMethod`,a.formMethod,a,null),op(e,t,`formTarget`,a.formTarget,a,null)):(op(e,t,`encType`,a.encType,a,null),op(e,t,`method`,a.method,a,null),op(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=pn);return;case`onScroll`:r!=null&&Kf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Kf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(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=fn(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`credentialless`: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`:Kf(`beforetoggle`,e),Kf(`toggle`,e),Ht(e,`popover`,r);break;case`xlinkActuate`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ht(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=un.get(n)||n,Ht(e,n,r);else return}Bt=!0}function sp(e,t,n,r,a,o){switch(n){case`style`:cn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)an(e,r);else if(typeof r==`number`||typeof r==`bigint`)an(e,``+r);else return;break;case`onScroll`:r!=null&&Kf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Kf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=pn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Nt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[vt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Bt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ht(e,n,r)}return}Bt=!0}function cp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Kf(`error`,e),Kf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,o,s,n,null)}}a&&op(e,t,`srcSet`,n.srcSet,n,null),r&&op(e,t,`src`,n.src,n,null);return;case`input`:Kf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:op(e,t,r,d,n,null)}}$t(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Kf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:op(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&tn(e,!!r,n,!0):tn(e,!!r,t,!1);return;case`textarea`:for(s in Kf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:op(e,t,s,c,n,null)}rn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:op(e,t,l,r,n,null)}return;case`dialog`:Kf(`beforetoggle`,e),Kf(`toggle`,e),Kf(`cancel`,e),Kf(`close`,e);break;case`iframe`:case`object`:Kf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Uf.length;r++)Kf(Uf[r],e);break;case`image`:Kf(`error`,e),Kf(`load`,e);break;case`details`:Kf(`toggle`,e);break;case`embed`:case`source`:case`link`:Kf(`error`,e),Kf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,u,r,n,null)}return;default:if(ln(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&sp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&op(e,t,c,r,n,null))}var lp={};function up(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||op(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`:m!==f&&(Bt=!0),o=m;break;case`name`:m!==f&&(Bt=!0),a=m;break;case`checked`:m!==f&&(Bt=!0),u=m;break;case`defaultChecked`:m!==f&&(Bt=!0),d=m;break;case`value`:m!==f&&(Bt=!0),s=m;break;case`defaultValue`:m!==f&&(Bt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&op(e,t,p,m,r,f)}}Qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||op(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Bt=!0),p=o;break;case`defaultValue`:o!==l&&(Bt=!0),c=o;break;case`multiple`:o!==l&&(Bt=!0),s=o;default:o!==l&&op(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?tn(e,!!n,n?[]:``,!1):tn(e,!!n,t,!0)):tn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:op(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Bt=!0),p=a;break;case`defaultValue`:a!==o&&(Bt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&op(e,t,s,a,r,o)}nn(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:op(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`:p!==m&&(Bt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:op(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)&&op(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:op(e,t,u,p,r,m)}return;default:if(ln(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&sp(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||sp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&op(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||op(e,t,f,p,r,m)}function dp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function fp(){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&&dp(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&&dp(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 pp=null,mp=null;function hp(e){return e.nodeType===9?e:e.ownerDocument}function gp(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 _p(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 vp(e,t,n,r){return n=hp(n).createElement(e),n[_t]=r,n[vt]=t,cp(n,e,t),At(n),n}function yp(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 bp=null;function xp(){var e=window.event;return e&&e.type===`popstate`?e!==bp&&(bp=e,!0):(bp=null,!1)}var Sp=typeof setTimeout==`function`?setTimeout:void 0,Cp=typeof clearTimeout==`function`?clearTimeout:void 0,wp=typeof Promise==`function`?Promise:void 0,Tp=typeof requestAnimationFrame==`function`?requestAnimationFrame:Sp,Ep=typeof queueMicrotask==`function`?queueMicrotask:wp===void 0?Sp:function(e){return wp.resolve(null).then(e).catch(Dp)};function Dp(e){setTimeout(function(){throw e})}function Op(e){return e===`head`}function kp(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),Jh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cm(e.ownerDocument.body)}n=i}while(n);Jh(t)}function Ap(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 jp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Mp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Np(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Pp(e){return Np(e.getBoundingClientRect(),getComputedStyle(e),e)}function Fp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Np(t,n,e)}function Ip(e){return e.documentElement.clientHeight}function Lp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Rp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ip(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=nh(f),u>ah){s.length=o;break}f=new Promise(Lp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function zp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}zp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},zp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},zp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Bp(e){return{name:e,group:new zp(`group`,e),imagePair:new zp(`image-pair`,e),old:new zp(`old`,e),new:new zp(`new`,e)}}function Vp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Kp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Wp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Hp,e,s,r)}this._eventListeners=a}};function Hp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Vp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Kp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Wp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Up,e,n,i),r.splice(t,1),a!==null&&a()}};function Up(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Wp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Gp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Kp(e,t,n,r){if(e.length===0)return-1;r=Gp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Gp(a.optionsOrUseCapture)===r)return i}return-1}Vp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Vp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,qp,e,void 0,void 0)};function qp(e,t){return e.tag!==6&&(e=b(e),ym(e,t))}Vp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Jp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!qp(t[n],e);n--);};function Jp(e,t){return t.push(e),!1}Vp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=b(e),e=hp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Yp,e,void 0,void 0))};function Yp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Xp,e,void 0,void 0)};function Xp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Vp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Zp,e,void 0,void 0);for(var n=t=0;n<Qp.length;n++){var r=Qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Qp[t++]=r}Qp.length=t}};function Zp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Qp=[],$p=!1;function em(e,t,n){Qp.push({fragmentInstance:e,observer:t,instance:n}),$p||($p=!0,bm(function(){$p=!1;var e=Qp;Qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Vp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,tm,e,void 0,void 0),e};function tm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Vp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Vp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Jp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||nm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function nm(e,t,n,r,i){var a=Et(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(p(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(p(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function rm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Jp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),rm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),rm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function im(e,t){return e=b(e),am(e,t),!1}function am(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Qp.length;i++){var a=Qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Qp[r++]=a)}Qp.length=r,n.observe(e)}),am(e,t))}function sm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?em(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function cm(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`:cm(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lm(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[Ct])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=hm(e.nextSibling),e===null)break}return null}function um(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hm(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hm(e.nextSibling),e===null))return null;return e}function fm(e){return e.data===`$?`||e.data===`$~`}function pm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mm(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 hm(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 gm=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vm(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 ym(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function bm(e){Tp(function(){Tp(function(t){return e(t)})})}function xm(e,t,n){switch(t=hp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Sm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&op(e,t,r,null,lp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===pn&&(e.onclick=null),Tt(e)}function Cm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var wm=new Map,Tm=new Set;function Em(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Dm=B.d;B.d={f:Om,r:km,D:Mm,C:Nm,L:Pm,m:Fm,X:Lm,S:Im,M:Rm};function Om(){var e=Dm.f(),t=Hd();return e||t}function km(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Dm.r(e)}var Am=typeof document>`u`?null:document;function jm(e,t,n){var r=Am;if(r&&typeof t==`string`&&t){var i=Zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tm.has(i)||(Tm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),cp(t,`link`,e),At(t),r.head.appendChild(t)))}}function Mm(e){Dm.D(e),jm(`dns-prefetch`,e,null)}function Nm(e,t){Dm.C(e,t),jm(`preconnect`,e,t)}function Pm(e,t,n){Dm.L(e,t,n);var r=Am;if(r&&e&&t){var i=`link[rel="preload"][as="`+Zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Zt(n.imageSizes)+`"]`)):i+=`[href="`+Zt(e)+`"]`;var a=i;switch(t){case`style`:a=Bm(e);break;case`script`:a=Wm(e)}if(!(wm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vm(a))||t===`script`&&r.querySelector(Gm(a))))){var o=r.createElement(`link`);cp(o,`link`,e),t===`style`&&(o[wt]=!0,o.onload=o.onerror=function(){jt(o)}),At(o),r.head.appendChild(o)}}}function Fm(e,t){Dm.m(e,t);var n=Am;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Zt(r)+`"][href="`+Zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wm(e)}if(!wm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),wm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gm(a)))return}r=n.createElement(`link`),cp(r,`link`,e),At(r),n.head.appendChild(r)}}}function Im(e,t,n){Dm.S(e,t,n);var r=Am;if(r&&e){var i=kt(r).hoistableStyles,a=Bm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wm.get(a))&&Jm(e,n);var c=o=r.createElement(`link`);At(c),cp(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,qm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lm(e,t){Dm.X(e,t);var n=Am;if(n&&e){var r=kt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=D({src:e,async:!0},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),At(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t){Dm.M(e,t);var n=Am;if(n&&e){var r=kt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),At(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zm(e,t,n,r){var a=(a=be.current)?Em(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Bm(n.href),t=kt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Bm(n.href);var o=kt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=wm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wm.set(e,o)),Um(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Wm(n),t=kt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bm(e){return`href="`+Zt(e)+`"`}function Vm(e){return`link[rel="stylesheet"][`+e+`]`}function Hm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Um(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[wt]){r.loading=1;return}}else t=e.createElement(`link`),t[wt]=!0,t.onload=t.onerror=jt.bind(null,t),cp(t,`link`,n),At(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Wm(e){return`[src="`+Zt(e)+`"]`}function Gm(e){return`script[async]`+e}function Km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Zt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),cp(r,`style`,a),qm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bm(n.href);var o=e.querySelector(Vm(a));if(o)return t.state.loading|=4,t.instance=o,At(o),o;r=Hm(n),(a=wm.get(a))&&Jm(r,a),o=(e.ownerDocument||e).createElement(`link`),At(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),cp(o,`link`,r),t.state.loading|=4,qm(o,n.precedence,e),t.instance=o;case`script`:return o=Wm(n.src),(a=e.querySelector(Gm(o)))?(t.instance=a,At(a),a):(r=n,(a=wm.get(o))&&(r=D({},n),Ym(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),At(a),cp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qm(r,n.precedence,e));return t.instance}function qm(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 Jm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Ym(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Xm=null;function Zm(e,t,n){if(Xm===null){var r=new Map,i=Xm=new Map;i.set(n,r)}else i=Xm,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[Ct]||a[_t]||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 Qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $m(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 eh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function th(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function nh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function rh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=nh(t),e.suspenseyImages.push(t)),e=lh.bind(e),t.decode().then(e,e))}function ih(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=Bm(r.href),a=t.querySelector(Vm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ch.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=Hm(r),(i=wm.get(i))&&Jm(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),cp(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=ch.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ah=0;function oh(e,t){return e.stylesheets&&e.count===0&&dh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ah===0&&(ah=62500*fp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ah?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)dh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ch(){this.count--,sh(this)}function lh(){this.imgCount--,sh(this)}var uh=null;function dh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uh=new Map,t.forEach(fh,e),uh=null,ch.call(e))}function fh(e,t){if(!(t.state.loading&4)){var n=uh.get(e);if(n)var r=n.get(null);else{n=new Map,uh.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=ch.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 ph={$$typeof:F,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function mh(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=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function hh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new mh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},lo(a),e}function gh(e){return e?(e=wi,e):wi}function _h(e,t,n,r,i,a){i=gh(i),r.context===null?r.context=i:r.pendingContext=i,r=fo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=po(e,r,t),n!==null&&(Ld(n,e,t),mo(n,e,t))}function vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yh(e,t){vh(e,t),(e=e.alternate)&&vh(e,t)}function bh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Ld(t,e,67108864),yh(e,67108864)}}function xh(e){if(e.tag===13||e.tag===31){var t=Pd();t=ft(t);var n=xi(e,t);n!==null&&Ld(n,e,t),yh(e,t)}}var Sh=!0;function Ch(e,t,n,r){var i=z.T;z.T=null;var a=B.p;try{B.p=2,Th(e,t,n,r)}finally{B.p=a,z.T=i}}function wh(e,t,n,r){var i=z.T;z.T=null;var a=B.p;try{B.p=8,Th(e,t,n,r)}finally{B.p=a,z.T=i}}function Th(e,t,n,r){if(Sh){var i=Eh(r);if(i===null)Zf(e,t,r,Dh,n),Rh(e,r);else if(Bh(i,e,t,n,r))r.stopPropagation();else if(Rh(e,r),t&4&&-1<Lh.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=tt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Je(o);s.entanglements[1]|=c,o&=~c}Af(a),!($u&6)&&(yd=Re()+500,jf(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Ld(s,a,2),Hd(),yh(a,2)}if(a=Eh(r),a===null&&Zf(e,t,r,Dh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Zf(e,t,r,null,n)}}function Eh(e){return e=hn(e),Oh(e)}var Dh=null;function Oh(e){if(Dh=null,e=Et(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dh=e,null}function kh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ze()){case Be:return 2;case Ve:return 8;case He:case V:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Ah=!1,jh=null,Mh=null,Nh=null,Ph=new Map,Fh=new Map,Ih=[],Lh=`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 Rh(e,t){switch(e){case`focusin`:case`focusout`:jh=null;break;case`dragenter`:case`dragleave`:Mh=null;break;case`mouseover`:case`mouseout`:Nh=null;break;case`pointerover`:case`pointerout`:Ph.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Fh.delete(t.pointerId)}}function zh(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=Dt(t),t!==null&&bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bh(e,t,n,r,i){switch(t){case`focusin`:return jh=zh(jh,e,t,n,r,i),!0;case`dragenter`:return Mh=zh(Mh,e,t,n,r,i),!0;case`mouseover`:return Nh=zh(Nh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ph.set(a,zh(Ph.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Fh.set(a,zh(Fh.get(a)||null,e,t,n,r,i)),!0}return!1}function Vh(e){var t=Et(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ht(e.priority,function(){xh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){xh(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 Hh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mn=r,n.target.dispatchEvent(r),mn=null}else return t=Dt(n),t!==null&&bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){Hh(e)&&n.delete(t)}function Wh(){Ah=!1,jh!==null&&Hh(jh)&&(jh=null),Mh!==null&&Hh(Mh)&&(Mh=null),Nh!==null&&Hh(Nh)&&(Nh=null),Ph.forEach(Uh),Fh.forEach(Uh)}function Gh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ah||(Ah=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wh)))}var Kh=null;function qh(e){Kh!==e&&(Kh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Kh===e&&(Kh=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(Oh(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Jh(e){function t(t){return Gh(t,e)}jh!==null&&Gh(jh,e),Mh!==null&&Gh(Mh,e),Nh!==null&&Gh(Nh,e),Ph.forEach(t),Fh.forEach(t);for(var n=0;n<Ih.length;n++){var r=Ih[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ih.length&&(n=Ih[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&Ih.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[vt]||null;if(typeof a==`function`)o||qh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Oh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),qh(n)}}}function Yh(){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 Xh(e){this._internalRoot=e}Zh.prototype.render=Xh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;_h(n,Pd(),e,t,null,null)},Zh.prototype.unmount=Xh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_h(e.current,2,null,e,null,null),Hd(),t[yt]=null}};function Zh(e){this._internalRoot=e}Zh.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ih.length&&t!==0&&t<Ih[n].priority;n++);Ih.splice(n,0,e),n===0&&Vh(e)}};var Qh=n.version;if(Qh!==`19.3.0`)throw Error(i(527,Qh,`19.3.0`));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var $h={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:z,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eg.isDisabled&&eg.supportsFiber)try{H=eg.inject($h),Ke=eg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=bc,s=xc,c=Sc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=hh(e,1,!1,null,null,n,r,null,o,s,c,Yh),e[yt]=t.current,Yf(e),new Xh(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=bc,c=xc,l=Sc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=hh(e,1,!0,t,n??null,r,o,u,s,c,l,Yh),t.context=gh(null),n=t.current,r=Pd(),r=ft(r),o=fo(r),o.callback=null,po(n,o,r),n=r,t.current.lanes=n,ct(t,n),Af(t),e[yt]=t.current,Yf(e),new Zh(t)}})),v=s(((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=_()})),y=u(f(),1),b=v(),x=class extends Error{body;status;statusText;url;constructor({body:e,status:t,statusText:n,url:r}){super(n?`Action failed with ${t} ${n}`:`Action failed with ${t}`),this.name=`VoidActionError`,this.body=e,this.status=t,this.statusText=n,this.url=r}};function S(e){switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return`callSite`;default:return`boundary`}}function C(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`VoidActionError`&&`status`in e&&typeof e.status==`number`&&S(e.status)===`callSite`}function w(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}async function T(e){let t=e.headers.get(`content-type`)||``;try{return t.includes(`application/json`)?await e.json():await e.text()||null}catch{return null}}async function E(e,t){return new x({body:await T(e),status:e.status,statusText:e.statusText,url:t})}var D=`data-void-head`;function O(e){let t=Object.entries(e.attrs).sort(([e],[t])=>e.localeCompare(t));return`${encodeURIComponent(e.tag)}:${t.map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`)}`}function k(e){let t={};for(let n of Array.from(e.attributes))n.name!==D&&(t[n.name]=n.value);return O({tag:e.tagName.toLowerCase(),attrs:t})}function A(e){let t=document.createElement(e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);return t.setAttribute(D,``),t}function j(e){let t=[];if(e.meta)for(let n of e.meta){let e={};n.charset&&(e.charset=n.charset),n.name&&(e.name=n.name),n.property&&(e.property=n.property),n.content!==void 0&&(e.content=n.content),t.push({tag:`meta`,attrs:e})}if(e.link)for(let n of e.link){let e={};for(let[t,r]of Object.entries(n))r!=null&&(e[t]=r);t.push({tag:`link`,attrs:e})}return t}function M(e){if(e){if(e.meta)for(let t of e.meta){let e=t.charset?`meta[charset]`:t.property?`meta[property="${t.property}"]`:t.name?`meta[name="${t.name}"]`:null;if(!e)continue;let n=document.head.querySelector(e);n&&n.setAttribute(D,``)}if(e.link)for(let t of e.link){let e=document.head.querySelector(`link[rel="${t.rel}"][href="${t.href}"]`);e&&e.setAttribute(D,``)}}}function N(e){let t=new Map;for(let e of document.head.querySelectorAll(`[${D}]`)){let n=k(e),r=t.get(n);r?r.push(e):t.set(n,[e])}let n=[];for(let r of e?j(e):[]){let e=O(r),i=t.get(e),a=i?.shift();i&&i.length===0&&t.delete(e),n.push(a??A(r))}for(let e of t.values())for(let t of e)t.remove();let r=document.head.querySelector(`[${D}]`);for(let e of n)e!==r&&document.head.insertBefore(e,r),r=e.nextSibling;e?.title!==void 0&&(document.title=e.title)}var P={ms:1,s:1e3,m:6e4,h:36e5,d:864e5};function F(e){let t=e.match(/^(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)$/);if(!t)throw Error(`prefetch: Invalid cacheFor value '${e}'. Use a number with ms, s, m, h, or d.`);return Number(t[1])*P[t[2]]}function I(e){if(typeof e==`number`)return{stale:e,expires:e};if(Array.isArray(e))return{stale:F(e[0]),expires:F(e[1])};let t=F(e);return{stale:t,expires:t}}var ee=class{entries=new Map;key(e,t=`GET`){return`${t}:${e}`}has(e,t=`GET`){return this.get(e,t)!==null}get(e,t=`GET`){let n=this.entries.get(this.key(e,t));return n?Date.now()>=n.expiresAt&&!n.singleUse?(this.entries.delete(this.key(e,t)),null):n:null}isFresh(e){return Date.now()<e.staleAt}isUsable(e){return Date.now()<e.expiresAt||e.singleUse}set(e,t,n,r){let i=this.key(e,t),a=this.entries.get(i);if(a&&this.isUsable(a))return;let o=Date.now(),s=r.stale===0&&r.expires===0,c={url:e,method:t,response:n,staleAt:o+r.stale,expiresAt:o+r.expires,singleUse:s,timer:null};!s&&r.expires>0&&(c.timer=setTimeout(()=>this.entries.delete(i),r.expires)),this.entries.set(i,c)}consume(e,t=`GET`){let n=this.entries.get(this.key(e,t));n?.singleUse&&(n.timer&&clearTimeout(n.timer),this.entries.delete(this.key(e,t)))}flush(e,t=`GET`){let n=this.key(e,t),r=this.entries.get(n);r?.timer&&clearTimeout(r.timer),this.entries.delete(n)}flushAll(){for(let e of this.entries.values())e.timer&&clearTimeout(e.timer);this.entries.clear()}},L=`__VOID_PAGE_DATA__`,te=`/_void/pages`;function R(e){return typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0}function ne(e){return R(e)||typeof e==`object`&&!!e&&Object.values(e).some(ne)}function re(e,t,n){t||=new FormData;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=n?n+`[`+r+`]`:r,a=e[r];if(a instanceof File)t.append(i,a,a.name);else if(a instanceof Blob)t.append(i,a);else if(typeof FileList<`u`&&a instanceof FileList)for(let e=0;e<a.length;e++)t.append(i+`[]`,a[e],a[e].name);else if(Array.isArray(a))for(let e=0;e<a.length;e++)re({[e]:a[e]},t,i);else a instanceof Date?t.append(i,a.toISOString()):typeof a==`boolean`?t.append(i,a?`1`:`0`):typeof a==`string`?t.append(i,a):typeof a==`number`?t.append(i,String(a)):a==null?t.append(i,``):re(a,t,i)}return t}function ie(e){return JSON.parse(JSON.stringify(e))}function ae(e){let t=document.getElementById(L);if(t?.textContent)return JSON.parse(t.textContent);let n=e.getAttribute(`data-page`);if(n)return JSON.parse(n);throw Error(`pages: Missing initial page payload.`)}function oe(e){let t=new DOMParser().parseFromString(e,`text/html`).getElementById(L);if(!t?.textContent)return null;try{return JSON.parse(t.textContent)}catch{return null}}function se(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}function ce(){return new DOMException(`Navigation aborted`,`AbortError`)}function le(e){return e.aborted?Promise.reject(ce()):new Promise((t,n)=>{e.addEventListener(`abort`,()=>n(ce()),{once:!0})})}async function ue(e,t){try{return await fetch(e,t)}catch(e){if(t.signal?.aborted||se(e))throw ce();return null}}async function de(e){let{adapter:t,components:n,layoutTree:r,routeMeta:i,matchRoute:a,staticPageData:o=!1,staticPageDataFastPath:s=o,prefetchHoverDelay:c,prefetchDefaultCacheFor:l,cacheVisitedPageData:u=!1}=e,d=new ee,f=new Set,p=0,m=null,h=null,g=null,_=null,v=window.location.pathname+window.location.search,y=null;function b(e,t=`GET`){return`${t}:${e}`}async function x(e){let t=n[e];if(!t)throw Error(`pages: Unknown page component '${e}'.`);return(await t()).default}async function S(e){let t=r[e]||[];return Promise.all(t.map(async e=>(await n[e]()).default))}function C(e){let{pathname:t}=new URL(e||`/`,window.location.origin);return`${te}/${t===`/`?`index`:t.replace(/^\/+/,``)}.json`}function w(e,t){return typeof e==`object`&&!!e&&`component`in e&&typeof e.component==`string`&&`props`in e&&typeof e.props==`object`&&e.props!==null&&typeof e.component==`string`&&e.component===t&&!i[e.component]?.island&&!!n[e.component]}class T{active=!0;keyRefs={};props={};groups={};preservedSource=null;preservedKeys=null;setupPending(e){if(this.props=e.props,this.keyRefs={},this.groups={},e.deferredKeys)for(let[n,r]of Object.entries(e.deferredKeys)){let e=t.createDeferred();this.keyRefs[n]=e,this.props[n]=e,(this.groups[r]??=[]).push(n)}}setupResolved(e){if(this.props=e.props,this.keyRefs={},this.groups={},e.deferredKeys)for(let[n,r]of Object.entries(e.deferredKeys)){let i=t.createDeferred(),a=t.resolveDeferred(i,e.props[n]);this.keyRefs[n]=a,this.props[n]=a,(this.groups[r]??=[]).push(n)}}preserveValuesFrom(e,t){if(!e)return;let n=e.applyPreservedValues(t);n&&(this.preservedSource=e,this.preservedKeys=n)}commitPreservedValues(e,t){return!this.preservedSource||this.preservedSource!==e||!this.preservedKeys?null:(this.preservedSource.retainOnly(this.preservedKeys,t.props),this.preservedSource)}applyPreservedValues(e){let t=null;for(let n of Object.keys(this.keyRefs))e.props[n]===null&&this.props[n]!==void 0&&(e.props[n]=this.props[n],(t??=new Set).add(n));return t}resolve(e,n,r){if(this.active){if(n!==void 0){if(typeof n==`object`&&n&&!Array.isArray(n)){let t=!1;for(let[e,r]of Object.entries(n))this.keyRefs[e]&&(this.resolveKey(e,r),t=!0);t||this.resolveGroup(e,n)}else this.resolveGroup(e,n)}else r!==void 0&&this.rejectGroup(e,typeof r==`string`?r:String(r));t.onDeferredUpdate?.(this.props)}}rejectPending(e,n=!0){if(this.active){for(let[n,r]of Object.entries(this.keyRefs))if(t.isLoading(r)){let i=t.rejectDeferred(r,e);this.keyRefs[n]=i,this.props[n]=i}n&&t.onDeferredUpdate?.(this.props)}}dispose(){this.active&&=(this.rejectPending(`Navigation disposed before deferred props resolved`,!1),!1)}retainOnly(e,n){let r={},i={};for(let[i,a]of Object.entries(this.keyRefs))e.has(i)?(r[i]=a,n[i]=this.props[i]):t.isLoading(a)&&t.rejectDeferred(a,`Navigation disposed before deferred props resolved`);for(let[t,n]of Object.entries(this.groups)){let r=n.filter(t=>e.has(t));r.length>0&&(i[t]=r)}this.props=n,this.keyRefs=r,this.groups=i,t.onDeferredUpdate?.(this.props)}resolveGroup(e,t){let n=this.groups[e]??(this.keyRefs[e]?[e]:[]);for(let e of n)this.resolveKey(e,t)}resolveKey(e,n){let r=this.keyRefs[e];if(!r||!t.isLoading(r))return;let i=t.resolveDeferred(r,n);this.keyRefs[e]=i,this.props[e]=i}rejectGroup(e,n){let r=this.groups[e]??Object.keys(this.keyRefs);for(let e of r){let r=this.keyRefs[e];if(r&&t.isLoading(r)){let i=t.rejectDeferred(r,n);this.keyRefs[e]=i,this.props[e]=i}}}}let D=new WeakMap,O=new WeakMap;async function k(e,t){let r=a(e||window.location.pathname+window.location.search);if(!r||i[r]?.island||!n[r])return null;try{let n=await fetch(C(e),{headers:{Accept:`application/json`},signal:t});if(n.ok){let e=await n.json();if(w(e,r))return{pageData:e,resolvedDeferred:!0}}}catch(e){if(t?.aborted||se(e))throw ce()}return null}async function A(e,t,r,o=!1){if(!t.ok)return null;let s=a(e||window.location.pathname+window.location.search);if(!s||i[s]?.island||!n[s])return null;let c=t.headers.get(`content-type`)||``;if(c&&!c.includes(`text/html`))return null;if(o){let n=oe(await t.text());return w(n,s)?n.deferredKeys?k(e,r):{pageData:n,resolvedDeferred:!1}:null}let l=await k(e,r);if(l)return l;let u=oe(await t.text());return!w(u,s)||u.deferredKeys?null:{pageData:u,resolvedDeferred:!1}}let j=window;j.__resolveDeferred=(e,t)=>_?.resolve(e,t,void 0),j.__rejectDeferred=(e,t)=>_?.resolve(e,void 0,t);function P(e,t,n,r){if(v=e,r&&(n.replace?history.replaceState({},``,e+t):(history.replaceState({scrollX:window.scrollX,scrollY:window.scrollY},``),history.pushState({},``,e+t))),n._scrollPosition){window.scrollTo(n._scrollPosition.x,n._scrollPosition.y);return}if(t){let e=document.getElementById(t.slice(1));if(e){e.scrollIntoView();return}}window.scrollTo(0,0)}async function F(e,t,n,r,i,c,m,h){r!==`GET`&&(d.flushAll(),f.clear());let _={"X-VoidPages":`true`,Accept:`application/json`},v={method:r,headers:_,signal:c};i.data&&r!==`GET`&&(ne(i.data)?v.body=re(i.data):(_[`Content-Type`]=`application/json`,v.body=JSON.stringify(i.data)));let y,C=r===`GET`?d.get(n,r):null;if(C){let e=await C.response;if(d.consume(n,r),e===null){window.location.href=t;return}if(y=f.has(b(n,r))?ie(e):e,h.setupResolved(y),!d.isFresh(C)){let e={"X-VoidPages":`true`,Accept:`application/json`,Purpose:`prefetch`},t=(o&&s&&r===`GET`?k(n).then(e=>e?.pageData):Promise.resolve(void 0)).then(t=>t===void 0?ue(n,{method:r,headers:e}).then(async e=>!e||e.redirected?null:e.headers.get(`X-VoidPages`)?e.json():(await A(n,e,void 0,!s))?.pageData??null):t);d.flush(n,r),d.set(n,r,t,l)}}else{if(r===`GET`&&o&&s){let e=await k(n,c);e&&(y=e.pageData,f.add(b(n,r)),d.set(n,r,Promise.resolve(ie(y)),l),e.resolvedDeferred?h.setupResolved(y):h.setupPending(y))}let p=y===void 0?r===`GET`?await ue(n,v):await fetch(n,v):null;if(y===void 0&&!p){window.location.href=t;return}if(p?.redirected){let n=new URL(p.url,window.location.origin);if(n.origin!==window.location.origin){window.location.href=r===`GET`?t:p.url;return}return m.fetchUrl=n.pathname+n.search,m.hash=n.hash,F(e,n.pathname+n.search+n.hash,n.pathname+n.search,`GET`,{preserveScroll:i.preserveScroll,preserveState:i.preserveState,replace:i.replace,viewTransition:i.viewTransition},c,m,h)}if(p&&r!==`GET`&&!p.ok)throw await E(p,n);if(p&&!p.headers.get(`X-VoidPages`)){if(r===`GET`){let e=await A(n,p,c,!s);if(e)y=e.pageData,e.resolvedDeferred?h.setupResolved(y):h.setupPending(y);else{window.location.href=t;return}}else{window.location.href=t;return}}let g=p?.headers.get(`content-type`)||``;if(y===void 0){if(g.includes(`application/x-ndjson`)){let e=p.body.getReader(),t=new TextDecoder,n=``,r=!0,i=()=>{let e;for(;(e=n.indexOf(`
10
- `))!==-1;){let t=n.slice(0,e);if(n=n.slice(e+1),t){if(r)y=JSON.parse(t),h.setupPending(y),r=!1;else{let e=JSON.parse(t);e.__deferred&&h.resolve(e.__deferred,e.data,e.error)}}}};for(;r;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}(async()=>{try{for(;!c.aborted;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}n.trim()&&i()}catch(e){(!(e instanceof Error)||e.name!==`AbortError`)&&h.rejectPending(`Stream closed before resolution`)}})()}else y=await p.json(),h.setupPending(y)}u&&r===`GET`&&p?.ok&&p.headers.get(`X-VoidPages`)&&y?.component===a(n)&&!y.deferredKeys&&d.set(n,r,Promise.resolve(ie(y)),l)}if(!y)throw Error(`pages: Missing page payload.`);r!==`GET`&&h.preserveValuesFrom(g,y);let[w,T]=await Promise.race([Promise.all([x(y.component),S(y.component)]),le(c)]);if(e!==p&&c.aborted)throw ce();return{pageData:y,component:w,layouts:T}}function L(e,t,n,r,i,a){let o=!1;return async()=>{if(o)return;o=!0;let s=await n;if(!s)return;m?.id===i&&(m=null);let c=h,l=g,u=r.commitPreservedValues(l,s.pageData);h=a();let d=!!(c&&u&&D.get(c)===u);c&&c!==h&&!d&&c.dispose(),c&&u&&d&&O.set(u,c),g=u??r;let f=l?O.get(l):void 0;if(l&&l!==g&&(l.dispose(),f&&f!==c&&f!==h&&f.dispose(),O.delete(l)),u&&u!==r&&r.dispose(),N(s.pageData.head),v=e.fetchUrl,!t.preserveState){let n=e.fetchUrl+e.hash;t.replace?history.replaceState({},``,n):(history.replaceState({scrollX:window.scrollX,scrollY:window.scrollY},``),history.pushState({},``,n))}requestAnimationFrame(()=>{if(!t.preserveScroll){if(t._scrollPosition)window.scrollTo(t._scrollPosition.x,t._scrollPosition.y);else if(e.hash){let t=document.getElementById(e.hash.slice(1));t?t.scrollIntoView():window.scrollTo(0,0)}else window.scrollTo(0,0)}})}}let R=ae(document.getElementById(`app`)),[de,z]=await Promise.all([x(R.component),S(R.component)]);u&&R.url===v&&R.component===a(v)&&R.errors===null&&!R.deferredKeys&&d.set(v,`GET`,Promise.resolve(ie(R)),l);let B=new T;return B.setupPending(R),g=B,_=B,{_hoverDelay:c,initialPageData:R,initialComponent:de,initialLayouts:z,prepareVisit(e,t={}){let n=e.indexOf(`#`),r=n===-1?``:e.slice(n),i=n===-1?e:e.slice(0,n),a=window.location.pathname+window.location.search,o=i||a,s=(t.method||`GET`).toUpperCase(),c=++p,l=t._popstate?v:a;if(m?.abort(),m=null,o===l&&s===`GET`&&!t.data&&(r||t._popstate))return P(o,r,t,!t._popstate&&!t.preserveState),{id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!0,shell:Promise.resolve(void 0),abort(){},async commit(){},dispose(){}};let u=new AbortController,d=new T,f={fetchUrl:o,hash:r},h=F(c,e,o,s,t,u.signal,f,d),g=async()=>{},_={id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!1,shell:h,abort(){u.abort(ce()),d.dispose()},commit(){return g()},dispose(){u.abort(ce()),d.dispose()}};return D.set(_,d),g=L(f,t,h,d,c,()=>_),m=_,_},prefetch(e,t={}){let c=(t.method||`GET`).toUpperCase();if(c!==`GET`)throw Error(`Void Router: prefetch() only supports GET requests.`);let u=a(e);if(!u)return Promise.resolve(void 0);if(i[u]?.island){if(!document.querySelector(`link[rel="prefetch"][href="`+e+`"]`)){let t=document.createElement(`link`);t.rel=`prefetch`,t.href=e,t.as=`document`,document.head.appendChild(t)}return Promise.resolve(void 0)}n[u]&&n[u]();let f=r[u]||[];for(let e of f)n[e]&&n[e]();let p=e.indexOf(`#`),m=p===-1?e:e.slice(0,p),h=d.get(m,c);if(h)return h.response;let g=t.cacheFor?I(t.cacheFor):l,_={"X-VoidPages":`true`,Accept:`application/json`,Purpose:`prefetch`},v=(o&&s&&c===`GET`?k(m).then(e=>e?.pageData):Promise.resolve(void 0)).then(e=>e===void 0?ue(m,{method:c,headers:_}).then(e=>!e||e.redirected?null:e.headers.get(`X-VoidPages`)?e.json():c===`GET`?A(m,e,void 0,!s).then(e=>e?.pageData??null):null):e);return d.set(m,c,v,g),v},flush(e,t=`GET`){d.flush(e,t),f.delete(b(e,t))},flushAll(){d.flushAll(),f.clear()},setPopStateHandler(e){y=e},start(){if(history.scrollRestoration=`manual`,history.replaceState({scrollX:window.scrollX,scrollY:window.scrollY},``),M(R.head),j.__deferredQueue){for(let e of j.__deferredQueue)e.length===3?_?.resolve(e[0],void 0,e[2]):_?.resolve(e[0],e[1],void 0);delete j.__deferredQueue}window.addEventListener(`popstate`,e=>{let t=e.state,n=window.location.pathname+window.location.search+window.location.hash,r={preserveState:!0,_scrollPosition:t?{x:t.scrollX??0,y:t.scrollY??0}:null,_popstate:!0};y&&y(n,r)})}}}function z(){return typeof window>`u`?`http://localhost`:window.location.origin}function B(e){return e instanceof URL?new URL(e.href):new URL(e||`/`,z())}function fe(){return{state:`idle`,location:null,method:null}}function pe(e,t,n=()=>e.params){return{get _hoverDelay(){return e._hoverDelay},get url(){return B(t())},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return n()},visit(t,n={}){return e.visit(t,n)},refresh(t={}){return e.refresh(t)},prefetch(t,n={}){return e.prefetch(t,n)},flush(t,n=`GET`){e.flush(t,n)},flushAll(){e.flushAll()}}}function me(e=`/`,t={}){return{_hoverDelay:75,get url(){return B(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw Error(`Void Router: visit() is not available during SSR.`)},refresh(){throw Error(`Void Router: refresh() is not available during SSR.`)},prefetch(){throw Error(`Void Router: prefetch() is not available during SSR.`)},flush(){throw Error(`Void Router: flush() is not available during SSR.`)},flushAll(){throw Error(`Void Router: flushAll() is not available during SSR.`)}}}var he=me(),ge=(0,y.createContext)(null),_e=(0,y.createContext)(null),ve=(0,y.createContext)(null),ye=(0,y.createContext)(null),be=(0,y.createContext)(fe()),xe=`__VOID_DEFERRED_SHELL_END__`;`${xe}`;var Se=new WeakMap,Ce=new Map,we=new Map,Te=new Set,Ee={},De=null,Oe=null;function ke(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.catch(()=>{}),Se.set(n,{status:`pending`,resolve:e,reject:t}),n}function Ae(e,t){let n=Se.get(e);return n?.status===`pending`&&(n.resolve(t),Se.set(e,{status:`resolved`})),e}function je(e,t){let n=Se.get(e);return n?.status===`pending`&&(n.reject(Error(t)),Se.set(e,{status:`rejected`})),e}function Me(e){return Se.get(e)?.status===`pending`}function Ne(){return window.location.pathname+window.location.search+window.location.hash}function Pe(e){if(typeof e==`string`&&e.startsWith(`#`))return e;let t=e instanceof URL?e:new URL(e,window.location.origin);return t.origin===window.location.origin?t.pathname+t.search+t.hash:t.href}function Fe(e){let t=e.method.toUpperCase();return{state:t===`GET`?`loading`:`submitting`,location:new URL(e.fetchUrl+e.hash,window.location.origin),method:t===`POST`||t===`PUT`||t===`PATCH`||t===`DELETE`?t:`GET`}}function Ie(e,t){switch(t.type){case`begin`:return{resource:e.resource,rollbackResource:e.rollbackResource||e.resource,pendingId:t.resource.id,routeUrl:e.routeUrl,navigation:t.navigation};case`reveal`:return e.pendingId===t.resource.id?{...e,resource:t.resource}:e;case`finish`:return e.pendingId===t.resource.id?{resource:t.resource.immediate?e.resource:t.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e;case`fail`:return e.pendingId===t.resource.id?{...e,resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e;case`abandon`:return e.pendingId===t.resource.id?{resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e}}function Le(e){let t={_hoverDelay:e._hoverDelay,get url(){return new URL(Ne(),window.location.origin)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return{}},visit(e,t={}){return Oe?Oe(Pe(e),t):Promise.reject(Error(`router.visit() called before router initialized`))},refresh(e={}){return t.visit(window.location.pathname+window.location.search,{preserveState:!0,preserveScroll:!0,...e})},prefetch(t,n={}){return e.prefetch(Pe(t),n)},flush(t,n=`GET`){e.flush(Pe(t),n)},flushAll(){e.flushAll()}};return t}function Re({resource:e,onCommit:t}){let n=(0,y.use)(e.shell),r=y.useContext(ye);if((0,y.useLayoutEffect)(()=>{n&&t(e,n)},[t,e,n]),!n)return null;let i=n.pageData,a=n.component,o=i.params??Ee,s=(0,y.useMemo)(()=>pe(r,()=>{let t=r.url,n=t.pathname+t.search;return n===i.url?n+t.hash:i.url+e.hash},()=>o),[r,i.url,e.hash,o]),c=y.createElement(a,i.props);for(let e=n.layouts.length-1;e>=0;e--){let t=n.layouts[e];c=y.createElement(t,null,c)}return y.createElement(ye.Provider,{value:s},y.createElement(ve.Provider,{value:o},y.createElement(ge.Provider,{value:i.shared},y.createElement(_e.Provider,{value:i.errors??{}},c))))}function ze(e,t,n){if(!n||typeof document.startViewTransition!=`function`){t();return}let r,i=new Promise(e=>{r=e});Ce.set(e.id,r),document.startViewTransition(()=>(t(),i))}function Be({engine:e,router:t,viewTransitions:n,navigationFallback:r}){let i=e.initialPageData,a=(0,y.useRef)(i.shared),o=(0,y.useMemo)(()=>({id:0,url:i.url||Ne(),fetchUrl:i.url||Ne(),hash:window.location.hash,method:`GET`,options:{},immediate:!1,shell:Promise.resolve({pageData:{...i,shared:i.shared},component:e.initialComponent,layouts:e.initialLayouts}),abort(){},async commit(){},dispose(){}}),[e,i]),[s,c]=(0,y.useReducer)(Ie,{resource:o,rollbackResource:null,pendingId:null,routeUrl:Ne(),navigation:fe()}),[l,u]=(0,y.useTransition)(),d=(0,y.useCallback)(e=>{if(!e)return e;a.current={...a.current,...e.pageData.shared||{}};let t=a.current;return e.pageData={...e.pageData,shared:t},e},[]),f=(0,y.useCallback)((e,t)=>{Te.has(e.id)||(Te.add(e.id),e.commit().then(()=>{let n=Ce.get(e.id);n&&(Ce.delete(e.id),n());let r=we.get(e.id);r&&(we.delete(e.id),r.resolve(t.pageData)),De===e.id&&(De=null),c({type:`finish`,resource:e,location:Ne()})}).catch(t=>{let n=we.get(e.id);n&&(we.delete(e.id),n.reject(t))}))},[]),p=(0,y.useCallback)((t,i={})=>{let a=e.prepareVisit(t,i);if(a.immediate){let e=Fe(a);return De=a.id,c({type:`begin`,resource:a,navigation:e}),a.shell.then(e=>(De===a.id&&(De=null),c({type:`finish`,resource:a,location:Ne()}),e?.pageData),e=>{throw De===a.id&&(De=null),c({type:`fail`,resource:a,location:Ne()}),e})}let o,s,l=new Promise((e,t)=>{o=e,s=t}),f={...a,shell:a.shell.then(d).then(e=>{if(e)a.options._resolveOnShell&&(we.delete(a.id),o(e.pageData));else{let e=Ce.get(a.id);e&&(Ce.delete(a.id),e()),we.delete(a.id),De===a.id&&(De=null),c({type:r?`abandon`:`finish`,resource:a,location:Ne()}),o(void 0)}return e},e=>{let t=Ce.get(a.id);if(t&&(Ce.delete(a.id),t()),we.delete(a.id),a.method.toUpperCase()===`GET`&&!a.options._resolveOnShell&&w(e)?o(void 0):s(e),De===a.id&&(De=null),r||a.options._resolveOnShell||w(e)||C(e)){c({type:`abandon`,resource:a,location:Ne()});return}throw c({type:`fail`,resource:a,location:Ne()}),e})},p=Fe(f);if(we.set(f.id,{resolve:o,reject:s}),De=f.id,c({type:`begin`,resource:f,navigation:p}),r){let e=!1,t=!1,n=e=>{t||De!==f.id||(t=!0,e?u(()=>c({type:`reveal`,resource:f})):c({type:`reveal`,resource:f}))};return f.shell.then(t=>{e=!0,t&&n(!0)}),requestAnimationFrame(()=>{e||n(!1)}),l}let m=()=>{u(()=>{c({type:`reveal`,resource:f})})};return f.shell.then(e=>{e&&De===f.id&&ze(f,m,i.viewTransition??n)},()=>{}),l},[e,d,r,u,n]);(0,y.useInsertionEffect)(()=>(Oe=p,()=>{Oe===p&&(Oe=null)}),[p]),(0,y.useEffect)(()=>{e.setPopStateHandler((e,n)=>{t.visit(e,n)})},[e,t]);let m=(0,y.useMemo)(()=>s.navigation.state!==`idle`||!l?s.navigation:{state:`loading`,location:null,method:`GET`},[l,s.navigation]),h=(0,y.useMemo)(()=>pe(t,()=>s.routeUrl),[t,s.routeUrl]);return y.createElement(ye.Provider,{value:h},y.createElement(be.Provider,{value:m},y.createElement(y.Suspense,{fallback:r&&s.pendingId!==null?y.createElement(r,{initialPageData:i}):null},y.createElement(Re,{resource:s.resource,onCommit:f}))))}async function Ve(e){Ce.clear(),we.clear(),Te.clear(),Te.add(0),De=null;let t=await de({adapter:{createDeferred:ke,resolveDeferred:Ae,rejectDeferred:je,isLoading:Me},components:e.components,layoutTree:e.layoutTree,routeMeta:e.routeMeta,matchRoute:e.matchRoute,staticPageData:e.staticPageData,staticPageDataFastPath:e.staticPageDataFastPath,viewTransitions:e.viewTransitions,prefetchHoverDelay:e.prefetchHoverDelay,prefetchDefaultCacheFor:e.prefetchDefaultCacheFor,cacheVisitedPageData:e.cacheVisitedPageData}),n=Le(t),r=document.getElementById(`app`);if(!r)throw Error(`pages: Missing #app element for Void React pages hydration.`);let i=y.createElement(Be,{engine:t,router:n,viewTransitions:e.viewTransitions,navigationFallback:e.navigationFallback}),a=r.getAttribute(`data-void-ssr`)!==`false`,o=!!t.initialPageData.deferredKeys,s=a&&o?y.createElement(y.Fragment,null,i,y.createElement(`template`,{id:xe})):i;return(0,y.startTransition)(()=>{a?(0,b.hydrateRoot)(r,s):(0,b.createRoot)(r).render(s)}),r.setAttribute(`data-hydrated`,`true`),t.start(),{router:n}}function He(){if(We)return Ue;We=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}return[o,s,c]}}var r=Ue.styleq=n();return r.factory=n,Ue}function V(...e){let[t,n,r]=Ge.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}var Ue,We,Ge,H=o((()=>{Ue={},Ge=He(),Object.freeze({})})),Ke,qe,Je,Ye,Xe,Ze=o((()=>{Ke={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},qe={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Je={"--focus-outline-width":`var(--focus-outline-width)`,"--focus-outline-style":`var(--focus-outline-style)`,"--focus-outline-color":`var(--focus-outline-color)`,"--focus-outline-offset":`var(--focus-outline-offset)`,__varGroupHash__:`xzxs3qz`},Ye={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Xe={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`}}));function Qe(e){return`${nt}-${e}`}function $e(e){return`data-${rt}-${e}`}function et(e){return`--${it}-${e}`}var tt,nt,rt,it,at=o((()=>{tt=`astryx`,nt=tt,rt=tt,it=tt}));function ot(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function st(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function ct(e,t){let n=[Qe(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(st(e,String(r)));return n.join(` `)}function lt(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[ot(n)]=String(r));return t}function U(e,t,n){let r=ct(e,t),i=n?.legacyNames?.map(e=>Qe(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...lt(t)}}var ut=o((()=>{at()}));function dt(e){let t=``;for(let n of e){let e=n.codePointAt(0)??0;t+=n===`"`||n===`\\`||e<32||e===127?`\\${(e===0?65533:e).toString(16)} `:n}return t}function ft(e){return e===`base`?``:e.split(`+`).map(e=>{let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?e:e.slice(t+1);return`[${ot(n)}="${dt(r)}"]`}).join(``)}var pt=o((()=>{ut()}));function mt(e,t){return e==null?`fallback:${typeof t==`function`?t():t}`:`id:${e}`}var ht=o((()=>{}));function gt(e){return yt?[...yt.segment(e)].map(e=>e.segment):[...e]}function _t(e){return e===``?0:gt(e).length}function vt(e){if(yt){let t=yt.segment(e)[Symbol.iterator]().next();return t.done?``:t.value.segment}let t=e.codePointAt(0);return t==null?``:String.fromCodePoint(t)}var yt,bt=o((()=>{yt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null}));function xt(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function W(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=xt(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=xt(i,{className:n}):n!=null&&(i=xt(i,{style:n})),r!=null&&(i=xt(i,{style:r})),i}var St=o((()=>{}));function Ct(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}var wt=o((()=>{}));function Tt(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var Et=o((()=>{}));function Dt(e){let t=e.auxiliaryData;return typeof t?.group==`string`?t.group:void 0}function Ot(e,{ungroupedFirst:t=!1}={}){if(!e.some(e=>Dt(e)!=null))return[{heading:null,items:e}];let n=[],r=new Map,i=[];for(let t of e){let e=Dt(t);e==null?i.push(t):(r.has(e)||(n.push(e),r.set(e,[])),r.get(e)?.push(t))}let a=n.map(e=>({heading:e,items:r.get(e)??[]})),o=i.length>0?[{heading:null,items:i}]:[];return t?[...o,...a]:[...a,...o]}var kt=o((()=>{}));function At(){return typeof ResizeObserver>`u`?null:(Nt||=new ResizeObserver(e=>{for(let t of e){let e=Pt.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),Nt)}function jt(e,t){let n=Pt.get(e);n?n.set(t,(n.get(t)??0)+1):Pt.set(e,new Map([[t,1]])),At()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,Mt(e,t))}}function Mt(e,t){let n=Pt.get(e);if(t!=null){let e=n?.get(t);if(n==null||e==null)return;if(e>1){n.set(t,e-1);return}if(n.delete(t),n.size>0)return}Pt.delete(e),Nt&&(Nt.unobserve(e),Pt.size===0&&(Nt.disconnect(),Nt=null))}var Nt,Pt,Ft=o((()=>{Nt=null,Pt=new Map}));function It(e){return e!=null&&typeof e!=`boolean`&&e!==``}var Lt=o((()=>{}));function Rt(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function zt(e,t=[],n){return{ariaLabelledBy:n?Rt(n.labelID,e):void 0,ariaDescribedBy:Rt(n?.describedByIDs,...t)}}var Bt=o((()=>{}));function Vt(e){return e.split(``).map(e=>e+e).join(``)}function Ht(e){if(typeof e!=`string`)return null;let t=e.trim().replace(/^#/,``),n=t.length===3||t.length===4?Vt(t):t;return n.length!==6&&n.length!==8||!/^[0-9a-fA-F]+$/.test(n)?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function Ut(e){let t=e.indexOf(`(`);if(t===-1||!e.trim().endsWith(`)`))return null;let n=e.slice(t+1,e.lastIndexOf(`)`)).replace(/\//g,` `).split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;let r=e=>{let t=e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e);return qt(t,0,255)},i=r(n[0]),a=r(n[1]),o=r(n[2]);if([i,a,o].some(Number.isNaN))return null;let s=1;if(n.length>=4){let e=n[3];if(s=e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),Number.isNaN(s))return null;s=qt(s,0,1)}return{r:i,g:a,b:o,a:s}}function Wt(e){let t=e.trim(),n=Kt[t.toLowerCase()];return n?{...n}:t.startsWith(`#`)?Ht(t):/^rgba?\(/i.test(t)?Ut(t):null}function Gt(e,t,n){let r=e=>qt(Math.round(e),0,255).toString(16).padStart(2,`0`).toUpperCase();return`#${r(e)}${r(t)}${r(n)}`}var Kt,qt,Jt=o((()=>{Kt={transparent:{r:0,g:0,b:0,a:0},black:{r:0,g:0,b:0,a:1},white:{r:255,g:255,b:255,a:1}},qt=(e,t,n)=>Math.max(t,Math.min(n,e))}));function Yt(e,t){return`${e}: ${t}`}function Xt(e,t,...n){console.error(Yt(e,t),...n)}var Zt=o((()=>{})),Qt,$t,en=o((()=>{Qt={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},$t={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[Qt,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]}}));function tn(e){return(...t)=>V(e,...t)}var nn,rn,an,on,sn,cn,ln,un,dn=o((()=>{H(),Ze(),nn=Je[`--focus-outline-width`],rn=Je[`--focus-outline-style`],an=Je[`--focus-outline-color`],on=Je[`--focus-outline-offset`],`${nn}${rn}${an}`,sn={outlineWidth:nn,outlineStyle:rn,outlineColor:an,outlineOffset:on},cn={outlineWidth:``,outlineStyle:``,outlineColor:``,outlineOffset:``},ln={focusVisible:{kMeerF:`x1k57tk5 x1vidyx5`,k3XXqK:`x1t137rt x1jhp3zv`,kjBf7l:`xx47ajj`,kInvED:`x1wfwxd8 x1vwwbsn`,$$css:!0},focusWithin:{kMeerF:`x1k57tk5 x11j6mr8`,k3XXqK:`x1t137rt xciu248`,kjBf7l:`x1uy843r`,kInvED:`x1wfwxd8 x1jumodi`,$$css:!0},focusWithinFirstChild:{kMeerF:`x1k57tk5 xmmisi4`,k3XXqK:`x1t137rt xfd04fr`,kjBf7l:`xobxmqy`,kInvED:`x1wfwxd8 x2vr5qc`,$$css:!0},suppressed:{kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,kInvED:`x1wfwxd8`,$$css:!0},publishFocusVisibleVars:{"--_focus-outline":`x17wzz1v xqih627`,"--_focus-outline-offset":`xgzxwq1 xqchwus`,$$css:!0},focusWithinOrPublished:{kI3sdo:`xaw4jrz x16s19ga`,kInvED:`x1kvmbwa x1jumodi`,$$css:!0}},un={focusVisible:tn(ln.focusVisible),focusWithin:tn(ln.focusWithin),focusWithinFirstChild:tn(ln.focusWithinFirstChild),suppressed:tn(ln.suppressed),publishFocusVisibleVars:tn(ln.publishFocusVisibleVars),focusWithinOrPublished:tn(ln.focusWithinOrPublished)}}));function fn(e){return e.isComposing===!0||e.keyCode===pn}var pn,mn=o((()=>{pn=229})),hn=o((()=>{pt(),ht(),bt(),St(),wt(),Et(),ut(),kt(),Ft(),Lt(),Bt(),Jt(),Zt(),en(),dn(),mn()})),gn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_n=s(((e,t)=>{t.exports=gn()}));H(),hn(),ut();var G=_n(),vn=1e3,yn=100,bn={root:{kWkggS:`xprdx6m x1j0df82 x1o55y2u`,kSiTet:`xvpkmg4 x1tbh5bv`,$$css:!0},animate:{kILWW9:`xpz12be`,k44tkh:`xqgcaz`,ko0y90:`xa4qsjk`,kKVMdj:`xeuoslp x1aquc0h`,kyAemX:`x193epu2`,$$css:!0}},xn={0:{kaIpWk:`xwksslw`,$$css:!0},1:{kaIpWk:`xx3sua9`,$$css:!0},2:{kaIpWk:`xh6dtrn`,$$css:!0},3:{kaIpWk:`x1hviunn`,$$css:!0},4:{kaIpWk:`x1hviunn`,$$css:!0},none:{kaIpWk:`x2u8bby`,$$css:!0},rounded:{kaIpWk:`xjspbzw`,$$css:!0}},Sn={kKxzle:`xvo38ju`,$$css:!0},Cn={animationDelay:e=>[Sn,{"--x-animationDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${vn+yn*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x5lhr3w`,kZKoxP:(typeof t==`number`?`${t}px`:t)==null?typeof t==`number`?`${t}px`:t:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof t==`number`?`${t}px`:t)}]};function wn({width:e=`100%`,height:t=`100%`,radius:n=3,index:r=0,"data-testid":i,xstyle:a,className:o,style:s,ref:c,...l}){return(0,G.jsx)(`div`,{ref:c,"aria-hidden":`true`,"data-testid":i,...W(U(`skeleton`),V(bn.root,bn.animate,xn[n],Cn.dimensions(e,t),Cn.animationDelay(r),a),o,s),...l})}wn.displayName=`Skeleton`;var Tn={primary:{kMwMTN:`x1tgivj0`,$$css:!0},secondary:{kMwMTN:`xv1l7n4`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}},En={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},Dn={body:{k63SB2:`xxovm9e`,$$css:!0},large:{k63SB2:`x149oux8`,$$css:!0},label:{k63SB2:`xmhvcl5`,$$css:!0},code:{k63SB2:`xx3eeay`,$$css:!0},supporting:{k63SB2:`xv8on6e`,$$css:!0},"display-1":{k63SB2:`x1txul5o`,$$css:!0},"display-2":{k63SB2:`x1y36c3f`,$$css:!0},"display-3":{k63SB2:`x1on40hk`,$$css:!0},inherit:{k63SB2:`x1pd3egz`,$$css:!0}},On={body:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},large:{kGuDYH:`x18juvz8`,kLWn49:`xf74fhv`,$$css:!0},label:{kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,$$css:!0},code:{kGuDYH:`xp03k98`,kLWn49:`x17iicif`,kMv6JI:`x9m5x89`,$$css:!0},supporting:{kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},"display-1":{kGuDYH:`xsub3ws`,kLWn49:`x112ttwr`,$$css:!0},"display-2":{kGuDYH:`x1yego12`,kLWn49:`xh0iwvy`,$$css:!0},"display-3":{kGuDYH:`xlgnzhf`,kLWn49:`x1ujwuaq`,$$css:!0},inherit:{kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,$$css:!0}},kn={"4xs":{kGuDYH:`xxc45ev`,$$css:!0},"3xs":{kGuDYH:`x10p7juq`,$$css:!0},"2xs":{kGuDYH:`x16a80zy`,$$css:!0},xsm:{kGuDYH:`x51wmvv`,$$css:!0},sm:{kGuDYH:`x1eqnyfr`,$$css:!0},base:{kGuDYH:`x1j29vfg`,$$css:!0},lg:{kGuDYH:`xc7cgfe`,$$css:!0},xl:{kGuDYH:`x1wqms48`,$$css:!0},"2xl":{kGuDYH:`xhs0kqb`,$$css:!0},"3xl":{kGuDYH:`x10srzze`,$$css:!0},"4xl":{kGuDYH:`xqcvi3d`,$$css:!0}},An={1:{kGuDYH:`xcg7oai`,kLWn49:`xfmsba7`,k63SB2:`x1v68xuy`,$$css:!0},2:{kGuDYH:`x1xvnhcw`,kLWn49:`x1cpk1wn`,k63SB2:`x12yy4cs`,$$css:!0},3:{kGuDYH:`xii13ha`,kLWn49:`xwjzt0u`,k63SB2:`x1jcxfy8`,$$css:!0},4:{kGuDYH:`x8tkxat`,kLWn49:`xqerer`,k63SB2:`x2hcmsi`,$$css:!0},5:{kGuDYH:`xsgqta0`,kLWn49:`xo3gurs`,k63SB2:`xno150v`,$$css:!0},6:{kGuDYH:`xw5ohdf`,kLWn49:`xeixjfn`,k63SB2:`x1pw4frv`,$$css:!0}},jn={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},Mn={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},Nn={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},Pn={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},Fn={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},In={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},Ln={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},Rn={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},zn={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}};Ft();function Bn(e){let{maxLines:t}=e,[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(``),o=(0,y.useRef)(null),s=(0,y.useRef)(null),c=(0,y.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,y.useCallback)(e=>{s.current?.(),s.current=null,o.current=e,e&&t>0?typeof ResizeObserver<`u`?s.current=jt(e,()=>{c(e)}):c(e):(r(!1),a(``))},[t,c]),isTruncated:n,fullText:i}}function Vn(e,t,n,r,i,a){return(0,Hn.useMemo)(()=>Ct(e,t,n,r,i,a),[e,t,n,r,i,a])}var Hn,Un=o((()=>{Hn=u(f(),1),wt()})),Wn,Gn,Kn=o((()=>{Wn=u(f(),1),Gn=typeof window<`u`?Wn.useLayoutEffect:Wn.useEffect}));function qn(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Jn(e,t){e.style.anchorName=t.join(`, `)}function Yn(e,t){let n=qn(e);n.includes(t)||(n.push(t),Jn(e,n))}function Xn(e,t){Jn(e,qn(e).filter(e=>e!==t))}var Zn=o((()=>{}));function Qn(){rr+=1}function $n(){ir=rr}function er(){ar||typeof document>`u`||(ar=!0,document.addEventListener(`pointerdown`,Qn,!0),document.addEventListener(`keydown`,Qn,!0),document.addEventListener(`click`,$n,!0))}function tr(){return er(),rr}function nr(){return er(),ir===rr}var rr,ir,ar,or=o((()=>{rr=0,ir=null,ar=!1}));function sr(e){if(!e)return null;let t=null,n=e;for(;n;)cr.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var cr,lr=o((()=>{cr=new Set(`p.h1.h2.h3.h4.h5.h6.dt.pre.legend.data.dfn.meter.output.progress.option.optgroup.table.thead.tbody.tfoot.tr.colgroup.ul.ol.menu.dl.select.datalist.picture.hgroup.ruby.rt.rp.a.button.label.summary.span.em.strong.b.i.u.s.small.mark.code.kbd.samp.var.sub.sup.abbr.cite.q.time.bdi.bdo.ins.del`.split(`.`))})),ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr=o((()=>{ur={0:`spacing0`,.5:`spacing0_5`,1:`spacing1`,1.5:`spacing1_5`,2:`spacing2`,3:`spacing3`,4:`spacing4`,5:`spacing5`,6:`spacing6`,8:`spacing8`,10:`spacing10`},dr={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},fr={0:{"--container-padding-inline-start":`x1gu2k80`,"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,"--container-padding-inline-end":`xntetml`,$$css:!0}},pr={0:{"--container-padding-block-start":`x1i3qcxz`,$$css:!0},1:{"--container-padding-block-start":`xnsckjb`,$$css:!0},2:{"--container-padding-block-start":`xa8b4fq`,$$css:!0},3:{"--container-padding-block-start":`x11k4f5r`,$$css:!0},4:{"--container-padding-block-start":`xm01sq8`,$$css:!0},5:{"--container-padding-block-start":`xp8wdkl`,$$css:!0},6:{"--container-padding-block-start":`x1hmud4d`,$$css:!0},8:{"--container-padding-block-start":`xfv60at`,$$css:!0},10:{"--container-padding-block-start":`x17h9kl7`,$$css:!0},"0.5":{"--container-padding-block-start":`xvdf9ev`,$$css:!0},"1.5":{"--container-padding-block-start":`x1kbx601`,$$css:!0}},mr={0:{"--container-padding-block-end":`xkunwnr`,$$css:!0},1:{"--container-padding-block-end":`x57a7ii`,$$css:!0},2:{"--container-padding-block-end":`x1lsgcmx`,$$css:!0},3:{"--container-padding-block-end":`x1q3ppug`,$$css:!0},4:{"--container-padding-block-end":`x4hfsld`,$$css:!0},5:{"--container-padding-block-end":`xbib2ws`,$$css:!0},6:{"--container-padding-block-end":`x1q8d17g`,$$css:!0},8:{"--container-padding-block-end":`x8lgq76`,$$css:!0},10:{"--container-padding-block-end":`x15vxphk`,$$css:!0},"0.5":{"--container-padding-block-end":`x1cao3zv`,$$css:!0},"1.5":{"--container-padding-block-end":`xv53x8y`,$$css:!0}},hr={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},gr={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},_r={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,$$css:!0}},vr={0:{kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},yr={0:{kZCmMZ:`x18gyask`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,$$css:!0},2:{kZCmMZ:`x12gdq22`,$$css:!0},3:{kZCmMZ:`x126nfab`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,$$css:!0},5:{kZCmMZ:`x1blguxw`,$$css:!0},6:{kZCmMZ:`x31w388`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,$$css:!0},10:{kZCmMZ:`xqp078j`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,$$css:!0}},br={0:{kwRFfy:`x1s0aq8i`,$$css:!0},1:{kwRFfy:`x1nryj5t`,$$css:!0},2:{kwRFfy:`x1djylfy`,$$css:!0},3:{kwRFfy:`x1t818jl`,$$css:!0},4:{kwRFfy:`xnjyzlh`,$$css:!0},5:{kwRFfy:`xdbrk9v`,$$css:!0},6:{kwRFfy:`x1we12cn`,$$css:!0},8:{kwRFfy:`x1q91b2g`,$$css:!0},10:{kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kwRFfy:`x17hk9do`,$$css:!0}},xr={0:{"--container-padding-inline-start":`x1gu2k80`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,$$css:!0}},Sr={0:{"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-end":`xntetml`,$$css:!0}},Cr={0:{kLKAdn:`x1ydh6w3`,$$css:!0},1:{kLKAdn:`xfsso4q`,$$css:!0},2:{kLKAdn:`x1xye8es`,$$css:!0},3:{kLKAdn:`x1vlblms`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,$$css:!0},5:{kLKAdn:`xx7rijo`,$$css:!0},6:{kLKAdn:`x1adxfkp`,$$css:!0},8:{kLKAdn:`xoxd1wu`,$$css:!0},10:{kLKAdn:`xk6660b`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,$$css:!0}},wr={0:{kGO01o:`x1l20ajd`,$$css:!0},1:{kGO01o:`xy143xn`,$$css:!0},2:{kGO01o:`x1wesfrj`,$$css:!0},3:{kGO01o:`xvmdzux`,$$css:!0},4:{kGO01o:`x1awphl8`,$$css:!0},5:{kGO01o:`x1hk98q`,$$css:!0},6:{kGO01o:`xjpqqx5`,$$css:!0},8:{kGO01o:`x2oz4g1`,$$css:!0},10:{kGO01o:`x2izi54`,$$css:!0},"0.5":{kGO01o:`xij103a`,$$css:!0},"1.5":{kGO01o:`x1opdxmq`,$$css:!0}},Tr={0:{"--_section-padding-propagated":`x7mo41q`,$$css:!0},1:{"--_section-padding-propagated":`x1j3iakl`,$$css:!0},2:{"--_section-padding-propagated":`xezgk69`,$$css:!0},3:{"--_section-padding-propagated":`x1wtz8uf`,$$css:!0},4:{"--_section-padding-propagated":`x5wdj8h`,$$css:!0},5:{"--_section-padding-propagated":`xgjndll`,$$css:!0},6:{"--_section-padding-propagated":`x15i4jqh`,$$css:!0},8:{"--_section-padding-propagated":`xmb9lpv`,$$css:!0},10:{"--_section-padding-propagated":`x4h2jfd`,$$css:!0},"0.5":{"--_section-padding-propagated":`x2ccaqq`,$$css:!0},"1.5":{"--_section-padding-propagated":`xxa843v`,$$css:!0}},Er={reset:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-padding-outer-x":`xdt8ak2`,"--layout-padding-outer-y":`x1rs4lu4`,"--layout-padding-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}}}));function Or(e){return typeof e==`number`?`${e}px`:e}function kr(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function Ar(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function jr(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function Mr(e,t){let n=(0,Fr.useRef)(t);return n.current=t,(0,Fr.useMemo)(()=>({onPointerDown:t=>{if(!n.current)return;let r=t.currentTarget,i=r.ownerDocument;r.setAttribute(`popovertarget`,e);let a=()=>{i.removeEventListener(`pointerup`,a),i.removeEventListener(`pointercancel`,a),i.defaultView?.setTimeout(()=>{r.removeAttribute(`popovertarget`)},0)};i.addEventListener(`pointerup`,a),i.addEventListener(`pointercancel`,a)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e])}function Nr(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,Fr.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,Fr.useState)(!1),u=(0,Fr.useRef)(null),d=(0,Fr.useRef)(null),f=(0,Fr.useRef)(null),p=(0,Fr.useRef)(null),m=(0,Fr.useRef)(null),[h,g]=(0,Fr.useState)(null),_=(0,Fr.useRef)(!1),v=(0,Fr.useRef)(!1),y=(0,Fr.useRef)(null),b=(0,Fr.useRef)(null),x=(0,Fr.useCallback)(()=>{let e=tr();return y.current===e},[]),S=(0,Fr.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),C=(0,Fr.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),w=(0,Fr.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=sr(n),i={portalTarget:r,portalStyle:r?kr(e,r):{}};m.current=i,g(i)},[t]),T=(0,Fr.useCallback)(()=>{t===`context`&&a&&(m.current=null,g(null))},[t,a]),E=(0,Fr.useCallback)(()=>{if(x())return;let e=u.current,t=e&&C(e)?e:null;if(!t){_.current=!0,w();return}v.current||(S(t),v.current=!0,l(!0),n?.())},[n,w,S,C,x]),D=(0,Fr.useCallback)(()=>{if(_.current=!1,v.current){let e=u.current;d.current=null,v.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}T()},[r,T]),O=(0,Fr.useCallback)(e=>{f.current&&f.current!==e&&Xn(f.current,s),e&&Yn(e,s),f.current=e},[s]),k=(0,Fr.useCallback)(e=>{if(b.current?.(),nr())return;y.current=tr();let t=e.defaultView,n=null,r=()=>{y.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),b.current===r&&(b.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,b.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),b.current=r},[]);(0,Fr.useEffect)(()=>(tr(),()=>b.current?.()),[]);let A=(0,Fr.useCallback)(e=>{e.newState===`closed`&&v.current&&(d.current=null,v.current=!1,k(e.currentTarget?.ownerDocument??document),l(!1),r?.(),T())},[r,T,k]),j=(0,Fr.useRef)(null),M=(0,Fr.useRef)(null),N=(0,Fr.useCallback)((e,t)=>{j.current&&M.current&&(j.current!==e||M.current!==t)&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null),e&&j.current!==e&&(e.addEventListener(`toggle`,t),j.current=e,M.current=t)},[]),P=(0,Fr.useCallback)(e=>{u.current=e,N(e,A),e&&_.current?(_.current=!1,E()):e&&v.current&&d.current!==e&&C(e)&&S(e)},[A,N,E,S,C]),F=(0,Fr.useCallback)(e=>{p.current=e,e&&(!a||_.current||v.current)&&w()},[a,w]);(0,Fr.useEffect)(()=>(u.current&&N(u.current,A),()=>{j.current&&M.current&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null)}),[A,N]);let I=(0,Fr.useCallback)((e,t)=>{let n=(0,Lr.jsx)(`template`,{ref:F});if(h===null)return(0,Lr.jsx)(Lr.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:Ar(r,a),positionTryFallbacks:jr(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?zr.offsetBlock(Or(l)):zr.offsetInline(Or(l)):null,x=V(zr.base,Er.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,Lr.jsx)(g,{ref:P,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:e});return(0,Lr.jsxs)(Lr.Fragment,{children:[n,h.portalTarget?(0,Ir.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,P,F]),ee=(0,Fr.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=V(zr.base,Er.reset,zr.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,Lr.jsx)(`div`,{ref:P,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:e})},[P,o,i]),L=(0,Fr.useMemo)(()=>({ref:O,anchorId:s,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:I}),[O,s,E,D,c,x,o,I]),te=(0,Fr.useMemo)(()=>({ref:void 0,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:ee}),[E,D,c,x,o,ee]);return t===`context`?L:te}function Pr(e){let t=Nr(e);return(0,Fr.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}var Fr,Ir,Lr,Rr,zr,Br=o((()=>{Fr=u(f(),1),H(),Ir=g(),Zn(),or(),lr(),Dr(),Lr=_n(),Rr={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},zr={base:{keoZOQ:`xdj266r`,k1K539:`xat24cr`,keTefX:`x1lziwak`,k71WvV:`x14z9mp`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kVQacm:`x1rea2x4`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,kWkggS:`xjbqb8w`,$$css:!0},fixed:{kVAEAm:`xixxii4`,$$css:!0},offsetBlock:e=>[Rr,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]}}));function Vr(e){let t=e,n=t[Kr];if(n!=null)return n;let r={modality:`keyboard`,isListening:!1,onPointerDown:()=>{r.modality=`pointer`},onKeyDown:e=>{e.metaKey||e.altKey||e.ctrlKey||(r.modality=`keyboard`)}};return Object.defineProperty(t,Kr,{value:r}),r}function Hr(){if(typeof document>`u`)return()=>{};let e=document,t=Vr(e);return t.isListening||(t.isListening=!0,e.addEventListener(`pointerdown`,t.onPointerDown,{capture:!0,passive:!0}),e.addEventListener(`keydown`,t.onKeyDown,{capture:!0,passive:!0})),()=>{}}function Ur(){(0,Gr.useEffect)(()=>Hr(),[])}function Wr(){return typeof document>`u`?`keyboard`:Vr(document).modality}var Gr,Kr,qr=o((()=>{Gr=u(f(),1),Kr=Symbol.for(`@astryxdesign/core/interaction-modality/v1`)}));function Jr(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return $r.has(t);switch(e.tagName){case`BUTTON`:case`INPUT`:case`LABEL`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return Yr(e)}}function Yr(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Xr(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,Zr.useRef)(!1),u=(0,Zr.useRef)(i);u.current=i;let d=(0,Zr.useRef)(c);d.current=c;let f=(0,Zr.useRef)(a);f.current=a;let p=(0,Zr.useRef)(!1),m=(0,Zr.useRef)(null);Ur();let h=(0,Zr.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,Zr.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,Zr.useEffect)(()=>h,[h]);let _=(0,Zr.useCallback)(()=>l.current&&Wr()===`pointer`,[]),v=(0,Zr.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),y=(0,Zr.useCallback)(e=>{let i=Qr.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&Jr(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),b=(0,Zr.useRef)(i);return(0,Zr.useEffect)(()=>{b.current&&!i&&h(),b.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:_,handlePointerEnter:v,handlePointerDown:y,clearTapOpen:h}}var Zr,Qr,$r,ei=o((()=>{Zr=u(f(),1),qr(),Qr=new Set([`touch`,`pen`]),$r=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`])})),ti,ni=o((()=>{Ze(),Ye[`--duration-fast-max`],Xe[`--ease-standard`],ti={below:{kKVMdj:`xl1vlw0 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},above:{kKVMdj:`x3psbcj x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},end:{kKVMdj:`x1i331go x1vxsm5i x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},start:{kKVMdj:`xck01x9 x18lne9g x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0}}}));function ri(){return(0,ai.use)(si)}function ii({children:e}){let t=(0,ai.use)(si);return(0,oi.jsx)(si,{value:t+1,children:e})}var ai,oi,si,ci=o((()=>{ai=u(f(),1),oi=_n(),si=(0,ai.createContext)(0),si.displayName=`LayerDepthContext`,ii.displayName=`LayerDepthProvider`}));function li(e){let t=Ci.get(e);if(t!==void 0)return t;let n=wi++;return Ci.set(e,n),n}function ui(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function di(e){return e.isPresent?.()??!0}function fi(){return Ei}function pi(){Ei=!0}function mi(){Ei=!1}function hi(){let e=null;for(let t of Si)di(t)&&(e==null||ui(t,e)>0)&&(e=t);return e}function gi(e){return hi()?.token===e}function _i(){let e=hi();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function vi(e){if(e.key===`Escape`){if(fn(e)){hi()!=null&&e.preventDefault();return}e.defaultPrevented||_i()&&e.preventDefault()}}function yi(){Ti||typeof document>`u`||(document.addEventListener(`keydown`,vi),document.addEventListener(`compositionstart`,pi,!0),document.addEventListener(`compositionend`,mi,!0),document.addEventListener(`blur`,mi,!0),Ti=!0)}function bi(){!Ti||typeof document>`u`||(document.removeEventListener(`keydown`,vi),document.removeEventListener(`compositionstart`,pi,!0),document.removeEventListener(`compositionend`,mi,!0),document.removeEventListener(`blur`,mi,!0),Ei=!1,Ti=!1)}function xi(e){let t={...e,seq:li(e.token)};return Si.push(t),yi(),()=>{let e=Si.indexOf(t);e!==-1&&Si.splice(e,1),Si.length===0&&bi()}}var Si,Ci,wi,Ti,Ei,Di=o((()=>{mn(),Si=[],Ci=new WeakMap,wi=0,Ti=!1,Ei=!1}));function Oi(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=ri(),c=(0,ki.useRef)({}),l=(0,ki.useRef)(n),u=(0,ki.useRef)(i),d=(0,ki.useRef)(a);(0,ki.useEffect)(()=>{l.current=n,u.current=i,d.current=a});let f=t&&o;return(0,ki.useEffect)(()=>{if(f)return xi({token:c.current,depth:s,behavior:r,getContainer:()=>u.current?.()??null,isPresent:()=>d.current?.()??!0,dismiss:()=>l.current()})},[f,s,r]),{shouldDismissOnCloseRequest:(0,ki.useCallback)(()=>f&&!fi()&&gi(c.current),[f])}}var ki,Ai=o((()=>{ki=u(f(),1),ci(),Di()}));function ji(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Mi(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,{ref:f,anchorId:p,show:m,hide:h,isOpen:g,id:_,render:v}=Pr({mode:`context`,onShow:u,onHide:d}),y=Ii.container,b=(0,Ni.useRef)(null),x=(0,Ni.useRef)(null),S=(0,Ni.useRef)(null),C=(0,Ni.useCallback)(()=>{b.current&&=(clearTimeout(b.current),null),x.current&&=(clearTimeout(x.current),null)},[]),w=(0,Ni.useCallback)(()=>{C(),m()},[C,m]),T=(0,Ni.useCallback)(()=>{C(),h()},[C,h]),{isTouchPointerRef:E,isTouchInteraction:D,handlePointerEnter:O,handlePointerDown:k,clearTapOpen:A}=Xr({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:g,layerId:_,triggerRef:S,show:w,hide:T}),j=(0,Ni.useCallback)(()=>{s&&c!==!1&&(C(),b.current=setTimeout(()=>{m()},r))},[s,c,C,m,r]),M=(0,Ni.useCallback)(()=>{c!==!0&&(C(),x.current=setTimeout(()=>{h()},i>0?i:Fi))},[c,C,h,i]),N=(0,Ni.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null)},[]),P=(0,Ni.useCallback)(()=>{E.current||j()},[E,j]),F=(0,Ni.useCallback)(()=>{E.current||M()},[E,M]),I=(0,Ni.useCallback)(e=>{s&&(D()||e.target.matches(`:focus-visible`)&&(C(),m()))},[s,D,C,m]),ee=(0,Ni.useCallback)(()=>{M()},[M]),L=(0,Ni.useCallback)(e=>{k(e)||c===void 0&&(C(),h())},[k,c,C,h]),te=(0,Ni.useCallback)(e=>{S.current&&(S.current.removeEventListener(`mouseenter`,P),S.current.removeEventListener(`mouseleave`,F),S.current.removeEventListener(`focusin`,I),S.current.removeEventListener(`focusout`,ee),S.current.removeEventListener(`pointerenter`,O),S.current.removeEventListener(`pointerdown`,L)),e&&(e.addEventListener(`pointerenter`,O),e.addEventListener(`mouseenter`,P),e.addEventListener(`mouseleave`,F),e.addEventListener(`pointerdown`,L),(a===`always`||a===`auto`&&ji(e))&&(e.addEventListener(`focusin`,I),e.addEventListener(`focusout`,ee))),S.current=e},[a,P,F,I,ee,O,L]),R=(0,Ni.useCallback)(e=>{f(e),te(e)},[f,te]);return(0,Ni.useEffect)(()=>()=>{C()},[C]),(0,Ni.useEffect)(()=>{l&&m()},[]),(0,Ni.useEffect)(()=>{c!==void 0&&(c?(C(),m()):(C(),h()))},[c,C,m,h]),Oi({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(_);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return g}},onDismiss:()=>{if(C(),A(),c!==void 0){d?.();return}h()}}),{ref:R,positionRef:f,interactionRef:te,anchorId:p,describedBy:_,renderTooltip:(0,Ni.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:qe[`--spacing-1`],role:`tooltip`,xstyle:[y,ti[i]],className:U(`tooltip`).className,onMouseEnter:N,onMouseLeave:M};return v((0,Pi.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[v,t,n,y,N,M])}}var Ni,Pi,Fi,Ii,Li=o((()=>{Ni=u(f(),1),Br(),ei(),ni(),Ai(),ut(),Ze(),Pi=_n(),Fi=100,Ii={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}}})),Ri=c({Tooltip:()=>Vi});function zi(e){return typeof e==`string`||typeof e==`number`}function Bi(...e){let t=e.filter(Boolean);return t.length>0?t.join(` `):void 0}function Vi({children:e,anchorRef:t,content:n,placement:r=`above`,alignment:i=`center`,delay:a=200,hideDelay:o=0,focusTrigger:s=`auto`,touchTrigger:c=`auto`,isEnabled:l=!0,onOpenChange:u,hasHoverIndication:d=`auto`,isOpen:f,isDefaultOpen:p}){let m=(0,Hi.useRef)(null),h=e!=null&&zi(e),g=d===!0||d===`auto`&&h,_=Mi({placement:r,alignment:i,delay:a,hideDelay:o,focusTrigger:s,touchTrigger:c,isEnabled:l,isOpen:f,isDefaultOpen:p,onShow:(0,Hi.useCallback)(()=>{u?.(!0)},[u]),onHide:(0,Hi.useCallback)(()=>{u?.(!1)},[u])});return Gn(()=>{if(!t)return;let e=t.current;if(!e)return;_.ref(e);let n=e.getAttribute(`aria-describedby`);return e.setAttribute(`aria-describedby`,Bi(n,_.describedBy)??``),()=>{_.ref(null),n?e.setAttribute(`aria-describedby`,n):e.removeAttribute(`aria-describedby`)}},[t,_.ref,_.describedBy]),Gn(()=>{if(t||h)return;let e=m.current;if(!e)return;let n=e.firstElementChild;if(!n)return;_.ref(n);let r=n.getAttribute(`aria-describedby`);return n.setAttribute(`aria-describedby`,Bi(r,_.describedBy)??``),()=>{_.ref(null),r?n.setAttribute(`aria-describedby`,r):n.removeAttribute(`aria-describedby`)}},[t,h,_.ref,_.describedBy]),t&&e==null?(0,Ui.jsx)(Ui.Fragment,{children:_.renderTooltip(n)}):h?(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(`span`,{ref:_.ref,tabIndex:0,"aria-describedby":_.describedBy,...{0:{className:`xt0psk2`},1:{className:`xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj`}}[!!g<<0],children:e}),_.renderTooltip(n)]}):(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(`div`,{ref:m,className:`xjp7ctv`,children:e}),_.renderTooltip(n)]})}var Hi,Ui,Wi=o((()=>{Hi=u(f(),1),Kn(),Li(),Ui=_n(),Vi.displayName=`Tooltip`}));H(),hn(),Un(),ut();var Gi=(0,y.lazy)(async()=>Promise.resolve().then(()=>(Wi(),Ri)).then(e=>({default:e.Tooltip}))),Ki={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function qi(e){return e in On?e:`body`}function Ji(e){return e in Tn?e:`primary`}function Yi({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:_,ref:v,...b}){let x=n??Ki[e]??`primary`,S=qi(e),C=Ji(x),w=s??(a===1?`break-all`:`break-word`),T=a>0||u?`block`:i,E=Bn({maxLines:a}),D=typeof o==`string`?o:`above`,O=a>0&&o!==!1&&E.isTruncated,k=(0,y.useRef)(null),A=Vn(v,E.ref,k),j=a>1?{WebkitLineClamp:a}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{ref:A,...W(U(`text`,{type:e,size:t,color:x}),V(Tn[C],On[S],t&&kn[t],Dn[S],r&&En[r],a===1?Mn.singleLine:a>1?Mn.multiLine:jn[T],a>0&&Nn[w],c&&Pn[c],l!==`start`&&Rn[l],u&&Fn.enabled,d&&In.strikethrough,f&&Ln.enabled,p),m,{...h,...j}),...b,children:_}),O&&(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(Gi,{anchorRef:k,content:(0,G.jsx)(`span`,{...V(zn.content),children:E.fullText}),placement:D})})]})}Yi.displayName=`Text`,H(),hn(),Un(),ut();var Xi=(0,y.lazy)(async()=>Promise.resolve().then(()=>(Wi(),Ri)).then(e=>({default:e.Tooltip})));function Zi(e){return e===`display-1`||e===`display-2`||e===`display-3`}var Qi={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`};function $i({level:e,type:t,weight:n,accessibilityLevel:r,color:i=`primary`,display:a=`block`,maxLines:o=0,hasTruncateTooltip:s=!0,wordBreak:c,textWrap:l,justify:u=`start`,hasCapsize:d=!1,hasStrikethrough:f=!1,xstyle:p,className:m,style:h,children:g,ref:_,...v}){let b=Qi[e],x=r&&r!==e?{"aria-level":r}:{},S=c??(o===1?`break-all`:`break-word`),C=o>0||d?`block`:a,w=t&&Zi(t)?t:void 0,T=Bn({maxLines:o}),E=typeof s==`string`?s:`above`,D=o>0&&s!==!1&&T.isTruncated,O=(0,y.useRef)(null),k=Vn(_,T.ref,O),A=o>1?{WebkitLineClamp:o}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b,{ref:k,...W(U(`heading`,{level:e,color:i,type:t,weight:n}),V(Tn[Ji(i)],w?On[w]:An[e],w&&Dn[w],n&&En[n],o===1?Mn.singleLine:o>1?Mn.multiLine:jn[C],o>0&&Nn[S],l&&Pn[l],u!==`start`&&Rn[u],d&&Fn.enabled,f&&In.strikethrough,p),m,{...h,...A}),...x,...v,children:g}),D&&(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(Xi,{anchorRef:O,content:(0,G.jsx)(`span`,{...V(zn.content),children:T.fullText}),placement:E})})]})}$i.displayName=`Heading`;function ea(e,t,n){if(n==null)return!1;if(n instanceof Date)return e.append(t,n.toISOString()),!0;if(Array.isArray(n)){let r=!1;for(let i of n)r=ea(e,t,i)||r;return r}if(typeof n==`string`||typeof n==`number`||typeof n==`boolean`)return e.append(t,String(n)),!0;throw Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function ta(e,t){if(!t)return e;let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`),o=a===-1?r:r.slice(0,a),s=a===-1?``:r.slice(a+1),c=new URLSearchParams(s),l=!1;for(let[e,n]of Object.entries(t))l=ea(c,e,n)||l;if(!l)return e;let u=c.toString();return`${o}${u?`?${u}`:``}${i}`}function na(e){return e!==!1}function ra(e){let t=e.currentTarget.getAttribute(`target`);return t!==null&&t!==`_self`||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}function ia({href:e,method:t=`GET`,data:n,preserveScroll:r=!1,preserveState:i=!1,replace:a=!1,reloadDocument:o=!1,viewTransition:s,prefetch:c=!1,cacheFor:l,onNavigate:u,children:d,style:f,onClick:p,onMouseEnter:m,onMouseLeave:h,onFocus:g,onMouseDown:_,onTouchStart:v,...b}){let x=(0,y.useContext)(ye),S=(0,y.useRef)(null),C=(0,y.useRef)(null),w=(0,y.useMemo)(()=>t.toUpperCase(),[t]),T=w===`GET`,E=(0,y.useMemo)(()=>T?ta(e,n):e,[n,e,T]),D=(0,y.useMemo)(()=>c===!1||o?[]:c===!0?[`hover`]:typeof c==`string`?[c]:c,[c,o]),O=x?._hoverDelay??75;if(na(c)&&!T)throw Error('Link: prefetch only supports GET links. Remove `prefetch` or use method="GET".');if(o&&!T)throw Error(`Link: reloadDocument only supports GET links.`);let k=(0,y.useCallback)(()=>{if(!x?.prefetch)return;let e=window.location.pathname+window.location.search;if(E===e)return;let t={};l!==void 0&&(t.cacheFor=l),w&&(t.method=w),x.prefetch(E,t)},[l,E,w,x]),A=(0,y.useCallback)(e=>!(o||!x||e.defaultPrevented||ra(e)||e.currentTarget.hasAttribute(`download`)||new URL(E,window.location.origin).origin!==window.location.origin),[E,o,x]),j=(0,y.useCallback)(e=>{if(p?.(e),!A(e))return;let t=!1;if(u?.({preventDefault(){t=!0}}),t){e.preventDefault();return}e.preventDefault(),x?.visit(E,{method:w,data:T?void 0:n,preserveScroll:r,preserveState:i,replace:a,viewTransition:s})},[n,E,T,w,p,u,r,i,a,x,A,s]),M=(0,y.useCallback)(e=>{m?.(e),!e.defaultPrevented&&(C.current&&clearTimeout(C.current),C.current=setTimeout(k,O))},[k,O,m]),N=(0,y.useCallback)(e=>{h?.(e),C.current&&=(clearTimeout(C.current),null)},[h]),P=(0,y.useCallback)(e=>{g?.(e),e.defaultPrevented||k()},[k,g]),F=(0,y.useCallback)(e=>{_?.(e),e.defaultPrevented||k()},[k,_]),I=(0,y.useCallback)(e=>{v?.(e),e.defaultPrevented||k()},[k,v]);(0,y.useEffect)(()=>{if(D.length===0)return;D.includes(`mount`)&&k();let e=null;return D.includes(`visible`)&&S.current&&(e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(k(),e?.disconnect(),e=null)},{rootMargin:`0px`}),e.observe(S.current)),()=>{C.current&&=(clearTimeout(C.current),null),e&&e.disconnect()}},[k,D]);let ee=(0,y.useMemo)(()=>{let e={onClick:j,onFocus:g,onMouseDown:_,onMouseEnter:m,onMouseLeave:h,onTouchStart:v};return D.includes(`hover`)&&(e.onMouseEnter=M,e.onMouseLeave=N,e.onFocus=P,e.onTouchStart=I),D.includes(`click`)&&(e.onMouseDown=F,e.onTouchStart=I),e},[j,P,g,F,_,M,m,N,h,I,v,D]),L=(0,y.useMemo)(()=>({touchAction:`manipulation`,...f}),[f]);return T?(0,G.jsx)(`a`,{ref:S,href:E,style:L,...b,...ee,children:d}):(0,G.jsx)(`button`,{ref:S,type:`button`,style:L,...b,...ee,children:d})}function aa(){return(0,y.useContext)(ye)??he}function oa(){let e=(0,y.useContext)(ge);if(!e)throw Error(`useShared(): must be used inside a Void page.`);return e}function sa(){return(0,y.useContext)(be)}function ca(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]={...r};for(let[e,r]of Object.entries(t))if(!n[e])n[e]={...r};else for(let[t,i]of Object.entries(r))n[e][t]={...n[e][t],...i};return n}var la=o((()=>{}));function ua(e,t,n){return Math.round(e*t**+n)}function da(e){return`${Math.round(e/16*1e4)/1e4}rem`}function fa(e){return e<20?1.5:e<32?1.4:1.25}function pa(e){let t=e*fa(e),n=Math.max(Math.round(t/4)*4,Math.ceil((e+4)/4)*4);return Math.round(n/e*1e4)/1e4}function ma(e){let{base:t,ratio:n,weights:r}=e,i={},a={...ya,...r?.heading},o={...ba,...r?.text};for(let e=-5;e<=6;e++){let r=ua(t,n,e);i[ga[e]]=da(r)}for(let[e,r]of Object.entries(_a)){let o=Number(e),s=pa(ua(t,n,r));i[`--text-heading-${o}-size`]=`var(${ga[r]})`,i[`--text-heading-${o}-weight`]=a[o],i[`--text-heading-${o}-leading`]=`${s}`}for(let[e,r]of Object.entries(va)){let a=pa(ua(t,n,r));i[`--text-${e}-size`]=`var(${ga[r]})`,i[`--text-${e}-weight`]=o[e],i[`--text-${e}-leading`]=`${a}`}return i}function ha(e){let t={},n={};for(let e of[1,2,3,4,5,6])n[`level:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-${e}-size)`,fontWeight:`var(--text-heading-${e}-weight)`,lineHeight:`var(--text-heading-${e}-leading)`};for(let e of[`display-1`,`display-2`,`display-3`])n[`type:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};t.heading=n;let r={};for(let e of[`body`,`large`,`label`,`code`,`supporting`,`display-1`,`display-2`,`display-3`])r[`type:${e}`]={fontFamily:xa[e],fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};return t.text=r,t}var ga,_a,va,ya,ba,xa,Sa=o((()=>{ga={[-5]:`--font-size-4xs`,[-4]:`--font-size-3xs`,[-3]:`--font-size-2xs`,[-2]:`--font-size-xs`,[-1]:`--font-size-sm`,0:`--font-size-base`,1:`--font-size-lg`,2:`--font-size-xl`,3:`--font-size-2xl`,4:`--font-size-3xl`,5:`--font-size-4xl`,6:`--font-size-5xl`},_a={1:3,2:2,3:1,4:0,5:-1,6:-2},va={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},ya={1:`var(--font-weight-semibold)`,2:`var(--font-weight-semibold)`,3:`var(--font-weight-semibold)`,4:`var(--font-weight-semibold)`,5:`var(--font-weight-semibold)`,6:`var(--font-weight-semibold)`},ba={body:`var(--font-weight-normal)`,large:`var(--font-weight-semibold)`,label:`var(--font-weight-medium)`,code:`var(--font-weight-normal)`,supporting:`var(--font-weight-normal)`,"display-1":`var(--font-weight-normal)`,"display-2":`var(--font-weight-normal)`,"display-3":`var(--font-weight-normal)`},xa={body:`var(--font-family-body)`,large:`var(--font-family-body)`,label:`var(--font-family-body)`,code:`var(--font-family-code)`,supporting:`var(--font-family-body)`,"display-1":`var(--font-family-heading)`,"display-2":`var(--font-family-heading)`,"display-3":`var(--font-family-heading)`}}));function Ca(e){return Math.round(e/5)*5}function wa(e){let{fast:t,medium:n,slow:r,ratio:i,easing:a}=e,o={"--duration-fast-min":`${Ca(t*i)}ms`,"--duration-fast":`${Ca(t)}ms`,"--duration-fast-max":`${Ca(t/i)}ms`,"--duration-medium-min":`${Ca(n*i)}ms`,"--duration-medium":`${Ca(n)}ms`,"--duration-medium-max":`${Ca(n/i)}ms`};return r!=null&&(o[`--duration-slow-min`]=`${Ca(r*i)}ms`,o[`--duration-slow`]=`${Ca(r)}ms`,o[`--duration-slow-max`]=`${Ca(r/i)}ms`),a&&(o[`--ease-standard`]=a),o}var Ta=o((()=>{}));function Ea(e){let{base:t,multiplier:n}=e;return{"--radius-none":`0px`,"--radius-inner":`${Math.round(t*1*n)}px`,"--radius-element":`${Math.round(t*2*n)}px`,"--radius-container":`${Math.round(t*3*n)}px`,"--radius-page":`${Math.round(t*7*n)}px`,"--radius-chat":`${Math.round(t*7*n)}px`,"--radius-full":`9999px`}}var Da=o((()=>{}));function Oa(e){let t=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function ka(e,t){let n=e.a;return{r:e.r*n+t.r*(1-n),g:e.g*n+t.g*(1-n),b:e.b*n+t.b*(1-n),a:1}}function Aa(e,t){if(typeof e!=`string`)return e;let n=Wt(e);if(n===null)throw TypeError(`contrastRatio: could not parse ${t} "${e}"`);return n}function ja(e,t){let n=Aa(t,`background`);if(n.a<1)throw TypeError(`contrastRatio: background must be opaque — composite it over its backdrop first`);let r=Aa(e,`foreground`);r.a<1&&(r=ka(r,n));let i=Oa(r),a=Oa(n),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}var Ma=o((()=>{Jt()}));function Na(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Pa(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function Fa(e,t,n){return[.4124564*e+.3575761*t+.1804375*n,.2126729*e+.7151522*t+.072175*n,.0193339*e+.119192*t+.9503041*n]}function Ia(e,t,n){return[3.2404542*e-1.5371385*t-.4985314*n,-.969266*e+1.8760108*t+.041556*n,.0556434*e-.2040259*t+1.0572252*n]}function La(e){let t=6/29;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Ra(e){let t=6/29;return e>t?e*e*e:3*t*t*(e-4/29)}function za(e,t,n){let r=La(e/Ya[0]),i=La(t/Ya[1]),a=La(n/Ya[2]);return[116*i-16,500*(r-i),200*(i-a)]}function Ba(e,t,n){let r=(e+16)/116,i=t/500+r,a=r-n/200;return[Ra(i)*Ya[0],Ra(r)*Ya[1],Ra(a)*Ya[2]]}function Va(e){return Ra((e+16)/116)}function Ha(e){let t=Ht(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function Ua(e){let[t,n,r]=Ha(e),[i,a,o]=Fa(Na(t),Na(n),Na(r)),[s,c,l]=za(i,a,o),u=Math.atan2(l,c)*180/Math.PI;u<0&&(u+=360);let d=Math.sqrt(c*c+l*l);return{hue:u,chroma:d,tone:Math.max(0,Math.min(100,s))}}function Wa(e){let{hue:t,chroma:n,tone:r}=e;if(r<=0)return`#000000`;if(r>=100)return`#FFFFFF`;if(n<.5){let e=Ga(r);return Gt(e,e,e)}let i=0,a=n,o=`#000000`;for(let e=0;e<16;e++){let e=(i+a)/2,n=Ka(t,e,r);n===null?a=e:(o=n,i=e)}return o}function Ga(e){return Pa(Va(e))}function Ka(e,t,n){let r=e*Math.PI/180,[i,a,o]=Ba(n,Math.cos(r)*t,Math.sin(r)*t),[s,c,l]=Ia(i,a,o),u=Pa(s),d=Pa(c),f=Pa(l),p=Na(u),m=Na(d),h=Na(f),g=.02;return Math.abs(p-s)>g||Math.abs(m-c)>g||Math.abs(h-l)>g||u<0||u>255||d<0||d>255||f<0||f>255?null:Gt(u,d,f)}function qa(e,t){let n={};for(let r of Xa)n[r]=Wa({hue:e,chroma:t,tone:r});return n}function Ja(e,t){return e+Math.round(t*255).toString(16).padStart(2,`0`).toUpperCase()}var Ya,Xa,Za=o((()=>{Jt(),Ya=[.95047,1,1.08883],Xa=[0,5,10,20,30,40,50,60,70,80,90,95,99,100]}));function Qa(e,t){return`light-dark(${e}, ${t})`}function $a(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}function eo(e,t,n,r,i,a){let o=n,s=Wa({hue:e,chroma:t,tone:o});for(;ja(s,i)<a&&o+r>=0&&o+r<=100;)o+=r,s=Wa({hue:e,chroma:t,tone:o});return s}function to(e){let{accent:t,neutralStyle:n=`cool`,contrast:r=`standard`}=e,[i,a]=Array.isArray(t)?t:[t,t],o=Ua(i??io),s=a===i,c=s?o:Ua(a??io),l=no[n]??5,u=ro[n]??8,d=qa(o.hue,Math.max(o.chroma,48)),f=qa(o.hue,l),p=qa(o.hue,u),m=s?d:qa(c.hue,Math.max(c.chroma,48)),h=s?f:qa(c.hue,l),g=s?p:qa(c.hue,u),_=r===`high`,v=_?0:10,y=_?99:90,b=_?20:30,x=_?80:70,S=_?.2:.1,C=_?50:70,w=_?50:30,T=Qa(eo(o.hue,u,C,-1,f[99],ao),eo(c.hue,u,w,1,h[10],ao));return{...t==null?null:{"--color-accent":Qa(d[40],m[80]),"--color-accent-muted":Qa($a(.2),$a(.25)),"--color-on-accent":Qa(d[100],m[20])},"--color-neutral":Qa(Ja(f[10],.1),Ja(h[90],.2)),"--color-background-surface":Qa(f[99],h[10]),"--color-background-body":Qa(f[95],h[5]),"--color-overlay":Qa(Ja(f[10],.4),Ja(h[10],.6)),"--color-overlay-hover":Qa(Ja(f[10],.05),Ja(h[100],.05)),"--color-overlay-pressed":Qa(Ja(f[10],.1),Ja(h[100],.1)),"--color-background-muted":Qa(Ja(f[10],.05),Ja(h[10],.5)),"--color-text-primary":Qa(f[v],h[y]),"--color-text-secondary":Qa(p[b],g[x]),"--color-text-disabled":Qa(p[60],g[40]),"--color-text-accent":`var(--color-accent)`,"--color-icon-accent":`var(--color-accent)`,"--color-icon-primary":Qa(f[v],h[y]),"--color-icon-secondary":Qa(p[b],g[x]),"--color-icon-disabled":Qa(p[60],g[40]),"--color-background-card":Qa(f[99],h[10]),"--color-background-popover":Qa(f[99],h[20]),"--color-background-inverted":Qa(f[10],h[99]),"--color-border":Qa(Ja(f[10],S),Ja(h[95],S)),"--color-border-emphasized":T,"--color-skeleton":Qa(p[70],g[30]),"--color-track":Qa(p[70],g[30]),"--color-shadow":Qa(Ja(f[0],.1),Ja(h[0],.3)),"--color-tint-hover":Qa(`black`,`white`)}}var no,ro,io,ao,oo=o((()=>{Ma(),Za(),no={warm:7,cool:5,neutral:3},ro={warm:10,cool:8,neutral:6},io=`#0064E0`,ao=3}));function so(e,{strict:t=!1}={}){if(typeof e==`string`)return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)return`light-dark(${e[0]}, ${e[1]})`;if(t)throw Error(`Theme token values must be CSS strings or [light, dark] string tuples.`);return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function co(e){return{normal:`var(--font-weight-normal)`,medium:`var(--font-weight-medium)`,semibold:`var(--font-weight-semibold)`,bold:`var(--font-weight-bold)`}[e]??e}function lo(e,t){if(!e)return;let n=e.includes(` `)?`"${e}"`:e;return t?`${n}, ${t}`:n}function uo(e){if(!e.scale)return;let t={},n=e.heading;if(n?.weights)for(let[e,r]of Object.entries(n.weights))r&&(t[Number(e)]=co(r));let r=n?.weight?co(n.weight):void 0;if(r)for(let e=1;e<=6;e++)e in t||(t[e]=r);let i={};return e.body?.weight&&(i.body=co(e.body.weight)),e.code?.weight&&(i.code=co(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(i).length>0?{text:i}:{}}}}function fo(e){let t={},n=lo(e.body?.family,e.body?.fallbacks),r=lo(e.heading?.family,e.heading?.fallbacks)??n,i=lo(e.code?.family,e.code?.fallbacks);return n&&(t[`--font-family-body`]=n),r&&(t[`--font-family-heading`]=r),i&&(t[`--font-family-code`]=i),t}function po(e,t,{strictTokens:n=!1}={}){let r={...t?.tokens},i=e.typography,a=i?uo(i):void 0;if(e.color&&Object.assign(r,to(e.color)),a&&Object.assign(r,ma(a)),e.radius&&Object.assign(r,Ea(e.radius)),e.motion&&Object.assign(r,wa(e.motion)),i&&Object.assign(r,fo(i)),e.syntax)for(let[t,n]of Object.entries(e.syntax.tokens))r[`--color-syntax-`+t]=n;if(e.tokens)for(let[t,i]of Object.entries(e.tokens))i!==void 0&&(r[t]=so(i,{strict:n}));let o=e.components;return a&&(o=ca(ha(a),e.components)),t?.components&&(o=ca(t.components,o)),{tokens:r,components:o}}var mo=o((()=>{Sa(),Ta(),Da(),oo(),la()}));function ho(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function go(e,t){if(typeof e==`string`)return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)return`light-dark(${e[0]}, ${e[1]})`;throw Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function _o(e,t){if(typeof e==`string`){xo.lastIndex=0;for(let n=xo.exec(e);n;n=xo.exec(e))t.add(n[1]);return}if(Array.isArray(e)){for(let n of e)_o(n,t);return}if(e&&typeof e==`object`)for(let n of Object.values(e))_o(n,t)}function vo(e,t,n){let r=new Map;for(let[t,n]of Object.entries(e)){let i=new Set;_o(n,i),r.set(t,[...i].filter(t=>ho(e,t)))}let i=(e,t)=>{let n=[e],i=new Set(n),a=o=>{for(let s of r.get(o)??[])if(t.has(s)){if(s===e)return n.push(e),!0;if(!i.has(s)){if(n.push(s),i.add(s),a(s))return!0;i.delete(s),n.pop()}}return!1};return a(e),n},a=0,o=new Map,s=new Map,c=[],l=new Set,u=e=>{let d=a++;o.set(e,d),s.set(e,d),c.push(e),l.add(e);for(let t of r.get(e)??[])o.has(t)?l.has(t)&&s.set(e,Math.min(s.get(e)??d,o.get(t)??0)):(u(t),s.set(e,Math.min(s.get(e)??d,s.get(t)??0)));if(s.get(e)!==d)return;let f=[],p;do p=c.pop()??e,l.delete(p),f.push(p);while(p!==e);if(!(f.length>1||(r.get(f[0])??[]).includes(f[0]))||n&&!f.some(e=>n.has(e)))return;let m=f.find(e=>n?.has(e))??f[0],h=i(m,new Set(f)).join(` -> `);throw Error(`${t?`${t}: `:``}Theme token cycle detected: ${h}.`)};for(let t of Object.keys(e))o.has(t)||u(t)}function yo(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(n===void 0)return;if(typeof n!=`object`||!n||Array.isArray(n))throw Error(`${i} must be a token map.`);let a={};for(let[e,t]of Object.entries(n)){if(!r||!ho(r,e))throw Error(`${i}["${e}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);a[e]=go(t,`${i}["${e}"]`)}return Object.keys(a).length>0?a:void 0}var bo,xo,So=o((()=>{bo=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,RegExp(`^--${bo}*$`,`u`),xo=RegExp(`var\\(\\s*(--${bo}*)(?=\\s*(?:,|\\)))`,`giu`)}));function Co(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function wo(e,t){if(!Co(e))throw Error(`${t} must be an object.`)}function To(e,t,n){for(let r of Object.keys(e))if(!t.has(r))throw Error(`${n}.${r} is not supported.`)}function Eo(e){if(Array.isArray(e)){let t=[];for(let n of e)t.push(Eo(n));return t}return Co(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Eo(t)])):e}function Do(e,t){wo(e,t),To(e,Jo,t);let n={};for(let r of Ko){let i=e[r];if(i!==void 0){if(typeof i!=`number`||!Number.isFinite(i)||i<=0)throw Error(`${t}.${r} must be a finite positive number of CSS pixels.`);n[r]=i}}return n}function Oo(e,t){let n=Do(e,t);for(let e of Ko)if(n[e]===void 0)throw Error(`${t}.${e} is missing from the effective breakpoint map.`);return n}function ko(e,t){let n;for(let r of Ko){if(n!==void 0&&e[r]<=e[n])throw Error(`${t} must be strictly increasing: ${r} (${e[r]}) is not above ${n} (${e[n]}).`);n=r}}function Ao(e,t){wo(e,t),To(e,Zo,t);let n=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));if(Object.keys(n).length===0)throw Error(`${t} must contain at least one condition.`);let r=Eo(n);if(r.width!==void 0){if(wo(r.width,`${t}.width`),To(r.width,Qo,`${t}.width`),r.width.from===void 0&&r.width.below===void 0)throw Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(let e of[`from`,`below`]){let n=r.width[e];if(n!==void 0&&(typeof n!=`string`||!Jo.has(n)))throw Error(`${t}.width.${e} must be one of ${Ko.join(`, `)}.`)}}if(r.pointer!==void 0&&r.pointer!==`coarse`&&r.pointer!==`fine`)throw Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(r.contrast!==void 0&&r.contrast!==`more`&&r.contrast!==`less`&&r.contrast!==`no-preference`)throw Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(r.motion!==void 0&&r.motion!==`reduce`&&r.motion!==`no-preference`)throw Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return r}function jo(e,t){wo(e,t),To(e,$o,t);for(let n of $o){let r=e[n];if(r!==void 0&&!Co(r))throw Error(`${t}.${n} must be an object.`)}return Eo(e)}function Mo(e,t){if(wo(e,t),To(e,Xo,t),!Object.prototype.hasOwnProperty.call(e,`when`))throw Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,`value`))throw Error(`${t}.value is required.`);return{when:Ao(e.when,`${t}.when`),value:jo(e.value,`${t}.value`)}}function No(e,t){if(!Array.isArray(e))throw Error(`${t} must be an array of {when, value} objects.`);for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(e,n))throw Error(`${t}[${n}] must be present.`);return e.map((e,n)=>Mo(e,`${t}[${n}]`))}function Po(e,t,n){let r=`defineTheme("${e}").adaptations`,i={...qo},a=[];t!==void 0&&(wo(t,`defineTheme("${e}").extends.__adaptations`),To(t,new Set([`widthBreakpoints`,`rules`]),`defineTheme("${e}").extends.__adaptations`),i=Oo(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),a=No(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let o={},s=[];n!==void 0&&(wo(n,r),To(n,Yo,r),n.widthBreakpoints!==void 0&&(o=Do(n.widthBreakpoints,`${r}.widthBreakpoints`)),n.rules!==void 0&&(s=No(n.rules,`${r}.rules`)));let c={...i,...o};return ko(c,`${r}.widthBreakpoints`),{widthBreakpoints:c,rules:[...a,...s]}}function Fo(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Io(e,t){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`${t} must be a finite number.`)}function Lo(e,t,n){let r=t.scale!==void 0||[t.body,t.heading,t.code].some(e=>e?.weight!==void 0||e?.weights!==void 0),i=r?e?.scale:void 0;if(t.scale!==void 0){let r=t.scale.base??e?.scale?.base,a=t.scale.ratio??e?.scale?.ratio;if(r===void 0||a===void 0)throw Error(`${n}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Io(r,`${n}.scale.base`),Io(a,`${n}.scale.ratio`),i={base:r,ratio:a}}else if(r&&i===void 0)throw Error(`${n} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...i?{scale:i}:{},body:Fo(e?.body,t.body),heading:Fo(e?.heading,t.heading),code:Fo(e?.code,t.code)}}function Ro(e,t,n){let r=t.base??e?.base,i=t.multiplier??e?.multiplier;if(r===void 0||i===void 0)throw Error(`${n} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Io(r,`${n}.base`),Io(i,`${n}.multiplier`),{base:r,multiplier:i}}function zo(e,t,n){let r=t.fast??e?.fast,i=t.medium??e?.medium,a=t.ratio??e?.ratio;if(r===void 0||i===void 0||a===void 0)throw Error(`${n} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Io(r,`${n}.fast`),Io(i,`${n}.medium`),Io(a,`${n}.ratio`);let o=t.slow??e?.slow;o!==void 0&&Io(o,`${n}.slow`);let s=t.easing??e?.easing;return{fast:r,medium:i,ratio:a,...o===void 0?{}:{slow:o},...s===void 0?{}:{easing:s}}}function Bo(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:n.typography?Lo(r.typography,n.typography,`${i}.typography`):void 0,color:n.color?{...r.color,...n.color}:void 0,radius:n.radius?Ro(r.radius,n.radius,`${i}.radius`):void 0,motion:n.motion?zo(r.motion,n.motion,`${i}.motion`):void 0,tokens:n.tokens,components:n.components}}function Vo(e,t){if(typeof e==`string`){if(/\b(?:NaN|undefined)\b/.test(e))throw Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(Co(e)){for(let[n,r]of Object.entries(e))Vo(r,`${t}.${n}`);return}throw Error(`${t} must resolve to a concrete CSS string.`)}function Ho(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].when`,a=[];if(n.width){let e=n.width.from,t=n.width.below;if(e!==void 0&&t!==void 0&&r[e]>=r[t])throw Error(`${i}.width must resolve to \`from < below\`; ${e} is ${r[e]}px and ${t} is ${r[t]}px.`);e!==void 0&&a.push(`(width >= ${r[e]}px)`),t!==void 0&&a.push(`(width < ${r[t]}px)`)}if(n.pointer!==void 0&&a.push(`(pointer: ${n.pointer})`),n.contrast!==void 0&&a.push(`(prefers-contrast: ${n.contrast})`),n.motion!==void 0&&a.push(`(prefers-reduced-motion: ${n.motion})`),a.length===0)throw Error(`${i} must contain at least one concrete condition.`);return a.join(` and `)}function Uo(e,t,n){let r=e.width?.from;if(r!==void 0&&n.width<t[r])return!1;let i=e.width?.below;return!(i!==void 0&&n.width>=t[i]||e.pointer!==void 0&&e.pointer!==n.pointer||e.contrast!==void 0&&e.contrast!==n.contrast||e.motion!==void 0&&e.motion!==n.motion)}function Wo(e,t,n,r,i){let a=i.flatMap((e,t)=>Object.keys(e.tokens).length>0||e.localTokens&&Object.keys(e.localTokens).length>0?[t]:[]);if(a.length===0)return;let o=[0,...Ko.map(e=>t[e])],s=new Set;for(let c of o)for(let o of es.pointer)for(let l of es.contrast)for(let u of es.motion){let d={width:c,pointer:o,contrast:l,motion:u},f=a.filter(e=>Uo(i[e].when,t,d));if(f.length===0)continue;let p=f.join(`,`);if(s.has(p))continue;s.add(p);let m={...n,...r},h=new Set;for(let e of f){let t=i[e];Object.assign(m,t.tokens,t.localTokens);for(let e of Object.keys(t.tokens))h.add(e);for(let e of Object.keys(t.localTokens??{}))h.add(e)}let g=f.join(`, `),_=f.map(e=>i[e].query).join(`; `);vo(m,`defineTheme("${e}").adaptations ${f.length===1?`rule`:`overlapping rules`} [${g}] (${_})`,h)}}function Go(e,t,n,r,i){if(t.rules.length===0)return;let a=t.rules.map((r,a)=>{let o=po(Bo(e,a,r.value,n),void 0,{strictTokens:!0});for(let[t,n]of Object.entries(o.tokens))Vo(n,`defineTheme("${e}").adaptations.rules[${a}].value.tokens["${t}"]`);o.components&&Vo(o.components,`defineTheme("${e}").adaptations.rules[${a}].value.components`);for(let t of Object.keys(r.value.tokens??{}))if(i&&Object.prototype.hasOwnProperty.call(i,t))throw Error(`defineTheme("${e}").adaptations.rules[${a}].value.tokens["${t}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);let s=yo(e,a,r.value.localTokens,i);return{when:r.when,query:Ho(e,a,r.when,t.widthBreakpoints),tokens:o.tokens,localTokens:s,components:o.components}});return Wo(e,t.widthBreakpoints,r,i,a),a}var Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts=o((()=>{mo(),So(),Ko=[`sm`,`md`,`lg`,`xl`,`2xl`],qo=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536}),Jo=new Set(Ko),Yo=new Set([`widthBreakpoints`,`rules`]),Xo=new Set([`when`,`value`]),Zo=new Set([`width`,`pointer`,`contrast`,`motion`]),Qo=new Set([`from`,`below`]),$o=new Set([`typography`,`color`,`radius`,`motion`,`tokens`,`localTokens`,`components`]),es={pointer:[`coarse`,`fine`,`none`],contrast:[`more`,`less`,`no-preference`,`custom`],motion:[`reduce`,`no-preference`]}})),ns,rs=o((()=>{ns={"--color-data-categorical-blue":`light-dark(#0171E3, #0171E3)`,"--color-data-categorical-orange":`light-dark(#EB6E00, #EB6E00)`,"--color-data-categorical-purple":`light-dark(#6B1EFD, #6B1EFD)`,"--color-data-categorical-green":`light-dark(#0B991F, #0B991F)`,"--color-data-categorical-pink":`light-dark(#F351C0, #F351C0)`,"--color-data-categorical-cyan":`light-dark(#0171A4, #0171A4)`,"--color-data-categorical-red":`light-dark(#F5394F, #F5394F)`,"--color-data-categorical-teal":`light-dark(#08A3A3, #08A3A3)`,"--color-data-categorical-brown":`light-dark(#965E03, #965E03)`,"--color-data-categorical-indigo":`light-dark(#6F8AFF, #6F8AFF)`,"--color-data-neutral":`light-dark(#8494A3, #8C939B)`,"--color-data-blue-5":`light-dark(#02165E, #02165E)`,"--color-data-blue-4":`light-dark(#004CBC, #004CBC)`,"--color-data-blue-3":`light-dark(#2694FE, #2694FE)`,"--color-data-blue-2":`light-dark(#78BEFF, #78BEFF)`,"--color-data-blue-1":`light-dark(#DBECFF, #DBECFF)`,"--color-data-shamrock-5":`light-dark(#0B603D, #0B603D)`,"--color-data-shamrock-4":`light-dark(#138546, #138546)`,"--color-data-shamrock-3":`light-dark(#24BB5E, #24BB5E)`,"--color-data-shamrock-2":`light-dark(#8EF7AA, #8EF7AA)`,"--color-data-shamrock-1":`light-dark(#D6FEE4, #D6FEE4)`,"--color-data-orange-5":`light-dark(#A13F04, #A13F04)`,"--color-data-orange-4":`light-dark(#D66100, #D66100)`,"--color-data-orange-3":`light-dark(#FD9537, #FD9537)`,"--color-data-orange-2":`light-dark(#FDB876, #FDB876)`,"--color-data-orange-1":`light-dark(#FFE6CF, #FFE6CF)`,"--color-data-pink-5":`light-dark(#8E1073, #8E1073)`,"--color-data-pink-4":`light-dark(#D123A1, #D123A1)`,"--color-data-pink-3":`light-dark(#F989D3, #F989D3)`,"--color-data-pink-2":`light-dark(#FEADE3, #FEADE3)`,"--color-data-pink-1":`light-dark(#FCE3F4, #FCE3F4)`,"--color-data-purple-5":`light-dark(#3E0697, #3E0697)`,"--color-data-purple-4":`light-dark(#6B1EFD, #6B1EFD)`,"--color-data-purple-3":`light-dark(#9081FF, #9081FF)`,"--color-data-purple-2":`light-dark(#B3B0FE, #B3B0FE)`,"--color-data-purple-1":`light-dark(#E8E8FB, #E8E8FB)`,"--color-data-red-5":`light-dark(#9D0519, #9D0519)`,"--color-data-red-4":`light-dark(#D31130, #D31130)`,"--color-data-red-3":`light-dark(#FB7D87, #FB7D87)`,"--color-data-red-2":`light-dark(#FFB2B8, #FFB2B8)`,"--color-data-red-1":`light-dark(#FEE4E6, #FEE4E6)`,"--color-data-teal-5":`light-dark(#08767D, #08767D)`,"--color-data-teal-4":`light-dark(#0C9293, #0C9293)`,"--color-data-teal-3":`light-dark(#0DB7AF, #0DB7AF)`,"--color-data-teal-2":`light-dark(#6CE6D8, #6CE6D8)`,"--color-data-teal-1":`light-dark(#D7FCF8, #D7FCF8)`,"--color-data-yellow-5":`light-dark(#8A5001, #8A5001)`,"--color-data-yellow-4":`light-dark(#D69804, #D69804)`,"--color-data-yellow-3":`light-dark(#FBCE03, #FBCE03)`,"--color-data-yellow-2":`light-dark(#FCEC85, #FCEC85)`,"--color-data-yellow-1":`light-dark(#FDF6BA, #FDF6BA)`,"--color-data-gray-5":`light-dark(#25363F, #333338)`,"--color-data-gray-4":`light-dark(#5D6C7B, #666A72)`,"--color-data-gray-3":`light-dark(#AFB9C4, #B2B8BE)`,"--color-data-gray-2":`light-dark(#CCD3DB, #D0D3D6)`,"--color-data-gray-1":`light-dark(#F1F4F7, #F2F4F6)`}}));function is(e){os.set(e.name,e)}function as(e){return e==null||e===``?null:os.get(e)??null}var os,ss=o((()=>{os=new Map}));function cs(e,t){let n=us[e],r=ls[e]??(n?ls[n]:void 0);return r?r.filter(e=>e.property===t):[]}var ls,us,ds=o((()=>{ls={avatar:[{property:`borderRadius`,vars:[`--_avatar-radius`]}],banner:[{property:`borderRadius`,vars:[`--_banner-radius`]}],button:[{property:`borderRadius`,vars:[`--_button-radius`]}],card:[{property:`borderRadius`,vars:[`--_card-radius`]},{property:`padding`,expand:`container`}],chat:[{property:`borderRadius`,vars:[`--_chat-composer-radius`]},{property:`padding`,vars:[`--_chat-composer-padding`]}],dialog:[{property:`borderRadius`,vars:[`--_dialog-radius`]},{property:`padding`,expand:`container`}],"context-menu":[{property:`borderRadius`,vars:[`--_dropdown-menu-radius`]},{property:`padding`,vars:[`--_dropdown-menu-padding`]}],"dropdown-menu":[{property:`borderRadius`,vars:[`--_dropdown-menu-radius`]},{property:`padding`,vars:[`--_dropdown-menu-padding`]}],field:[{property:`borderRadius`,vars:[`--_field-radius`]}],"hover-card":[{property:`borderRadius`,vars:[`--_hovercard-radius`]}],"number-input":[{property:`padding`,expand:`container`},{property:`borderRadius`,vars:[`--_field-radius`]}],popover:[{property:`borderRadius`,vars:[`--_popover-radius`]}],"progress-bar-mark":[{property:`width`,vars:[`--_progressbar-mark-width`],replaces:!0},{property:`height`,vars:[`--_progressbar-mark-height`],replaces:!0}],section:[{property:`padding`,expand:`container`}],"segmented-control":[{property:`borderRadius`,vars:[`--_segmented-control-radius`]},{property:`padding`,vars:[`--_segmented-control-padding`]}],"text-area":[{property:`paddingInline`,vars:[`--_textarea-inline-padding`],replaces:!0}]},us={hovercard:`hover-card`,"progressbar-mark":`progress-bar-mark`,textarea:`text-area`}}));function fs(e){return`[data-${rt}-theme="${e}"]`}function ps(e){return`[data-${rt}-media="${e}"]`}function ms(e,t){return`.${nt}-${e}${t}`}function hs(e,t,n){let r=ms(e,t);return n?`:is(${ps(n)}) :is(${r})`:r}function gs(e,t){let n=[],r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t];a===`(`?r++:a===`)`?r=Math.max(0,r-1):a===`,`&&r===0&&(n.push(e.slice(i,t).trim()),i=t+1)}n.push(e.slice(i).trim());let a=_s(t);return n.map(e=>`${e}${a}`).join(`, `)}function _s(e){if(!/^:hover(?![-\w])/.test(e)||e.includes(`[aria-disabled`))return e;let t=e.indexOf(`::`);return t===-1?e+Rs:e.slice(0,t)+Rs+e.slice(t)}function vs(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ys(e){let t={};for(let[n,r]of e)switch(Bs[n]??n){case`padding`:{let e=r.trim().split(/\s+/);e.length===1?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[0]):e.length===2?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[1]):e.length>=3&&(t.blockStart=e[0],t.inline=e[1],t.blockEnd=e[2]);break}case`paddingBlock`:{let e=r.trim().split(/\s+/);t.blockStart=e[0],t.blockEnd=e[1]??e[0];break}case`paddingInline`:{let e=r.trim().split(/\s+/);e.length===1?t.inline=e[0]:(t.inlineStart=e[0],t.inlineEnd=e[1]);break}case`paddingBlockStart`:t.blockStart=r;break;case`paddingBlockEnd`:t.blockEnd=r;break;case`paddingInlineStart`:t.inlineStart=r;break;case`paddingInlineEnd`:t.inlineEnd=r}return t}function bs(e,t,n=!1){let r=et(`${e}-padding`),i=[],a=t.inlineStart??t.inline,o=t.inlineEnd??t.inline;if(a!=null&&o!=null&&a===o&&t.blockStart!=null&&t.blockEnd!=null&&a===t.blockStart&&t.blockStart===t.blockEnd?i.push([r,a??``]):(t.inlineStart!=null||t.inlineEnd!=null?(a!=null&&i.push([`${r}-inline-start`,a]),o!=null&&i.push([`${r}-inline-end`,o])):t.inline!=null&&i.push([`${r}-inline`,t.inline]),t.blockStart!=null&&i.push([`${r}-block-start`,t.blockStart]),t.blockEnd!=null&&i.push([`${r}-block-end`,t.blockEnd])),n){let e=new Set(i.map(([e])=>e)),t=e.has(r)?[`${r}-inline`,`${r}-inline-start`,`${r}-inline-end`,`${r}-block-start`,`${r}-block-end`]:e.has(`${r}-inline`)?[`${r}-inline-start`,`${r}-inline-end`]:[];for(let n of t)e.has(n)||i.push([n,`initial`])}return i}function xs(e){let t=[],n=e.tokens,r=e=>`var(${e})`,i=[...Object.entries(n),...Object.entries(e.localTokens??{})];if(i.length>0){let e=i.map(([e,t])=>` ${e}: ${t};`).join(`
10
+ `))!==-1;){let t=n.slice(0,e);if(n=n.slice(e+1),t){if(r)y=JSON.parse(t),h.setupPending(y),r=!1;else{let e=JSON.parse(t);e.__deferred&&h.resolve(e.__deferred,e.data,e.error)}}}};for(;r;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}(async()=>{try{for(;!c.aborted;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}n.trim()&&i()}catch(e){(!(e instanceof Error)||e.name!==`AbortError`)&&h.rejectPending(`Stream closed before resolution`)}})()}else y=await p.json(),h.setupPending(y)}u&&r===`GET`&&p?.ok&&p.headers.get(`X-VoidPages`)&&y?.component===a(n)&&!y.deferredKeys&&d.set(n,r,Promise.resolve(ie(y)),l)}if(!y)throw Error(`pages: Missing page payload.`);r!==`GET`&&h.preserveValuesFrom(g,y);let[w,T]=await Promise.race([Promise.all([x(y.component),S(y.component)]),le(c)]);if(e!==p&&c.aborted)throw ce();return{pageData:y,component:w,layouts:T}}function L(e,t,n,r,i,a){let o=!1;return async()=>{if(o)return;o=!0;let s=await n;if(!s)return;m?.id===i&&(m=null);let c=h,l=g,u=r.commitPreservedValues(l,s.pageData);h=a();let d=!!(c&&u&&D.get(c)===u);c&&c!==h&&!d&&c.dispose(),c&&u&&d&&O.set(u,c),g=u??r;let f=l?O.get(l):void 0;if(l&&l!==g&&(l.dispose(),f&&f!==c&&f!==h&&f.dispose(),O.delete(l)),u&&u!==r&&r.dispose(),N(s.pageData.head),v=e.fetchUrl,!t.preserveState){let n=e.fetchUrl+e.hash;t.replace?history.replaceState({},``,n):(history.replaceState({scrollX:window.scrollX,scrollY:window.scrollY},``),history.pushState({},``,n))}requestAnimationFrame(()=>{if(!t.preserveScroll){if(t._scrollPosition)window.scrollTo(t._scrollPosition.x,t._scrollPosition.y);else if(e.hash){let t=document.getElementById(e.hash.slice(1));t?t.scrollIntoView():window.scrollTo(0,0)}else window.scrollTo(0,0)}})}}let R=ae(document.getElementById(`app`)),[de,z]=await Promise.all([x(R.component),S(R.component)]);u&&R.url===v&&R.component===a(v)&&R.errors===null&&!R.deferredKeys&&d.set(v,`GET`,Promise.resolve(ie(R)),l);let B=new T;return B.setupPending(R),g=B,_=B,{_hoverDelay:c,initialPageData:R,initialComponent:de,initialLayouts:z,prepareVisit(e,t={}){let n=e.indexOf(`#`),r=n===-1?``:e.slice(n),i=n===-1?e:e.slice(0,n),a=window.location.pathname+window.location.search,o=i||a,s=(t.method||`GET`).toUpperCase(),c=++p,l=t._popstate?v:a;if(m?.abort(),m=null,o===l&&s===`GET`&&!t.data&&(r||t._popstate))return P(o,r,t,!t._popstate&&!t.preserveState),{id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!0,shell:Promise.resolve(void 0),abort(){},async commit(){},dispose(){}};let u=new AbortController,d=new T,f={fetchUrl:o,hash:r},h=F(c,e,o,s,t,u.signal,f,d),g=async()=>{},_={id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!1,shell:h,abort(){u.abort(ce()),d.dispose()},commit(){return g()},dispose(){u.abort(ce()),d.dispose()}};return D.set(_,d),g=L(f,t,h,d,c,()=>_),m=_,_},prefetch(e,t={}){let c=(t.method||`GET`).toUpperCase();if(c!==`GET`)throw Error(`Void Router: prefetch() only supports GET requests.`);let u=a(e);if(!u)return Promise.resolve(void 0);if(i[u]?.island){if(!document.querySelector(`link[rel="prefetch"][href="`+e+`"]`)){let t=document.createElement(`link`);t.rel=`prefetch`,t.href=e,t.as=`document`,document.head.appendChild(t)}return Promise.resolve(void 0)}n[u]&&n[u]();let f=r[u]||[];for(let e of f)n[e]&&n[e]();let p=e.indexOf(`#`),m=p===-1?e:e.slice(0,p),h=d.get(m,c);if(h)return h.response;let g=t.cacheFor?I(t.cacheFor):l,_={"X-VoidPages":`true`,Accept:`application/json`,Purpose:`prefetch`},v=(o&&s&&c===`GET`?k(m).then(e=>e?.pageData):Promise.resolve(void 0)).then(e=>e===void 0?ue(m,{method:c,headers:_}).then(e=>!e||e.redirected?null:e.headers.get(`X-VoidPages`)?e.json():c===`GET`?A(m,e,void 0,!s).then(e=>e?.pageData??null):null):e);return d.set(m,c,v,g),v},flush(e,t=`GET`){d.flush(e,t),f.delete(b(e,t))},flushAll(){d.flushAll(),f.clear()},setPopStateHandler(e){y=e},start(){if(history.scrollRestoration=`manual`,history.replaceState({scrollX:window.scrollX,scrollY:window.scrollY},``),M(R.head),j.__deferredQueue){for(let e of j.__deferredQueue)e.length===3?_?.resolve(e[0],void 0,e[2]):_?.resolve(e[0],e[1],void 0);delete j.__deferredQueue}window.addEventListener(`popstate`,e=>{let t=e.state,n=window.location.pathname+window.location.search+window.location.hash,r={preserveState:!0,_scrollPosition:t?{x:t.scrollX??0,y:t.scrollY??0}:null,_popstate:!0};y&&y(n,r)})}}}function z(){return typeof window>`u`?`http://localhost`:window.location.origin}function B(e){return e instanceof URL?new URL(e.href):new URL(e||`/`,z())}function fe(){return{state:`idle`,location:null,method:null}}function pe(e,t,n=()=>e.params){return{get _hoverDelay(){return e._hoverDelay},get url(){return B(t())},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return n()},visit(t,n={}){return e.visit(t,n)},refresh(t={}){return e.refresh(t)},prefetch(t,n={}){return e.prefetch(t,n)},flush(t,n=`GET`){e.flush(t,n)},flushAll(){e.flushAll()}}}function me(e=`/`,t={}){return{_hoverDelay:75,get url(){return B(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw Error(`Void Router: visit() is not available during SSR.`)},refresh(){throw Error(`Void Router: refresh() is not available during SSR.`)},prefetch(){throw Error(`Void Router: prefetch() is not available during SSR.`)},flush(){throw Error(`Void Router: flush() is not available during SSR.`)},flushAll(){throw Error(`Void Router: flushAll() is not available during SSR.`)}}}var he=me(),ge=(0,y.createContext)(null),_e=(0,y.createContext)(null),ve=(0,y.createContext)(null),ye=(0,y.createContext)(null),be=(0,y.createContext)(fe()),xe=`__VOID_DEFERRED_SHELL_END__`;`${xe}`;var Se=new WeakMap,Ce=new Map,we=new Map,Te=new Set,Ee={},De=null,Oe=null;function ke(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.catch(()=>{}),Se.set(n,{status:`pending`,resolve:e,reject:t}),n}function Ae(e,t){let n=Se.get(e);return n?.status===`pending`&&(n.resolve(t),Se.set(e,{status:`resolved`})),e}function je(e,t){let n=Se.get(e);return n?.status===`pending`&&(n.reject(Error(t)),Se.set(e,{status:`rejected`})),e}function Me(e){return Se.get(e)?.status===`pending`}function Ne(){return window.location.pathname+window.location.search+window.location.hash}function Pe(e){if(typeof e==`string`&&e.startsWith(`#`))return e;let t=e instanceof URL?e:new URL(e,window.location.origin);return t.origin===window.location.origin?t.pathname+t.search+t.hash:t.href}function Fe(e){let t=e.method.toUpperCase();return{state:t===`GET`?`loading`:`submitting`,location:new URL(e.fetchUrl+e.hash,window.location.origin),method:t===`POST`||t===`PUT`||t===`PATCH`||t===`DELETE`?t:`GET`}}function Ie(e,t){switch(t.type){case`begin`:return{resource:e.resource,rollbackResource:e.rollbackResource||e.resource,pendingId:t.resource.id,routeUrl:e.routeUrl,navigation:t.navigation};case`reveal`:return e.pendingId===t.resource.id?{...e,resource:t.resource}:e;case`finish`:return e.pendingId===t.resource.id?{resource:t.resource.immediate?e.resource:t.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e;case`fail`:return e.pendingId===t.resource.id?{...e,resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e;case`abandon`:return e.pendingId===t.resource.id?{resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:fe()}:e}}function Le(e){let t={_hoverDelay:e._hoverDelay,get url(){return new URL(Ne(),window.location.origin)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return{}},visit(e,t={}){return Oe?Oe(Pe(e),t):Promise.reject(Error(`router.visit() called before router initialized`))},refresh(e={}){return t.visit(window.location.pathname+window.location.search,{preserveState:!0,preserveScroll:!0,...e})},prefetch(t,n={}){return e.prefetch(Pe(t),n)},flush(t,n=`GET`){e.flush(Pe(t),n)},flushAll(){e.flushAll()}};return t}function Re({resource:e,onCommit:t}){let n=(0,y.use)(e.shell),r=y.useContext(ye);if((0,y.useLayoutEffect)(()=>{n&&t(e,n)},[t,e,n]),!n)return null;let i=n.pageData,a=n.component,o=i.params??Ee,s=(0,y.useMemo)(()=>pe(r,()=>{let t=r.url,n=t.pathname+t.search;return n===i.url?n+t.hash:i.url+e.hash},()=>o),[r,i.url,e.hash,o]),c=y.createElement(a,i.props);for(let e=n.layouts.length-1;e>=0;e--){let t=n.layouts[e];c=y.createElement(t,null,c)}return y.createElement(ye.Provider,{value:s},y.createElement(ve.Provider,{value:o},y.createElement(ge.Provider,{value:i.shared??{}},y.createElement(_e.Provider,{value:i.errors??{}},c))))}function ze(e,t,n){if(!n||typeof document.startViewTransition!=`function`){t();return}let r,i=new Promise(e=>{r=e});Ce.set(e.id,r),document.startViewTransition(()=>(t(),i))}function Be({engine:e,router:t,viewTransitions:n,navigationFallback:r}){let i=e.initialPageData,a=(0,y.useMemo)(()=>({id:0,url:i.url||Ne(),fetchUrl:i.url||Ne(),hash:window.location.hash,method:`GET`,options:{},immediate:!1,shell:Promise.resolve({pageData:i,component:e.initialComponent,layouts:e.initialLayouts}),abort(){},async commit(){},dispose(){}}),[e,i]),[o,s]=(0,y.useReducer)(Ie,{resource:a,rollbackResource:null,pendingId:null,routeUrl:Ne(),navigation:fe()}),[c,l]=(0,y.useTransition)(),u=(0,y.useCallback)((e,t)=>{Te.has(e.id)||(Te.add(e.id),e.commit().then(()=>{let n=Ce.get(e.id);n&&(Ce.delete(e.id),n());let r=we.get(e.id);r&&(we.delete(e.id),r.resolve(t.pageData)),De===e.id&&(De=null),s({type:`finish`,resource:e,location:Ne()})}).catch(t=>{let n=we.get(e.id);n&&(we.delete(e.id),n.reject(t))}))},[]),d=(0,y.useCallback)((t,i={})=>{let a=e.prepareVisit(t,i);if(a.immediate){let e=Fe(a);return De=a.id,s({type:`begin`,resource:a,navigation:e}),a.shell.then(e=>(De===a.id&&(De=null),s({type:`finish`,resource:a,location:Ne()}),e?.pageData),e=>{throw De===a.id&&(De=null),s({type:`fail`,resource:a,location:Ne()}),e})}let o,c,u=new Promise((e,t)=>{o=e,c=t}),d={...a,shell:a.shell.then(e=>{if(e)a.options._resolveOnShell&&(we.delete(a.id),o(e.pageData));else{let e=Ce.get(a.id);e&&(Ce.delete(a.id),e()),we.delete(a.id),De===a.id&&(De=null),s({type:r?`abandon`:`finish`,resource:a,location:Ne()}),o(void 0)}return e},e=>{let t=Ce.get(a.id);if(t&&(Ce.delete(a.id),t()),we.delete(a.id),a.method.toUpperCase()===`GET`&&!a.options._resolveOnShell&&w(e)?o(void 0):c(e),De===a.id&&(De=null),r||a.options._resolveOnShell||w(e)||C(e)){s({type:`abandon`,resource:a,location:Ne()});return}throw s({type:`fail`,resource:a,location:Ne()}),e})},f=Fe(d);if(we.set(d.id,{resolve:o,reject:c}),De=d.id,s({type:`begin`,resource:d,navigation:f}),r){let e=!1,t=!1,n=e=>{t||De!==d.id||(t=!0,e?l(()=>s({type:`reveal`,resource:d})):s({type:`reveal`,resource:d}))};return d.shell.then(t=>{e=!0,t&&n(!0)}),requestAnimationFrame(()=>{e||n(!1)}),u}let p=()=>{l(()=>{s({type:`reveal`,resource:d})})};return d.shell.then(e=>{e&&De===d.id&&ze(d,p,i.viewTransition??n)},()=>{}),u},[e,r,l,n]);(0,y.useInsertionEffect)(()=>(Oe=d,()=>{Oe===d&&(Oe=null)}),[d]),(0,y.useEffect)(()=>{e.setPopStateHandler((e,n)=>{t.visit(e,n)})},[e,t]);let f=(0,y.useMemo)(()=>o.navigation.state!==`idle`||!c?o.navigation:{state:`loading`,location:null,method:`GET`},[c,o.navigation]),p=(0,y.useMemo)(()=>pe(t,()=>o.routeUrl),[t,o.routeUrl]);return y.createElement(ye.Provider,{value:p},y.createElement(be.Provider,{value:f},y.createElement(y.Suspense,{fallback:r&&o.pendingId!==null?y.createElement(r,{initialPageData:i}):null},y.createElement(Re,{resource:o.resource,onCommit:u}))))}async function Ve(e){Ce.clear(),we.clear(),Te.clear(),Te.add(0),De=null;let t=await de({adapter:{createDeferred:ke,resolveDeferred:Ae,rejectDeferred:je,isLoading:Me},components:e.components,layoutTree:e.layoutTree,routeMeta:e.routeMeta,matchRoute:e.matchRoute,staticPageData:e.staticPageData,staticPageDataFastPath:e.staticPageDataFastPath,viewTransitions:e.viewTransitions,prefetchHoverDelay:e.prefetchHoverDelay,prefetchDefaultCacheFor:e.prefetchDefaultCacheFor,cacheVisitedPageData:e.cacheVisitedPageData}),n=Le(t),r=document.getElementById(`app`);if(!r)throw Error(`pages: Missing #app element for Void React pages hydration.`);let i=y.createElement(Be,{engine:t,router:n,viewTransitions:e.viewTransitions,navigationFallback:e.navigationFallback}),a=r.getAttribute(`data-void-ssr`)!==`false`,o=!!t.initialPageData.deferredKeys,s=a&&o?y.createElement(y.Fragment,null,i,y.createElement(`template`,{id:xe})):i;return(0,y.startTransition)(()=>{a?(0,b.hydrateRoot)(r,s):(0,b.createRoot)(r).render(s)}),r.setAttribute(`data-hydrated`,`true`),t.start(),{router:n}}function He(){if(We)return Ue;We=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}return[o,s,c]}}var r=Ue.styleq=n();return r.factory=n,Ue}function V(...e){let[t,n,r]=Ge.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}var Ue,We,Ge,H=o((()=>{Ue={},Ge=He(),Object.freeze({})})),Ke,qe,Je,Ye,Xe,Ze=o((()=>{Ke={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},qe={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Je={"--focus-outline-width":`var(--focus-outline-width)`,"--focus-outline-style":`var(--focus-outline-style)`,"--focus-outline-color":`var(--focus-outline-color)`,"--focus-outline-offset":`var(--focus-outline-offset)`,__varGroupHash__:`xzxs3qz`},Ye={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Xe={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`}}));function Qe(e){return`${nt}-${e}`}function $e(e){return`data-${rt}-${e}`}function et(e){return`--${it}-${e}`}var tt,nt,rt,it,at=o((()=>{tt=`astryx`,nt=tt,rt=tt,it=tt}));function ot(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function st(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function ct(e,t){let n=[Qe(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(st(e,String(r)));return n.join(` `)}function lt(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[ot(n)]=String(r));return t}function U(e,t,n){let r=ct(e,t),i=n?.legacyNames?.map(e=>Qe(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...lt(t)}}var ut=o((()=>{at()}));function dt(e){let t=``;for(let n of e){let e=n.codePointAt(0)??0;t+=n===`"`||n===`\\`||e<32||e===127?`\\${(e===0?65533:e).toString(16)} `:n}return t}function ft(e){return e===`base`?``:e.split(`+`).map(e=>{let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?e:e.slice(t+1);return`[${ot(n)}="${dt(r)}"]`}).join(``)}var pt=o((()=>{ut()}));function mt(e,t){return e==null?`fallback:${typeof t==`function`?t():t}`:`id:${e}`}var ht=o((()=>{}));function gt(e){return yt?[...yt.segment(e)].map(e=>e.segment):[...e]}function _t(e){return e===``?0:gt(e).length}function vt(e){if(yt){let t=yt.segment(e)[Symbol.iterator]().next();return t.done?``:t.value.segment}let t=e.codePointAt(0);return t==null?``:String.fromCodePoint(t)}var yt,bt=o((()=>{yt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null}));function xt(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function W(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=xt(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=xt(i,{className:n}):n!=null&&(i=xt(i,{style:n})),r!=null&&(i=xt(i,{style:r})),i}var St=o((()=>{}));function Ct(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}var wt=o((()=>{}));function Tt(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var Et=o((()=>{}));function Dt(e){let t=e.auxiliaryData;return typeof t?.group==`string`?t.group:void 0}function Ot(e,{ungroupedFirst:t=!1}={}){if(!e.some(e=>Dt(e)!=null))return[{heading:null,items:e}];let n=[],r=new Map,i=[];for(let t of e){let e=Dt(t);e==null?i.push(t):(r.has(e)||(n.push(e),r.set(e,[])),r.get(e)?.push(t))}let a=n.map(e=>({heading:e,items:r.get(e)??[]})),o=i.length>0?[{heading:null,items:i}]:[];return t?[...o,...a]:[...a,...o]}var kt=o((()=>{}));function At(){return typeof ResizeObserver>`u`?null:(Nt||=new ResizeObserver(e=>{for(let t of e){let e=Pt.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),Nt)}function jt(e,t){let n=Pt.get(e);n?n.set(t,(n.get(t)??0)+1):Pt.set(e,new Map([[t,1]])),At()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,Mt(e,t))}}function Mt(e,t){let n=Pt.get(e);if(t!=null){let e=n?.get(t);if(n==null||e==null)return;if(e>1){n.set(t,e-1);return}if(n.delete(t),n.size>0)return}Pt.delete(e),Nt&&(Nt.unobserve(e),Pt.size===0&&(Nt.disconnect(),Nt=null))}var Nt,Pt,Ft=o((()=>{Nt=null,Pt=new Map}));function It(e){return e!=null&&typeof e!=`boolean`&&e!==``}var Lt=o((()=>{}));function Rt(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function zt(e,t=[],n){return{ariaLabelledBy:n?Rt(n.labelID,e):void 0,ariaDescribedBy:Rt(n?.describedByIDs,...t)}}var Bt=o((()=>{}));function Vt(e){return e.split(``).map(e=>e+e).join(``)}function Ht(e){if(typeof e!=`string`)return null;let t=e.trim().replace(/^#/,``),n=t.length===3||t.length===4?Vt(t):t;return n.length!==6&&n.length!==8||!/^[0-9a-fA-F]+$/.test(n)?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function Ut(e){let t=e.indexOf(`(`);if(t===-1||!e.trim().endsWith(`)`))return null;let n=e.slice(t+1,e.lastIndexOf(`)`)).replace(/\//g,` `).split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;let r=e=>{let t=e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e);return qt(t,0,255)},i=r(n[0]),a=r(n[1]),o=r(n[2]);if([i,a,o].some(Number.isNaN))return null;let s=1;if(n.length>=4){let e=n[3];if(s=e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),Number.isNaN(s))return null;s=qt(s,0,1)}return{r:i,g:a,b:o,a:s}}function Wt(e){let t=e.trim(),n=Kt[t.toLowerCase()];return n?{...n}:t.startsWith(`#`)?Ht(t):/^rgba?\(/i.test(t)?Ut(t):null}function Gt(e,t,n){let r=e=>qt(Math.round(e),0,255).toString(16).padStart(2,`0`).toUpperCase();return`#${r(e)}${r(t)}${r(n)}`}var Kt,qt,Jt=o((()=>{Kt={transparent:{r:0,g:0,b:0,a:0},black:{r:0,g:0,b:0,a:1},white:{r:255,g:255,b:255,a:1}},qt=(e,t,n)=>Math.max(t,Math.min(n,e))}));function Yt(e,t){return`${e}: ${t}`}function Xt(e,t,...n){console.error(Yt(e,t),...n)}var Zt=o((()=>{})),Qt,$t,en=o((()=>{Qt={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},$t={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[Qt,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]}}));function tn(e){return(...t)=>V(e,...t)}var nn,rn,an,on,sn,cn,ln,un,dn=o((()=>{H(),Ze(),nn=Je[`--focus-outline-width`],rn=Je[`--focus-outline-style`],an=Je[`--focus-outline-color`],on=Je[`--focus-outline-offset`],`${nn}${rn}${an}`,sn={outlineWidth:nn,outlineStyle:rn,outlineColor:an,outlineOffset:on},cn={outlineWidth:``,outlineStyle:``,outlineColor:``,outlineOffset:``},ln={focusVisible:{kMeerF:`x1k57tk5 x1vidyx5`,k3XXqK:`x1t137rt x1jhp3zv`,kjBf7l:`xx47ajj`,kInvED:`x1wfwxd8 x1vwwbsn`,$$css:!0},focusWithin:{kMeerF:`x1k57tk5 x11j6mr8`,k3XXqK:`x1t137rt xciu248`,kjBf7l:`x1uy843r`,kInvED:`x1wfwxd8 x1jumodi`,$$css:!0},focusWithinFirstChild:{kMeerF:`x1k57tk5 xmmisi4`,k3XXqK:`x1t137rt xfd04fr`,kjBf7l:`xobxmqy`,kInvED:`x1wfwxd8 x2vr5qc`,$$css:!0},suppressed:{kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,kInvED:`x1wfwxd8`,$$css:!0},publishFocusVisibleVars:{"--_focus-outline":`x17wzz1v xqih627`,"--_focus-outline-offset":`xgzxwq1 xqchwus`,$$css:!0},focusWithinOrPublished:{kI3sdo:`xaw4jrz x16s19ga`,kInvED:`x1kvmbwa x1jumodi`,$$css:!0}},un={focusVisible:tn(ln.focusVisible),focusWithin:tn(ln.focusWithin),focusWithinFirstChild:tn(ln.focusWithinFirstChild),suppressed:tn(ln.suppressed),publishFocusVisibleVars:tn(ln.publishFocusVisibleVars),focusWithinOrPublished:tn(ln.focusWithinOrPublished)}}));function fn(e){return e.isComposing===!0||e.keyCode===pn}var pn,mn=o((()=>{pn=229})),hn=o((()=>{pt(),ht(),bt(),St(),wt(),Et(),ut(),kt(),Ft(),Lt(),Bt(),Jt(),Zt(),en(),dn(),mn()})),gn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_n=s(((e,t)=>{t.exports=gn()}));H(),hn(),ut();var G=_n(),vn=1e3,yn=100,bn={root:{kWkggS:`xprdx6m x1j0df82 x1o55y2u`,kSiTet:`xvpkmg4 x1tbh5bv`,$$css:!0},animate:{kILWW9:`xpz12be`,k44tkh:`xqgcaz`,ko0y90:`xa4qsjk`,kKVMdj:`xeuoslp x1aquc0h`,kyAemX:`x193epu2`,$$css:!0}},xn={0:{kaIpWk:`xwksslw`,$$css:!0},1:{kaIpWk:`xx3sua9`,$$css:!0},2:{kaIpWk:`xh6dtrn`,$$css:!0},3:{kaIpWk:`x1hviunn`,$$css:!0},4:{kaIpWk:`x1hviunn`,$$css:!0},none:{kaIpWk:`x2u8bby`,$$css:!0},rounded:{kaIpWk:`xjspbzw`,$$css:!0}},Sn={kKxzle:`xvo38ju`,$$css:!0},Cn={animationDelay:e=>[Sn,{"--x-animationDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${vn+yn*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x5lhr3w`,kZKoxP:(typeof t==`number`?`${t}px`:t)==null?typeof t==`number`?`${t}px`:t:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof t==`number`?`${t}px`:t)}]};function wn({width:e=`100%`,height:t=`100%`,radius:n=3,index:r=0,"data-testid":i,xstyle:a,className:o,style:s,ref:c,...l}){return(0,G.jsx)(`div`,{ref:c,"aria-hidden":`true`,"data-testid":i,...W(U(`skeleton`),V(bn.root,bn.animate,xn[n],Cn.dimensions(e,t),Cn.animationDelay(r),a),o,s),...l})}wn.displayName=`Skeleton`;var Tn={primary:{kMwMTN:`x1tgivj0`,$$css:!0},secondary:{kMwMTN:`xv1l7n4`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}},En={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},Dn={body:{k63SB2:`xxovm9e`,$$css:!0},large:{k63SB2:`x149oux8`,$$css:!0},label:{k63SB2:`xmhvcl5`,$$css:!0},code:{k63SB2:`xx3eeay`,$$css:!0},supporting:{k63SB2:`xv8on6e`,$$css:!0},"display-1":{k63SB2:`x1txul5o`,$$css:!0},"display-2":{k63SB2:`x1y36c3f`,$$css:!0},"display-3":{k63SB2:`x1on40hk`,$$css:!0},inherit:{k63SB2:`x1pd3egz`,$$css:!0}},On={body:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},large:{kGuDYH:`x18juvz8`,kLWn49:`xf74fhv`,$$css:!0},label:{kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,$$css:!0},code:{kGuDYH:`xp03k98`,kLWn49:`x17iicif`,kMv6JI:`x9m5x89`,$$css:!0},supporting:{kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},"display-1":{kGuDYH:`xsub3ws`,kLWn49:`x112ttwr`,$$css:!0},"display-2":{kGuDYH:`x1yego12`,kLWn49:`xh0iwvy`,$$css:!0},"display-3":{kGuDYH:`xlgnzhf`,kLWn49:`x1ujwuaq`,$$css:!0},inherit:{kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,$$css:!0}},kn={"4xs":{kGuDYH:`xxc45ev`,$$css:!0},"3xs":{kGuDYH:`x10p7juq`,$$css:!0},"2xs":{kGuDYH:`x16a80zy`,$$css:!0},xsm:{kGuDYH:`x51wmvv`,$$css:!0},sm:{kGuDYH:`x1eqnyfr`,$$css:!0},base:{kGuDYH:`x1j29vfg`,$$css:!0},lg:{kGuDYH:`xc7cgfe`,$$css:!0},xl:{kGuDYH:`x1wqms48`,$$css:!0},"2xl":{kGuDYH:`xhs0kqb`,$$css:!0},"3xl":{kGuDYH:`x10srzze`,$$css:!0},"4xl":{kGuDYH:`xqcvi3d`,$$css:!0}},An={1:{kGuDYH:`xcg7oai`,kLWn49:`xfmsba7`,k63SB2:`x1v68xuy`,$$css:!0},2:{kGuDYH:`x1xvnhcw`,kLWn49:`x1cpk1wn`,k63SB2:`x12yy4cs`,$$css:!0},3:{kGuDYH:`xii13ha`,kLWn49:`xwjzt0u`,k63SB2:`x1jcxfy8`,$$css:!0},4:{kGuDYH:`x8tkxat`,kLWn49:`xqerer`,k63SB2:`x2hcmsi`,$$css:!0},5:{kGuDYH:`xsgqta0`,kLWn49:`xo3gurs`,k63SB2:`xno150v`,$$css:!0},6:{kGuDYH:`xw5ohdf`,kLWn49:`xeixjfn`,k63SB2:`x1pw4frv`,$$css:!0}},jn={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},Mn={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},Nn={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},Pn={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},Fn={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},In={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},Ln={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},Rn={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},zn={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}};Ft();function Bn(e){let{maxLines:t}=e,[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(``),o=(0,y.useRef)(null),s=(0,y.useRef)(null),c=(0,y.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,y.useCallback)(e=>{s.current?.(),s.current=null,o.current=e,e&&t>0?typeof ResizeObserver<`u`?s.current=jt(e,()=>{c(e)}):c(e):(r(!1),a(``))},[t,c]),isTruncated:n,fullText:i}}function Vn(e,t,n,r,i,a){return(0,Hn.useMemo)(()=>Ct(e,t,n,r,i,a),[e,t,n,r,i,a])}var Hn,Un=o((()=>{Hn=u(f(),1),wt()})),Wn,Gn,Kn=o((()=>{Wn=u(f(),1),Gn=typeof window<`u`?Wn.useLayoutEffect:Wn.useEffect}));function qn(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Jn(e,t){e.style.anchorName=t.join(`, `)}function Yn(e,t){let n=qn(e);n.includes(t)||(n.push(t),Jn(e,n))}function Xn(e,t){Jn(e,qn(e).filter(e=>e!==t))}var Zn=o((()=>{}));function Qn(){rr+=1}function $n(){ir=rr}function er(){ar||typeof document>`u`||(ar=!0,document.addEventListener(`pointerdown`,Qn,!0),document.addEventListener(`keydown`,Qn,!0),document.addEventListener(`click`,$n,!0))}function tr(){return er(),rr}function nr(){return er(),ir===rr}var rr,ir,ar,or=o((()=>{rr=0,ir=null,ar=!1}));function sr(e){if(!e)return null;let t=null,n=e;for(;n;)cr.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var cr,lr=o((()=>{cr=new Set(`p.h1.h2.h3.h4.h5.h6.dt.pre.legend.data.dfn.meter.output.progress.option.optgroup.table.thead.tbody.tfoot.tr.colgroup.ul.ol.menu.dl.select.datalist.picture.hgroup.ruby.rt.rp.a.button.label.summary.span.em.strong.b.i.u.s.small.mark.code.kbd.samp.var.sub.sup.abbr.cite.q.time.bdi.bdo.ins.del`.split(`.`))})),ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr=o((()=>{ur={0:`spacing0`,.5:`spacing0_5`,1:`spacing1`,1.5:`spacing1_5`,2:`spacing2`,3:`spacing3`,4:`spacing4`,5:`spacing5`,6:`spacing6`,8:`spacing8`,10:`spacing10`},dr={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},fr={0:{"--container-padding-inline-start":`x1gu2k80`,"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,"--container-padding-inline-end":`xntetml`,$$css:!0}},pr={0:{"--container-padding-block-start":`x1i3qcxz`,$$css:!0},1:{"--container-padding-block-start":`xnsckjb`,$$css:!0},2:{"--container-padding-block-start":`xa8b4fq`,$$css:!0},3:{"--container-padding-block-start":`x11k4f5r`,$$css:!0},4:{"--container-padding-block-start":`xm01sq8`,$$css:!0},5:{"--container-padding-block-start":`xp8wdkl`,$$css:!0},6:{"--container-padding-block-start":`x1hmud4d`,$$css:!0},8:{"--container-padding-block-start":`xfv60at`,$$css:!0},10:{"--container-padding-block-start":`x17h9kl7`,$$css:!0},"0.5":{"--container-padding-block-start":`xvdf9ev`,$$css:!0},"1.5":{"--container-padding-block-start":`x1kbx601`,$$css:!0}},mr={0:{"--container-padding-block-end":`xkunwnr`,$$css:!0},1:{"--container-padding-block-end":`x57a7ii`,$$css:!0},2:{"--container-padding-block-end":`x1lsgcmx`,$$css:!0},3:{"--container-padding-block-end":`x1q3ppug`,$$css:!0},4:{"--container-padding-block-end":`x4hfsld`,$$css:!0},5:{"--container-padding-block-end":`xbib2ws`,$$css:!0},6:{"--container-padding-block-end":`x1q8d17g`,$$css:!0},8:{"--container-padding-block-end":`x8lgq76`,$$css:!0},10:{"--container-padding-block-end":`x15vxphk`,$$css:!0},"0.5":{"--container-padding-block-end":`x1cao3zv`,$$css:!0},"1.5":{"--container-padding-block-end":`xv53x8y`,$$css:!0}},hr={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},gr={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},_r={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,$$css:!0}},vr={0:{kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},yr={0:{kZCmMZ:`x18gyask`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,$$css:!0},2:{kZCmMZ:`x12gdq22`,$$css:!0},3:{kZCmMZ:`x126nfab`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,$$css:!0},5:{kZCmMZ:`x1blguxw`,$$css:!0},6:{kZCmMZ:`x31w388`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,$$css:!0},10:{kZCmMZ:`xqp078j`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,$$css:!0}},br={0:{kwRFfy:`x1s0aq8i`,$$css:!0},1:{kwRFfy:`x1nryj5t`,$$css:!0},2:{kwRFfy:`x1djylfy`,$$css:!0},3:{kwRFfy:`x1t818jl`,$$css:!0},4:{kwRFfy:`xnjyzlh`,$$css:!0},5:{kwRFfy:`xdbrk9v`,$$css:!0},6:{kwRFfy:`x1we12cn`,$$css:!0},8:{kwRFfy:`x1q91b2g`,$$css:!0},10:{kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kwRFfy:`x17hk9do`,$$css:!0}},xr={0:{"--container-padding-inline-start":`x1gu2k80`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,$$css:!0}},Sr={0:{"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-end":`xntetml`,$$css:!0}},Cr={0:{kLKAdn:`x1ydh6w3`,$$css:!0},1:{kLKAdn:`xfsso4q`,$$css:!0},2:{kLKAdn:`x1xye8es`,$$css:!0},3:{kLKAdn:`x1vlblms`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,$$css:!0},5:{kLKAdn:`xx7rijo`,$$css:!0},6:{kLKAdn:`x1adxfkp`,$$css:!0},8:{kLKAdn:`xoxd1wu`,$$css:!0},10:{kLKAdn:`xk6660b`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,$$css:!0}},wr={0:{kGO01o:`x1l20ajd`,$$css:!0},1:{kGO01o:`xy143xn`,$$css:!0},2:{kGO01o:`x1wesfrj`,$$css:!0},3:{kGO01o:`xvmdzux`,$$css:!0},4:{kGO01o:`x1awphl8`,$$css:!0},5:{kGO01o:`x1hk98q`,$$css:!0},6:{kGO01o:`xjpqqx5`,$$css:!0},8:{kGO01o:`x2oz4g1`,$$css:!0},10:{kGO01o:`x2izi54`,$$css:!0},"0.5":{kGO01o:`xij103a`,$$css:!0},"1.5":{kGO01o:`x1opdxmq`,$$css:!0}},Tr={0:{"--_section-padding-propagated":`x7mo41q`,$$css:!0},1:{"--_section-padding-propagated":`x1j3iakl`,$$css:!0},2:{"--_section-padding-propagated":`xezgk69`,$$css:!0},3:{"--_section-padding-propagated":`x1wtz8uf`,$$css:!0},4:{"--_section-padding-propagated":`x5wdj8h`,$$css:!0},5:{"--_section-padding-propagated":`xgjndll`,$$css:!0},6:{"--_section-padding-propagated":`x15i4jqh`,$$css:!0},8:{"--_section-padding-propagated":`xmb9lpv`,$$css:!0},10:{"--_section-padding-propagated":`x4h2jfd`,$$css:!0},"0.5":{"--_section-padding-propagated":`x2ccaqq`,$$css:!0},"1.5":{"--_section-padding-propagated":`xxa843v`,$$css:!0}},Er={reset:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-padding-outer-x":`xdt8ak2`,"--layout-padding-outer-y":`x1rs4lu4`,"--layout-padding-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}}}));function Or(e){return typeof e==`number`?`${e}px`:e}function kr(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function Ar(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function jr(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function Mr(e,t){let n=(0,Fr.useRef)(t);return n.current=t,(0,Fr.useMemo)(()=>({onPointerDown:t=>{if(!n.current)return;let r=t.currentTarget,i=r.ownerDocument;r.setAttribute(`popovertarget`,e);let a=()=>{i.removeEventListener(`pointerup`,a),i.removeEventListener(`pointercancel`,a),i.defaultView?.setTimeout(()=>{r.removeAttribute(`popovertarget`)},0)};i.addEventListener(`pointerup`,a),i.addEventListener(`pointercancel`,a)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e])}function Nr(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,Fr.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,Fr.useState)(!1),u=(0,Fr.useRef)(null),d=(0,Fr.useRef)(null),f=(0,Fr.useRef)(null),p=(0,Fr.useRef)(null),m=(0,Fr.useRef)(null),[h,g]=(0,Fr.useState)(null),_=(0,Fr.useRef)(!1),v=(0,Fr.useRef)(!1),y=(0,Fr.useRef)(null),b=(0,Fr.useRef)(null),x=(0,Fr.useCallback)(()=>{let e=tr();return y.current===e},[]),S=(0,Fr.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),C=(0,Fr.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),w=(0,Fr.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=sr(n),i={portalTarget:r,portalStyle:r?kr(e,r):{}};m.current=i,g(i)},[t]),T=(0,Fr.useCallback)(()=>{t===`context`&&a&&(m.current=null,g(null))},[t,a]),E=(0,Fr.useCallback)(()=>{if(x())return;let e=u.current,t=e&&C(e)?e:null;if(!t){_.current=!0,w();return}v.current||(S(t),v.current=!0,l(!0),n?.())},[n,w,S,C,x]),D=(0,Fr.useCallback)(()=>{if(_.current=!1,v.current){let e=u.current;d.current=null,v.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}T()},[r,T]),O=(0,Fr.useCallback)(e=>{f.current&&f.current!==e&&Xn(f.current,s),e&&Yn(e,s),f.current=e},[s]),k=(0,Fr.useCallback)(e=>{if(b.current?.(),nr())return;y.current=tr();let t=e.defaultView,n=null,r=()=>{y.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),b.current===r&&(b.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,b.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),b.current=r},[]);(0,Fr.useEffect)(()=>(tr(),()=>b.current?.()),[]);let A=(0,Fr.useCallback)(e=>{e.newState===`closed`&&v.current&&(d.current=null,v.current=!1,k(e.currentTarget?.ownerDocument??document),l(!1),r?.(),T())},[r,T,k]),j=(0,Fr.useRef)(null),M=(0,Fr.useRef)(null),N=(0,Fr.useCallback)((e,t)=>{j.current&&M.current&&(j.current!==e||M.current!==t)&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null),e&&j.current!==e&&(e.addEventListener(`toggle`,t),j.current=e,M.current=t)},[]),P=(0,Fr.useCallback)(e=>{u.current=e,N(e,A),e&&_.current?(_.current=!1,E()):e&&v.current&&d.current!==e&&C(e)&&S(e)},[A,N,E,S,C]),F=(0,Fr.useCallback)(e=>{p.current=e,e&&(!a||_.current||v.current)&&w()},[a,w]);(0,Fr.useEffect)(()=>(u.current&&N(u.current,A),()=>{j.current&&M.current&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null)}),[A,N]);let I=(0,Fr.useCallback)((e,t)=>{let n=(0,Lr.jsx)(`template`,{ref:F});if(h===null)return(0,Lr.jsx)(Lr.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:Ar(r,a),positionTryFallbacks:jr(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?zr.offsetBlock(Or(l)):zr.offsetInline(Or(l)):null,x=V(zr.base,Er.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,Lr.jsx)(g,{ref:P,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:e});return(0,Lr.jsxs)(Lr.Fragment,{children:[n,h.portalTarget?(0,Ir.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,P,F]),ee=(0,Fr.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=V(zr.base,Er.reset,zr.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,Lr.jsx)(`div`,{ref:P,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:e})},[P,o,i]),L=(0,Fr.useMemo)(()=>({ref:O,anchorId:s,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:I}),[O,s,E,D,c,x,o,I]),te=(0,Fr.useMemo)(()=>({ref:void 0,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:ee}),[E,D,c,x,o,ee]);return t===`context`?L:te}function Pr(e){let t=Nr(e);return(0,Fr.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}var Fr,Ir,Lr,Rr,zr,Br=o((()=>{Fr=u(f(),1),H(),Ir=g(),Zn(),or(),lr(),Dr(),Lr=_n(),Rr={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},zr={base:{keoZOQ:`xdj266r`,k1K539:`xat24cr`,keTefX:`x1lziwak`,k71WvV:`x14z9mp`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kVQacm:`x1rea2x4`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,kWkggS:`xjbqb8w`,$$css:!0},fixed:{kVAEAm:`xixxii4`,$$css:!0},offsetBlock:e=>[Rr,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]}}));function Vr(e){let t=e,n=t[Kr];if(n!=null)return n;let r={modality:`keyboard`,isListening:!1,onPointerDown:()=>{r.modality=`pointer`},onKeyDown:e=>{e.metaKey||e.altKey||e.ctrlKey||(r.modality=`keyboard`)}};return Object.defineProperty(t,Kr,{value:r}),r}function Hr(){if(typeof document>`u`)return()=>{};let e=document,t=Vr(e);return t.isListening||(t.isListening=!0,e.addEventListener(`pointerdown`,t.onPointerDown,{capture:!0,passive:!0}),e.addEventListener(`keydown`,t.onKeyDown,{capture:!0,passive:!0})),()=>{}}function Ur(){(0,Gr.useEffect)(()=>Hr(),[])}function Wr(){return typeof document>`u`?`keyboard`:Vr(document).modality}var Gr,Kr,qr=o((()=>{Gr=u(f(),1),Kr=Symbol.for(`@astryxdesign/core/interaction-modality/v1`)}));function Jr(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return $r.has(t);switch(e.tagName){case`BUTTON`:case`INPUT`:case`LABEL`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return Yr(e)}}function Yr(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Xr(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,Zr.useRef)(!1),u=(0,Zr.useRef)(i);u.current=i;let d=(0,Zr.useRef)(c);d.current=c;let f=(0,Zr.useRef)(a);f.current=a;let p=(0,Zr.useRef)(!1),m=(0,Zr.useRef)(null);Ur();let h=(0,Zr.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,Zr.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,Zr.useEffect)(()=>h,[h]);let _=(0,Zr.useCallback)(()=>l.current&&Wr()===`pointer`,[]),v=(0,Zr.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),y=(0,Zr.useCallback)(e=>{let i=Qr.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&Jr(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),b=(0,Zr.useRef)(i);return(0,Zr.useEffect)(()=>{b.current&&!i&&h(),b.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:_,handlePointerEnter:v,handlePointerDown:y,clearTapOpen:h}}var Zr,Qr,$r,ei=o((()=>{Zr=u(f(),1),qr(),Qr=new Set([`touch`,`pen`]),$r=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`])})),ti,ni=o((()=>{Ze(),Ye[`--duration-fast-max`],Xe[`--ease-standard`],ti={below:{kKVMdj:`xl1vlw0 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},above:{kKVMdj:`x3psbcj x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},end:{kKVMdj:`x1i331go x1vxsm5i x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},start:{kKVMdj:`xck01x9 x18lne9g x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0}}}));function ri(){return(0,ai.use)(si)}function ii({children:e}){let t=(0,ai.use)(si);return(0,oi.jsx)(si,{value:t+1,children:e})}var ai,oi,si,ci=o((()=>{ai=u(f(),1),oi=_n(),si=(0,ai.createContext)(0),si.displayName=`LayerDepthContext`,ii.displayName=`LayerDepthProvider`}));function li(e){let t=Ci.get(e);if(t!==void 0)return t;let n=wi++;return Ci.set(e,n),n}function ui(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function di(e){return e.isPresent?.()??!0}function fi(){return Ei}function pi(){Ei=!0}function mi(){Ei=!1}function hi(){let e=null;for(let t of Si)di(t)&&(e==null||ui(t,e)>0)&&(e=t);return e}function gi(e){return hi()?.token===e}function _i(){let e=hi();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function vi(e){if(e.key===`Escape`){if(fn(e)){hi()!=null&&e.preventDefault();return}e.defaultPrevented||_i()&&e.preventDefault()}}function yi(){Ti||typeof document>`u`||(document.addEventListener(`keydown`,vi),document.addEventListener(`compositionstart`,pi,!0),document.addEventListener(`compositionend`,mi,!0),document.addEventListener(`blur`,mi,!0),Ti=!0)}function bi(){!Ti||typeof document>`u`||(document.removeEventListener(`keydown`,vi),document.removeEventListener(`compositionstart`,pi,!0),document.removeEventListener(`compositionend`,mi,!0),document.removeEventListener(`blur`,mi,!0),Ei=!1,Ti=!1)}function xi(e){let t={...e,seq:li(e.token)};return Si.push(t),yi(),()=>{let e=Si.indexOf(t);e!==-1&&Si.splice(e,1),Si.length===0&&bi()}}var Si,Ci,wi,Ti,Ei,Di=o((()=>{mn(),Si=[],Ci=new WeakMap,wi=0,Ti=!1,Ei=!1}));function Oi(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=ri(),c=(0,ki.useRef)({}),l=(0,ki.useRef)(n),u=(0,ki.useRef)(i),d=(0,ki.useRef)(a);(0,ki.useEffect)(()=>{l.current=n,u.current=i,d.current=a});let f=t&&o;return(0,ki.useEffect)(()=>{if(f)return xi({token:c.current,depth:s,behavior:r,getContainer:()=>u.current?.()??null,isPresent:()=>d.current?.()??!0,dismiss:()=>l.current()})},[f,s,r]),{shouldDismissOnCloseRequest:(0,ki.useCallback)(()=>f&&!fi()&&gi(c.current),[f])}}var ki,Ai=o((()=>{ki=u(f(),1),ci(),Di()}));function ji(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Mi(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,{ref:f,anchorId:p,show:m,hide:h,isOpen:g,id:_,render:v}=Pr({mode:`context`,onShow:u,onHide:d}),y=Ii.container,b=(0,Ni.useRef)(null),x=(0,Ni.useRef)(null),S=(0,Ni.useRef)(null),C=(0,Ni.useCallback)(()=>{b.current&&=(clearTimeout(b.current),null),x.current&&=(clearTimeout(x.current),null)},[]),w=(0,Ni.useCallback)(()=>{C(),m()},[C,m]),T=(0,Ni.useCallback)(()=>{C(),h()},[C,h]),{isTouchPointerRef:E,isTouchInteraction:D,handlePointerEnter:O,handlePointerDown:k,clearTapOpen:A}=Xr({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:g,layerId:_,triggerRef:S,show:w,hide:T}),j=(0,Ni.useCallback)(()=>{s&&c!==!1&&(C(),b.current=setTimeout(()=>{m()},r))},[s,c,C,m,r]),M=(0,Ni.useCallback)(()=>{c!==!0&&(C(),x.current=setTimeout(()=>{h()},i>0?i:Fi))},[c,C,h,i]),N=(0,Ni.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null)},[]),P=(0,Ni.useCallback)(()=>{E.current||j()},[E,j]),F=(0,Ni.useCallback)(()=>{E.current||M()},[E,M]),I=(0,Ni.useCallback)(e=>{s&&(D()||e.target.matches(`:focus-visible`)&&(C(),m()))},[s,D,C,m]),ee=(0,Ni.useCallback)(()=>{M()},[M]),L=(0,Ni.useCallback)(e=>{k(e)||c===void 0&&(C(),h())},[k,c,C,h]),te=(0,Ni.useCallback)(e=>{S.current&&(S.current.removeEventListener(`mouseenter`,P),S.current.removeEventListener(`mouseleave`,F),S.current.removeEventListener(`focusin`,I),S.current.removeEventListener(`focusout`,ee),S.current.removeEventListener(`pointerenter`,O),S.current.removeEventListener(`pointerdown`,L)),e&&(e.addEventListener(`pointerenter`,O),e.addEventListener(`mouseenter`,P),e.addEventListener(`mouseleave`,F),e.addEventListener(`pointerdown`,L),(a===`always`||a===`auto`&&ji(e))&&(e.addEventListener(`focusin`,I),e.addEventListener(`focusout`,ee))),S.current=e},[a,P,F,I,ee,O,L]),R=(0,Ni.useCallback)(e=>{f(e),te(e)},[f,te]);return(0,Ni.useEffect)(()=>()=>{C()},[C]),(0,Ni.useEffect)(()=>{l&&m()},[]),(0,Ni.useEffect)(()=>{c!==void 0&&(c?(C(),m()):(C(),h()))},[c,C,m,h]),Oi({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(_);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return g}},onDismiss:()=>{if(C(),A(),c!==void 0){d?.();return}h()}}),{ref:R,positionRef:f,interactionRef:te,anchorId:p,describedBy:_,renderTooltip:(0,Ni.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:qe[`--spacing-1`],role:`tooltip`,xstyle:[y,ti[i]],className:U(`tooltip`).className,onMouseEnter:N,onMouseLeave:M};return v((0,Pi.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[v,t,n,y,N,M])}}var Ni,Pi,Fi,Ii,Li=o((()=>{Ni=u(f(),1),Br(),ei(),ni(),Ai(),ut(),Ze(),Pi=_n(),Fi=100,Ii={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}}})),Ri=c({Tooltip:()=>Vi});function zi(e){return typeof e==`string`||typeof e==`number`}function Bi(...e){let t=e.filter(Boolean);return t.length>0?t.join(` `):void 0}function Vi({children:e,anchorRef:t,content:n,placement:r=`above`,alignment:i=`center`,delay:a=200,hideDelay:o=0,focusTrigger:s=`auto`,touchTrigger:c=`auto`,isEnabled:l=!0,onOpenChange:u,hasHoverIndication:d=`auto`,isOpen:f,isDefaultOpen:p}){let m=(0,Hi.useRef)(null),h=e!=null&&zi(e),g=d===!0||d===`auto`&&h,_=Mi({placement:r,alignment:i,delay:a,hideDelay:o,focusTrigger:s,touchTrigger:c,isEnabled:l,isOpen:f,isDefaultOpen:p,onShow:(0,Hi.useCallback)(()=>{u?.(!0)},[u]),onHide:(0,Hi.useCallback)(()=>{u?.(!1)},[u])});return Gn(()=>{if(!t)return;let e=t.current;if(!e)return;_.ref(e);let n=e.getAttribute(`aria-describedby`);return e.setAttribute(`aria-describedby`,Bi(n,_.describedBy)??``),()=>{_.ref(null),n?e.setAttribute(`aria-describedby`,n):e.removeAttribute(`aria-describedby`)}},[t,_.ref,_.describedBy]),Gn(()=>{if(t||h)return;let e=m.current;if(!e)return;let n=e.firstElementChild;if(!n)return;_.ref(n);let r=n.getAttribute(`aria-describedby`);return n.setAttribute(`aria-describedby`,Bi(r,_.describedBy)??``),()=>{_.ref(null),r?n.setAttribute(`aria-describedby`,r):n.removeAttribute(`aria-describedby`)}},[t,h,_.ref,_.describedBy]),t&&e==null?(0,Ui.jsx)(Ui.Fragment,{children:_.renderTooltip(n)}):h?(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(`span`,{ref:_.ref,tabIndex:0,"aria-describedby":_.describedBy,...{0:{className:`xt0psk2`},1:{className:`xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj`}}[!!g<<0],children:e}),_.renderTooltip(n)]}):(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(`div`,{ref:m,className:`xjp7ctv`,children:e}),_.renderTooltip(n)]})}var Hi,Ui,Wi=o((()=>{Hi=u(f(),1),Kn(),Li(),Ui=_n(),Vi.displayName=`Tooltip`}));H(),hn(),Un(),ut();var Gi=(0,y.lazy)(async()=>Promise.resolve().then(()=>(Wi(),Ri)).then(e=>({default:e.Tooltip}))),Ki={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function qi(e){return e in On?e:`body`}function Ji(e){return e in Tn?e:`primary`}function Yi({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:_,ref:v,...b}){let x=n??Ki[e]??`primary`,S=qi(e),C=Ji(x),w=s??(a===1?`break-all`:`break-word`),T=a>0||u?`block`:i,E=Bn({maxLines:a}),D=typeof o==`string`?o:`above`,O=a>0&&o!==!1&&E.isTruncated,k=(0,y.useRef)(null),A=Vn(v,E.ref,k),j=a>1?{WebkitLineClamp:a}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{ref:A,...W(U(`text`,{type:e,size:t,color:x}),V(Tn[C],On[S],t&&kn[t],Dn[S],r&&En[r],a===1?Mn.singleLine:a>1?Mn.multiLine:jn[T],a>0&&Nn[w],c&&Pn[c],l!==`start`&&Rn[l],u&&Fn.enabled,d&&In.strikethrough,f&&Ln.enabled,p),m,{...h,...j}),...b,children:_}),O&&(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(Gi,{anchorRef:k,content:(0,G.jsx)(`span`,{...V(zn.content),children:E.fullText}),placement:D})})]})}Yi.displayName=`Text`,H(),hn(),Un(),ut();var Xi=(0,y.lazy)(async()=>Promise.resolve().then(()=>(Wi(),Ri)).then(e=>({default:e.Tooltip})));function Zi(e){return e===`display-1`||e===`display-2`||e===`display-3`}var Qi={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`};function $i({level:e,type:t,weight:n,accessibilityLevel:r,color:i=`primary`,display:a=`block`,maxLines:o=0,hasTruncateTooltip:s=!0,wordBreak:c,textWrap:l,justify:u=`start`,hasCapsize:d=!1,hasStrikethrough:f=!1,xstyle:p,className:m,style:h,children:g,ref:_,...v}){let b=Qi[e],x=r&&r!==e?{"aria-level":r}:{},S=c??(o===1?`break-all`:`break-word`),C=o>0||d?`block`:a,w=t&&Zi(t)?t:void 0,T=Bn({maxLines:o}),E=typeof s==`string`?s:`above`,D=o>0&&s!==!1&&T.isTruncated,O=(0,y.useRef)(null),k=Vn(_,T.ref,O),A=o>1?{WebkitLineClamp:o}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b,{ref:k,...W(U(`heading`,{level:e,color:i,type:t,weight:n}),V(Tn[Ji(i)],w?On[w]:An[e],w&&Dn[w],n&&En[n],o===1?Mn.singleLine:o>1?Mn.multiLine:jn[C],o>0&&Nn[S],l&&Pn[l],u!==`start`&&Rn[u],d&&Fn.enabled,f&&In.strikethrough,p),m,{...h,...A}),...x,...v,children:g}),D&&(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(Xi,{anchorRef:O,content:(0,G.jsx)(`span`,{...V(zn.content),children:T.fullText}),placement:E})})]})}$i.displayName=`Heading`;function ea(e,t,n){if(n==null)return!1;if(n instanceof Date)return e.append(t,n.toISOString()),!0;if(Array.isArray(n)){let r=!1;for(let i of n)r=ea(e,t,i)||r;return r}if(typeof n==`string`||typeof n==`number`||typeof n==`boolean`)return e.append(t,String(n)),!0;throw Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function ta(e,t){if(!t)return e;let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`),o=a===-1?r:r.slice(0,a),s=a===-1?``:r.slice(a+1),c=new URLSearchParams(s),l=!1;for(let[e,n]of Object.entries(t))l=ea(c,e,n)||l;if(!l)return e;let u=c.toString();return`${o}${u?`?${u}`:``}${i}`}function na(e){return e!==!1}function ra(e){let t=e.currentTarget.getAttribute(`target`);return t!==null&&t!==`_self`||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}function ia({href:e,method:t=`GET`,data:n,preserveScroll:r=!1,preserveState:i=!1,replace:a=!1,reloadDocument:o=!1,viewTransition:s,prefetch:c=!1,cacheFor:l,onNavigate:u,children:d,style:f,onClick:p,onMouseEnter:m,onMouseLeave:h,onFocus:g,onMouseDown:_,onTouchStart:v,...b}){let x=(0,y.useContext)(ye),S=(0,y.useRef)(null),C=(0,y.useRef)(null),w=(0,y.useMemo)(()=>t.toUpperCase(),[t]),T=w===`GET`,E=(0,y.useMemo)(()=>T?ta(e,n):e,[n,e,T]),D=(0,y.useMemo)(()=>c===!1||o?[]:c===!0?[`hover`]:typeof c==`string`?[c]:c,[c,o]),O=x?._hoverDelay??75;if(na(c)&&!T)throw Error('Link: prefetch only supports GET links. Remove `prefetch` or use method="GET".');if(o&&!T)throw Error(`Link: reloadDocument only supports GET links.`);let k=(0,y.useCallback)(()=>{if(!x?.prefetch)return;let e=window.location.pathname+window.location.search;if(E===e)return;let t={};l!==void 0&&(t.cacheFor=l),w&&(t.method=w),x.prefetch(E,t)},[l,E,w,x]),A=(0,y.useCallback)(e=>!(o||!x||e.defaultPrevented||ra(e)||e.currentTarget.hasAttribute(`download`)||new URL(E,window.location.origin).origin!==window.location.origin),[E,o,x]),j=(0,y.useCallback)(e=>{if(p?.(e),!A(e))return;let t=!1;if(u?.({preventDefault(){t=!0}}),t){e.preventDefault();return}e.preventDefault(),x?.visit(E,{method:w,data:T?void 0:n,preserveScroll:r,preserveState:i,replace:a,viewTransition:s})},[n,E,T,w,p,u,r,i,a,x,A,s]),M=(0,y.useCallback)(e=>{m?.(e),!e.defaultPrevented&&(C.current&&clearTimeout(C.current),C.current=setTimeout(k,O))},[k,O,m]),N=(0,y.useCallback)(e=>{h?.(e),C.current&&=(clearTimeout(C.current),null)},[h]),P=(0,y.useCallback)(e=>{g?.(e),e.defaultPrevented||k()},[k,g]),F=(0,y.useCallback)(e=>{_?.(e),e.defaultPrevented||k()},[k,_]),I=(0,y.useCallback)(e=>{v?.(e),e.defaultPrevented||k()},[k,v]);(0,y.useEffect)(()=>{if(D.length===0)return;D.includes(`mount`)&&k();let e=null;return D.includes(`visible`)&&S.current&&(e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(k(),e?.disconnect(),e=null)},{rootMargin:`0px`}),e.observe(S.current)),()=>{C.current&&=(clearTimeout(C.current),null),e&&e.disconnect()}},[k,D]);let ee=(0,y.useMemo)(()=>{let e={onClick:j,onFocus:g,onMouseDown:_,onMouseEnter:m,onMouseLeave:h,onTouchStart:v};return D.includes(`hover`)&&(e.onMouseEnter=M,e.onMouseLeave=N,e.onFocus=P,e.onTouchStart=I),D.includes(`click`)&&(e.onMouseDown=F,e.onTouchStart=I),e},[j,P,g,F,_,M,m,N,h,I,v,D]),L=(0,y.useMemo)(()=>({touchAction:`manipulation`,...f}),[f]);return T?(0,G.jsx)(`a`,{ref:S,href:E,style:L,...b,...ee,children:d}):(0,G.jsx)(`button`,{ref:S,type:`button`,style:L,...b,...ee,children:d})}function aa(){return(0,y.useContext)(ye)??he}function oa(){let e=(0,y.useContext)(ge);if(!e)throw Error(`useShared(): must be used inside a Void page.`);return e}function sa(){return(0,y.useContext)(be)}function ca(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]={...r};for(let[e,r]of Object.entries(t))if(!n[e])n[e]={...r};else for(let[t,i]of Object.entries(r))n[e][t]={...n[e][t],...i};return n}var la=o((()=>{}));function ua(e,t,n){return Math.round(e*t**+n)}function da(e){return`${Math.round(e/16*1e4)/1e4}rem`}function fa(e){return e<20?1.5:e<32?1.4:1.25}function pa(e){let t=e*fa(e),n=Math.max(Math.round(t/4)*4,Math.ceil((e+4)/4)*4);return Math.round(n/e*1e4)/1e4}function ma(e){let{base:t,ratio:n,weights:r}=e,i={},a={...ya,...r?.heading},o={...ba,...r?.text};for(let e=-5;e<=6;e++){let r=ua(t,n,e);i[ga[e]]=da(r)}for(let[e,r]of Object.entries(_a)){let o=Number(e),s=pa(ua(t,n,r));i[`--text-heading-${o}-size`]=`var(${ga[r]})`,i[`--text-heading-${o}-weight`]=a[o],i[`--text-heading-${o}-leading`]=`${s}`}for(let[e,r]of Object.entries(va)){let a=pa(ua(t,n,r));i[`--text-${e}-size`]=`var(${ga[r]})`,i[`--text-${e}-weight`]=o[e],i[`--text-${e}-leading`]=`${a}`}return i}function ha(e){let t={},n={};for(let e of[1,2,3,4,5,6])n[`level:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-${e}-size)`,fontWeight:`var(--text-heading-${e}-weight)`,lineHeight:`var(--text-heading-${e}-leading)`};for(let e of[`display-1`,`display-2`,`display-3`])n[`type:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};t.heading=n;let r={};for(let e of[`body`,`large`,`label`,`code`,`supporting`,`display-1`,`display-2`,`display-3`])r[`type:${e}`]={fontFamily:xa[e],fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};return t.text=r,t}var ga,_a,va,ya,ba,xa,Sa=o((()=>{ga={[-5]:`--font-size-4xs`,[-4]:`--font-size-3xs`,[-3]:`--font-size-2xs`,[-2]:`--font-size-xs`,[-1]:`--font-size-sm`,0:`--font-size-base`,1:`--font-size-lg`,2:`--font-size-xl`,3:`--font-size-2xl`,4:`--font-size-3xl`,5:`--font-size-4xl`,6:`--font-size-5xl`},_a={1:3,2:2,3:1,4:0,5:-1,6:-2},va={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},ya={1:`var(--font-weight-semibold)`,2:`var(--font-weight-semibold)`,3:`var(--font-weight-semibold)`,4:`var(--font-weight-semibold)`,5:`var(--font-weight-semibold)`,6:`var(--font-weight-semibold)`},ba={body:`var(--font-weight-normal)`,large:`var(--font-weight-semibold)`,label:`var(--font-weight-medium)`,code:`var(--font-weight-normal)`,supporting:`var(--font-weight-normal)`,"display-1":`var(--font-weight-normal)`,"display-2":`var(--font-weight-normal)`,"display-3":`var(--font-weight-normal)`},xa={body:`var(--font-family-body)`,large:`var(--font-family-body)`,label:`var(--font-family-body)`,code:`var(--font-family-code)`,supporting:`var(--font-family-body)`,"display-1":`var(--font-family-heading)`,"display-2":`var(--font-family-heading)`,"display-3":`var(--font-family-heading)`}}));function Ca(e){return Math.round(e/5)*5}function wa(e){let{fast:t,medium:n,slow:r,ratio:i,easing:a}=e,o={"--duration-fast-min":`${Ca(t*i)}ms`,"--duration-fast":`${Ca(t)}ms`,"--duration-fast-max":`${Ca(t/i)}ms`,"--duration-medium-min":`${Ca(n*i)}ms`,"--duration-medium":`${Ca(n)}ms`,"--duration-medium-max":`${Ca(n/i)}ms`};return r!=null&&(o[`--duration-slow-min`]=`${Ca(r*i)}ms`,o[`--duration-slow`]=`${Ca(r)}ms`,o[`--duration-slow-max`]=`${Ca(r/i)}ms`),a&&(o[`--ease-standard`]=a),o}var Ta=o((()=>{}));function Ea(e){let{base:t,multiplier:n}=e;return{"--radius-none":`0px`,"--radius-inner":`${Math.round(t*1*n)}px`,"--radius-element":`${Math.round(t*2*n)}px`,"--radius-container":`${Math.round(t*3*n)}px`,"--radius-page":`${Math.round(t*7*n)}px`,"--radius-chat":`${Math.round(t*7*n)}px`,"--radius-full":`9999px`}}var Da=o((()=>{}));function Oa(e){let t=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function ka(e,t){let n=e.a;return{r:e.r*n+t.r*(1-n),g:e.g*n+t.g*(1-n),b:e.b*n+t.b*(1-n),a:1}}function Aa(e,t){if(typeof e!=`string`)return e;let n=Wt(e);if(n===null)throw TypeError(`contrastRatio: could not parse ${t} "${e}"`);return n}function ja(e,t){let n=Aa(t,`background`);if(n.a<1)throw TypeError(`contrastRatio: background must be opaque — composite it over its backdrop first`);let r=Aa(e,`foreground`);r.a<1&&(r=ka(r,n));let i=Oa(r),a=Oa(n),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}var Ma=o((()=>{Jt()}));function Na(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Pa(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function Fa(e,t,n){return[.4124564*e+.3575761*t+.1804375*n,.2126729*e+.7151522*t+.072175*n,.0193339*e+.119192*t+.9503041*n]}function Ia(e,t,n){return[3.2404542*e-1.5371385*t-.4985314*n,-.969266*e+1.8760108*t+.041556*n,.0556434*e-.2040259*t+1.0572252*n]}function La(e){let t=6/29;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Ra(e){let t=6/29;return e>t?e*e*e:3*t*t*(e-4/29)}function za(e,t,n){let r=La(e/Ya[0]),i=La(t/Ya[1]),a=La(n/Ya[2]);return[116*i-16,500*(r-i),200*(i-a)]}function Ba(e,t,n){let r=(e+16)/116,i=t/500+r,a=r-n/200;return[Ra(i)*Ya[0],Ra(r)*Ya[1],Ra(a)*Ya[2]]}function Va(e){return Ra((e+16)/116)}function Ha(e){let t=Ht(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function Ua(e){let[t,n,r]=Ha(e),[i,a,o]=Fa(Na(t),Na(n),Na(r)),[s,c,l]=za(i,a,o),u=Math.atan2(l,c)*180/Math.PI;u<0&&(u+=360);let d=Math.sqrt(c*c+l*l);return{hue:u,chroma:d,tone:Math.max(0,Math.min(100,s))}}function Wa(e){let{hue:t,chroma:n,tone:r}=e;if(r<=0)return`#000000`;if(r>=100)return`#FFFFFF`;if(n<.5){let e=Ga(r);return Gt(e,e,e)}let i=0,a=n,o=`#000000`;for(let e=0;e<16;e++){let e=(i+a)/2,n=Ka(t,e,r);n===null?a=e:(o=n,i=e)}return o}function Ga(e){return Pa(Va(e))}function Ka(e,t,n){let r=e*Math.PI/180,[i,a,o]=Ba(n,Math.cos(r)*t,Math.sin(r)*t),[s,c,l]=Ia(i,a,o),u=Pa(s),d=Pa(c),f=Pa(l),p=Na(u),m=Na(d),h=Na(f),g=.02;return Math.abs(p-s)>g||Math.abs(m-c)>g||Math.abs(h-l)>g||u<0||u>255||d<0||d>255||f<0||f>255?null:Gt(u,d,f)}function qa(e,t){let n={};for(let r of Xa)n[r]=Wa({hue:e,chroma:t,tone:r});return n}function Ja(e,t){return e+Math.round(t*255).toString(16).padStart(2,`0`).toUpperCase()}var Ya,Xa,Za=o((()=>{Jt(),Ya=[.95047,1,1.08883],Xa=[0,5,10,20,30,40,50,60,70,80,90,95,99,100]}));function Qa(e,t){return`light-dark(${e}, ${t})`}function $a(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}function eo(e,t,n,r,i,a){let o=n,s=Wa({hue:e,chroma:t,tone:o});for(;ja(s,i)<a&&o+r>=0&&o+r<=100;)o+=r,s=Wa({hue:e,chroma:t,tone:o});return s}function to(e){let{accent:t,neutralStyle:n=`cool`,contrast:r=`standard`}=e,[i,a]=Array.isArray(t)?t:[t,t],o=Ua(i??io),s=a===i,c=s?o:Ua(a??io),l=no[n]??5,u=ro[n]??8,d=qa(o.hue,Math.max(o.chroma,48)),f=qa(o.hue,l),p=qa(o.hue,u),m=s?d:qa(c.hue,Math.max(c.chroma,48)),h=s?f:qa(c.hue,l),g=s?p:qa(c.hue,u),_=r===`high`,v=_?0:10,y=_?99:90,b=_?20:30,x=_?80:70,S=_?.2:.1,C=_?50:70,w=_?50:30,T=Qa(eo(o.hue,u,C,-1,f[99],ao),eo(c.hue,u,w,1,h[10],ao));return{...t==null?null:{"--color-accent":Qa(d[40],m[80]),"--color-accent-muted":Qa($a(.2),$a(.25)),"--color-on-accent":Qa(d[100],m[20])},"--color-neutral":Qa(Ja(f[10],.1),Ja(h[90],.2)),"--color-background-surface":Qa(f[99],h[10]),"--color-background-body":Qa(f[95],h[5]),"--color-overlay":Qa(Ja(f[10],.4),Ja(h[10],.6)),"--color-overlay-hover":Qa(Ja(f[10],.05),Ja(h[100],.05)),"--color-overlay-pressed":Qa(Ja(f[10],.1),Ja(h[100],.1)),"--color-background-muted":Qa(Ja(f[10],.05),Ja(h[10],.5)),"--color-text-primary":Qa(f[v],h[y]),"--color-text-secondary":Qa(p[b],g[x]),"--color-text-disabled":Qa(p[60],g[40]),"--color-text-accent":`var(--color-accent)`,"--color-icon-accent":`var(--color-accent)`,"--color-icon-primary":Qa(f[v],h[y]),"--color-icon-secondary":Qa(p[b],g[x]),"--color-icon-disabled":Qa(p[60],g[40]),"--color-background-card":Qa(f[99],h[10]),"--color-background-popover":Qa(f[99],h[20]),"--color-background-inverted":Qa(f[10],h[99]),"--color-border":Qa(Ja(f[10],S),Ja(h[95],S)),"--color-border-emphasized":T,"--color-skeleton":Qa(p[70],g[30]),"--color-track":Qa(p[70],g[30]),"--color-shadow":Qa(Ja(f[0],.1),Ja(h[0],.3)),"--color-tint-hover":Qa(`black`,`white`)}}var no,ro,io,ao,oo=o((()=>{Ma(),Za(),no={warm:7,cool:5,neutral:3},ro={warm:10,cool:8,neutral:6},io=`#0064E0`,ao=3}));function so(e,{strict:t=!1}={}){if(typeof e==`string`)return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)return`light-dark(${e[0]}, ${e[1]})`;if(t)throw Error(`Theme token values must be CSS strings or [light, dark] string tuples.`);return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function co(e){return{normal:`var(--font-weight-normal)`,medium:`var(--font-weight-medium)`,semibold:`var(--font-weight-semibold)`,bold:`var(--font-weight-bold)`}[e]??e}function lo(e,t){if(!e)return;let n=e.includes(` `)?`"${e}"`:e;return t?`${n}, ${t}`:n}function uo(e){if(!e.scale)return;let t={},n=e.heading;if(n?.weights)for(let[e,r]of Object.entries(n.weights))r&&(t[Number(e)]=co(r));let r=n?.weight?co(n.weight):void 0;if(r)for(let e=1;e<=6;e++)e in t||(t[e]=r);let i={};return e.body?.weight&&(i.body=co(e.body.weight)),e.code?.weight&&(i.code=co(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(i).length>0?{text:i}:{}}}}function fo(e){let t={},n=lo(e.body?.family,e.body?.fallbacks),r=lo(e.heading?.family,e.heading?.fallbacks)??n,i=lo(e.code?.family,e.code?.fallbacks);return n&&(t[`--font-family-body`]=n),r&&(t[`--font-family-heading`]=r),i&&(t[`--font-family-code`]=i),t}function po(e,t,{strictTokens:n=!1}={}){let r={...t?.tokens},i=e.typography,a=i?uo(i):void 0;if(e.color&&Object.assign(r,to(e.color)),a&&Object.assign(r,ma(a)),e.radius&&Object.assign(r,Ea(e.radius)),e.motion&&Object.assign(r,wa(e.motion)),i&&Object.assign(r,fo(i)),e.syntax)for(let[t,n]of Object.entries(e.syntax.tokens))r[`--color-syntax-`+t]=n;if(e.tokens)for(let[t,i]of Object.entries(e.tokens))i!==void 0&&(r[t]=so(i,{strict:n}));let o=e.components;return a&&(o=ca(ha(a),e.components)),t?.components&&(o=ca(t.components,o)),{tokens:r,components:o}}var mo=o((()=>{Sa(),Ta(),Da(),oo(),la()}));function ho(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function go(e,t){if(typeof e==`string`)return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)return`light-dark(${e[0]}, ${e[1]})`;throw Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function _o(e,t){if(typeof e==`string`){xo.lastIndex=0;for(let n=xo.exec(e);n;n=xo.exec(e))t.add(n[1]);return}if(Array.isArray(e)){for(let n of e)_o(n,t);return}if(e&&typeof e==`object`)for(let n of Object.values(e))_o(n,t)}function vo(e,t,n){let r=new Map;for(let[t,n]of Object.entries(e)){let i=new Set;_o(n,i),r.set(t,[...i].filter(t=>ho(e,t)))}let i=(e,t)=>{let n=[e],i=new Set(n),a=o=>{for(let s of r.get(o)??[])if(t.has(s)){if(s===e)return n.push(e),!0;if(!i.has(s)){if(n.push(s),i.add(s),a(s))return!0;i.delete(s),n.pop()}}return!1};return a(e),n},a=0,o=new Map,s=new Map,c=[],l=new Set,u=e=>{let d=a++;o.set(e,d),s.set(e,d),c.push(e),l.add(e);for(let t of r.get(e)??[])o.has(t)?l.has(t)&&s.set(e,Math.min(s.get(e)??d,o.get(t)??0)):(u(t),s.set(e,Math.min(s.get(e)??d,s.get(t)??0)));if(s.get(e)!==d)return;let f=[],p;do p=c.pop()??e,l.delete(p),f.push(p);while(p!==e);if(!(f.length>1||(r.get(f[0])??[]).includes(f[0]))||n&&!f.some(e=>n.has(e)))return;let m=f.find(e=>n?.has(e))??f[0],h=i(m,new Set(f)).join(` -> `);throw Error(`${t?`${t}: `:``}Theme token cycle detected: ${h}.`)};for(let t of Object.keys(e))o.has(t)||u(t)}function yo(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(n===void 0)return;if(typeof n!=`object`||!n||Array.isArray(n))throw Error(`${i} must be a token map.`);let a={};for(let[e,t]of Object.entries(n)){if(!r||!ho(r,e))throw Error(`${i}["${e}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);a[e]=go(t,`${i}["${e}"]`)}return Object.keys(a).length>0?a:void 0}var bo,xo,So=o((()=>{bo=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,RegExp(`^--${bo}*$`,`u`),xo=RegExp(`var\\(\\s*(--${bo}*)(?=\\s*(?:,|\\)))`,`giu`)}));function Co(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function wo(e,t){if(!Co(e))throw Error(`${t} must be an object.`)}function To(e,t,n){for(let r of Object.keys(e))if(!t.has(r))throw Error(`${n}.${r} is not supported.`)}function Eo(e){if(Array.isArray(e)){let t=[];for(let n of e)t.push(Eo(n));return t}return Co(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Eo(t)])):e}function Do(e,t){wo(e,t),To(e,Jo,t);let n={};for(let r of Ko){let i=e[r];if(i!==void 0){if(typeof i!=`number`||!Number.isFinite(i)||i<=0)throw Error(`${t}.${r} must be a finite positive number of CSS pixels.`);n[r]=i}}return n}function Oo(e,t){let n=Do(e,t);for(let e of Ko)if(n[e]===void 0)throw Error(`${t}.${e} is missing from the effective breakpoint map.`);return n}function ko(e,t){let n;for(let r of Ko){if(n!==void 0&&e[r]<=e[n])throw Error(`${t} must be strictly increasing: ${r} (${e[r]}) is not above ${n} (${e[n]}).`);n=r}}function Ao(e,t){wo(e,t),To(e,Zo,t);let n=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));if(Object.keys(n).length===0)throw Error(`${t} must contain at least one condition.`);let r=Eo(n);if(r.width!==void 0){if(wo(r.width,`${t}.width`),To(r.width,Qo,`${t}.width`),r.width.from===void 0&&r.width.below===void 0)throw Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(let e of[`from`,`below`]){let n=r.width[e];if(n!==void 0&&(typeof n!=`string`||!Jo.has(n)))throw Error(`${t}.width.${e} must be one of ${Ko.join(`, `)}.`)}}if(r.pointer!==void 0&&r.pointer!==`coarse`&&r.pointer!==`fine`)throw Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(r.contrast!==void 0&&r.contrast!==`more`&&r.contrast!==`less`&&r.contrast!==`no-preference`)throw Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(r.motion!==void 0&&r.motion!==`reduce`&&r.motion!==`no-preference`)throw Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return r}function jo(e,t){wo(e,t),To(e,$o,t);for(let n of $o){let r=e[n];if(r!==void 0&&!Co(r))throw Error(`${t}.${n} must be an object.`)}return Eo(e)}function Mo(e,t){if(wo(e,t),To(e,Xo,t),!Object.prototype.hasOwnProperty.call(e,`when`))throw Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,`value`))throw Error(`${t}.value is required.`);return{when:Ao(e.when,`${t}.when`),value:jo(e.value,`${t}.value`)}}function No(e,t){if(!Array.isArray(e))throw Error(`${t} must be an array of {when, value} objects.`);for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(e,n))throw Error(`${t}[${n}] must be present.`);return e.map((e,n)=>Mo(e,`${t}[${n}]`))}function Po(e,t,n){let r=`defineTheme("${e}").adaptations`,i={...qo},a=[];t!==void 0&&(wo(t,`defineTheme("${e}").extends.__adaptations`),To(t,new Set([`widthBreakpoints`,`rules`]),`defineTheme("${e}").extends.__adaptations`),i=Oo(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),a=No(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let o={},s=[];n!==void 0&&(wo(n,r),To(n,Yo,r),n.widthBreakpoints!==void 0&&(o=Do(n.widthBreakpoints,`${r}.widthBreakpoints`)),n.rules!==void 0&&(s=No(n.rules,`${r}.rules`)));let c={...i,...o};return ko(c,`${r}.widthBreakpoints`),{widthBreakpoints:c,rules:[...a,...s]}}function Fo(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Io(e,t){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`${t} must be a finite number.`)}function Lo(e,t,n){let r=t.scale!==void 0||[t.body,t.heading,t.code].some(e=>e?.weight!==void 0||e?.weights!==void 0),i=r?e?.scale:void 0;if(t.scale!==void 0){let r=t.scale.base??e?.scale?.base,a=t.scale.ratio??e?.scale?.ratio;if(r===void 0||a===void 0)throw Error(`${n}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Io(r,`${n}.scale.base`),Io(a,`${n}.scale.ratio`),i={base:r,ratio:a}}else if(r&&i===void 0)throw Error(`${n} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...i?{scale:i}:{},body:Fo(e?.body,t.body),heading:Fo(e?.heading,t.heading),code:Fo(e?.code,t.code)}}function Ro(e,t,n){let r=t.base??e?.base,i=t.multiplier??e?.multiplier;if(r===void 0||i===void 0)throw Error(`${n} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Io(r,`${n}.base`),Io(i,`${n}.multiplier`),{base:r,multiplier:i}}function zo(e,t,n){let r=t.fast??e?.fast,i=t.medium??e?.medium,a=t.ratio??e?.ratio;if(r===void 0||i===void 0||a===void 0)throw Error(`${n} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Io(r,`${n}.fast`),Io(i,`${n}.medium`),Io(a,`${n}.ratio`);let o=t.slow??e?.slow;o!==void 0&&Io(o,`${n}.slow`);let s=t.easing??e?.easing;return{fast:r,medium:i,ratio:a,...o===void 0?{}:{slow:o},...s===void 0?{}:{easing:s}}}function Bo(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:n.typography?Lo(r.typography,n.typography,`${i}.typography`):void 0,color:n.color?{...r.color,...n.color}:void 0,radius:n.radius?Ro(r.radius,n.radius,`${i}.radius`):void 0,motion:n.motion?zo(r.motion,n.motion,`${i}.motion`):void 0,tokens:n.tokens,components:n.components}}function Vo(e,t){if(typeof e==`string`){if(/\b(?:NaN|undefined)\b/.test(e))throw Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(Co(e)){for(let[n,r]of Object.entries(e))Vo(r,`${t}.${n}`);return}throw Error(`${t} must resolve to a concrete CSS string.`)}function Ho(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].when`,a=[];if(n.width){let e=n.width.from,t=n.width.below;if(e!==void 0&&t!==void 0&&r[e]>=r[t])throw Error(`${i}.width must resolve to \`from < below\`; ${e} is ${r[e]}px and ${t} is ${r[t]}px.`);e!==void 0&&a.push(`(width >= ${r[e]}px)`),t!==void 0&&a.push(`(width < ${r[t]}px)`)}if(n.pointer!==void 0&&a.push(`(pointer: ${n.pointer})`),n.contrast!==void 0&&a.push(`(prefers-contrast: ${n.contrast})`),n.motion!==void 0&&a.push(`(prefers-reduced-motion: ${n.motion})`),a.length===0)throw Error(`${i} must contain at least one concrete condition.`);return a.join(` and `)}function Uo(e,t,n){let r=e.width?.from;if(r!==void 0&&n.width<t[r])return!1;let i=e.width?.below;return!(i!==void 0&&n.width>=t[i]||e.pointer!==void 0&&e.pointer!==n.pointer||e.contrast!==void 0&&e.contrast!==n.contrast||e.motion!==void 0&&e.motion!==n.motion)}function Wo(e,t,n,r,i){let a=i.flatMap((e,t)=>Object.keys(e.tokens).length>0||e.localTokens&&Object.keys(e.localTokens).length>0?[t]:[]);if(a.length===0)return;let o=[0,...Ko.map(e=>t[e])],s=new Set;for(let c of o)for(let o of es.pointer)for(let l of es.contrast)for(let u of es.motion){let d={width:c,pointer:o,contrast:l,motion:u},f=a.filter(e=>Uo(i[e].when,t,d));if(f.length===0)continue;let p=f.join(`,`);if(s.has(p))continue;s.add(p);let m={...n,...r},h=new Set;for(let e of f){let t=i[e];Object.assign(m,t.tokens,t.localTokens);for(let e of Object.keys(t.tokens))h.add(e);for(let e of Object.keys(t.localTokens??{}))h.add(e)}let g=f.join(`, `),_=f.map(e=>i[e].query).join(`; `);vo(m,`defineTheme("${e}").adaptations ${f.length===1?`rule`:`overlapping rules`} [${g}] (${_})`,h)}}function Go(e,t,n,r,i){if(t.rules.length===0)return;let a=t.rules.map((r,a)=>{let o=po(Bo(e,a,r.value,n),void 0,{strictTokens:!0});for(let[t,n]of Object.entries(o.tokens))Vo(n,`defineTheme("${e}").adaptations.rules[${a}].value.tokens["${t}"]`);o.components&&Vo(o.components,`defineTheme("${e}").adaptations.rules[${a}].value.components`);for(let t of Object.keys(r.value.tokens??{}))if(i&&Object.prototype.hasOwnProperty.call(i,t))throw Error(`defineTheme("${e}").adaptations.rules[${a}].value.tokens["${t}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);let s=yo(e,a,r.value.localTokens,i);return{when:r.when,query:Ho(e,a,r.when,t.widthBreakpoints),tokens:o.tokens,localTokens:s,components:o.components}});return Wo(e,t.widthBreakpoints,r,i,a),a}var Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts=o((()=>{mo(),So(),Ko=[`sm`,`md`,`lg`,`xl`,`2xl`],qo=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536}),Jo=new Set(Ko),Yo=new Set([`widthBreakpoints`,`rules`]),Xo=new Set([`when`,`value`]),Zo=new Set([`width`,`pointer`,`contrast`,`motion`]),Qo=new Set([`from`,`below`]),$o=new Set([`typography`,`color`,`radius`,`motion`,`tokens`,`localTokens`,`components`]),es={pointer:[`coarse`,`fine`,`none`],contrast:[`more`,`less`,`no-preference`,`custom`],motion:[`reduce`,`no-preference`]}})),ns,rs=o((()=>{ns={"--color-data-categorical-blue":`light-dark(#0171E3, #0171E3)`,"--color-data-categorical-orange":`light-dark(#EB6E00, #EB6E00)`,"--color-data-categorical-purple":`light-dark(#6B1EFD, #6B1EFD)`,"--color-data-categorical-green":`light-dark(#0B991F, #0B991F)`,"--color-data-categorical-pink":`light-dark(#F351C0, #F351C0)`,"--color-data-categorical-cyan":`light-dark(#0171A4, #0171A4)`,"--color-data-categorical-red":`light-dark(#F5394F, #F5394F)`,"--color-data-categorical-teal":`light-dark(#08A3A3, #08A3A3)`,"--color-data-categorical-brown":`light-dark(#965E03, #965E03)`,"--color-data-categorical-indigo":`light-dark(#6F8AFF, #6F8AFF)`,"--color-data-neutral":`light-dark(#8494A3, #8C939B)`,"--color-data-blue-5":`light-dark(#02165E, #02165E)`,"--color-data-blue-4":`light-dark(#004CBC, #004CBC)`,"--color-data-blue-3":`light-dark(#2694FE, #2694FE)`,"--color-data-blue-2":`light-dark(#78BEFF, #78BEFF)`,"--color-data-blue-1":`light-dark(#DBECFF, #DBECFF)`,"--color-data-shamrock-5":`light-dark(#0B603D, #0B603D)`,"--color-data-shamrock-4":`light-dark(#138546, #138546)`,"--color-data-shamrock-3":`light-dark(#24BB5E, #24BB5E)`,"--color-data-shamrock-2":`light-dark(#8EF7AA, #8EF7AA)`,"--color-data-shamrock-1":`light-dark(#D6FEE4, #D6FEE4)`,"--color-data-orange-5":`light-dark(#A13F04, #A13F04)`,"--color-data-orange-4":`light-dark(#D66100, #D66100)`,"--color-data-orange-3":`light-dark(#FD9537, #FD9537)`,"--color-data-orange-2":`light-dark(#FDB876, #FDB876)`,"--color-data-orange-1":`light-dark(#FFE6CF, #FFE6CF)`,"--color-data-pink-5":`light-dark(#8E1073, #8E1073)`,"--color-data-pink-4":`light-dark(#D123A1, #D123A1)`,"--color-data-pink-3":`light-dark(#F989D3, #F989D3)`,"--color-data-pink-2":`light-dark(#FEADE3, #FEADE3)`,"--color-data-pink-1":`light-dark(#FCE3F4, #FCE3F4)`,"--color-data-purple-5":`light-dark(#3E0697, #3E0697)`,"--color-data-purple-4":`light-dark(#6B1EFD, #6B1EFD)`,"--color-data-purple-3":`light-dark(#9081FF, #9081FF)`,"--color-data-purple-2":`light-dark(#B3B0FE, #B3B0FE)`,"--color-data-purple-1":`light-dark(#E8E8FB, #E8E8FB)`,"--color-data-red-5":`light-dark(#9D0519, #9D0519)`,"--color-data-red-4":`light-dark(#D31130, #D31130)`,"--color-data-red-3":`light-dark(#FB7D87, #FB7D87)`,"--color-data-red-2":`light-dark(#FFB2B8, #FFB2B8)`,"--color-data-red-1":`light-dark(#FEE4E6, #FEE4E6)`,"--color-data-teal-5":`light-dark(#08767D, #08767D)`,"--color-data-teal-4":`light-dark(#0C9293, #0C9293)`,"--color-data-teal-3":`light-dark(#0DB7AF, #0DB7AF)`,"--color-data-teal-2":`light-dark(#6CE6D8, #6CE6D8)`,"--color-data-teal-1":`light-dark(#D7FCF8, #D7FCF8)`,"--color-data-yellow-5":`light-dark(#8A5001, #8A5001)`,"--color-data-yellow-4":`light-dark(#D69804, #D69804)`,"--color-data-yellow-3":`light-dark(#FBCE03, #FBCE03)`,"--color-data-yellow-2":`light-dark(#FCEC85, #FCEC85)`,"--color-data-yellow-1":`light-dark(#FDF6BA, #FDF6BA)`,"--color-data-gray-5":`light-dark(#25363F, #333338)`,"--color-data-gray-4":`light-dark(#5D6C7B, #666A72)`,"--color-data-gray-3":`light-dark(#AFB9C4, #B2B8BE)`,"--color-data-gray-2":`light-dark(#CCD3DB, #D0D3D6)`,"--color-data-gray-1":`light-dark(#F1F4F7, #F2F4F6)`}}));function is(e){os.set(e.name,e)}function as(e){return e==null||e===``?null:os.get(e)??null}var os,ss=o((()=>{os=new Map}));function cs(e,t){let n=us[e],r=ls[e]??(n?ls[n]:void 0);return r?r.filter(e=>e.property===t):[]}var ls,us,ds=o((()=>{ls={avatar:[{property:`borderRadius`,vars:[`--_avatar-radius`]}],banner:[{property:`borderRadius`,vars:[`--_banner-radius`]}],button:[{property:`borderRadius`,vars:[`--_button-radius`]}],card:[{property:`borderRadius`,vars:[`--_card-radius`]},{property:`padding`,expand:`container`}],chat:[{property:`borderRadius`,vars:[`--_chat-composer-radius`]},{property:`padding`,vars:[`--_chat-composer-padding`]}],dialog:[{property:`borderRadius`,vars:[`--_dialog-radius`]},{property:`padding`,expand:`container`}],"context-menu":[{property:`borderRadius`,vars:[`--_dropdown-menu-radius`]},{property:`padding`,vars:[`--_dropdown-menu-padding`]}],"dropdown-menu":[{property:`borderRadius`,vars:[`--_dropdown-menu-radius`]},{property:`padding`,vars:[`--_dropdown-menu-padding`]}],field:[{property:`borderRadius`,vars:[`--_field-radius`]}],"hover-card":[{property:`borderRadius`,vars:[`--_hovercard-radius`]}],"number-input":[{property:`padding`,expand:`container`},{property:`borderRadius`,vars:[`--_field-radius`]}],popover:[{property:`borderRadius`,vars:[`--_popover-radius`]}],"progress-bar-mark":[{property:`width`,vars:[`--_progressbar-mark-width`],replaces:!0},{property:`height`,vars:[`--_progressbar-mark-height`],replaces:!0}],section:[{property:`padding`,expand:`container`}],"segmented-control":[{property:`borderRadius`,vars:[`--_segmented-control-radius`]},{property:`padding`,vars:[`--_segmented-control-padding`]}],"text-area":[{property:`paddingInline`,vars:[`--_textarea-inline-padding`],replaces:!0}]},us={hovercard:`hover-card`,"progressbar-mark":`progress-bar-mark`,textarea:`text-area`}}));function fs(e){return`[data-${rt}-theme="${e}"]`}function ps(e){return`[data-${rt}-media="${e}"]`}function ms(e,t){return`.${nt}-${e}${t}`}function hs(e,t,n){let r=ms(e,t);return n?`:is(${ps(n)}) :is(${r})`:r}function gs(e,t){let n=[],r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t];a===`(`?r++:a===`)`?r=Math.max(0,r-1):a===`,`&&r===0&&(n.push(e.slice(i,t).trim()),i=t+1)}n.push(e.slice(i).trim());let a=_s(t);return n.map(e=>`${e}${a}`).join(`, `)}function _s(e){if(!/^:hover(?![-\w])/.test(e)||e.includes(`[aria-disabled`))return e;let t=e.indexOf(`::`);return t===-1?e+Rs:e.slice(0,t)+Rs+e.slice(t)}function vs(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ys(e){let t={};for(let[n,r]of e)switch(Bs[n]??n){case`padding`:{let e=r.trim().split(/\s+/);e.length===1?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[0]):e.length===2?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[1]):e.length>=3&&(t.blockStart=e[0],t.inline=e[1],t.blockEnd=e[2]);break}case`paddingBlock`:{let e=r.trim().split(/\s+/);t.blockStart=e[0],t.blockEnd=e[1]??e[0];break}case`paddingInline`:{let e=r.trim().split(/\s+/);e.length===1?t.inline=e[0]:(t.inlineStart=e[0],t.inlineEnd=e[1]);break}case`paddingBlockStart`:t.blockStart=r;break;case`paddingBlockEnd`:t.blockEnd=r;break;case`paddingInlineStart`:t.inlineStart=r;break;case`paddingInlineEnd`:t.inlineEnd=r}return t}function bs(e,t,n=!1){let r=et(`${e}-padding`),i=[],a=t.inlineStart??t.inline,o=t.inlineEnd??t.inline;if(a!=null&&o!=null&&a===o&&t.blockStart!=null&&t.blockEnd!=null&&a===t.blockStart&&t.blockStart===t.blockEnd?i.push([r,a??``]):(t.inlineStart!=null||t.inlineEnd!=null?(a!=null&&i.push([`${r}-inline-start`,a]),o!=null&&i.push([`${r}-inline-end`,o])):t.inline!=null&&i.push([`${r}-inline`,t.inline]),t.blockStart!=null&&i.push([`${r}-block-start`,t.blockStart]),t.blockEnd!=null&&i.push([`${r}-block-end`,t.blockEnd])),n){let e=new Set(i.map(([e])=>e)),t=e.has(r)?[`${r}-inline`,`${r}-inline-start`,`${r}-inline-end`,`${r}-block-start`,`${r}-block-end`]:e.has(`${r}-inline`)?[`${r}-inline-start`,`${r}-inline-end`]:[];for(let n of t)e.has(n)||i.push([n,`initial`])}return i}function xs(e){let t=[],n=e.tokens,r=e=>`var(${e})`,i=[...Object.entries(n),...Object.entries(e.localTokens??{})];if(i.length>0){let e=i.map(([e,t])=>` ${e}: ${t};`).join(`
11
11
  `);t.push(` :scope {\n${e}\n }`)}return n[`--font-family-body`]&&t.push(` :scope {
12
12
  font-family: var(--font-family-body);
13
13
  }`),e.components&&ws(e.components,t),Ts(r,t),Es(e.components||{},t),Ds(e.components||{},t),Ss(e.components||{},t),t}function Ss(e,t,{surface:n,inheritedComponents:r,forceAll:i=!1,authoredOnly:a=!1}={}){let o=e.heading,s=o&&typeof o==`object`&&!Array.isArray(o)?o:void 0;if(!s&&!i)return;let c=r?.heading,l=c&&typeof c==`object`?c:void 0;for(let[e,r]of Object.entries(Hs)){let i=`weight:${e}`,o=s?Cs(s,i):void 0;if(a&&o===void 0)continue;let c=l?Cs(l,i):void 0,u=o??c??r,d=hs(`heading`,ft(i),n);t.push(` ${d} { font-weight: ${u}; }`)}}function Cs(e,t){let n=e[t];if(typeof n!=`object`||!n||Array.isArray(n))return;let r=n.fontWeight;return typeof r==`string`?r:void 0}function ws(e,t,{resetInheritedPaddingSpecificity:n=!1,surface:r}={}){for(let[i,a]of Object.entries(e))for(let[e,o]of Object.entries(a)){let a=Object.entries(o);if(a.length===0)continue;let s=hs(i,ft(e),r),c=[],l=[];for(let[e,t]of a)e.startsWith(`:`)&&typeof t==`object`?l.push([e,t]):c.push([e,t]);let u=c,d=[],f=!1,p=new Set;for(let[e,t]of c){let n=cs(i,e),r=zs.has(e)&&e!==`padding`?cs(i,`padding`):[];for(let i of[...n,...r])if(i.expand===`container`&&zs.has(e)&&(f=!0),i.replaces&&p.add(e),i.vars)for(let e of i.vars)d.push([e,t]);e in Bs&&cs(i,`padding`).some(e=>e.expand===`container`)&&(f=!0)}if(f){let e=c.filter(([e])=>Vs.has(e)),t=c.filter(([e])=>!Vs.has(e)),r=bs(i,ys(e),n);u=[...t,...r]}if(p.size>0&&(u=u.filter(([e])=>!p.has(e))),d.length>0&&(u=[...u,...d]),u.length>0){let e=u.map(([e,t])=>` ${vs(e)}: ${t};`).join(`
@@ -59,6 +59,6 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
59
59
  `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new ou(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...eu(a.value,t,n,r,i,u-(c.offset||0)));continue}}return Ql(s)}function tu(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function nu(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=tu(e[r],t[r]),n),{...e}):e}function ru(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function iu(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Hc((...e)=>new Intl.NumberFormat(...e),{cache:ru(e.number),strategy:$c.variadic}),getDateTimeFormat:Hc((...e)=>new Intl.DateTimeFormat(...e),{cache:ru(e.dateTime),strategy:$c.variadic}),getPluralRules:Hc((...e)=>new Intl.PluralRules(...e),{cache:ru(e.pluralRules),strategy:$c.variadic})}}var au,ou,su,cu,lu,uu,du=o((()=>{el(),Zl(),au=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},ou=class extends au{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},su=class extends au{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},cu=class extends au{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}},lu=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>eu(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=nu(e.formats,r),this.formatters=i&&i.formatters||iu(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=Ll}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}},uu=lu})),fu,pu=o((()=>{fu={"@astryx.pagination.label":{defaultMessage:`Pagination`,description:`Aria label for the pagination navigation region.`},"@astryx.pagination.previous":{defaultMessage:`Go to previous page`,description:`Aria label for the previous-page button.`},"@astryx.pagination.next":{defaultMessage:`Go to next page`,description:`Aria label for the next-page button.`},"@astryx.pagination.previousBy":{defaultMessage:`Go back {step, number} {step, plural, one {page} other {pages}}`,description:"Aria label for the previous button when it advances more than one page per click (the `step` prop > 1). `step` is the number of pages skipped."},"@astryx.pagination.nextBy":{defaultMessage:`Go forward {step, number} {step, plural, one {page} other {pages}}`,description:"Aria label for the next button when it advances more than one page per click (the `step` prop > 1). `step` is the number of pages skipped."},"@astryx.pagination.first":{defaultMessage:`Go to first page`,description:`Aria label for the first-page button (« double chevron) in the input pagination variant.`},"@astryx.pagination.last":{defaultMessage:`Go to last page`,description:`Aria label for the last-page button (» double chevron) in the input pagination variant.`},"@astryx.pagination.goToPage":{defaultMessage:`Go to page {page, number}`,description:"Aria label for an individual page-number button. `page` is 1-based."},"@astryx.pagination.goToPageInput":{defaultMessage:`Go to page`,description:`Aria label for the editable page/row number box in the input pagination variant. No number — the box holds the value itself.`},"@astryx.pagination.pageLabel":{defaultMessage:`Page`,description:`Visible label before the editable box in the input pagination variant. Example: "Page [ 1 ] / 10".`},"@astryx.pagination.ofTotalPages":{defaultMessage:`/ {total, number}`,description:`Visible total shown after the editable box in the input pagination variant. Example: the "/ 10" in "Page [ 1 ] / 10".`},"@astryx.pagination.pageIndicators":{defaultMessage:`Page indicators`,description:`Aria label for the dots-variant page-indicator group.`},"@astryx.pagination.itemsPerPage":{defaultMessage:`Items per page`,description:`Label for the page-size selector.`},"@astryx.pagination.count":{defaultMessage:`{from, number}–{to, number} of {total, number}`,description:`Visible range-of-total text on a pagination bar. Example: "1–20 of 347"; the en-dash is translator's choice.`},"@astryx.pagination.pageOfTotal":{defaultMessage:`Page {current, number} of {total, number}`,description:`Visible "Page X of Y" text on the compact pagination variant; also announced by screen readers. Keep short — sits in a compact toolbar.`},"@astryx.pagination.pageAnnounce":{defaultMessage:`Page {current, number}`,description:`Screen-reader announcement when a page changes and total is unknown.`},"@astryx.powersearch.editor.field":{defaultMessage:`Field`,description:`Noun form-label above the field-picker dropdown in the PowerSearch filter-builder popover (which data column to filter on). Not an action.`},"@astryx.powersearch.editor.operator":{defaultMessage:`Operator`,description:`Noun form-label above the operator dropdown in the PowerSearch filter-builder popover. Refers to a comparison verb ("is", "contains"), not a math or phone operator.`},"@astryx.powersearch.editor.addFilter":{defaultMessage:`+ Add filter`,description:`Button label inside a group in the PowerSearch filter-builder; adds another filter row (e.g. "Status = Active"). The leading "+ " is a plus-sign character.`},"@astryx.powersearch.editor.removeFilter":{defaultMessage:`Remove filter`,description:`Screen-reader-only label on the "×" icon button next to a filter row in the PowerSearch editor; removes that row. Imperative verb.`},"@astryx.powersearch.editor.groupOperator":{defaultMessage:`Group operator`,description:`Screen-reader-only label for the AND/OR toggle that combines sibling filters inside a filter group. Sighted users see just "AND" or "OR".`},"@astryx.powersearch.editor.group":{defaultMessage:`Group`,description:`Fallback noun label shown on a nested filter-group chip when no AND/OR combining operator has been chosen. Use the noun ("a cluster"), not the verb "to group".`},"@astryx.powersearch.editor.delete":{defaultMessage:`Delete`,description:`Button label inside the PowerSearch filter-editor popover; deletes the currently-edited filter row. Imperative verb form.`},"@astryx.powersearch.editor.cancel":{defaultMessage:`Cancel`,description:`Button label inside the PowerSearch filter-editor popover; closes the popover and discards pending edits. Imperative verb form.`},"@astryx.powersearch.editor.apply":{defaultMessage:`Apply`,description:`Primary button label inside the PowerSearch filter-editor popover; confirms the edited filter. Imperative verb; consumers may override to "Save".`},"@astryx.powersearch.valueEditor.value":{defaultMessage:`Value`,description:'Noun form-label above a single free-text/number input in the PowerSearch value editor (e.g. the "acme" in `Name contains acme`). Not a verb or "worth".'},"@astryx.powersearch.valueEditor.values":{defaultMessage:`Values`,description:"Plural noun form-label above a multi-value chip input in the PowerSearch value editor. Should match its singular counterpart `Value` in your language."},"@astryx.powersearch.valueEditor.time":{defaultMessage:`Time`,description:`Noun form-label above a time-of-day (HH:MM) picker in the PowerSearch value editor. Clock time, not duration or era.`},"@astryx.powersearch.valueEditor.date":{defaultMessage:`Date`,description:`Noun form-label above a calendar-date picker in the PowerSearch value editor. Calendar date, not romantic date or fruit.`},"@astryx.powersearch.valueEditor.relativeDate":{defaultMessage:`Relative date`,description:`Label for the relative-date selector (e.g. "Last 7 days") in the PowerSearch value editor.`},"@astryx.powersearch.valueEditor.startDate":{defaultMessage:`Start date`,description:"Noun form-label above the start-of-range date picker in the PowerSearch value editor. Pairs with `End date` — keep the two parallel in your language."},"@astryx.powersearch.valueEditor.endDate":{defaultMessage:`End date`,description:"Noun form-label above the end-of-range date picker in the PowerSearch value editor. Pairs with `Start date` — keep the two parallel."},"@astryx.powersearch.valueEditor.entities":{defaultMessage:`Entities`,description:`"Entities" is jargon — plural noun form-label above an entity picker (people, teams, projects). Prefer a natural collective like "items" if your language has no equivalent.`},"@astryx.powersearch.valueEditor.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input in the PowerSearch entity/typeahead picker. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.enterValuePlaceholder":{defaultMessage:`Enter value…`,description:"Placeholder inside a free-text single-value input in the PowerSearch value editor. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.addValuesPlaceholder":{defaultMessage:`Add values…`,description:"Placeholder inside a multi-value chip input where the user types items and presses Enter to add each as a chip. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.enterNumberPlaceholder":{defaultMessage:`Enter number…`,description:"Placeholder inside a numeric input in the PowerSearch value editor. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.selectValuesPlaceholder":{defaultMessage:`Select values…`,description:`Placeholder on a dropdown for choosing values from a fixed enum list in the PowerSearch value editor. Imperative verb (user selects, not types).`},"@astryx.powersearch.operator.contains":{defaultMessage:`contains`,description:"PowerSearch string operator, rendered inline as `<field> contains <value>` (e.g. `Name contains acme`). Lowercase verb form."},"@astryx.powersearch.operator.notContains":{defaultMessage:`does not contain`,description:"PowerSearch negated string operator. Example: `Name does not contain test`. Lowercase; pairs with `contains`."},"@astryx.powersearch.operator.startsWith":{defaultMessage:`starts with`,description:"PowerSearch string prefix operator. Example: `Email starts with admin@`. Lowercase."},"@astryx.powersearch.operator.notStartsWith":{defaultMessage:`does not start with`,description:"PowerSearch negated prefix operator. Example: `Email does not start with test`. Lowercase; pairs with `starts with`."},"@astryx.powersearch.operator.endsWith":{defaultMessage:`ends with`,description:"PowerSearch string suffix operator. Example: `Email ends with @meta.com`. Lowercase."},"@astryx.powersearch.operator.notEndsWith":{defaultMessage:`does not end with`,description:"PowerSearch negated suffix operator. Example: `Email does not end with @gmail.com`. Lowercase; pairs with `ends with`."},"@astryx.powersearch.operator.is":{defaultMessage:`is`,description:"PowerSearch equality operator for strings/enums. Example: `Status is Active`. Separate from `operator.equals` (numbers) — translations may diverge."},"@astryx.powersearch.operator.isNot":{defaultMessage:`is not`,description:"PowerSearch inequality operator for strings/enums. Example: `Status is not Draft`. Pairs with `is`; separate from `operator.notEquals`."},"@astryx.powersearch.operator.equals":{defaultMessage:`is`,description:'PowerSearch numeric equality operator. Example: `Age is 30`. Ships same English "is" as `operator.is` but is separate so numbers may diverge (e.g. "equals").'},"@astryx.powersearch.operator.notEquals":{defaultMessage:`is not`,description:"PowerSearch numeric inequality operator. Example: `Count is not 0`. Same divergence option as `operator.equals`."},"@astryx.powersearch.operator.greaterThan":{defaultMessage:`is greater than`,description:"PowerSearch numeric operator, strictly greater than. Example: `Age is greater than 18`. Lowercase."},"@astryx.powersearch.operator.lessThan":{defaultMessage:`is less than`,description:"PowerSearch numeric operator, strictly less than. Example: `Priority is less than 5`. Lowercase."},"@astryx.powersearch.operator.greaterThanOrEqual":{defaultMessage:`is greater than or equal to`,description:'PowerSearch numeric operator, ≥. Example: `Age is greater than or equal to 21`. A shorter form (e.g. "≥") is fine if idiomatic.'},"@astryx.powersearch.operator.lessThanOrEqual":{defaultMessage:`is less than or equal to`,description:"PowerSearch numeric operator, ≤. Example: `Priority is less than or equal to 3`. A shorter form is fine if idiomatic."},"@astryx.powersearch.operator.before":{defaultMessage:`is before`,description:"PowerSearch date operator, strictly earlier. Example: `Created is before 2024-01-01`. Temporal, not spatial."},"@astryx.powersearch.operator.after":{defaultMessage:`is after`,description:"PowerSearch date operator, strictly later. Example: `Updated is after 2024-06-01`. Temporal."},"@astryx.powersearch.operator.between":{defaultMessage:`is between`,description:"PowerSearch date operator, inclusive range. Example: `Created is between 2024-01-01 and 2024-06-30`. The `and <end>` portion is composed separately."},"@astryx.powersearch.operator.isTrue":{defaultMessage:`is true`,description:"PowerSearch boolean operator: matches truthy. Example: `Is admin is true`. Pairs with `is false`; field may be affirmative or a yes/no question."},"@astryx.powersearch.operator.isFalse":{defaultMessage:`is false`,description:"PowerSearch boolean operator: matches falsy. Example: `Is admin is false`. Pairs with `is true`."},"@astryx.powersearch.operator.isAnyOf":{defaultMessage:`is any of`,description:"PowerSearch list operator: value is in the set. Example: `Status is any of [Active, Paused, Draft]`. The value list is composed separately; pairs with `is none of`."},"@astryx.powersearch.operator.isNoneOf":{defaultMessage:`is none of`,description:"PowerSearch negated list operator: value not in the set. Example: `Status is none of [Archived, Deleted]`. Pairs with `is any of`."},"@astryx.powersearch.valueEditor.itemsCount":{defaultMessage:`{count, number} {count, plural, one {item} other {items}}`,description:"Overflow summary on a compact filter chip when the list of selected items is too long. Example: `3 items` or `1 item`."},"@astryx.powersearch.valueEditor.entitiesCount":{defaultMessage:`{count, number} {count, plural, one {entity} other {entities}}`,description:"Overflow summary on a compact filter chip when the list of selected entities is too long. Example: `5 entities` or `1 entity`. Pair with `itemsCount` translation."},"@astryx.powersearch.valueEditor.dateRange":{defaultMessage:`date range`,description:"Fallback lowercase noun rendered inline in a filter chip when a date-range value can't be formatted (e.g. `Created is between date range`). Keep lowercase."},"@astryx.powersearch.valueEditor.filtersCount":{defaultMessage:`{count, number} {count, plural, one {filter} other {filters}}`,description:"Summary inside a filter chip when the value is a nested set of filters. Example: `3 filters` or `1 filter`."},"@astryx.powersearch.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Live result-count text next to the PowerSearch input, announced to screen readers on change. Example: `12 results`, `1 result`; keep compact."},"@astryx.alertDialog.cancel":{defaultMessage:`Cancel`,description:`Button label on the secondary/dismiss button of an AlertDialog (modal confirmation). Imperative verb; consumers usually override with task-specific text.`},"@astryx.appShell.mobileNavigation":{defaultMessage:`Mobile navigation`,description:`Screen-reader-only accessible name for the mobile-only navigation region on small viewports. "Mobile" = phone/tablet (small screen), not "movable".`},"@astryx.appShell.skipToContent":{defaultMessage:`Skip to content`,description:`Text of the skip link — the first focusable element on the page, visible only while keyboard-focused. Activating it jumps focus past the navigation to the main content area. Imperative verb; keep short.`},"@astryx.avatar.nameWithStatus":{defaultMessage:`{name}, {status}`,description:`Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale.`},"@astryx.avatarGroup.label":{defaultMessage:`Avatars`,description:`Screen-reader-only fallback name for a horizontal cluster of user avatar images. Plural noun; consumers usually override with "Team members", "Attendees", etc.`},"@astryx.avatarGroup.keyboardHint":{defaultMessage:`Use arrow keys to move between avatars`,description:`Screen-reader-only instruction attached (via aria-describedby) to a group of interactive avatars that share a single Tab stop. Tells keyboard users the Left/Right arrow keys move focus between the avatars. Only announced when the group has interactive (link/button) avatars.`},"@astryx.avatarGroup.overflow":{defaultMessage:`{count, number} more`,description:'Accessible name for the "+N" overflow indicator at the end of an AvatarGroup — announces how many additional avatars are not shown. Example: `5 more`. The visible "+N" text is unaffected; this is the aria-label only.'},"@astryx.banner.dismiss":{defaultMessage:`Dismiss`,description:`"Dismiss" = close/hide this notification (not "reject a person"). Tooltip on the small X button on a Banner, and its aria label when the banner's title is not plain text.`},"@astryx.banner.dismissTitled":{defaultMessage:`{dismiss} {title}`,description:"Aria label on the small X button on a Banner, naming which banner it closes so stacked banners are distinguishable. `{dismiss}` is the already-translated tooltip text from `banner.dismiss`; keep it verbatim in the message so visible and accessible labels match. `{title}` is the banner's own title text — example: `Dismiss Upload failed`. Reorder the placeholders freely."},"@astryx.calendar.previousMonth":{defaultMessage:`Previous month`,description:"Screen-reader-only label on the left-arrow button in a Calendar's month header (navigates one month back). Pairs with `calendar.nextMonth`."},"@astryx.calendar.nextMonth":{defaultMessage:`Next month`,description:"Screen-reader-only label on the right-arrow button in a Calendar's month header (navigates one month forward). Pairs with `calendar.previousMonth`."},"@astryx.calendar.daySelected":{defaultMessage:`{date}, selected`,description:'Accessible name for the Calendar day button that is the current single-mode selection. `{date}` is the localized full date, e.g. "Thursday, January 15, 2026". The trailing state word tells screen-reader users the focused day is selected.'},"@astryx.calendar.dayRangeStart":{defaultMessage:`{date}, range start`,description:"Accessible name for the Calendar day button that begins the selected date range (or the first pick of an in-progress range). `{date}` is the localized full date."},"@astryx.calendar.dayRangeEnd":{defaultMessage:`{date}, range end`,description:"Accessible name for the Calendar day button that ends the selected date range. `{date}` is the localized full date. Pairs with `calendar.dayRangeStart`."},"@astryx.calendar.dayRangeStartAndEnd":{defaultMessage:`{date}, range start and range end`,description:"Accessible name for a Calendar day button that both begins and ends a completed one-day range. `{date}` is the localized full date."},"@astryx.calendar.dayInRange":{defaultMessage:`{date}, in range`,description:"Accessible name for a Calendar day button strictly inside the selected date range (not an endpoint). `{date}` is the localized full date."},"@astryx.calendar.rangeStartAnnounce":{defaultMessage:`Start date {date}. Select an end date.`,description:"Screen-reader announcement after the first pick of a Calendar range selection. `{date}` is the localized full date. Prompts the user that a second pick completes the range."},"@astryx.calendar.rangeCompleteAnnounce":{defaultMessage:`Selected range: {start} to {end}.`,description:"Screen-reader announcement after the second pick completes a Calendar range selection. `{start}` and `{end}` are localized full dates in chronological order."},"@astryx.calendar.rangeClearedAnnounce":{defaultMessage:`Cleared start date {date}. Select a start date.`,description:"Screen-reader announcement when the user clicks the in-progress range start again, which clears it instead of completing a zero-length range. `{date}` is the localized full date."},"@astryx.carousel.label":{defaultMessage:`Carousel`,description:`Screen-reader-only fallback name for a horizontally-scrolling row of items. If "carousel" is unfamiliar in your locale, prefer the standard term (e.g. "slider").`},"@astryx.carousel.scrollLeft":{defaultMessage:`Scroll left`,description:"Screen-reader-only label on the left arrow button in a Carousel. Pairs with `carousel.scrollRight`; in RTL locales, coordinate the two so left/right match layout."},"@astryx.carousel.scrollRight":{defaultMessage:`Scroll right`,description:"Screen-reader-only label on the right arrow button in a Carousel. Pairs with `carousel.scrollLeft`; same RTL note."},"@astryx.carousel.slideLabel":{defaultMessage:`Slide {current, number} of {total, number}`,description:"Screen-reader accessible name for one slide in a Carousel, giving its position. `current` is the 1-based slide number; `total` is the slide count."},"@astryx.chart.label":{defaultMessage:`Chart`,description:`Generic screen-reader name for a Chart with no primary series and no consumer-supplied title. Noun (a data visualization), not a verb.`},"@astryx.chart.labelWithSeries":{defaultMessage:`Chart of {series} by {xKey}`,description:"Generated screen-reader name for a Chart without a consumer-supplied title. `{series}` is a locale-formatted list of series labels; `{xKey}` is the consumer's horizontal data-field name."},"@astryx.chart.dataTableCaption":{defaultMessage:`{label} data`,description:"Screen-reader-only caption for the small-data table that mirrors a Chart. `{label}` is the Chart's resolved accessible name."},"@astryx.chartLegend.label":{defaultMessage:`Chart legend`,description:`Screen-reader-only accessible name for the list of series labels and swatches rendered by ChartLegend.`},"@astryx.chat.status.sending":{defaultMessage:`Sending`,description:`Chat send-status caption under an outgoing message while it is being transmitted. Part of the set sending → sent → delivered → read (or failed) — keep tense/aspect consistent.`},"@astryx.chat.status.sent":{defaultMessage:`Sent`,description:`Chat send-status caption shown once the message reaches the server. Part of the set sending → **sent** → delivered → read (or failed) — keep tense consistent.`},"@astryx.chat.status.delivered":{defaultMessage:`Delivered`,description:`Chat send-status caption shown once the recipient's device received the message. Part of the set sending → sent → **delivered** → read (or failed).`},"@astryx.chat.status.read":{defaultMessage:`Read`,description:`Chat send-status caption shown once the recipient opened the message. English past-participle ("has been read", /rɛd/), not the present verb — part of the set sending → sent → delivered → **read**.`},"@astryx.chat.status.failed":{defaultMessage:`Failed`,description:`Chat send-status caption shown when the send attempt errored. Part of the set — the terminal failure branch, orthogonal to the sent → delivered → read success track.`},"@astryx.chat.messageAriaLabel":{defaultMessage:`Message {status}`,description:"Screen-reader-only accessible name for a chat message row. `{status}` interpolates the localized status word (e.g. `Message sent`, `Message delivered`) — reorder if needed."},"@astryx.chat.pastedText.expand":{defaultMessage:`Expand`,description:`Button label on a chip in the chat composer representing a long pasted text block; clicking reveals full content. "Expand" here means reveal more, not grow physically.`},"@astryx.checkboxList.item.checkbox":{defaultMessage:`Checkbox`,description:`Localized hidden text used internally when a rich visible label names the checkbox through aria-labelledby. It does not become the computed name; callers must provide aria-label when rich content has no text.`},"@astryx.commandPalette.emptySearch":{defaultMessage:`No results`,description:`Fallback empty-state text inside a CommandPalette when the user's query has no matches. Very short (2 words); neutral tone.`},"@astryx.commandPalette.emptyBootstrap":{defaultMessage:`Type to search`,description:`Onboarding empty-state text shown inside a CommandPalette on first open, before the user has typed anything. Imperative sentence fragment.`},"@astryx.commandPalette.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Screen-reader-only announcement of how many commands match the CommandPalette query as the user types. Example: `12 results`, `1 result`; keep compact."},"@astryx.commandPalette.noResultsFor":{defaultMessage:`No results for {query}`,description:"Screen-reader-only announcement when a CommandPalette query matches nothing. `{query}` is the user's verbatim search text; keep it last if your language allows so truncation-by-AT still conveys the outcome."},"@astryx.commandPalette.loading":{defaultMessage:`Loading`,description:`Screen-reader-only announcement that a CommandPalette search has started and results are being fetched. Present-progressive form; matches the visible spinner.`},"@astryx.dateRangeInput.presetDateRanges":{defaultMessage:`Preset date ranges`,description:`Screen-reader-only accessible name for the sidebar of quick-pick preset ranges inside a DateRangeInput popover (e.g. "Last 7 days", "This month").`},"@astryx.dateTimeInput.timePlaceholder":{defaultMessage:`Select a time`,description:`Grey placeholder inside the empty time-of-day slot in a DateTimeInput. "Time" = clock time (HH:MM), not duration.`},"@astryx.dialog.close":{defaultMessage:`Close`,description:`"Close" = shut/dismiss the dialog, not "nearby" (English homograph). Aria label AND tooltip on the X at the top-right of a Dialog.`},"@astryx.dropdownMenu.label":{defaultMessage:`Menu`,description:`Screen-reader-only fallback name for a dropdown menu popover. Very generic; consumers usually override. Noun ("a menu"), not the imperative.`},"@astryx.dropdownMenu.back":{defaultMessage:`Back`,description:`Button label that returns from a nested action list to its parent inside a DropdownMenu bottom sheet. Imperative navigation action.`},"@astryx.lightbox.close":{defaultMessage:`Close`,description:`"Close" = shut/dismiss (not "nearby"). Screen-reader-only label on the X button that dismisses a Lightbox.`},"@astryx.lightbox.previous":{defaultMessage:`Previous`,description:"Screen-reader-only label on the left-arrow button in a Lightbox (navigates to previous media item). Pairs with `lightbox.next`."},"@astryx.lightbox.next":{defaultMessage:`Next`,description:"Screen-reader-only label on the right-arrow button in a Lightbox (navigates to next media item). Pairs with `lightbox.previous`."},"@astryx.chatTypingIndicator.one":{defaultMessage:`{name} is typing…`,description:"Politely announced status naming the single person currently typing in a chat. `name` is a display name supplied by the app. Present-progressive form; the trailing ellipsis is the single … character."},"@astryx.chatTypingIndicator.many":{defaultMessage:`{names} are typing…`,description:"Politely announced status when more than one person is typing in a chat. `names` is already joined for the locale by Intl.ListFormat, so translations must not add their own conjunction — place `{names}` where the joined list belongs."},"@astryx.chatTypingIndicator.others":{defaultMessage:`{count, number} {count, plural, one {other} other {others}}`,description:`Overflow element for the chat typing status when three or more people type: the first name is shown and the rest collapse into this phrase, which is then joined to the name by Intl.ListFormat. Renders as the last list item, e.g. "Ana and 2 others".`},"@astryx.listInput.emptyTitle":{defaultMessage:`No {itemName}s yet`,description:'EmptyState title shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest"); the source appends a literal "s" to pluralize it, which only works for regular English plurals. If your language cannot pluralize an interpolated noun this way, rephrase around `{itemName}` instead (e.g. "No {itemName} added yet").'},"@astryx.listInput.emptyDescription":{defaultMessage:`Add a {itemName} to get started.`,description:'EmptyState supporting text shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest").'},"@astryx.listInput.addItem":{defaultMessage:`Add {itemName}`,description:'Accessible label on the button that appends a new record to a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest").'},"@astryx.listInput.removeItem":{defaultMessage:`Remove {itemName} {position, number}`,description:'Accessible label and tooltip on the button that deletes one record from a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record; `{position}` is its 1-based row number (e.g. "Remove guest 2").'},"@astryx.listInput.removeUnavailable":{defaultMessage:`Remove is unavailable while the list is disabled`,description:`Tooltip shown on the Remove button when the ListInput is disabled or loading, explaining why the action cannot be performed.`},"@astryx.listInput.reorderItem":{defaultMessage:`Reorder {itemName} {position, number}`,description:'Accessible label on the drag-handle button that reorders one record in a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record; `{position}` is its 1-based row number (e.g. "Reorder guest 2").'},"@astryx.listInput.fieldLabelWithPosition":{defaultMessage:`{header}, {itemName} {position, number} of {total, number}`,description:'Accessible name for a field inside a lab ListInput row after the first row, disambiguating repeated column labels. `{header}` is the column\'s own label (e.g. "Name"); `{itemName}` is the consumer\'s singular noun for one record; `{position}`/`{total}` are the row\'s 1-based index and the total row count (e.g. "Name, guest 2 of 3").'},"@astryx.listInput.reorderInstructions":{defaultMessage:`Use Arrow Up or Arrow Down to move this item one position. Press Space or Enter to pick it up for extended keyboard reordering.`,description:`Visually-hidden instructions describing how to use a lab ListInput row's keyboard reorder handle, referenced via aria-describedby from every reorder button.`},"@astryx.listInput.announceAdded":{defaultMessage:`Added {itemName} {position, number}.`,description:"Screen-reader-only live announcement after a new record is appended to a lab ListInput. `{itemName}` is the consumer's singular noun for one record; `{position}` is the new record's 1-based row number."},"@astryx.listInput.announceRemoved":{defaultMessage:`Removed {itemName} {position, number}.`,description:"Screen-reader-only live announcement after a record is deleted from a lab ListInput. `{itemName}` is the consumer's singular noun for one record; `{position}` is the removed record's former 1-based row number."},"@astryx.listInput.announceGrabbed":{defaultMessage:`{itemName} {position, number} grabbed. Use arrow keys to move, Space or Enter to drop, and Escape to cancel.`,description:"Screen-reader-only live announcement when a lab ListInput record's keyboard reorder handle enters extended \"lift\" mode. `{itemName}` is the consumer's singular noun for one record; `{position}` is its 1-based row number."},"@astryx.listInput.announceMovedToPosition":{defaultMessage:`{itemName} moved to position {position, number} of {total, number}.`,description:"Screen-reader-only live announcement each time a lab ListInput record's reorder position changes (arrow-key step, keyboard lift-mode preview, or pointer drag). `{itemName}` is the consumer's singular noun for one record; `{position}`/`{total}` are the record's new 1-based position and the total row count."},"@astryx.listInput.announceReorderCancelled":{defaultMessage:`Reordering cancelled.`,description:`Screen-reader-only live announcement when a lab ListInput reorder in progress is cancelled (Escape key, blur, or the collection becoming disabled/loading mid-drag).`},"@astryx.listInput.announceReturnedToPosition":{defaultMessage:`{itemName} returned to position {position, number}.`,description:"Screen-reader-only live announcement when a lab ListInput reorder is committed without the record's position actually changing. `{itemName}` is the consumer's singular noun for one record; `{position}` is its unchanged 1-based row number."},"@astryx.listInput.announceDropped":{defaultMessage:`{itemName} dropped at position {position, number} of {total, number}.`,description:"Screen-reader-only live announcement when a lab ListInput reorder is committed with the record's position actually changing. `{itemName}` is the consumer's singular noun for one record; `{position}`/`{total}` are its new 1-based position and the total row count."},"@astryx.listInput.announceAlreadyAtBoundary":{defaultMessage:`This {itemName} is already {boundary, select, first {first} last {last} other {}}.`,description:'Screen-reader-only live announcement when an arrow-key reorder attempt has no effect because the record is already at that end of the list. `{itemName}` is the consumer\'s singular noun for one record; `{boundary}` is always exactly "first" or "last".'},"@astryx.markdown.taskList":{defaultMessage:`Task list`,description:"Screen-reader-only accessible name for a GitHub-flavored Markdown task list (rendered from `- [ ] item` / `- [x] done` syntax)."},"@astryx.markdown.table":{defaultMessage:`Table`,description:'Screen-reader-only accessible name for a table rendered inside a Markdown block. Noun ("a table"), not the verb. Separate from `@astryx.table.label` — translations may diverge.'},"@astryx.mobileNav.closeNavigation":{defaultMessage:`Close navigation`,description:"Screen-reader-only label on the X/close button that dismisses the MobileNav overlay. Pairs with `mobileNav.toggle.open`."},"@astryx.multiSelector.selectAll":{defaultMessage:`Select all`,description:`Label on the checkbox/toggle at the top of a MultiSelector dropdown that selects every option. "All" is a determiner here (as in "all the options"), not the pronoun.`},"@astryx.multiSelector.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input at the top of a MultiSelector's dropdown panel. Imperative verb; trailing `…` is one character."},"@astryx.multiSelector.searchOptions":{defaultMessage:`Search options`,description:`Screen-reader-only accessible name for that same search input inside a MultiSelector.`},"@astryx.multiSelector.empty":{defaultMessage:`No options`,description:`Shown in a MultiSelector's dropdown panel when it was given no options at all, and announced in a polite live region on open. Very short (2 words); neutral tone, not error-y.`},"@astryx.multiSelector.selectAllPartiallySelected":{defaultMessage:`{label}, partially selected`,description:'Accessible name for the MultiSelector select-all option while only some options are selected. `{label}` is the visible select-all label (e.g. "Select all"). ARIA forbids aria-selected="mixed" on options, so the indeterminate state is conveyed through the name instead. "Partially" = some but not all.'},"@astryx.popover.close":{defaultMessage:`Close popover`,description:`"Close" = shut/dismiss, not "nearby". Screen-reader-only label on the close button inside a Popover.`},"@astryx.selector.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input at the top of a Selector's dropdown panel (for filtering options). Imperative verb; trailing `…` is one character."},"@astryx.selector.searchOptions":{defaultMessage:`Search options`,description:`"Options" = the list of choices in the dropdown. Screen-reader-only accessible name for the search input inside a Selector.`},"@astryx.selector.empty":{defaultMessage:`No options`,description:`Shown in a Selector's dropdown panel when it was given no options at all, and announced in a polite live region on open. Very short (2 words); neutral tone, not error-y.`},"@astryx.sideNav.label":{defaultMessage:`Side navigation`,description:`Screen-reader-only accessible name for the primary vertical sidebar nav (usually on the left).`},"@astryx.sideNav.resizeSidebar":{defaultMessage:`Resize sidebar`,description:`Screen-reader-only label on the vertical drag handle at the right edge of the SideNav that lets the user resize the sidebar's width.`},"@astryx.sideNav.heading.openMenu":{defaultMessage:`Open menu`,description:"Screen-reader-only label on the `⋯` overflow-menu button embedded in a SideNav section heading. Same string as `topNav.heading.openMenu` — translations may share."},"@astryx.tabList.label":{defaultMessage:`Tabs`,description:`Screen-reader-only fallback name for a horizontal tab bar. Plural noun; "Tabs" here = UI tab panels, not browser tabs or the Tab key.`},"@astryx.table.label":{defaultMessage:`Table`,description:`Fallback screen-reader-only accessible name for a data-table region when the consumer provides none. Noun ("a table"), not the verb "to table".`},"@astryx.table.noData":{defaultMessage:`No data`,description:`Fallback empty-state text in the table body when there are zero rows. Neutral tone (not error-y); consumers commonly override with something specific like "No results".`},"@astryx.table.filter.allPlaceholder":{defaultMessage:`All`,description:`Placeholder on a per-column filter dropdown when nothing is selected, meaning "no filter — all rows match". Determiner form (as in "all values"), not the pronoun.`},"@astryx.table.filter.reset":{defaultMessage:`Reset`,description:`Button label inside a table's filter panel/popover; clears pending filter values back to defaults. Imperative verb.`},"@astryx.table.filter.apply":{defaultMessage:`Apply`,description:"Primary button label inside a table's filter panel/popover; commits pending filter values. Imperative verb; pairs with `Reset`."},"@astryx.table.rowStatus.columnHeader":{defaultMessage:`Row status`,description:`Screen-reader-only column header for the narrow status-indicator gutter a Table gains from useTableRowStatus. Sighted users see a blank gutter; assistive tech announces this as the column name.`},"@astryx.table.selection.selectAllRows":{defaultMessage:`Select all rows`,description:`Aria label for the "select all rows" checkbox in a Table header.`},"@astryx.table.selection.selectRow":{defaultMessage:`Select row`,description:`Aria label for the "select row" checkbox on a Table row.`},"@astryx.table.selection.selectRowNamed":{defaultMessage:`Select {label}`,description:`Aria label for a Table row's selection checkbox when a per-row label is available (via getRowLabel). \`label\` is the row's human-readable identity, e.g. "Alice".`},"@astryx.table.sort.ascending":{defaultMessage:`Sort ascending`,description:"Screen-reader-only label on a column header button that will sort the column ascending. Part of a set with `sort.descending` and `sort.clear` — keep parallel."},"@astryx.table.sort.descending":{defaultMessage:`Sort descending`,description:"Screen-reader-only label on a column header button that will sort the column descending. Part of a set with `sort.ascending` and `sort.clear`."},"@astryx.table.sort.clear":{defaultMessage:`Clear sort`,description:`Screen-reader-only label on a column header button that will remove the current sort. "Clear" here means remove, not transparent. Part of the sort set.`},"@astryx.table.sort.direction.ascending":{defaultMessage:`ascending`,description:"Localized direction word interpolated as `direction` into @astryx.table.sort.sortedBy and @astryx.table.sort.sortedByWithPriority."},"@astryx.table.sort.direction.descending":{defaultMessage:`descending`,description:"Localized direction word interpolated as `direction` into @astryx.table.sort.sortedBy and @astryx.table.sort.sortedByWithPriority."},"@astryx.table.sort.sortBy":{defaultMessage:`Sort by {label}`,description:"Aria label for a sortable Table header button when the column is unsorted. `label` is the column header text."},"@astryx.table.sort.sortedBy":{defaultMessage:`Sort by {label}, sorted {direction}`,description:"Aria label for a sorted Table header button. `direction` is the localized direction word from @astryx.table.sort.direction.*."},"@astryx.table.sort.sortedByWithPriority":{defaultMessage:`Sort by {label}, sorted {direction}, priority {rank, number} of {total, number}`,description:"Aria label for a sorted Table header button in multi-sort. `rank` is the 1-based position of this column in the sort order; `total` is the number of sorted columns."},"@astryx.toast.dismiss":{defaultMessage:`Dismiss notification`,description:"Screen-reader-only label on the X button of a Toast (transient notification popup). Distinct from `banner.dismiss` (persistent banner)."},"@astryx.toast.viewport":{defaultMessage:`Notifications`,description:`Screen-reader-only accessible name for the invisible landmark region hosting the stack of Toast popups (usually pinned to a screen corner).`},"@astryx.tokenizer.clearAll":{defaultMessage:`Clear all`,description:`Label on the "×" button that removes every token/chip from a Tokenizer input. Imperative verb + determiner "all"; short.`},"@astryx.topNav.heading.openMenu":{defaultMessage:`Open menu`,description:"Screen-reader-only label on the `⋯` overflow button in a TopNav section heading. Kept separate from `sideNav.heading.openMenu` so translations may diverge."},"@astryx.topNav.landmarkLabel":{defaultMessage:`Top navigation`,description:`Default accessible name (aria-label) for the <nav> landmark rendered by TopNav when no label is provided.`},"@astryx.treeList.toggleChildren":{defaultMessage:`Toggle children`,description:`"Children" = child nodes in the tree, not human children. Screen-reader-only label on the chevron next to a TreeList item that has children — toggles the sub-list.`},"@astryx.typeahead.emptySearchResults":{defaultMessage:`No results found`,description:`Fallback empty-state message inside a Typeahead's suggestion popover when the current query has no matches. Neutral tone (not error-y).`},"@astryx.typeahead.loading":{defaultMessage:`Loading`,description:`Screen-reader-only name for a spinner shown inside a Typeahead dropdown while suggestions are being fetched. Present-progressive form.`},"@astryx.typeahead.searchResults":{defaultMessage:`Search results`,description:`Screen-reader-only accessible name for the list of suggestions inside a Typeahead dropdown.`},"@astryx.typeahead.clearSelection":{defaultMessage:`Clear selection`,description:`"Selection" = the chosen value (not highlighted text). Screen-reader-only label on the X that clears the currently-selected value from a Typeahead.`},"@astryx.breadcrumbs.label":{defaultMessage:`Breadcrumb`,description:"Screen-reader-only fallback name for the breadcrumb trail (e.g. `Home > Section > Page`). Singular in English per ARIA convention; plural is fine if natural in your locale."},"@astryx.chat.composer.placeholder":{defaultMessage:`Type a message…`,description:"Grey placeholder text inside the empty chat composer textarea. Imperative verb; trailing `…` is one character."},"@astryx.chat.composerDrawer.label":{defaultMessage:`Items`,description:`Fallback aria label for the ChatComposerDrawer — a horizontal list of attachment/tool chips. Consumers usually override with "Attachments", "Tools", etc.`},"@astryx.chat.composerInput.label":{defaultMessage:`Message input`,description:`Screen-reader-only accessible name for the chat composer textarea. Reorder freely if your language uses one word for "message field".`},"@astryx.chat.speechRecognition.noSpeechDetected":{defaultMessage:`No speech was detected.`,description:`Full-sentence error shown inline in the chat composer after voice input captured silence. Soft-error tone (not alarming); keep terminal period.`},"@astryx.commandPalette.label":{defaultMessage:`Command palette`,description:`Screen-reader-only fallback name for a keyboard-driven command menu (usually opened with Cmd/Ctrl-K). If unfamiliar, prefer a natural equivalent like "quick actions".`},"@astryx.commandPalette.input.placeholder":{defaultMessage:`Search…`,description:"Grey placeholder inside the CommandPalette's search input. Imperative verb; trailing `…` is one character."},"@astryx.commandPalette.list.label":{defaultMessage:`Commands`,description:`"Command" = an app action a user can invoke (metaphor from CLI), not a Unix command. Screen-reader-only name for the matching-commands list.`},"@astryx.contextMenu.label":{defaultMessage:`Context menu`,description:`Screen-reader-only fallback name for the right-click / long-press popup menu. "Context" = context-specific to the activated element, not linguistic context.`},"@astryx.dateInput.placeholder":{defaultMessage:`Select a date`,description:`Grey placeholder inside an empty DateInput field. "Date" = calendar date, not romantic or fruit. Imperative verb.`},"@astryx.dateInput.dialogLabel":{defaultMessage:`Choose date`,description:`Screen-reader-only accessible name for the popover dialog opened from a DateInput's calendar toggle. Imperative verb + noun.`},"@astryx.dateInput.closeCalendar":{defaultMessage:`Close calendar`,description:"Screen-reader-only label on the X inside the DateInput calendar popover (dismisses the popover). Distinct from `dateInput.toggleCalendarClose`, which labels the outer toggle."},"@astryx.dateInput.openCalendar":{defaultMessage:`Open calendar`,description:`Aria label for the DateInput / DateRangeInput / DateTimeInput calendar toggle button when the popover is closed.`},"@astryx.dateInput.toggleCalendarClose":{defaultMessage:`Close calendar`,description:`Aria label for the DateInput / DateRangeInput / DateTimeInput calendar toggle button when the popover is open. Distinct from closeCalendar (which labels the X inside the popover) so translators can differentiate the toggle vs the close-X UI.`},"@astryx.dateInput.clear":{defaultMessage:`Clear {label}`,description:"Aria label for the clear-value button in DateInput / DateRangeInput / DateTimeInput. `{label}` is the field's own label so screen readers announce e.g. 'Clear Start date'."},"@astryx.dateInput.invalidDate":{defaultMessage:`Invalid date`,description:`Screen-reader-only live-region alert in DateInput / DateTimeInput when the typed date cannot be parsed. The field silently reverts on blur, so this is the only rejection feedback a screen-reader user gets.`},"@astryx.dateInput.resetPicking":{defaultMessage:`Reset`,description:`Ghost button in the mobile date picker's header, at the trailing corner beside the month arrows. Removes the chosen date AND returns the calendar to the current month — it undoes the picking done so far and puts the picker back to how it opens, so prefer a word covering both, not one that only means emptying a field. Not cancel: the picker stays open afterwards and nothing is dismissed. Keep it short; it shares one line with the month title and two arrows.`},"@astryx.dateInput.savePicking":{defaultMessage:`Save`,description:`Full-width primary button that closes the mobile date picker, on the calendar. The date is already committed by the tap that chose it, so this only dismisses — but it is worded as saving because that is how the action reads to someone finishing a form. Use the word your platform uses for accepting and closing a sheet.`},"@astryx.dateInput.doneChoosingMonth":{defaultMessage:`Done`,description:`Full-width button under the month and year wheels in the mobile date picker. It does NOT close the picker — it returns to the calendar, having set the month. Word it as finishing this step, not as finishing the whole task; the calendar's own button is the one that closes.`},"@astryx.dateInput.chooseMonthYear":{defaultMessage:`{monthYear}, Choose month and year`,description:`Accessible name for the mobile date picker's header button, which swaps the calendar for month and year wheels. {monthYear} is the currently shown month and year, already localized (e.g. "March 2026"). The whole label is one string so the separator and word order can change per locale.`},"@astryx.dateInput.monthWheel":{defaultMessage:`Month`,description:`Accessible name for the scrollable month column in the mobile date picker. Single word; a calendar month, not a duration.`},"@astryx.dateInput.yearWheel":{defaultMessage:`Year`,description:`Accessible name for the scrollable year column in the mobile date picker. Single word; a calendar year, not a duration.`},"@astryx.dateTimeInput.timeHint12h":{defaultMessage:`e.g., 2:30 PM`,description:`Placeholder hint shown in the DateTimeInput time field when focused and empty with 12-hour format. Gives an example of expected input format.`},"@astryx.dateTimeInput.timeHint24h":{defaultMessage:`e.g., 14:30`,description:`Placeholder hint shown in the DateTimeInput time field when focused and empty with 24-hour format. Gives an example of expected input format.`},"@astryx.dateTimeInput.timeSuffix":{defaultMessage:`{label} time`,description:'Screen-reader-only accessible name for the time-of-day slot in a DateTimeInput. Example: `Start date time`; reorder freely (e.g. "time of {label}").'},"@astryx.dateTimeInput.timeOptionsLabel":{defaultMessage:`{label} options`,description:"Screen-reader-only accessible name for the list of preset times that drops down from a DateTimeInput's time slot. `{label}` is the accessible name of the time field itself, already ending in the word for time — example: `Meeting time options`. Plural: the list holds every selectable time."},"@astryx.dateRangeInput.placeholder":{defaultMessage:`Select date range`,description:`Grey placeholder inside an empty DateRangeInput field. Represents picking a start–end date pair. Imperative verb.`},"@astryx.dateRangeInput.dialogLabel":{defaultMessage:`Choose date range`,description:`Screen-reader-only accessible name for the popover dialog opened from a DateRangeInput. Imperative verb + noun phrase.`},"@astryx.dateTimeInput.placeholder":{defaultMessage:`Select a date`,description:`Grey placeholder inside an empty DateTimeInput field. Note: the English says only "date" though the field is date+time — do not add "and time" unless natural.`},"@astryx.dateTimeInput.dialogLabel":{defaultMessage:`Choose date and time`,description:`Screen-reader-only accessible name for the DateTimeInput picker dialog. On desktop this labels the date calendar popover inside the date+time field; on touch devices it labels the full Date/Time bottom sheet.`},"@astryx.dateTimeInput.pickerMode":{defaultMessage:`Date/time section`,description:`Screen-reader-only label for the segmented Date/Time switch at the top of the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.dateTab":{defaultMessage:`Date`,description:`Visible label for the Date segment in the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.timeTab":{defaultMessage:`Time`,description:`Visible label for the Time segment in the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.openTimePicker":{defaultMessage:`Open {label}`,description:"Aria label for the clock button in the mobile DateTimeInput closed time segment. `{label}` is the accessible name of the time input, for example `Meeting time`."},"@astryx.dateTimeInput.saveDatePicking":{defaultMessage:`Save date`,description:`Primary button at the bottom of the Date panel in the mobile DateTimeInput bottom sheet. It does not close the sheet; it accepts the date step and moves to the Time panel. Use sentence case in English and title case only when appropriate for the locale.`},"@astryx.dateTimeInput.hourWheel":{defaultMessage:`Hour`,description:`Accessible name for the hour wheel in the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.minuteWheel":{defaultMessage:`Minute`,description:`Accessible name for the minute wheel in the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.secondWheel":{defaultMessage:`Second`,description:`Accessible name for the optional seconds wheel in the mobile DateTimeInput bottom sheet.`},"@astryx.dateTimeInput.meridiemWheel":{defaultMessage:`AM/PM`,description:`Accessible name for the AM/PM wheel in the mobile DateTimeInput bottom sheet when using 12-hour time.`},"@astryx.dateTimeInput.meridiemAM":{defaultMessage:`AM`,description:`Label for the morning half of the AM/PM wheel in the mobile DateTimeInput bottom sheet. Use the locale's concise ante-meridiem marker.`},"@astryx.dateTimeInput.meridiemPM":{defaultMessage:`PM`,description:`Label for the afternoon/evening half of the AM/PM wheel in the mobile DateTimeInput bottom sheet. Use the locale's concise post-meridiem marker.`},"@astryx.link.newTab":{defaultMessage:`(opens in new tab)`,description:"Visually-hidden (screen-reader-only) suffix appended to a Link's accessible name when it opens in a new tab. Example: `Documentation (opens in new tab)`."},"@astryx.mobileNav.toggle.open":{defaultMessage:`Open navigation`,description:"Screen-reader-only label on the hamburger button that opens the MobileNav overlay (rendered when the overlay is closed). Pairs with `mobileNav.closeNavigation`."},"@astryx.moreMenu.label":{defaultMessage:`More options`,description:"Screen-reader-only name for the small `⋯` (three-dots) overflow button that opens a menu of additional actions. Very short — sits on a tiny icon button."},"@astryx.multiSelector.selectPlaceholder":{defaultMessage:`Select…`,description:'Placeholder on an empty MultiSelector trigger button. Same English as `selector.placeholder` but a separate key — plural phrasing like "Choose items…" is fine.'},"@astryx.outline.label":{defaultMessage:`Table of contents`,description:"Screen-reader-only fallback name for a page's outline / table-of-contents sidebar (list of in-page headings). Rendered as `aria-label` on a `<nav>` landmark."},"@astryx.powersearch.label":{defaultMessage:`Search`,description:`Screen-reader-only accessible name for the PowerSearch input (a filter-builder). The visible placeholder is separate; noun form often reads better than the verb.`},"@astryx.powersearch.placeholder":{defaultMessage:`Search…`,description:"Grey placeholder text inside the empty PowerSearch input. Imperative verb; trailing `…` is one character."},"@astryx.resizable.collapsed":{defaultMessage:`Collapsed`,description:`aria-valuetext for the Resizable drag handle (role=separator) while its panel is collapsed to zero size. Replaces the numeric value announcement, since the numeric value is clamped to the minimum while collapsed. Adjective describing the panel state, not a verb/command.`},"@astryx.resizable.handle.label":{defaultMessage:`Resize handle`,description:`Screen-reader-only accessible name for the small draggable divider between two Resizable panels (users drag it to change the split ratio).`},"@astryx.selector.placeholder":{defaultMessage:`Select…`,description:"Placeholder text on an empty Selector trigger button (a dropdown). Imperative verb; trailing `…` is one character. Very short — appears on the button face."},"@astryx.sideNav.heading.dialogLabel":{defaultMessage:`Navigation menu`,description:`Screen-reader-only accessible name for the dropdown dialog opened from a SideNavHeading's overflow menu.`},"@astryx.table.pagination.label":{defaultMessage:`Table pagination`,description:"Screen-reader-only accessible name for a table's pagination `<nav>` (rendered below and/or above the table per the plugin's position config). Kept separate from `@astryx.pagination.label` so translations may diverge. When position='both', this string is interpolated as the {label} value into `@astryx.table.pagination.labelAbove`/`labelBelow` — keep it compatible with those suffix templates."},"@astryx.table.pagination.labelAbove":{defaultMessage:`{label} (top)`,description:"Accessible name for the pagination `<nav>` rendered above the table when position='both' renders two navs. `label` is the resolved base label (default \"Table pagination\" or consumer-supplied); the suffix keeps the two same-type landmarks distinguishable."},"@astryx.table.pagination.labelBelow":{defaultMessage:`{label} (bottom)`,description:"Accessible name for the pagination `<nav>` rendered below the table when position='both' renders two navs. `label` is the resolved base label (default \"Table pagination\" or consumer-supplied); the suffix keeps the two same-type landmarks distinguishable."},"@astryx.timeInput.placeholder":{defaultMessage:`Select a time`,description:`"Time" = clock time (HH:MM), not duration or era. Grey placeholder inside an empty TimeInput field; imperative verb.`},"@astryx.timeInput.invalidTime":{defaultMessage:`Invalid time`,description:`Screen-reader-only live-region alert in TimeInput / DateTimeInput when the typed time cannot be parsed. "Time" = clock time (HH:MM). The field silently reverts on blur, so this is the only rejection feedback a screen-reader user gets.`},"@astryx.timeInput.openPicker":{defaultMessage:`Open {label}`,description:"Aria label for the clock button that opens TimeInput's browser/OS time picker. `{label}` is the field label, for example `Start time`."},"@astryx.topNav.heading.dialogLabel":{defaultMessage:`Navigation menu`,description:`Screen-reader-only accessible name for the dropdown dialog opened from a TopNavHeading's overflow menu. Kept separate from the SideNav sibling.`},"@astryx.typeahead.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside an empty Typeahead input (a search field that suggests results as the user types). Imperative verb; trailing `…` is one character."},"@astryx.banner.collapse":{defaultMessage:`Collapse`,description:'"Collapse" = fold up, not crumble. Aria label AND tooltip on the Banner expand/collapse toggle when currently expanded. Pairs with `banner.expand`.'},"@astryx.banner.expand":{defaultMessage:`Expand`,description:'"Expand" = reveal more, not grow physically. Aria label AND tooltip on the same toggle when currently collapsed. Pairs with `banner.collapse`.'},"@astryx.button.loading":{defaultMessage:`Loading`,description:'Screen-reader-only live-region announcement while a Button is in its loading state (spinner shown, action in flight). Progressive sense ("work in progress"), not a noun. Kept separate from `typeahead.loading` — translations may diverge.'},"@astryx.spinner.loading":{defaultMessage:`Loading`,description:'Screen-reader-only default name for a standalone Spinner\'s role="status" element, used when the consumer supplies neither `aria-label` nor a visible string label. Present-progressive form. Kept separate from `button.loading` and `typeahead.loading` — translations may diverge.'},"@astryx.chatComposerDrawer.expand":{defaultMessage:`Expand {label}`,description:"Screen-reader-only label on the ChatComposerDrawer toggle when the drawer is collapsed. `{label}` is the drawer's visible name — example: `Expand Attachments`. Pairs with `collapse`."},"@astryx.chatComposerDrawer.collapse":{defaultMessage:`Collapse {label}`,description:"Screen-reader-only label on the ChatComposerDrawer toggle when the drawer is expanded. Example: `Collapse Attachments`. Pairs with `expand`."},"@astryx.chatDictationButton.startDictation":{defaultMessage:`Start dictation`,description:`Accessible label for the microphone button when idle (not listening).`},"@astryx.chatDictationButton.stopDictation":{defaultMessage:`Stop dictation`,description:`Accessible label for the microphone button when actively listening.`},"@astryx.chatLayout.newMessages":{defaultMessage:`New messages`,description:`Text on a floating pill at the bottom of a chat viewport when unseen messages arrive below the fold; clicking scrolls to bottom. Keep short — narrow pill.`},"@astryx.chatLayoutScrollButton.scrollToBottom":{defaultMessage:`Scroll to bottom`,description:`Visible tooltip AND screen-reader label for a small down-arrow button that scrolls the chat viewport to its latest message.`},"@astryx.chatMessage.messageFrom":{defaultMessage:`Message from {sender}`,description:"Screen-reader-only accessible name for a chat message when the sender name isn't visible. Example: `Message from Sarah`, `Message from Bot` — reorder freely."},"@astryx.chatSendButton.stop":{defaultMessage:`Stop`,description:"Button label that replaces `Send` on the chat send button while an AI response is streaming; clicking aborts generation. Short — appears on a small button."},"@astryx.chatSendButton.send":{defaultMessage:`Send`,description:"Primary button label on the chat submit button (paperplane icon). Imperative verb; pairs with `Stop`. Very short."},"@astryx.chatToolCalls.error":{defaultMessage:`Error: {message}`,description:`Screen-reader text for a tool call that failed. {message} is the error detail.`},"@astryx.chatToolCalls.status.pending":{defaultMessage:`Pending`,description:`Screen-reader-only status label for a tool call that is waiting to begin.`},"@astryx.chatToolCalls.status.running":{defaultMessage:`Running`,description:`Screen-reader-only status label for a tool call that is currently running.`},"@astryx.chatToolCalls.status.complete":{defaultMessage:`Complete`,description:`Screen-reader-only status label for a tool call that completed successfully.`},"@astryx.chatToolCalls.status.error":{defaultMessage:`Failed`,description:`Screen-reader-only status label for a failed tool call when no error detail is supplied.`},"@astryx.chatToolCalls.groupLabel":{defaultMessage:`{count} tool calls`,description:`Summary label shown in the group header when multiple tool calls are expanded. {count} is the number of calls.`},"@astryx.chatTriggerMenu.suggestions":{defaultMessage:`Suggestions`,description:"Screen-reader-only fallback label for the popover listbox opened by a trigger character (`@`, `/`) in the chat composer when the trigger provides no specific label."},"@astryx.citation.label":{defaultMessage:`Citation {number}: {title}`,description:"Screen-reader-only accessible name for a Citation chip (a small numbered link to a source). Example: `Citation 1: OpenAI research paper`. Reorder freely."},"@astryx.codeBlock.copied":{defaultMessage:`Copied`,description:'Screen-reader-only label on the CodeBlock copy button for ~2s after a successful copy. Past-participle ("has been copied"); pairs with `codeBlock.copyCode`.'},"@astryx.codeBlock.copyCode":{defaultMessage:`Copy code`,description:'"Code" = source code. Aria label AND tooltip on the CodeBlock copy button in its default state. Pairs with `codeBlock.copied` (post-click state).'},"@astryx.codeBlock.code":{defaultMessage:`Code`,description:`Screen-reader-only fallback name for a code-snippet scroll container when the code's language is unknown. "Code" = source code, not secret code or code of conduct.`},"@astryx.field.optional":{defaultMessage:`Optional`,description:`Visible indicator shown next to a form field's label when the field is optional (isOptional). Mutually exclusive with the required indicator. Very short — appears inline after the label text.`},"@astryx.field.required":{defaultMessage:`Required`,description:`Visible indicator shown next to a form field's label when the field must be filled in (isRequired). Mutually exclusive with the optional indicator. Very short — appears inline after the label text.`},"@astryx.fileInput.clearLabel":{defaultMessage:`Clear {label}`,description:"Screen-reader-only label on the X that removes the selected file from a FileInput. Example: `Clear Attachment`, `Clear Résumé`."},"@astryx.fileInput.dropHint":{defaultMessage:`Drop files here`,description:`Text shown in the dropzone area when a user is dragging files over the FileInput.`},"@astryx.fileInput.errorInvalidType":{defaultMessage:`"{fileName}" is not an accepted file type`,description:`Validation error shown when a selected file does not match the accepted types.`},"@astryx.fileInput.errorMaxFiles":{defaultMessage:`Maximum {maxFiles} files allowed`,description:`Validation error shown when the number of selected files exceeds the maximum.`},"@astryx.fileInput.errorMaxSize":{defaultMessage:`"{fileName}" exceeds {maxSize} limit`,description:`Validation error shown when a selected file exceeds the maximum size. {maxSize} is a formatted size string like "2.0 MB".`},"@astryx.fileInput.fileSelected":{defaultMessage:`1 file selected: {fileName}`,description:`Live-region announcement when a single file is successfully selected.`},"@astryx.fileInput.filesSelected":{defaultMessage:`{count} files selected`,description:`Live-region announcement when multiple files are successfully selected.`},"@astryx.fileInput.placeholder":{defaultMessage:`Choose file`,description:`Default placeholder text shown when no file is selected in a single-file FileInput.`},"@astryx.fileInput.placeholderMultiple":{defaultMessage:`Choose files`,description:`Default placeholder text shown when no files are selected in a multi-file FileInput.`},"@astryx.fileInput.required":{defaultMessage:`Required`,description:'Screen-reader-only description on the FileInput trigger indicating the field must be filled in. Mirrors the visible `Required` indicator next to the field label; conveyed via description because aria-required is not supported on role="button".'},"@astryx.fileInput.triggerWithFiles":{defaultMessage:`{label}, {fileNames}`,description:"Accessible name for a FileInput trigger that has files attached, composing the field label with the selected filenames. Example: `Attachments, report.pdf, notes.txt`."},"@astryx.keyboardHint.toNavigate":{defaultMessage:`to navigate`,description:"Trailing text in the keyboard-hint badge, shown after arrow-key icons — reads as `← → to navigate`. Lowercase sentence fragment completing the visual phrase; the badge is aria-hidden, so this is for sighted users only."},"@astryx.lightbox.mediaViewer":{defaultMessage:`Media viewer`,description:`Screen-reader-only fallback name for the Lightbox dialog when the current media item has no alt text. Should rarely render — consumers should provide alt.`},"@astryx.lightbox.zoom":{defaultMessage:`Zoom`,description:`Screen-reader-only label on the Lightbox image acting as a zoom toggle button (aria-pressed reflects zoomed state). Verb ("to zoom"), very short.`},"@astryx.lightbox.zoomedIn":{defaultMessage:`Zoomed in, use arrow keys to pan`,description:"Polite screen-reader announcement after zooming into a Lightbox image, including a hint that arrow keys pan while zoomed. Pairs with `lightbox.zoomedOut`."},"@astryx.lightbox.zoomedOut":{defaultMessage:`Zoomed out`,description:"Polite screen-reader announcement after zooming back out of a Lightbox image. Pairs with `lightbox.zoomedIn`."},"@astryx.metadataList.showMore":{defaultMessage:`Show more`,description:"Button label under a MetadataList that reveals items hidden beyond the configured maximum. Toggles with `metadataList.showLess` — keep the pair parallel in your language."},"@astryx.metadataList.showLess":{defaultMessage:`Show less`,description:"Button label under a MetadataList that re-hides the extra items revealed by `metadataList.showMore`. Keep the pair parallel."},"@astryx.mobileNav.navigation":{defaultMessage:`Navigation`,description:`Screen-reader-only fallback name for the MobileNav overlay dialog when no explicit label was passed.`},"@astryx.multiSelector.clearAll":{defaultMessage:`Clear all {label}`,description:"Screen-reader-only label on the X that clears every selected value from a MultiSelector. Example: `Clear all Countries`. `{label}` is typically already plural in English."},"@astryx.input.readOnly":{defaultMessage:`Read only`,description:`Screen-reader-only description appended to a read-only form control when the platform does not expose aria-readonly for that control's host element. Short state label, not an instruction.`},"@astryx.input.statusButton.error":{defaultMessage:`Error details`,description:`Accessible name for the focusable status icon button inside an input when statusVariant is 'tooltip' and the status type is error. Activating or focusing the button reveals the error message in a tooltip. Keep it short — it labels an icon-only button.`},"@astryx.input.statusButton.warning":{defaultMessage:`Warning details`,description:`Accessible name for the focusable status icon button inside an input when statusVariant is 'tooltip' and the status type is warning. Activating or focusing the button reveals the warning message in a tooltip.`},"@astryx.input.statusButton.success":{defaultMessage:`Success details`,description:`Accessible name for the focusable status icon button inside an input when statusVariant is 'tooltip' and the status type is success. Activating or focusing the button reveals the success message in a tooltip.`},"@astryx.numberInput.clearLabel":{defaultMessage:`Clear {label}`,description:"Screen-reader-only label on the X that clears the value from a NumberInput. Example: `Clear Age`, `Clear Quantity`."},"@astryx.numberInput.decrementLabel":{defaultMessage:`Decrement {label}`,description:"Accessible label for the NumberInput button that decreases the value by one configured step. Example: `Decrement Quantity`."},"@astryx.numberInput.incrementLabel":{defaultMessage:`Increment {label}`,description:"Accessible label for the NumberInput button that increases the value by one configured step. Example: `Increment Quantity`."},"@astryx.selector.clearLabel":{defaultMessage:`Clear {label}`,description:"Screen-reader-only label on the X that clears the selected value from a Selector. `{label}` is the selector's visible label — example: `Clear Country`."},"@astryx.sideNavCollapseButton.expandSidebar":{defaultMessage:`Expand sidebar`,description:"Aria label AND tooltip on the SideNav collapse/expand toggle when the sidebar is currently collapsed (clicking expands it). Pairs with `collapseSidebar`."},"@astryx.sideNavCollapseButton.collapseSidebar":{defaultMessage:`Collapse sidebar`,description:"Aria label AND tooltip on the same toggle when the sidebar is currently expanded (clicking collapses it). Pairs with `expandSidebar`."},"@astryx.sideNavItem.expand":{defaultMessage:`Expand {label}`,description:"Screen-reader-only label on the chevron next to a SideNav item with children when the group is collapsed. Example: `Expand Settings`. Pairs with `sideNavItem.collapse`."},"@astryx.sideNavItem.collapse":{defaultMessage:`Collapse {label}`,description:"Screen-reader-only label on the same chevron when the group is expanded. Example: `Collapse Settings`. Pairs with `sideNavItem.expand`."},"@astryx.sideNavItem.submenuLabel":{defaultMessage:`{label} submenu`,description:"Accessible name for the flyout dialog that opens from a collapsed (icon-only) SideNav item to show its sub-items. {label} is the parent item's label. Example: `Settings submenu`."},"@astryx.tableFiltering.filterByColumn":{defaultMessage:`Filter {header}`,description:"Triple-use string on per-column filter controls: visible label, placeholder, AND aria label. `{header}` is the column header — example: `Filter Name`. Keep short."},"@astryx.tableGroupedRows.expandGroup":{defaultMessage:`Expand group {groupKey}`,description:"Screen-reader-only label on the chevron next to a grouped table's group header when collapsed. Example: `Expand group Q1 2024`. Pairs with `collapseGroup`."},"@astryx.tableGroupedRows.collapseGroup":{defaultMessage:`Collapse group {groupKey}`,description:"Screen-reader-only label on the same chevron when the group is expanded. Example: `Collapse group Q1 2024`. Pairs with `expandGroup`."},"@astryx.tableRowExpansion.collapseRow":{defaultMessage:`Collapse row`,description:`Screen-reader-only label on the row-expand chevron when the row is currently expanded. Part of the four-way expand/collapse set.`},"@astryx.tableRowExpansion.expandRow":{defaultMessage:`Expand row`,description:"Screen-reader-only label on the row-expand chevron when the row is currently collapsed. Part of a four-way set with `collapseRow`, `expandAllRows`, `collapseAllRows`."},"@astryx.tableRowExpansion.columnHeader":{defaultMessage:`Row expansion`,description:`Screen-reader-only header for the leading column that holds the per-row expand/collapse chevrons. The column shows no visible label.`},"@astryx.tableRowExpansion.collapseAllRows":{defaultMessage:`Collapse all rows`,description:`Screen-reader-only label on the same header button when every row is expanded. Part of the four-way set.`},"@astryx.tableRowExpansion.expandAllRows":{defaultMessage:`Expand all rows`,description:`Screen-reader-only label on the header expand-all/collapse-all button when at least one row is collapsed (clicking expands every expandable row). Part of the four-way set.`},"@astryx.stepper.label":{defaultMessage:`Progress`,description:"Screen-reader-only fallback name for the Stepper's ordered list of steps, describing the sequence as a whole (e.g. `Progress`). Used as the aria-label when the consumer does not pass a `label`. Singular per ARIA convention."},"@astryx.stepper.previousStep":{defaultMessage:`Previous step`,description:`Accessible name and tooltip for the button that moves a Stepper back one step. Only rendered when the stepper is narrow enough that step labels have collapsed, and only when the stepper is navigable at all.`},"@astryx.stepper.nextStep":{defaultMessage:`Next step`,description:"Accessible name and tooltip for the button that moves a Stepper forward one step. Counterpart to `stepper.previousStep`; keep the two parallel."},"@astryx.step.goToStep":{defaultMessage:`Go to step {stepNumber, number}: {label}`,description:`Accessible name for a clickable step in the Stepper. {stepNumber} is the 1-based position, {label} is the step's visible label.`},"@astryx.step.goToStepWithStatus":{defaultMessage:`Go to step {stepNumber, number}: {label}, {status}`,description:"Accessible name for a clickable Stepper step that also carries a status. {status} is one of the translated `step.status.*` words (completed/warning/error). Keep the pattern parallel to `step.goToStep`."},"@astryx.step.optional":{defaultMessage:`Optional`,description:`Visible indicator appended after a Stepper step's label when the step is optional (isOptional). Very short; appears inline after the label text.`},"@astryx.step.status.completed":{defaultMessage:`completed`,description:`Screen-reader-only status word rendered next to a Stepper step label when the step is done (either progress-completed or status=success). Lowercase adjective; it is read mid-sentence after the step label.`},"@astryx.step.status.warning":{defaultMessage:`warning`,description:`Screen-reader-only status word rendered next to a Stepper step label when status=warning. Lowercase noun/adjective; read mid-sentence after the step label.`},"@astryx.step.status.error":{defaultMessage:`error`,description:`Screen-reader-only status word rendered next to a Stepper step label when status=error. Lowercase noun; read mid-sentence after the step label.`},"@astryx.tableTree.collapseRow":{defaultMessage:`Collapse row`,description:`Aria label for the Table tree-data expander chevron when the row is currently expanded.`},"@astryx.tableTree.expandRow":{defaultMessage:`Expand row`,description:`Aria label for the Table tree-data expander chevron when the row is currently collapsed.`},"@astryx.tableTree.collapseAllRows":{defaultMessage:`Collapse all rows`,description:`Aria label for the Table tree-data header toggle when all rows are expanded and clicking it collapses them.`},"@astryx.tableTree.expandAllRows":{defaultMessage:`Expand all rows`,description:`Aria label for the Table tree-data header toggle when rows are collapsed and clicking it expands them.`},"@astryx.textArea.charactersRemaining":{defaultMessage:`{count, number} {count, plural, one {character} other {characters}} remaining`,description:"Screen-reader-only announcement of how many characters the user can still type before hitting a TextArea's maxLength. Announced politely as the count nears the limit. `{count}` is the number remaining — example: `12 characters remaining`."},"@astryx.textArea.charactersOverLimit":{defaultMessage:`{count, number} {count, plural, one {character} other {characters}} over the limit`,description:"Screen-reader-only assertive announcement when the user has typed past a TextArea's maxLength. `{count}` is how many characters over — example: `3 characters over the limit`."},"@astryx.textInput.clearLabel":{defaultMessage:`Clear {label}`,description:"Screen-reader-only label on the X that clears the value from a TextInput. Example: `Clear Email`, `Clear Name`."},"@astryx.thumbnail.remove":{defaultMessage:`Remove {accessibleName}`,description:'Screen-reader-only label on the "×" on a Thumbnail (image preview chip). `{accessibleName}` is the thumbnail\'s name — example: `Remove profile.jpg`.'},"@astryx.thumbnail.open":{defaultMessage:`Open {accessibleName}`,description:'"Open" = launch/reveal (not "unfold" or the adjective). Screen-reader-only name on a clickable Thumbnail — example: `Open Sunset photo`.'},"@astryx.thumbnail.fallbackName":{defaultMessage:`Thumbnail`,description:"Generic screen-reader name for a Thumbnail (image preview) that has no `alt` or `label`. Last-resort fallback so the control is never nameless; prefer a real name via `alt` or `label`."},"@astryx.timeInput.clearLabel":{defaultMessage:`Clear {label}`,description:"Screen-reader-only label on the X that clears the value from a TimeInput. Example: `Clear Start time`."},"@astryx.timestamp.copyValue":{defaultMessage:`Copy {value}`,description:"Aria label on a Timestamp copyable-hover-card row's copy button, in its default state. `value` is the formatted instant that row shows (e.g. `Copy February 19, 2026 at 5:00:00 PM UTC`). Imperative verb. Pairs with `timestamp.copied` (post-click state)."},"@astryx.timestamp.copy":{defaultMessage:`Copy`,description:"Short label shown in the tooltip on a Timestamp copyable-hover-card row's copy button (hover/focus), in its default state. Imperative verb. Pairs with `timestamp.copied` (post-click state). The full `copyValue` string remains the button's aria-label for assistive tech."},"@astryx.timestamp.copied":{defaultMessage:`Copied`,description:'Aria label on a Timestamp copy button for ~1.5s after a successful copy, and the text announced to a polite live region. Past-participle ("has been copied"); pairs with `timestamp.copyValue`.'},"@astryx.timestamp.detailsLabel":{defaultMessage:`Timestamp details`,description:`Accessible name for the Timestamp copyable hover card popup, which lists the instant in the configured time zones/formats with a copy button per row.`},"@astryx.token.remove":{defaultMessage:`Remove {label}`,description:'Screen-reader-only label on the "×" on an individual Token/chip. Example: `Remove John Smith`, `Remove Active`. Imperative verb.'},"@astryx.commandPalette.footer.navigate":{defaultMessage:`Navigate`,description:`Keyboard hint in the CommandPalette footer, paired with up/down arrow key icons. Tells users arrow keys move between items.`},"@astryx.commandPalette.footer.select":{defaultMessage:`Select`,description:`Keyboard hint in the CommandPalette footer, paired with the Enter key icon. Tells users Enter activates the highlighted item.`},"@astryx.commandPalette.footer.close":{defaultMessage:`Close`,description:`Keyboard hint in the CommandPalette footer, paired with the Escape key icon. Tells users Escape dismisses the palette.`},"@astryx.multiSelector.selectionCleared":{defaultMessage:`Selection cleared`,description:`Polite screen-reader announcement after the last selected option in a MultiSelector is deselected. Live-region text, never shown on screen; past participle ("has been cleared").`},"@astryx.multiSelector.allSelected":{defaultMessage:`All selected`,description:`Polite screen-reader announcement after every option in a MultiSelector becomes selected. Live-region text, never shown on screen; "all" is a determiner (as in "all the options").`},"@astryx.multiSelector.selectionCount":{defaultMessage:`{count, number} of {total, number} selected`,description:"Polite screen-reader announcement of how many MultiSelector options are selected out of the total, spoken after each toggle. Live-region text, never shown on screen; example: `3 of 12 selected`."},"@astryx.multiSelector.emptySearchResults":{defaultMessage:`No results found`,description:`Shown in a MultiSelector's dropdown panel when the search query matches no options, and announced in a polite live region at the same time. Short; neutral tone (not error-y).`},"@astryx.multiSelector.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Polite screen-reader announcement of how many MultiSelector options match the search query, spoken as the user types. Live-region text, never shown on screen; example: `1 result`, `12 results`."},"@astryx.selector.emptySearchResults":{defaultMessage:`No results found`,description:`Shown in a Selector's dropdown panel when the search query matches no options, and announced in a polite live region at the same time. Short; neutral tone (not error-y).`},"@astryx.selector.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Polite screen-reader announcement of how many Selector options match the search query, spoken as the user types. Live-region text, never shown on screen; example: `1 result`, `12 results`."},"@astryx.typeahead.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Polite screen-reader announcement of how many suggestions a Typeahead search returned. Live-region text, never shown on screen; example: `1 result`, `12 results`."},"@astryx.tokenizer.tokenAdded":{defaultMessage:`Added {label}`,description:"Polite screen-reader announcement after a token is added to a Tokenizer, either picked from the suggestions or newly created. Live-region text, never shown on screen; `{label}` is the token's visible text."},"@astryx.tokenizer.tokenRemoved":{defaultMessage:`Removed {label}`,description:"Polite screen-reader announcement after a token is removed from a Tokenizer, by its × button or by Backspace. Live-region text, never shown on screen; `{label}` is the token's visible text."},"@astryx.lightbox.imagePosition":{defaultMessage:`Image {index, number} of {total, number}`,description:"Polite screen-reader announcement when a Lightbox moves to a media item that has no alt text. Live-region text, never shown on screen; `{index}` is 1-based, example: `Image 3 of 12`."},"@astryx.lightbox.mediaPosition":{defaultMessage:`{alt}, {index, number} of {total, number}`,description:"Polite screen-reader announcement when a Lightbox moves to a media item that has alt text, composing that alt with the item's position. Live-region text, never shown on screen; example: `Sunset over the bay, 3 of 12`."},"@astryx.transferList.selectedLabel":{defaultMessage:`Selected`,description:`Default heading above the right-hand panel of a lab TransferList, which holds the options the user has chosen. Consumers usually override this with a domain noun (e.g. "Shown columns").`},"@astryx.transferList.availableLabel":{defaultMessage:`Available`,description:`Default heading above the left-hand panel of a lab TransferList, which holds the options not yet chosen. Consumers usually override this with a domain noun (e.g. "Hidden columns").`},"@astryx.transferList.ungroupedLabel":{defaultMessage:`Other`,description:"Heading for the bucket of available options that have no `group` set, shown only when some options are grouped and some are not so the ungrouped ones still have a heading."},"@astryx.transferList.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder in the single search field that filters both panels of a lab TransferList. Same English as `selector.searchPlaceholder` but a separate key so it can be phrased for two lists."},"@astryx.transferList.searchLabel":{defaultMessage:`Search {label}`,description:'Screen-reader-only label on the search field of a lab TransferList, naming what is being searched. `{label}` is the component\'s own label (e.g. "Search Table columns").'},"@astryx.transferList.selectedEmpty":{defaultMessage:`No selected options`,description:`Message shown inside the selected panel of a lab TransferList when the user has chosen nothing yet.`},"@astryx.transferList.availableEmpty":{defaultMessage:`No available options`,description:`Message shown inside the available panel of a lab TransferList when every option has already been moved to the selected panel.`},"@astryx.transferList.noResults":{defaultMessage:`No results`,description:`Message shown inside either panel of a lab TransferList when the search query matches nothing in that panel.`},"@astryx.transferList.clear":{defaultMessage:`Clear`,description:`Label on the bulk action in a lab TransferList's selected-panel header that removes every option that is allowed to be removed. Locked options stay.`},"@astryx.transferList.addAll":{defaultMessage:`Add all`,description:`Label on the bulk action in a lab TransferList's available-panel header that moves every remaining option into the selected panel.`},"@astryx.transferList.addOption":{defaultMessage:`Add {label}`,description:'Accessible label on the per-row + button that moves one option into the selected panel of a lab TransferList. `{label}` is that option\'s visible text (e.g. "Add Owner").'},"@astryx.transferList.removeOption":{defaultMessage:`Remove {label}`,description:'Accessible label on the per-row × button that moves one option out of the selected panel of a lab TransferList. `{label}` is that option\'s visible text (e.g. "Remove Name").'},"@astryx.transferList.reorderOption":{defaultMessage:`Reorder {label}`,description:'Accessible label on the per-row drag handle that reorders one option within the selected panel of a lab TransferList. `{label}` is that option\'s visible text (e.g. "Reorder Name").'},"@astryx.transferList.transferDisabled":{defaultMessage:`{label} cannot be moved`,description:"Default tooltip explaining why a locked option in a lab TransferList cannot be transferred between panels. `{label}` is the option's visible text. Consumers may override per option."},"@astryx.transferList.reorderDisabled":{defaultMessage:`{label} cannot be reordered`,description:"Default tooltip explaining why a locked option in a lab TransferList cannot be moved within the selected panel. `{label}` is the option's visible text. Consumers may override per option."},"@astryx.transferList.reorderInstructions":{defaultMessage:`Press Space or Enter to pick up an item. Use Arrow Up, Arrow Down, Home, or End to move it. Press Space or Enter to drop, or Escape to cancel.`,description:`Screen-reader-only instructions describing the keyboard reorder contract, referenced by every drag handle in a lab TransferList. Never shown on screen. Name the actual keys your locale's users press.`},"@astryx.transferList.announceAdded":{defaultMessage:`{label} added. {count, number} {count, plural, one {item} other {items}} selected.`,description:"Polite screen-reader announcement after one option moves into the selected panel of a lab TransferList. Live-region text, never shown on screen; `{label}` is the option's visible text and `{count}` is the new selected total."},"@astryx.transferList.announceRemoved":{defaultMessage:`{label} removed. {count, number} {count, plural, one {item} other {items}} selected.`,description:"Polite screen-reader announcement after one option moves out of the selected panel of a lab TransferList. Live-region text, never shown on screen; `{label}` is the option's visible text and `{count}` is the new selected total."},"@astryx.transferList.announceBulkAdded":{defaultMessage:`{count, number} {count, plural, one {item} other {items}} added.`,description:"Polite screen-reader announcement after the Add all bulk action in a lab TransferList. Live-region text, never shown on screen; `{count}` is how many options moved."},"@astryx.transferList.announceBulkRemoved":{defaultMessage:`{count, number} {count, plural, one {item} other {items}} removed.`,description:"Polite screen-reader announcement after the Clear bulk action in a lab TransferList. Live-region text, never shown on screen; `{count}` is how many options moved."},"@astryx.transferList.announceGrabbed":{defaultMessage:`{label} picked up, position {position, number} of {total, number}. Use arrow keys to move, Space or Enter to drop, or Escape to cancel.`,description:"Polite screen-reader announcement when a lab TransferList row enters keyboard reorder mode. Live-region text, never shown on screen; `{position}` is 1-based within the selected panel."},"@astryx.transferList.announceMoveCancelled":{defaultMessage:`{label} move cancelled.`,description:`Polite screen-reader announcement when a lab TransferList reorder is abandoned with Escape or a cancelled pointer drag, restoring the original order. Live-region text, never shown on screen.`},"@astryx.transferList.announceDropped":{defaultMessage:`{label} dropped at position {position, number} of {total, number}.`,description:"Polite screen-reader announcement when a lab TransferList reorder commits at a new position. Live-region text, never shown on screen; `{position}` is 1-based within the selected panel."},"@astryx.transferList.announceReturned":{defaultMessage:`{label} returned to position {position, number}.`,description:"Polite screen-reader announcement when a lab TransferList pointer drag ends where it began, so the order did not change. Live-region text, never shown on screen; `{position}` is 1-based."},"@astryx.transferList.announceMovedToPosition":{defaultMessage:`{label}, position {position, number} of {total, number}.`,description:"Polite screen-reader announcement after each arrow-key step of an in-progress lab TransferList reorder. Live-region text, never shown on screen; `{position}` is 1-based within the selected panel."},"@astryx.transferList.announceSearchResults":{defaultMessage:`{count, number} {count, plural, one {item} other {items}} found.`,description:`Polite screen-reader announcement of how many options a lab TransferList search matched across both panels. Live-region text, never shown on screen.`},"@astryx.transferListSelector.apply":{defaultMessage:`Apply`,description:`Label on the button that commits the staged draft of a lab TransferListSelector and closes it. Only rendered in staged commit mode.`},"@astryx.transferListSelector.cancel":{defaultMessage:`Cancel`,description:`Label on the button that discards the staged draft of a lab TransferListSelector and closes it. Only rendered in staged commit mode.`},"@astryx.transferListSelector.triggerLabel":{defaultMessage:`{count, number} selected`,description:`Default summary on the closed trigger of a lab TransferListSelector, stating how many options are currently chosen. Consumers usually override this with a domain phrase (e.g. "7 columns").`}}}));function mu(e,t){let n=`${t}::${e}`,r=yu.get(n);return r===void 0&&(r=new uu(e,t),yu.set(n,r)),r}function hu(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--)r.push(n.slice(0,e).join(`-`));return r}function gu(e,t,n){let r={},i=hu(e);if(n!==void 0){for(let e of i)if(n[e])for(let[t,i]of Object.entries(n[e]))r[t]===void 0&&i!==null&&(r[t]=i)}for(let e of i)if(t[e])for(let[n,i]of Object.entries(t[e]))r[n]===void 0&&i?.defaultMessage!==null&&(r[n]=i?.defaultMessage);return r}function _u(e,t,n){let r=gu(e,t,n);return(t,n)=>{let i=r[t]??vu[t]?.defaultMessage;return i===void 0?(`${e}${t}`,`${t}${e}`,t):n===void 0?i:mu(i,e).format(n)}}var vu,yu,bu=o((()=>{du(),pu(),Zt(),vu=fu,yu=new Map})),xu,Su,Cu=o((()=>{xu=u(f(),1),bu(),Su=(0,xu.createContext)({locale:`en`,direction:`ltr`,messages:{},translate:_u(`en`,{})}),Su.displayName=`InternationalizationContext`}));function wu(){return(0,Tu.use)(Su).translate}var Tu,Eu=o((()=>{Tu=u(f(),1),Cu()}));function Du(){return(0,Ou.use)(Su).locale}var Ou,ku=o((()=>{Ou=u(f(),1),Cu()})),Au=o((()=>{Cu(),bu(),Eu(),ku()}));Dc(),Oc(),hn(),Bc(),ut(),dn(),Au();var ju={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1lsbc85`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,k63SB2:`x1pd3egz`,kybGjl:`x1hl2dhg x13nosk6`,kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`x1mpt4pi`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},buttonReset:{kWkggS:`xjbqb8w`,ksu8eU:`xng3xce`,kmVPX3:`x1717udv`,kfzvcC:`x67bb7w`,kVAEAm:`x1n2onr6`,$$css:!0},hasUnderline:{kybGjl:`x1bvjpef`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kfzvcC:`x47corl`,$$css:!0},standalone:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}},Mu={primary:{kMwMTN:`x1tgivj0 xcunlro`,$$css:!0},secondary:{kMwMTN:`xv1l7n4 x7jm8ul`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1 x1rfoswn`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}};function Nu(e){e.preventDefault()}function Pu({as:e,label:t,href:n,hasUnderline:r=!1,isDisabled:i=!1,isExternalLink:a=!1,newTabLabel:o,target:s,onClick:c,tooltip:l,isStandalone:u=!1,type:d=`body`,size:f,weight:p,color:m=`accent`,display:h=`inline`,maxLines:g=0,children:_,rel:v,xstyle:y,className:b,style:x,ref:S,...C}){let w=wu(),T=o??w(`@astryx.link.newTab`),E=Mc(e),D=zc({href:n,onClick:c,isDisabled:i}),{target:O,rel:k}=Pc(a?`_blank`:s,v),A=D===`button`||D===`inert`&&n==null,j=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Yi,{type:d,size:f,weight:p,color:m,display:h,maxLines:g,children:_}),a&&!A&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(vc,{icon:`externalLink`,size:`xsm`,color:`inherit`}),(0,G.jsx)(kc,{children:T})]})]}),M;return M=A?(0,G.jsx)(`button`,{ref:S,type:`button`,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,disabled:i,...W(U(`link`,{color:m}),un.focusVisible(ju.base,ju.buttonReset,Mu[m],!i&&Vc.pressedBackgroundColor,r&&ju.hasUnderline,u&&ju.standalone,i&&ju.disabled,y),b,x),...C,children:j}):i?(0,G.jsx)(`a`,{ref:S,onClick:Nu,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...W(U(`link`,{color:m}),un.focusVisible(ju.base,Mu[m],r&&ju.hasUnderline,u&&ju.standalone,ju.disabled,y),b,x),...C,children:j}):(0,G.jsx)(E,{ref:S,href:n,target:O,rel:k,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,...W(U(`link`,{color:m}),un.focusVisible(ju.base,Mu[m],!i&&Vc.pressedBackgroundColor,r&&ju.hasUnderline,u&&ju.standalone,i&&ju.disabled,y),b,x),...C,children:j}),l?(0,G.jsx)(Vi,{content:l,placement:`above`,children:M}):M}Pu.displayName=`Link`;function Fu({component:e,children:t}){let n=(0,y.useMemo)(()=>({component:e}),[e]);return(0,G.jsx)(Ac,{value:n,children:t})}Fu.displayName=`LinkProvider`,Kn(),H(),Gs(),Ws(),ss(),at(),cc(),Zt();var Iu={base:{k1xSpc:`xjp7ctv`,kMwMTN:`x1tgivj0`,kMv6JI:`x9ynric`,$$css:!0},light:{kQNsl9:`x19aimcq`,$$css:!0},dark:{kQNsl9:`xntwwlm`,$$css:!0},system:{kQNsl9:`x108lcm5`,$$css:!0}},Lu=y.createContext(!1);Lu.displayName=`ThemeNestingContext`;var Ru=new Set,zu=0;function Bu(e){let t=(0,y.useId)();(0,y.useInsertionEffect)(()=>{if(e.__built)return;let n=`astryx-theme-${e.name}`;if(Ru.has(n))return;`${e.name}`,`${e.name}${e.name}${e.name}${e.name}`;let{prose:r,component:i}=Is(e),a=Fs();Ru.add(n);let o=[()=>Ru.delete(n)];if(a){if(zu++===0){let e=document.createElement(`style`);e.setAttribute($e(`theme-base`),``),e.textContent=`@layer astryx-base {\n${a}\n}`,document.head.appendChild(e)}o.push(()=>{--zu===0&&document.querySelector(`style[${$e(`theme-base`)}]`)?.remove()})}if(r){let n=document.createElement(`style`);n.setAttribute($e(`theme-prose`),e.name),n.setAttribute($e(`id`),t),n.textContent=`@layer reset {\n${r}\n}`,document.head.appendChild(n)}if(i){let n=document.createElement(`style`);n.setAttribute($e(`theme`),e.name),n.setAttribute($e(`id`),t),n.textContent=`@layer astryx-theme {\n${i}\n}`,document.head.appendChild(n)}return(r||i)&&o.push(()=>{let n=document.querySelector(`style[${$e(`theme-prose`)}="${e.name}"][${$e(`id`)}="${t}"]`),r=document.querySelector(`style[${$e(`theme`)}="${e.name}"][${$e(`id`)}="${t}"]`);n?.remove(),r?.remove()}),()=>{for(let e of o)e()}},[e,t])}function Vu(e,t,n){Gn(()=>{if(!e&&!(typeof document>`u`))return t===`light`||t===`dark`?document.documentElement.setAttribute(`data-theme`,t):document.documentElement.removeAttribute(`data-theme`),document.documentElement.setAttribute($e(`theme`),n),()=>{document.documentElement.removeAttribute(`data-theme`),document.documentElement.removeAttribute($e(`theme`))}},[e,t,n])}function Hu({theme:e,mode:t=`system`,children:n}){let r=(0,y.use)(Lu);is(e),Bu(e),Vu(r,t,e.name);let i=t===`dark`?Iu.dark:t===`light`?Iu.light:Iu.system,a=(0,y.useMemo)(()=>({theme:e,mode:t}),[e,t]);return(0,G.jsx)(ac,{value:a,children:(0,G.jsx)(Lu,{value:!0,children:(0,G.jsx)(`div`,{...V(Iu.base,i),"data-astryx-theme":e.name,"data-theme":t===`system`?void 0:t,children:n})})})}Hu.displayName=`Theme`;var Uu=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Wu(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Uu(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Gu=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Ku=e=>{let t=Gu(e);return t.charAt(0).toUpperCase()+t.slice(1)},qu=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ju={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Yu(e){return e!=null}function Xu(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ju.width,a=e.size??e.height??Ju.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?qu(...c):qu(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ju[`stroke-width`])*Number(e.size??e.width??Ju.width)/Number(t.size??t.width??Ju.width):t.strokeWidth??Ju[`stroke-width`];return[`svg`,{...Object.entries(Ju).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Yu(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Yu(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Yu(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Zu(e,t={}){return Xu(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Qu=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},$u=(0,y.createContext)({}),ed=()=>(0,y.useContext)($u),td=(0,y.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=ed()??{},b=!!c||Qu(d),[x,S,C=[]]=Zu(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:qu(v,s),hasA11yProp:b,attributes:d});return(0,y.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,y.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function q(e,t=[],n=[]){let r=typeof e==`string`?Wu(e,t,n):e,i=(0,y.forwardRef)(({className:e,...t},n)=>(0,y.createElement)(td,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Ku(r.name)),i}var nd={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};nd.node;var rd=q(nd),id={name:`arrow-up-down`,size:24,node:[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]};id.node;var ad=q(id),od={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};od.node;var sd=q(od),cd={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};cd.node;var ld=q(cd),ud={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};ud.node;var dd=q(ud),fd={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};fd.node;var pd=q(fd),md={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};md.node;var hd=q(md),gd={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};gd.node;var _d=q(gd),vd={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};vd.node;var yd=q(vd),bd={name:`chevrons-left`,size:24,node:[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]};bd.node;var xd=q(bd),Sd={name:`chevrons-right`,size:24,node:[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]};Sd.node;var Cd=q(Sd),wd={name:`circle-check-big`,size:24,node:[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-circle`]};wd.node;var Td=q(wd),Ed={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Ed.node;var Dd=q(Ed),Od={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Od.node;var kd=q(Od),Ad={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};Ad.node;var jd=q(Ad),Md={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Md.node;var Nd=q(Md),Pd={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Pd.node;var Fd=q(Pd),Id={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Id.node;var Ld=q(Id),Rd={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};Rd.node;var zd=q(Rd),Bd={name:`folder-kanban`,size:24,node:[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]};Bd.node;var Vd=q(Bd),Hd={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Hd.node;var Ud=q(Hd),Wd={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Wd.node;var Gd=q(Wd),Kd={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Kd.node;var qd=q(Kd),Jd={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]};Jd.node;var Yd=q(Jd),Xd={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Xd.node;var Zd=q(Xd),Qd={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};Qd.node;var $d=q(Qd),ef={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};ef.node;var tf=q(ef),nf={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};nf.node;var rf=q(nf),af={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};af.node;var of=q(af),sf={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};sf.node;var cf=q(sf),lf={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};lf.node;var uf=q(lf),df={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};df.node;var ff=q(df),pf={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};pf.node;var mf=q(pf),hf={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};hf.node;var gf=q(hf),_f={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};_f.node;var vf=q(_f),yf={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};yf.node;var bf=q(yf),xf={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};xf.node;var Sf=q(xf),Cf={size:`1em`,"aria-hidden":!0},wf={name:`neutral`,__built:!0,tokens:{"--font-size-4xs":`0.375rem`,"--font-size-3xs":`0.4375rem`,"--font-size-2xs":`0.5rem`,"--font-size-xs":`0.625rem`,"--font-size-sm":`0.75rem`,"--font-size-base":`0.875rem`,"--font-size-lg":`1.0625rem`,"--font-size-xl":`1.25rem`,"--font-size-2xl":`1.5rem`,"--font-size-3xl":`1.8125rem`,"--font-size-4xl":`2.1875rem`,"--font-size-5xl":`2.625rem`,"--text-heading-1-size":`var(--font-size-2xl)`,"--text-heading-1-weight":`var(--font-weight-semibold)`,"--text-heading-1-leading":`1.3333`,"--text-heading-2-size":`var(--font-size-xl)`,"--text-heading-2-weight":`var(--font-weight-semibold)`,"--text-heading-2-leading":`1.4`,"--text-heading-3-size":`var(--font-size-lg)`,"--text-heading-3-weight":`var(--font-weight-bold)`,"--text-heading-3-leading":`1.4118`,"--text-heading-4-size":`var(--font-size-base)`,"--text-heading-4-weight":`var(--font-weight-bold)`,"--text-heading-4-leading":`1.4286`,"--text-heading-5-size":`var(--font-size-sm)`,"--text-heading-5-weight":`var(--font-weight-semibold)`,"--text-heading-5-leading":`1.6667`,"--text-heading-6-size":`var(--font-size-xs)`,"--text-heading-6-weight":`var(--font-weight-semibold)`,"--text-heading-6-leading":`1.6`,"--text-body-size":`var(--font-size-base)`,"--text-body-weight":`var(--font-weight-normal)`,"--text-body-leading":`1.4286`,"--text-large-size":`var(--font-size-lg)`,"--text-large-weight":`var(--font-weight-semibold)`,"--text-large-leading":`1.4118`,"--text-label-size":`var(--font-size-base)`,"--text-label-weight":`var(--font-weight-medium)`,"--text-label-leading":`1.4286`,"--text-code-size":`var(--font-size-base)`,"--text-code-weight":`var(--font-weight-normal)`,"--text-code-leading":`1.4286`,"--text-supporting-size":`var(--font-size-sm)`,"--text-supporting-weight":`var(--font-weight-normal)`,"--text-supporting-leading":`1.6667`,"--text-display-1-size":`var(--font-size-5xl)`,"--text-display-1-weight":`var(--font-weight-normal)`,"--text-display-1-leading":`1.2381`,"--text-display-2-size":`var(--font-size-4xl)`,"--text-display-2-weight":`var(--font-weight-normal)`,"--text-display-2-leading":`1.2571`,"--text-display-3-size":`var(--font-size-3xl)`,"--text-display-3-weight":`var(--font-weight-normal)`,"--text-display-3-leading":`1.3793`,"--duration-fast-min":`95ms`,"--duration-fast":`125ms`,"--duration-fast-max":`165ms`,"--duration-medium-min":`225ms`,"--duration-medium":`300ms`,"--duration-medium-max":`400ms`,"--duration-slow-min":`525ms`,"--duration-slow":`700ms`,"--duration-slow-max":`935ms`,"--font-family-body":`Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,"--font-family-heading":`Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,"--font-family-code":`ui-monospace, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace`,"--color-syntax-keyword":`light-dark(#6b187c, #efa8ff)`,"--color-syntax-string":`light-dark(#0b5615, #a4d6a3)`,"--color-syntax-comment":`light-dark(#6a6a6a, #9e9e9e)`,"--color-syntax-number":`light-dark(#733100, #ffb37e)`,"--color-syntax-function":`light-dark(#00458c, #a1caff)`,"--color-syntax-type":`light-dark(#6b187c, #efa8ff)`,"--color-syntax-variable":`light-dark(#111111, #e2e2e2)`,"--color-syntax-operator":`light-dark(#6a6a6a, #9e9e9e)`,"--color-syntax-constant":`light-dark(#733100, #ffb37e)`,"--color-syntax-tag":`light-dark(#8a0011, #ffaea7)`,"--color-syntax-attribute":`light-dark(#584400, #eec448)`,"--color-syntax-property":`light-dark(#005348, #90d7c8)`,"--color-syntax-punctuation":`light-dark(#6a6a6a, #9e9e9e)`,"--color-syntax-background":`light-dark(#ffffff, #111111)`,"--color-background-surface":`light-dark(#ffffff, #262626)`,"--color-background-body":`light-dark(#f1f1f1, #1b1b1b)`,"--color-background-card":`light-dark(#ffffff, #1b1b1b)`,"--color-background-popover":`light-dark(#ffffff, #1b1b1b)`,"--color-background-muted":`light-dark(#f1f1f1, #1b1b1b)`,"--color-accent":`light-dark(#1b1b1b, #f1f1f1)`,"--color-accent-muted":`light-dark(#f1f1f1, #262626)`,"--color-neutral":`light-dark(#0000000F, #ffffff1A)`,"--color-overlay":`light-dark(#00000080, #000000CC)`,"--color-overlay-hover":`light-dark(#0000000D, #ffffff0D)`,"--color-overlay-pressed":`light-dark(#0000001A, #ffffff1A)`,"--color-text-primary":`light-dark(#000000, #ffffff)`,"--color-text-secondary":`light-dark(#474747, #9e9e9e)`,"--color-text-disabled":`light-dark(#919191, #525252)`,"--color-text-accent":`light-dark(#1b1b1b, #f1f1f1)`,"--color-on-dark":`#ffffff`,"--color-on-light":`#111111`,"--color-on-accent":`light-dark(#ffffff, #111111)`,"--color-on-success":`light-dark(#ffffff, #111111)`,"--color-on-error":`light-dark(#ffffff, #111111)`,"--color-on-warning":`#111111`,"--color-icon-accent":`light-dark(#1b1b1b, #f1f1f1)`,"--color-icon-primary":`light-dark(#000000, #ffffff)`,"--color-icon-secondary":`light-dark(#6a6a6a, #9e9e9e)`,"--color-icon-disabled":`light-dark(#919191, #525252)`,"--color-success":`light-dark(#00490b, #a4d6a3)`,"--color-error":`light-dark(#76000c, #ffc4be)`,"--color-warning":`light-dark(#4b3900, #f8d36a)`,"--color-success-muted":`light-dark(#bce0bb, #90ca903D)`,"--color-error-muted":`light-dark(#ffc4be, #ff98903D)`,"--color-warning-muted":`light-dark(#fae19e, #e2b6233D)`,"--color-border":`light-dark(#00000014, #ffffff1A)`,"--color-border-emphasized":`light-dark(#d4d4d4, #525252)`,"--color-skeleton":`light-dark(#f1f1f1, #525252)`,"--color-shadow":`light-dark(#0000001A, #0000004D)`,"--color-tint-hover":`light-dark(black, white)`,"--color-background-red":`light-dark(#ffc4be, #5b2b28)`,"--color-border-red":`light-dark(#ffaea7, #fa6762)`,"--color-icon-red":`light-dark(#76000c, #ff9890)`,"--color-text-red":`light-dark(#76000c, #ffaea7)`,"--color-background-orange":`light-dark(#ffc7a1, #503424)`,"--color-border-orange":`light-dark(#ffc7a1, #df843f)`,"--color-icon-orange":`light-dark(#622700, #ff9e55)`,"--color-text-orange":`light-dark(#622700, #ffb37e)`,"--color-background-yellow":`light-dark(#fae19e, #453a1c)`,"--color-border-yellow":`light-dark(#e3c36c, #c29900)`,"--color-icon-yellow":`light-dark(#4b3900, #e2b623)`,"--color-text-yellow":`light-dark(#4b3900, #eec448)`,"--color-background-green":`light-dark(#bce0bb, #2b422b)`,"--color-border-green":`light-dark(#aad4a9, #6ab26b)`,"--color-icon-green":`light-dark(#00490b, #90ca90)`,"--color-text-green":`light-dark(#00490b, #90ca90)`,"--color-background-teal":`light-dark(#a9e2d6, #28413c)`,"--color-border-teal":`light-dark(#90d7c8, #4fb1a0)`,"--color-icon-teal":`light-dark(#00463d, #81c9bb)`,"--color-text-teal":`light-dark(#00463d, #90d7c8)`,"--color-background-cyan":`light-dark(#9ae2f4, #274046)`,"--color-border-cyan":`light-dark(#85d5e9, #49adc4)`,"--color-icon-cyan":`light-dark(#004351, #71c7dd)`,"--color-text-cyan":`light-dark(#004351, #85d5e9)`,"--color-background-blue":`light-dark(#b9d7ff, #253c5a)`,"--color-border-blue":`light-dark(#a1caff, #5aa0f8)`,"--color-icon-blue":`light-dark(#003978, #88bcff)`,"--color-text-blue":`light-dark(#003978, #a1caff)`,"--color-background-purple":`light-dark(#f7d5ff, #4a2f51)`,"--color-border-purple":`light-dark(#f3bfff, #d885eb)`,"--color-icon-purple":`light-dark(#5c0e6c, #e496f6)`,"--color-text-purple":`light-dark(#5c0e6c, #eaacf8)`,"--color-background-pink":`light-dark(#ffc0d7, #572b3d)`,"--color-border-pink":`light-dark(#ffc0d7, #fc78b1)`,"--color-icon-pink":`light-dark(#70003f, #fd92bd)`,"--color-text-pink":`light-dark(#70003f, #ffa9ca)`,"--color-background-gray":`light-dark(#e2e2e2, #303030)`,"--color-border-gray":`light-dark(#d4d4d4, #262626)`,"--color-icon-gray":`light-dark(#474747, #9e9e9e)`,"--color-text-gray":`light-dark(#1b1b1b, #d4d4d4)`,"--radius-none":`0px`,"--radius-inner":`0.375rem`,"--radius-element":`0.625rem`,"--radius-container":`0.75rem`,"--radius-page":`1.75rem`,"--radius-full":`9999px`,"--shadow-low":`0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))`,"--shadow-med":`0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))`,"--shadow-high":`0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))`,"--shadow-inset-hover":`inset 0px 0px 0px 2px #0074e24D`,"--shadow-inset-selected":`inset 0px 0px 0px 2px #0074e280`,"--shadow-inset-success":`inset 0px 0px 0px 2px #2f7d334D`,"--shadow-inset-warning":`inset 0px 0px 0px 2px #f8d36a4D`,"--shadow-inset-error":`inset 0px 0px 0px 2px #de47454D`},localTokens:{"--astryx-theme-neutral-color-status-fill-accent":`light-dark(#0074e2, #6d9cfe)`,"--astryx-theme-neutral-color-status-fill-success":`light-dark(#198100, #64af4c)`,"--astryx-theme-neutral-color-status-fill-warning":`#ffce2f`,"--astryx-theme-neutral-color-status-fill-error":`light-dark(#c9303a, #ff705d)`,"--astryx-theme-neutral-color-status-muted-accent":`light-dark(#b9d7ff, #88bcff3D)`,"--astryx-theme-neutral-color-on-tint-neutral":`light-dark(#fafafa4D, #0a0a0a4D)`,"--astryx-theme-neutral-color-on-tint-overlay-hover":`light-dark(#fafafa1A, #0a0a0a1A)`,"--astryx-theme-neutral-color-on-tint-overlay-pressed":`light-dark(#fafafa33, #0a0a0a33)`,"--astryx-theme-neutral-color-destructive-overlay-hover":`light-dark(#ff7f770D, #ee736c0D)`,"--astryx-theme-neutral-color-destructive-overlay-pressed":`light-dark(#ff7f771A, #ee736c1A)`},__localTokenOwners:{"--astryx-theme-neutral-color-status-fill-accent":`neutral`,"--astryx-theme-neutral-color-status-fill-success":`neutral`,"--astryx-theme-neutral-color-status-fill-warning":`neutral`,"--astryx-theme-neutral-color-status-fill-error":`neutral`,"--astryx-theme-neutral-color-status-muted-accent":`neutral`,"--astryx-theme-neutral-color-on-tint-neutral":`neutral`,"--astryx-theme-neutral-color-on-tint-overlay-hover":`neutral`,"--astryx-theme-neutral-color-on-tint-overlay-pressed":`neutral`,"--astryx-theme-neutral-color-destructive-overlay-hover":`neutral`,"--astryx-theme-neutral-color-destructive-overlay-pressed":`neutral`},__localTokenLineage:[`neutral`],components:{heading:{"level:1":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-1-size)`,fontWeight:`var(--text-heading-1-weight)`,lineHeight:`var(--text-heading-1-leading)`},"level:2":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-2-size)`,fontWeight:`var(--text-heading-2-weight)`,lineHeight:`var(--text-heading-2-leading)`},"level:3":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-3-size)`,fontWeight:`var(--text-heading-3-weight)`,lineHeight:`var(--text-heading-3-leading)`},"level:4":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-4-size)`,fontWeight:`var(--text-heading-4-weight)`,lineHeight:`var(--text-heading-4-leading)`},"level:5":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-5-size)`,fontWeight:`var(--text-heading-5-weight)`,lineHeight:`var(--text-heading-5-leading)`},"level:6":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-6-size)`,fontWeight:`var(--text-heading-6-weight)`,lineHeight:`var(--text-heading-6-leading)`},"type:display-1":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-1-size)`,lineHeight:`var(--text-display-1-leading)`},"type:display-2":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-2-size)`,lineHeight:`var(--text-display-2-leading)`},"type:display-3":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-3-size)`,lineHeight:`var(--text-display-3-leading)`}},text:{"type:body":{fontFamily:`var(--font-family-body)`,fontSize:`var(--text-body-size)`,lineHeight:`var(--text-body-leading)`},"type:large":{fontFamily:`var(--font-family-body)`,fontSize:`var(--text-large-size)`,lineHeight:`var(--text-large-leading)`},"type:label":{fontFamily:`var(--font-family-body)`,fontSize:`var(--text-label-size)`,lineHeight:`var(--text-label-leading)`},"type:code":{fontFamily:`var(--font-family-code)`,fontSize:`var(--text-code-size)`,lineHeight:`var(--text-code-leading)`},"type:supporting":{fontFamily:`var(--font-family-body)`,fontSize:`var(--text-supporting-size)`,lineHeight:`var(--text-supporting-leading)`},"type:display-1":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-1-size)`,lineHeight:`var(--text-display-1-leading)`},"type:display-2":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-2-size)`,lineHeight:`var(--text-display-2-leading)`},"type:display-3":{fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-display-3-size)`,lineHeight:`var(--text-display-3-leading)`}},button:{"variant:destructive":{backgroundColor:`var(--color-error-muted)`,color:`var(--color-error)`,"--color-overlay-hover":`var(--astryx-theme-neutral-color-destructive-overlay-hover)`,"--color-overlay-pressed":`var(--astryx-theme-neutral-color-destructive-overlay-pressed)`}},badge:{"variant:info":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-accent)`,color:`var(--color-on-accent)`},"variant:neutral":{backgroundColor:`var(--color-background-gray)`,color:`var(--color-text-gray)`},"variant:success":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-success)`,color:`var(--color-on-success)`},"variant:warning":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-warning)`,color:`var(--color-on-warning)`},"variant:error":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-error)`,color:`var(--color-on-error)`},"variant:red":{backgroundColor:`var(--color-background-red)`,color:`var(--color-text-red)`},"variant:orange":{backgroundColor:`var(--color-background-orange)`,color:`var(--color-text-orange)`},"variant:yellow":{backgroundColor:`var(--color-background-yellow)`,color:`var(--color-text-yellow)`},"variant:green":{backgroundColor:`var(--color-background-green)`,color:`var(--color-text-green)`},"variant:teal":{backgroundColor:`var(--color-background-teal)`,color:`var(--color-text-teal)`},"variant:cyan":{backgroundColor:`var(--color-background-cyan)`,color:`var(--color-text-cyan)`},"variant:blue":{backgroundColor:`var(--color-background-blue)`,color:`var(--color-text-blue)`},"variant:purple":{backgroundColor:`var(--color-background-purple)`,color:`var(--color-text-purple)`},"variant:pink":{backgroundColor:`var(--color-background-pink)`,color:`var(--color-text-pink)`},"variant:gray":{backgroundColor:`var(--color-background-gray)`,color:`var(--color-text-gray)`}},"status-dot":{"variant:success":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-success)`},"variant:warning":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-warning)`},"variant:error":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-error)`},"variant:accent":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-accent)`}},"avatar-status-dot":{"variant:success":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-success)`},"variant:error":{backgroundColor:`var(--astryx-theme-neutral-color-status-fill-error)`}},"segmented-control":{base:{padding:`var(--spacing-1)`}},"segmented-control-item":{"size:sm":{height:`calc(var(--size-element-sm) - 8px)`},"size:md":{height:`calc(var(--size-element-md) - 8px)`},"size:lg":{height:`calc(var(--size-element-lg) - 8px)`},selected:{boxShadow:`none`}},banner:{base:{"--color-neutral":`var(--astryx-theme-neutral-color-on-tint-neutral)`,"--color-overlay-hover":`var(--astryx-theme-neutral-color-on-tint-overlay-hover)`,"--color-overlay-pressed":`var(--astryx-theme-neutral-color-on-tint-overlay-pressed)`},"status:info":{"--color-accent-muted":`var(--astryx-theme-neutral-color-status-muted-accent)`,"--color-text-primary":`var(--color-text-blue)`,"--color-text-secondary":`var(--color-text-blue)`,"--color-accent":`var(--color-text-blue)`},"status:success":{"--color-text-primary":`var(--color-text-green)`,"--color-text-secondary":`var(--color-text-green)`,"--color-success":`var(--color-text-green)`},"status:warning":{"--color-text-primary":`var(--color-text-yellow)`,"--color-text-secondary":`var(--color-text-yellow)`,"--color-warning":`var(--color-text-yellow)`},"status:error":{"--color-text-primary":`var(--color-text-red)`,"--color-text-secondary":`var(--color-text-red)`,"--color-error":`var(--color-text-red)`}},"step-indicator":{"status:accent":{"--color-accent":`var(--astryx-theme-neutral-color-status-fill-accent)`},"status:success":{"--color-success":`var(--astryx-theme-neutral-color-status-fill-success)`},"status:warning":{"--color-warning":`var(--astryx-theme-neutral-color-status-fill-warning)`},"status:error":{"--color-error":`var(--astryx-theme-neutral-color-status-fill-error)`}},switch:{base:{"--color-background-gray":`var(--color-border-emphasized)`}},"progress-bar":{base:{"--color-background-muted":`var(--color-border-emphasized)`},"variant:accent":{"--color-accent":`var(--astryx-theme-neutral-color-status-fill-accent)`},"variant:success":{"--color-success":`var(--astryx-theme-neutral-color-status-fill-success)`},"variant:warning":{"--color-warning":`var(--astryx-theme-neutral-color-status-fill-warning)`},"variant:error":{"--color-error":`var(--astryx-theme-neutral-color-status-fill-error)`}},card:{base:{padding:`var(--spacing-3)`}},section:{base:{padding:`var(--spacing-3)`}}},__onDark:{tokens:{"color-scheme":`dark`,"--color-text-primary":`var(--color-on-dark)`,"--color-icon-primary":`var(--color-on-dark)`,"--color-accent":`var(--color-on-dark)`}},__onLight:{tokens:{"color-scheme":`light`,"--color-text-primary":`var(--color-on-light)`,"--color-icon-primary":`var(--color-on-light)`,"--color-accent":`var(--color-on-light)`}},__adaptations:{widthBreakpoints:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},rules:[]},__axes:{typography:{scale:{base:14,ratio:1.2},body:{family:`Figtree`,fallbacks:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`},heading:{family:`Figtree`,fallbacks:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,weights:{3:`bold`,4:`bold`}},code:{family:`ui-monospace`,fallbacks:`"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace`}},motion:{fast:125,medium:300,slow:700,ratio:.75}},icons:{close:(0,G.jsx)(Sf,{...Cf}),chevronDown:(0,G.jsx)(hd,{...Cf}),chevronLeft:(0,G.jsx)(_d,{...Cf}),chevronRight:(0,G.jsx)(yd,{...Cf}),chevronsLeft:(0,G.jsx)(xd,{...Cf}),chevronsRight:(0,G.jsx)(Cd,{...Cf}),check:(0,G.jsx)(pd,{...Cf}),success:(0,G.jsx)(Td,{...Cf}),error:(0,G.jsx)(Dd,{...Cf}),warning:(0,G.jsx)(gf,{...Cf}),info:(0,G.jsx)(Gd,{...Cf}),calendar:(0,G.jsx)(ld,{...Cf}),clock:(0,G.jsx)(kd,{...Cf}),externalLink:(0,G.jsx)(Ld,{...Cf}),menu:(0,G.jsx)(tf,{...Cf}),moreHorizontal:(0,G.jsx)(Fd,{...Cf}),search:(0,G.jsx)(cf,{...Cf}),arrowUp:(0,G.jsx)(sd,{...Cf}),arrowDown:(0,G.jsx)(rd,{...Cf}),arrowsUpDown:(0,G.jsx)(ad,{...Cf}),funnel:(0,G.jsx)(Ud,{...Cf}),eyeSlash:(0,G.jsx)(zd,{...Cf}),viewColumns:(0,G.jsx)(jd,{...Cf}),copy:(0,G.jsx)(Nd,{...Cf}),checkDouble:(0,G.jsx)(dd,{...Cf}),wrench:(0,G.jsx)(bf,{...Cf}),stop:(0,G.jsx)(ff,{...Cf}),microphone:(0,G.jsx)(rf,{...Cf})}},Tf=e=>!!e&&typeof e==`object`&&!Array.isArray(e),Ef=(e,t)=>{let n=typeof e;if(n===`function`||n===`symbol`)throw Error(`fate: Argument '${t}' must be serializable. Received '${n}'.`)},Df=(e,t)=>{let n=(e,t)=>{if(Array.isArray(e))return e.map((e,r)=>n(e,`${t}[${r}]`));if(Tf(e)){let r={};for(let[i,a]of Object.entries(e))r[i]=n(a,`${t}.${i}`);return r}return Ef(e,t),e};return n(e,t)},Of=new Set([`after`,`before`,`cursor`,`first`,`last`]),kf=e=>{if(e===null)return`null`;let t=typeof e;if(t===`number`||t===`boolean`||t===`bigint`)return`${t}:${String(e)}`;if(t===`string`)return`string:${JSON.stringify(e)}`;if(t===`undefined`)return`undefined`;if(Array.isArray(e))return`array:[${e.map(kf).join(`,`)}]`;if(typeof e==`object`)return`object:{${Object.entries(e).map(([e,t])=>[e,t]).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${kf(t)}`).join(`,`)}}`;throw Error(`fate: Unable to serialize argument value of type '${t}'.`)},Af=(e,t={})=>{let n={};for(let[r,i]of Object.entries(e))t.ignoreKeys&&t.ignoreKeys.has(r)||(n[r]=i);return kf(n)},jf=e=>{if(!e)return;let t={};for(let[n,r]of Object.entries(e))Of.has(n)||(t[n]=r);return Object.keys(t).length>0?t:void 0},Mf=(e,t)=>{for(let[n,r]of Object.entries(t)){if(Tf(r)){let t=e[n];Tf(t)?Mf(t,r):e[n]={...r};continue}e[n]=r}},Nf=e=>{if(!e||e.args.size===0)return;let t={};for(let[n,r]of e.args.entries()){if(n===``){Mf(t,r.value);continue}let e=n.split(`.`),i=t;e.forEach((t,n)=>{if(n===e.length-1){let e=i[t];Tf(e)?Mf(e,r.value):i[t]={...r.value};return}let a=i[t];if(Tf(a)){i=a;return}let o={};i[t]=o,i=o})}return t},Pf=e=>!!(e&&Object.keys(e).length>0),Ff=(e,t)=>{if(!Pf(e)&&!Pf(t))return;let n=Pf(e)?{...e}:{};return Pf(t)&&Mf(n,t),n},If=(e,t)=>{if(!e)return;if(t===``)return e;let n=t.split(`.`),r=e;for(let e of n)if(!Tf(r)||(r=r[e],r===void 0))return;return Tf(r)?r:void 0},Lf=(e,t)=>{for(let[n,r]of e.args.entries()){let i=n===``?t:If(t,n);if(!i)continue;let a=Df(i,n),o=Af(a,{ignoreKeys:r.ignoreKeys});e.args.set(n,{hash:o,ignoreKeys:r.ignoreKeys,value:a})}},Rf=(e,t)=>{let n=t.split(`.`),r={},i=r;return n.forEach((t,r)=>{if(r===n.length-1){i[t]=e;return}let a={};i[t]=a,i=a}),r},zf=Symbol(`__fate__view`),Bf=Symbol(`__fate__views`),Vf=Symbol(`__fate__node-ref`),Hf=Symbol(`__fate__connection`),Uf=Symbol(`__fate__defer`),Wf=Symbol(`__fate__deferred`),Gf=`__fate-view__`;function Kf(e){return`${Gf}${e}`}function qf(e){return e.startsWith(Gf)}function Jf(e){return`id`in e}function Yf(e){return`ids`in e}function Xf(e){return`view`in e&&!(`id`in e)&&!(`ids`in e)}var Zf=`__fate__root`;function Qf(e){let t={};return Object.defineProperty(t,Vf,{configurable:!1,enumerable:!1,value:e,writable:!1}),Object.freeze(t)}function $f(e){return!e||typeof e!=`object`?!1:Vf in e}function ep(e){return e[Vf]}var tp=64,np={maxCollectionLength:1e5,maxNodes:25e4,maxStringLength:1e6},rp=e=>{let t={...np,...e};for(let[e,n]of Object.entries(t))if(!Number.isInteger(n)||n<1)throw Error(`fate: Hydration limit '${e}' must be a positive integer.`);return t},ip=(e,t)=>Error(`fate: Cannot serialize hydration value at '${e}': ${t}`),ap=e=>{let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},op=e=>{for(let t=0;t<e.length;t+=1)if(!Object.hasOwn(e,t))return!1;return!0},sp=e=>Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`&&typeof e.toISOString==`function`,cp=(e,t)=>{let n=rp(t),r=new Set,i=0,a=(e,t,o)=>{if(i+=1,i>n.maxNodes)throw ip(t,`Maximum node count of ${String(n.maxNodes)} exceeded.`);if(o>tp)throw ip(t,`Maximum depth of ${String(tp)} exceeded.`);if(e===null)return[`null`];let s=typeof e;if(typeof e==`string`||typeof e==`boolean`){if(typeof e==`string`&&e.length>n.maxStringLength)throw ip(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[typeof e,e]}if(s===`number`)return Number.isNaN(e)?[`number`,`NaN`]:e===1/0?[`number`,`Infinity`]:e===-1/0?[`number`,`-Infinity`]:Object.is(e,-0)?[`number`,`-0`]:[`number`,e];if(s===`undefined`)return[`undefined`];if(s===`bigint`){let r=String(e);if(r.length>n.maxStringLength)throw ip(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`bigint`,r]}if(s===`function`||s===`symbol`||!e||typeof e!=`object`)throw ip(t,`Received unsupported '${s}' value.`);if($f(e)){let r=ep(e);if(r.length>n.maxStringLength)throw ip(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`ref`,r]}if(sp(e)){if(Number.isNaN(e.getTime()))throw ip(t,`Received an invalid Date.`);return[`date`,e.toISOString()]}if(r.has(e))throw ip(t,`Circular references are not supported.`);r.add(e);try{if(Array.isArray(e)){if(!op(e))throw ip(t,`Sparse arrays are not supported.`);if(e.length>n.maxCollectionLength)throw ip(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`array`,e.map((e,n)=>a(e,`${t}[${String(n)}]`,o+1))]}if(!ap(e))throw ip(t,`Received unsupported '${e.constructor?.name??`object`}' value.`);if(Object.getOwnPropertySymbols(e).length>0)throw ip(t,`Received an unsupported symbol-keyed property.`);let r=Object.entries(e);if(r.length>n.maxCollectionLength)throw ip(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`object`,r.map(([e,r])=>{if(e.length>n.maxStringLength)throw ip(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[e,a(r,`${t}.${e}`,o+1)]})]}finally{r.delete(e)}};return a(e,`data`,0)},lp=e=>Error(`fate: Invalid hydration payload at '${e}'.`),up={array:2,bigint:2,boolean:2,date:2,null:1,number:2,object:2,ref:2,string:2,undefined:1},dp=(e,t)=>{let n=rp(t),r=0,i=(e,t,a)=>{if(r+=1,r>n.maxNodes||a>tp||!Array.isArray(e)||typeof e[0]!=`string`)throw lp(t);let[o,s]=e;if(e.length!==up[o])throw lp(t);switch(o){case`null`:return null;case`undefined`:return;case`string`:if(typeof s!=`string`||s.length>n.maxStringLength)throw lp(t);return s;case`boolean`:if(typeof s!=`boolean`)throw lp(t);return s;case`number`:if(typeof s==`number`){if(!Number.isFinite(s)||Object.is(s,-0))throw lp(t);return s}if(s===`NaN`)return NaN;if(s===`Infinity`)return 1/0;if(s===`-Infinity`)return-1/0;if(s===`-0`)return-0;throw lp(t);case`bigint`:if(typeof s!=`string`||s.length>n.maxStringLength)throw lp(t);try{let e=BigInt(s);if(String(e)!==s)throw lp(t);return e}catch{throw lp(t)}case`date`:{if(typeof s!=`string`||s.length>n.maxStringLength)throw lp(t);let e=new Date(s);if(Number.isNaN(e.getTime())||e.toISOString()!==s)throw lp(t);return e}case`ref`:if(typeof s!=`string`||s.length>n.maxStringLength)throw lp(t);return Qf(s);case`array`:if(!Array.isArray(s)||!op(s)||s.length>n.maxCollectionLength)throw lp(t);return s.map((e,n)=>i(e,`${t}[${String(n)}]`,a+1));case`object`:{if(!Array.isArray(s)||s.length>n.maxCollectionLength)throw lp(t);let e=Object.create(null);for(let r of s){if(!Array.isArray(r)||r.length!==2||typeof r[0]!=`string`||r[0].length>n.maxStringLength||r[0]in e)throw lp(t);e[r[0]]=i(r[1],`${t}.${r[0]}`,a+1)}return e}default:throw lp(t)}};return i(e,`data`,0)},fp=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||$f(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},pp=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),mp=e=>new Set(e).size!==e.length,hp=e=>pp(e)&&!mp(e),gp=(e,t)=>Object.keys(e).every(e=>t.has(e)),_p=new Set([`backwardPageLimit`,`cursors`,`forwardPageLimit`,`ids`,`liveAfterIds`,`liveBeforeIds`,`pagination`,`pendingAfterIds`,`pendingBeforeIds`]),vp=new Set([`hasNext`,`hasPrevious`,`nextCursor`,`previousCursor`]),yp=new Set([`rootLists`,`rootRequests`,`store`]),bp=new Set([`coverage`,`lists`,`records`]),xp=e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`,Sp=e=>e===void 0||typeof e==`number`&&Number.isInteger(e)&&e>=0,Cp=e=>e===void 0||fp(e)&&gp(e,vp)&&typeof e.hasNext==`boolean`&&typeof e.hasPrevious==`boolean`&&(e.nextCursor===void 0||typeof e.nextCursor==`string`)&&(e.previousCursor===void 0||typeof e.previousCursor==`string`),wp=e=>!fp(e)||!gp(e,_p)||!pp(e.ids)||mp(e.ids)||e.cursors!==void 0&&(!Array.isArray(e.cursors)||e.cursors.length!==e.ids.length)?!1:(e.cursors===void 0||Array.isArray(e.cursors)&&e.cursors.every(e=>e===void 0||typeof e==`string`))&&(e.liveAfterIds===void 0||hp(e.liveAfterIds))&&(e.liveBeforeIds===void 0||hp(e.liveBeforeIds))&&Sp(e.backwardPageLimit)&&Sp(e.forwardPageLimit)&&Cp(e.pagination)&&(e.pendingAfterIds===void 0||hp(e.pendingAfterIds))&&(e.pendingBeforeIds===void 0||hp(e.pendingBeforeIds)),Tp=e=>e.length>0&&e.split(`.`).every(e=>e.length>0),Ep=e=>hp(e)&&e.every(Tp),Dp=e=>mp(e.map(e=>e[0])),Op=(e,t)=>{let n=dp(e,t);if(!fp(n)||!gp(n,yp)||!Array.isArray(n.rootLists)||!Array.isArray(n.rootRequests)||!fp(n.store)||!gp(n.store,bp)||!Array.isArray(n.store.coverage)||!Array.isArray(n.store.lists)||!Array.isArray(n.store.records)||n.rootLists.some(e=>!xp(e)||!pp(e[1]))||n.rootRequests.some(e=>!xp(e)||e[1]!==null&&typeof e[1]!=`string`)||n.store.coverage.some(e=>!xp(e)||!Ep(e[1]))||n.store.lists.some(e=>!xp(e)||!wp(e[1]))||n.store.records.some(e=>!xp(e)||!fp(e[1]))||Dp(n.rootLists)||Dp(n.rootRequests)||Dp(n.store.coverage)||Dp(n.store.lists)||Dp(n.store.records)||n.rootLists.some(([,e])=>mp(e)))throw lp(`data`);return n},kp=class extends Error{constructor(e,t,n={}){super(t),this.name=`FateRequestError`,this.code=e,this.issues=n.issues,this.status=n.status??Ap(e)}},Ap=e=>{switch(e){case`BAD_REQUEST`:case`VALIDATION_ERROR`:return 400;case`UNAUTHORIZED`:return 401;case`FORBIDDEN`:return 403;case`NOT_FOUND`:return 404;case`INTERNAL_ERROR`:return 500}},jp=e=>e===400?`BAD_REQUEST`:e===401?`UNAUTHORIZED`:e===403?`FORBIDDEN`:e===404?`NOT_FOUND`:`INTERNAL_ERROR`;function Mp(e){return Object.freeze({[Uf]:e})}var Np=e=>typeof e==`object`&&!!e&&Uf in e,Pp=e=>e[Uf],Fp=e=>Object.freeze({[Wf]:e}),Ip=e=>typeof e==`object`&&!!e&&Wf in e,Lp=e=>e[Wf],Rp={PARSE_ERROR:400,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_SUPPORTED:405,TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,UNSUPPORTED_MEDIA_TYPE:415,UNPROCESSABLE_CONTENT:422,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504};function zp(e){return Rp[e]??500}function Bp(e){return zp(e.code)}var Vp=(e,t)=>{let n=[];for(let[r,i]of Object.entries(e))qf(r)&&(!t||t[Bf]?.has(r))&&n.push(i);return n},Hp=e=>{let t=new Set;for(let n of Object.keys(e))qf(n)&&t.add(n);return t},Up=e=>Hp(e),Wp=0,Gp={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1},Kp=typeof Gp?.DEV==`boolean`&&Gp.DEV,qp=null,Jp=()=>{if(Kp)try{qp??=new URL({}.url).pathname;let e=Error().stack?.split(`
60
60
  `);if(e)for(let t=1;t<e.length;t++){let n=e[t].trim().match(/\(?([^()]+):(\d+):(\d+)\)?$/);if(!n)continue;let[,r,i,a]=n;if(!r.includes(qp)){let e=r.startsWith(`at `)?r.slice(3):r;return`${/^[A-Za-z][\d+.A-Za-z-]*:/.test(e)?new URL(e).pathname:e}:${i}:${a}`}}}catch{}return String(Wp++)};function Yp(){let e=Jp();return t=>{let n=Object.freeze({select:t,[zf]:!0}),r=Object.defineProperty({},Kf(e),{configurable:!1,enumerable:!0,value:n,writable:!1});return Object.freeze(r)}}var Xp=(e,t)=>`${e}:${String(t)}`;function Zp(e){let t=e.indexOf(`:`);return t<0?{id:e,type:``}:{id:e.slice(t+1),type:e.slice(0,t)}}function Qp(e,t){Object.defineProperty(e,Bf,{configurable:!1,enumerable:!1,value:t,writable:!1})}var $p=e=>{let t=new Set(Hp(e)),n=Vp(e,null);for(let e of n)for(let n of Up(e.select))t.add(n);return t};function em(e,t,n){let r={__typename:e,id:t};return Qp(r,n),Object.freeze(r)}var tm=e=>Tf(e.items)&&`node`in e.items,nm=(e,t)=>{let n=new Map,r=new Map,i=new Set,a=(e,t,r)=>{let i=Af(t,{ignoreKeys:r});n.set(e,{hash:i,ignoreKeys:r,value:t})},o=(e,n,s=`default`)=>{if(n===null&&s!==`connection`&&tm(e)){if(e.live&&Tf(e.live)&&r.set(``,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&Tf(e.args)){let t=Df(e.args,`args`),n=Tf(e.items)&&Tf(e.items.node)?Of:void 0;a(``,t,n)}let{args:t,live:i,...s}=e;o(s,n,`connection`);return}for(let[c,l]of Object.entries(e)){let e=typeof l,u=n?`${n}.${c}`:c;if(s===`connection`){if(c===`args`||c===`live`||c===`pagination`)continue;if(c===`items`&&Tf(l)){Tf(l.node)&&o(l.node,n);continue}}if(e===`boolean`){l&&i.add(u);continue}if(!Np(l)){if(qf(c)){(!t||t[Bf]&&t[Bf].has(c))&&o(l.select,n);continue}if(Tf(l)){let e=l;if(tm(e)){if(e.live&&Tf(e.live)&&r.set(u,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&Tf(e.args)){let t=Df(e.args,u),n=Tf(e.items)&&Tf(e.items.node)?Of:void 0;a(u,t,n)}let{args:t,live:n,...i}=e;o(i,u,`connection`);continue}let t=e.args&&Tf(e.args),n=e;if(t){let t=Df(e.args,u),r=Tf(e.items)&&Tf(e.items?.node)?Of:void 0;a(u,t,r);let{args:i,...o}=e;n=o}Object.keys(n).length>0?o(n,u):t&&i.add(u)}}}},s=Vp(e,t);if(s.length===0&&Tf(e))o(e,null);else for(let e of s)o(e.select,null);return{args:n,live:r,paths:i}},rm=(e,t)=>nm({[e]:t},null),im=e=>{let t=new Set,n=(e,r)=>{if(!e||typeof e!=`object`){r&&t.add(r);return}if(Array.isArray(e)){r&&t.add(r);for(let t of e)n(t,r);return}for(let[i,a]of Object.entries(e)){let e=r?`${r}.${i}`:i;t.add(e),n(a,e)}};return n(e,null),t},am=(e,t)=>{try{return e(t)}catch{return null}},om=new Set;function sm(e,t,n,r=!1){let{args:i,delete:a,entity:o,input:s,insert:c,key:l,optimistic:u,plan:d}=t,f=am(n.getId,s),p=u?f==null?u:{id:f,...u}:void 0,m=p?am(n.getId,p):null,h=f==null?m==null?null:Xp(o,m):Xp(o,f),g=p?im(p):void 0,_=new Set([...d?.paths??[],...g??[]]);if(a&&f==null)throw Error(`fate: Mutation '${l}' requires an 'id' to delete.`);let v=e.store.optimisticUpdate(()=>{p&&h&&e.write(o,p,g??om,d,c),a&&f!=null&&e.deleteRecord(o,f)},r);return{commit:t=>v(()=>{if(t&&typeof t==`object`&&(!a||d)){e.write(o,t,im(t),d,c);let r=am(n.getId,t);h&&r!=null&&e.resolveOptimisticEntity(h,Xp(o,r)),m!=null&&r!=null&&m!==r&&e.deleteRecord(o,m)}a&&f!=null&&e.deleteRecord(o,f)}),entityId:h,execute:t=>e.executeMutation(l,s,_,{args:i,identity:t,plan:d}),rollback:()=>v()}}function cm(e,t){let n=e.getTypeConfig(t.entity);return async({args:r,delete:i,input:a,insert:o=`after`,optimistic:s,persist:c,view:l})=>{let u={args:r,delete:i,entity:t.entity,input:a,insert:o,key:t.key,optimistic:s,plan:l?nm(l,null):void 0};if(e.persistence&&c!==!1)try{return{error:void 0,result:await e.withPersistenceLifecycle(()=>e.persistMutation(u))}}catch(e){return lm(t.key,e)}e.persistence&&await e.withPersistenceLifecycle(()=>e.persistence.ready),e.assertPersistenceActive();let d=sm(e,u,n),f=e.trackPendingRequest(async()=>{try{let t=await d.execute();return e.assertPersistenceActive(),d.commit(t),{error:void 0,result:t}}catch(e){return d.rollback(),lm(t.key,e)}});return d.entityId&&e.registerPendingOptimisticMutation(d.entityId,f),f}}var lm=(e,t)=>{if(t instanceof Error){let e=um(t);if((e?dm(e):`boundary`)===`boundary`)throw t;return{error:t,result:void 0}}throw Error(`fate: Mutation '${e}' failed.`,{cause:t})},um=e=>{if(e instanceof kp)return e.status;let{data:t}=e;if(t&&typeof t==`object`)return Bp(t)},dm=e=>{switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return`callSite`;default:return`boundary`}};function fm(){return{all:!1,children:new Map}}function pm(e){let t={all:e.all,children:new Map};for(let[n,r]of e.children)t.children.set(n,pm(r));return t}function mm(e,t){if(e.all)return;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){let t=n[e],i=r.children.get(t);i||(i=fm(),r.children.set(t,i)),r=i}r.all=!0,r.children.clear()}function hm(e,t){if(e.all||t.all){e.all=!0,e.children.clear();return}for(let[n,r]of t.children){let t=e.children.get(n);t?hm(t,r):e.children.set(n,pm(r))}}function gm(e){let t=fm();for(let n of e)mm(t,n);return t}function _m(e){let t=[],n=(e,r)=>{if(e.all){r&&t.push(r);return}for(let[t,i]of e.children)n(i,r?`${r}.${t}`:t)};return n(e,null),t}function vm(e,t){if(e.all)return!0;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){if(!r)return!1;if(r.all)return!0;r=r.children.get(n[e])}return!!r&&(r.all||r.children.size===0)}function ym(e,t){let n=new Set;for(let r of e)vm(t,r)||n.add(r);return n}function bm(e,t){if(e.all||t.all)return!0;for(let[n,r]of e.children){let e=t.children.get(n);if(e&&(r.all||e.all||bm(r,e)))return!0}return!1}var xm=` __fate__ `,Sm=e=>{try{return decodeURIComponent(e)}catch{return e}},Cm=e=>encodeURIComponent(e),wm=(e,t,n=`default`)=>`${Cm(e)}${xm}${Cm(t)}${xm}${Cm(n)}`,Tm=(e,t)=>JSON.stringify([e,t]),Em=e=>{let t=e.split(xm);if(t.length!==3)return null;let[n,r]=t;return{field:Sm(r),ownerId:Sm(n)}},Dm=e=>{if(typeof e!=`object`||!e||Array.isArray(e)||$f(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Om=e=>typeof e==`object`&&!!e&&Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`,km=(e,t)=>{if(!Dm(e)||!Dm(t))return t;let n=Object.create(null);for(let[t,r]of Object.entries(e))Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0});for(let[e,r]of Object.entries(t))Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:Object.hasOwn(n,e)?km(n[e],r):r,writable:!0});return n},Am=(e,t)=>{if(Object.is(e,t))return!0;if($f(e)||$f(t))return $f(e)&&$f(t)&&ep(e)===ep(t);if(Om(e)||Om(t))return Om(e)&&Om(t)&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>Am(e,t[n]));if(!Dm(e)||!Dm(t))return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&Am(e[n],t[n]))},jm=(e,t)=>{if(e===t||e?.all&&t?.all)return!0;if(!e||!t||e.all!==t.all||e.children.size!==t.children.size)return!1;for(let[n,r]of e.children)if(!jm(r,t.children.get(n)))return!1;return!0},Mm=()=>{},Nm=e=>$f(e)||Array.isArray(e)&&e.some($f),Pm=(e,t)=>Object.is(e,t)||$f(e)&&$f(t)&&ep(e)===ep(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>Pm(e,t[n])),Fm=class{constructor(e,t){this.onRebase=e,this.onChange=t,this.coverage=new Map,this.listKeysByOwnerField=new Map,this.listKeysByReferencedEntity=new Map,this.lists=new Map,this.recordReferenceFields=new Map,this.recordReferencesByTarget=new Map,this.records=new Map,this.subscriptions=new Map,this.listSubscriptions=new Map,this.optimisticLayers=new Set,this.optimisticBase={lists:new Map,records:new Map}}get hasOptimisticUpdates(){return this.optimisticLayers.size>0}get isRebasing(){return this.rebase!==void 0}update(e){if(this.rebase||this.optimisticLayers.size===0)return e();let t={lists:new Map,records:new Map};this.rebase=t;try{for(let[e,t]of this.optimisticBase.records)this.restore(e,t);for(let[e,t]of this.optimisticBase.lists)this.restoreList(e,t);return this.optimisticBase.records.clear(),this.optimisticBase.lists.clear(),e()}finally{try{for(let e of this.optimisticLayers)e.writes.clear(),this.recordingLayer=e,e.apply()}finally{this.recordingLayer=void 0;let e=this.getRebaseChanges(t),n=new Set;for(let[r,i]of t.lists)if(Am(i,this.lists.get(r)))i&&this.lists.set(r,i);else{n.add(r);let t=Em(r);t&&(e.has(t.ownerId)?e.get(t.ownerId)?.add(t.field):e.set(t.ownerId,new Set([t.field])))}this.rebase=void 0,this.onRebase?.(new Set(e.keys()));for(let[t,n]of e)this.notify(t,n,!1);for(let e of n)this.notifyListSubscribers(e,!1)}}}getRebaseChanges(e){let t=new Map;for(let[n,r]of e.records){let e=this.records.get(n),i=this.coverage.get(n);if(!!r.record!=!!e||r.mask?.all!==i?.all){t.set(n,void 0);continue}let a=new Set;for(let t of new Set([...Object.keys(r.record??{}),...Object.keys(e??{})]))(Object.hasOwn(r.record??{},t)!==Object.hasOwn(e??{},t)||!Pm(r.record?.[t],e?.[t]))&&a.add(t);if(!jm(r.mask,i)){for(let e of r.mask?_m(r.mask):[])(!i||!vm(i,e))&&a.add(e);for(let e of i?_m(i):[])(!r.mask||!vm(r.mask,e))&&a.add(e)}a.size>0?t.set(n,a):r.record&&this.records.set(n,r.record)}return t}optimisticUpdate(e,t=!1){let n={apply:e,durable:t,writes:new Map},r=e=>{this.optimisticLayers.has(n)&&!n.settled&&this.update(()=>{let t=e?this.getPendingOverlap(n,n.writes):new Map;t.size>0?(n.settled=!0,n.apply=()=>{for(let[e,{partial:r,paths:i}]of this.getPendingOverlap(n,t))this.merge(e,r,i)}):this.optimisticLayers.delete(n);for(let e of this.optimisticLayers){if(!e.settled)break;this.optimisticLayers.delete(e)}e?.()})};this.optimisticLayers.add(n);try{this.update(()=>{})}catch(e){throw r(),e}return r}getPendingOverlap(e,t){let n=[];for(let t of this.optimisticLayers){if(t===e)break;t.settled||n.push(t)}let r=new Map;for(let[e,i]of t){let t=Object.fromEntries(Object.entries(i.partial).filter(([t,r])=>!Nm(r)&&n.some(({writes:n})=>{let r=n.get(e)?.partial;return r&&Object.hasOwn(r,t)&&!Nm(r[t])})));Object.keys(t).length&&r.set(e,{partial:t,paths:new Set([...i.paths].filter(e=>Object.hasOwn(t,e.split(`.`)[0])))})}return r}captureRecord(e){if(this.rebase){for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])if(t&&!t.records.has(e)){let n=this.coverage.get(e);t.records.set(e,{mask:n?pm(n):void 0,record:this.records.get(e)})}}}captureList(e){if(this.rebase)for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])t&&!t.lists.has(e)&&t.lists.set(e,this.lists.get(e))}get hasTransientOptimisticUpdates(){return[...this.optimisticLayers].some(e=>!e.durable)}getOptimisticRoots(){return{baseRecords:[...this.optimisticBase.records.values()].flatMap(({record:e})=>e?[e]:[]),lists:[...this.optimisticBase.lists.keys()],records:[...this.optimisticBase.records.keys(),...[...this.optimisticBase.lists.values()].flatMap(e=>e?[...e.ids,...e.pendingBeforeIds??[],...e.pendingAfterIds??[],...e.liveBeforeIds??[],...e.liveAfterIds??[]]:[])]}}getPersistenceOwners(e){return{lists:[...this.listKeysByReferencedEntity.get(e)??[]],records:[...this.recordReferencesByTarget.get(e)?.keys()??[]]}}readConfirmed(e){let t=this.optimisticBase.records.get(e),n=t?t.record:this.records.get(e),r=t?t.mask:this.coverage.get(e);return n?{paths:r?_m(r):[],record:n}:void 0}readConfirmedList(e){return this.optimisticBase.lists.has(e)?this.optimisticBase.lists.get(e):this.lists.get(e)}dehydrateConfirmed(){let e=new Map(this.records),t=new Map(this.coverage),n=new Map(this.lists);for(let[n,r]of this.optimisticBase.records)r.record===void 0?e.delete(n):e.set(n,r.record),r.mask===void 0?t.delete(n):t.set(n,r.mask);for(let[e,t]of this.optimisticBase.lists)t===void 0?n.delete(e):n.set(e,t);return{coverage:[...t].map(([e,t])=>[e,_m(t)]),lists:[...n],records:[...e]}}dehydrate(){return{coverage:[...this.coverage].map(([e,t])=>[e,_m(t)]),lists:[...this.lists],records:[...this.records]}}hydrate(e,t,n={}){let r=this.coverage,i=this.lists,a=this.records,o=t===`replace`?new Map:new Map([...r].map(([e,t])=>[e,pm(t)])),s=t===`replace`?new Map:new Map(i),c=t===`replace`?new Map:new Map(a);for(let[n,r]of e.records){let e=c.get(n),i=e&&t===`preserve-existing`?km(r,e):r;c.set(n,e&&Am(e,i)?e:i)}for(let[n,r]of e.coverage){let e=gm(r),i=o.get(n);i&&t===`preserve-existing`?hm(i,e):o.set(n,e)}for(let[n,r]of e.lists){let e=s.get(n);(t===`replace`||!e)&&s.set(n,e&&Am(e,r)?e:r)}this.coverage=o,this.lists=s,this.records=c,this.rebuildIndexes();let l=new Set,u=new Set;for(let e of new Set([...a.keys(),...c.keys()]))(!Am(a.get(e),c.get(e))||!jm(r.get(e),o.get(e)))&&(l.add(e),this.recordReferencesChanged(a.get(e),c.get(e))&&u.add(e));let d=new Set;for(let e of new Set([...i.keys(),...s.keys()]))Am(i.get(e),s.get(e))||d.add(e);let f=()=>{for(let e of l)this.notify(e,void 0,!0,u.has(e));for(let e of d)this.notifyListSubscribers(e)};return n.deferNotifications||f(),f}rebuildIndexes(){this.listKeysByOwnerField.clear(),this.listKeysByReferencedEntity.clear(),this.recordReferenceFields.clear(),this.recordReferencesByTarget.clear();for(let[e,t]of this.records)this.addRecordReferenceIndexes(e,t);for(let[e,t]of this.lists)this.addListIndexes(e,t)}read(e){return this.records.get(e)}merge(e,t,n){return this.update(()=>{let r=this.mergeInternal(e,t,n);r&&this.notify(e,r.paths,!0,r.referencesChanged)})}mergeInternal(e,t,n){this.captureRecord(e);let r=this.recordingLayer?new Set(n):n;if(this.recordingLayer){let n=this.recordingLayer.writes.get(e)??{partial:{},paths:new Set};Object.assign(n.partial,t);for(let e of r)n.paths.add(e);this.recordingLayer.writes.set(e,n)}let i=this.records.get(e),a=new Set,o=this.coverage.get(e);if(o||(o=fm(),this.coverage.set(e,o)),hm(o,gm(r)),i){let n=!1;for(let[e,r]of Object.entries(t))i[e]!==r&&(n=!0,a.add(e));if(!n)return null;let r={...i,...t},o=this.recordReferencesChanged(i,r,a);return this.records.set(e,r),this.updateRecordReferenceIndexes(e,i,r,a),{paths:a,referencesChanged:o}}{let n={...t};return this.records.set(e,n),this.updateRecordReferenceIndexes(e,void 0,n,Object.keys(n)),{paths:a,referencesChanged:this.recordReferencesChanged(void 0,n)}}}deleteRecord(e){return this.update(()=>{this.captureRecord(e);let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),this.recordingLayer||this.onChange?.({key:e,kind:`record`,referencesChanged:!0})})}missingForSelection(e,t){let n=new Set(t);if(!this.records.has(e))return n;let r=this.coverage.get(e);return r?ym(n,r):n}subscribe(e,t,n){let r=null,i=Mm;typeof t==`function`?i=t:n&&(r=t?gm(t):null,i=n);let a=this.subscriptions.get(e);a||(a=new Set,this.subscriptions.set(e,a));let o={fn:i,mask:r};return a.add(o),()=>{let t=this.subscriptions.get(e);t&&(t.delete(o),t.size===0&&this.subscriptions.delete(e))}}notify(e,t,n=!0,r=!1){if(n&&!this.recordingLayer&&this.onChange?.({key:e,kind:`record`,paths:t,referencesChanged:r}),this.rebase)return;let i=this.subscriptions.get(e);if(!i)return;let a=t?[...t]:[],o=a.length>0?gm(a):null;for(let{fn:e,mask:t}of i)if(!(t&&o&&!bm(o,t)))try{e()}catch{}}notifyListSubscribers(e,t=!0,n){if(t&&!this.recordingLayer&&this.onChange?.({key:e,kind:`list`,previousList:n}),this.rebase)return;let r=this.listSubscriptions.get(e);if(r)for(let e of r)try{e()}catch{}}getList(e){return this.lists.get(e)?.ids}getListState(e){return this.lists.get(e)}getListsForField(e,t){let n=[],r=this.listKeysByOwnerField.get(Tm(e,t));if(!r)return n;for(let e of r){let t=this.lists.get(e);t&&n.push([e,t])}return n}setList(e,t){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.set(e,t),this.addListIndexes(e,t),this.notifyListSubscribers(e,!0,n)})}replaceListEntityId(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let r of n){let n=this.lists.get(r);if(!n)continue;let i=!1,a=n.ids,o=n.cursors;if(n.ids.includes(e)){let r=[],s=n.cursors?[]:void 0,c=new Set;n.ids.forEach((i,a)=>{let o=i===e?t:i;c.has(o)||(c.add(o),r.push(o),s&&s.push(n.cursors?.[a]))}),i=!0,a=r,o=s}let s=n=>{if(!n||!n.includes(e))return;let r=new Set,a=[];for(let i of n){let n=i===e?t:i;r.has(n)||(r.add(n),a.push(n))}return i=!0,a},c=s(n.pendingBeforeIds)??n.pendingBeforeIds,l=s(n.pendingAfterIds)??n.pendingAfterIds,u=s(n.liveBeforeIds)??n.liveBeforeIds,d=s(n.liveAfterIds)??n.liveAfterIds;if(!i)continue;let f=new Set(a);this.setList(r,{backwardPageLimit:n.backwardPageLimit,cursors:o,forwardPageLimit:n.forwardPageLimit,ids:a,liveAfterIds:d?.filter(e=>!f.has(e)),liveBeforeIds:u?.filter(e=>!f.has(e)),pagination:n.pagination,pendingAfterIds:l?.filter(e=>!f.has(e)),pendingBeforeIds:c?.filter(e=>!f.has(e))})}})}restoreList(e,t){return this.update(()=>{t==null?this.deleteList(e):this.setList(e,t)})}collectGarbage(e,t,n={}){let r=new Set,i=new Set;for(let t of this.records.keys())e.has(t)||r.add(t);for(let e of this.lists.keys())t.has(e)||i.add(e);for(let e of r){let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),n.onRecordDeleted?.(e)}for(let e of i)this.deleteList(e,!0);return{lists:i,records:r}}deleteList(e,t=!1){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.delete(e),this.notifyListSubscribers(e,!t,n)})}subscribeList(e,t){let n=this.listSubscriptions.get(e);return n||(n=new Set,this.listSubscriptions.set(e,n)),n.add(t),()=>{let n=this.listSubscriptions.get(e);n&&(n.delete(t),n.size===0&&this.listSubscriptions.delete(e))}}removeReferencesTo(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let t of n){let n=this.lists.get(t);if(!n)continue;let{ids:r}=n,i=!!n.liveAfterIds?.includes(e),a=!!n.liveBeforeIds?.includes(e),o=!!n.pendingAfterIds?.includes(e),s=!!n.pendingBeforeIds?.includes(e);if(!r.includes(e)&&!i&&!a&&!o&&!s)continue;let c=[],l=n.cursors?[]:void 0;for(let t=0;t<r.length;t++){let i=r[t];i!==e&&(c.push(i),l&&l.push(n.cursors?.[t]))}this.setList(t,{backwardPageLimit:n.backwardPageLimit,cursors:l,forwardPageLimit:n.forwardPageLimit,ids:c,liveAfterIds:n.liveAfterIds?.filter(t=>t!==e),liveBeforeIds:n.liveBeforeIds?.filter(t=>t!==e),pagination:n.pagination,pendingAfterIds:n.pendingAfterIds?.filter(t=>t!==e),pendingBeforeIds:n.pendingBeforeIds?.filter(t=>t!==e)})}let r=new Map,i=[...this.recordReferencesByTarget.get(e)?.entries()??[]];for(let[n,a]of i){let i=this.records.get(n);if(!i)continue;let o=!1,s={},c=new Set;for(let t of a){let n=i[t];if(Array.isArray(n)){let r=n.filter(t=>!($f(t)&&ep(t)===e));r.length!==n.length&&(o=!0,c.add(t),s[t]=r)}else $f(n)&&ep(n)===e&&(o=!0,c.add(t),s[t]=null)}o&&(t.invalidate(n),this.mergeInternal(n,s,c),r.set(n,c))}for(let[e,t]of r)this.notify(e,t,!0,!0)})}restore(e,t){return this.update(()=>{this.captureRecord(e);let n=this.records.get(e);n&&this.removeRecordReferenceIndexes(e,n),t.record===void 0?this.records.delete(e):(this.records.set(e,t.record),this.addRecordReferenceIndexes(e,t.record)),t.mask===void 0?this.coverage.delete(e):this.coverage.set(e,t.mask),this.notify(e)})}addListIndexes(e,t){let n=Em(e);if(n){let t=Tm(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r||(r=new Set,this.listKeysByOwnerField.set(t,r)),r.add(e)}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t||(t=new Set,this.listKeysByReferencedEntity.set(n,t)),t.add(e)}}removeListIndexes(e,t){let n=Em(e);if(n){let t=Tm(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r&&(r.delete(e),r.size===0&&this.listKeysByOwnerField.delete(t))}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t&&(t.delete(e),t.size===0&&this.listKeysByReferencedEntity.delete(n))}}getListReferencedEntityIds(e){let t=new Set;for(let n of e.ids)t.add(n);for(let n of e.liveAfterIds??[])t.add(n);for(let n of e.liveBeforeIds??[])t.add(n);for(let n of e.pendingAfterIds??[])t.add(n);for(let n of e.pendingBeforeIds??[])t.add(n);return t}getRecordFieldReferences(e){if(Array.isArray(e)){let t=null;for(let n of e)$f(n)&&(t||=new Set,t.add(ep(n)));return t}return $f(e)?new Set([ep(e)]):null}recordReferencesChanged(e,t,n=new Set([...Object.keys(e??{}),...Object.keys(t??{})])){for(let r of n){let n=this.getRecordFieldReferences(e?.[r]),i=this.getRecordFieldReferences(t?.[r]);if(n?.size!==i?.size)return!0;if(n){for(let e of n)if(!i?.has(e))return!0}}return!1}addRecordFieldReferenceIndex(e,t,n){let r=this.getRecordFieldReferences(n);if(!r||r.size===0)return;let i=this.recordReferenceFields.get(e);i||(i=new Map,this.recordReferenceFields.set(e,i)),i.set(t,r);for(let n of r){let r=this.recordReferencesByTarget.get(n);r||(r=new Map,this.recordReferencesByTarget.set(n,r));let i=r.get(e);i||(i=new Set,r.set(e,i)),i.add(t)}}removeRecordFieldReferenceIndex(e,t){let n=this.recordReferenceFields.get(e),r=n?.get(t);if(n&&r){for(let n of r){let r=this.recordReferencesByTarget.get(n),i=r?.get(e);r&&i&&(i.delete(t),i.size===0&&r.delete(e),r.size===0&&this.recordReferencesByTarget.delete(n))}n.delete(t),n.size===0&&this.recordReferenceFields.delete(e)}}addRecordReferenceIndexes(e,t){for(let[n,r]of Object.entries(t))this.addRecordFieldReferenceIndex(e,n,r)}removeRecordReferenceIndexes(e,t){for(let n of Object.keys(t))this.removeRecordFieldReferenceIndex(e,n)}updateRecordReferenceIndexes(e,t,n,r){for(let i of r)t&&this.removeRecordFieldReferenceIndex(e,i),this.addRecordFieldReferenceIndex(e,i,n[i])}},Im=e=>{if(!e)return[];let t=[];for(let n of e.pendingBeforeIds??[])t.push({id:n});e.ids.forEach((n,r)=>{t.push({cursor:e.cursors?.[r],id:n})});for(let n of e.pendingAfterIds??[])t.push({id:n});return t},Lm=e=>encodeURIComponent(String(e)),Rm=e=>{let t=jf(e);if(!t)return;let n=t.id;return typeof n==`string`||typeof n==`number`?{...t,id:String(n)}:t},zm=(e,t)=>`entity:${Lm(e)}:${Lm(t)}`,Bm=(e,t)=>`connection:${Lm(e)}:${Lm(Af(Rm(t)??{}))}`,Vm=e=>`connection:${Lm(e)}:*`,Hm=class{constructor(e=()=>!0){this.isEnabled=e,this.cache=new Map,this.rootDependencies=new Map,this.dependencyIndex=new Map}clear(){this.cache.clear(),this.rootDependencies.clear(),this.dependencyIndex.clear()}get(e,t,n){return this.isEnabled()?this.cache.get(e)?.get(t)?.get(n)??null:null}set(e,t,n,r,i){if(!this.isEnabled())return;let a=this.cache.get(e);a||(a=new WeakMap,this.cache.set(e,a));let o=a.get(t);o||(o=new WeakMap,a.set(t,o)),o.set(n,r);let s=this.rootDependencies.get(e);s||(s=new Set,this.rootDependencies.set(e,s));for(let t of i)if(!s.has(t)){s.add(t);let n=this.dependencyIndex.get(t);n||(n=new Set,this.dependencyIndex.set(t,n)),n.add(e)}}invalidate(e){this.isEnabled()&&this.invalidateDependents(e,new Set)}invalidateDependents(e,t){if(t.has(e))return;t.add(e);let n=this.dependencyIndex.get(e);if(n)for(let e of n)this.invalidateDependents(e,t);this.delete(e)}delete(e){let t=this.rootDependencies.get(e);if(t){for(let n of t){let t=this.dependencyIndex.get(n);t&&(t.delete(e),t.size===0&&this.dependencyIndex.delete(n))}this.rootDependencies.delete(e)}this.cache.delete(e)}},Um=class{constructor(e){this.releaseBufferSize=e,this.operations=new Map,this.releaseBuffer=[]}retain(e,t){let n=this.operations.get(e.key);n||(n={descriptor:e,refCount:0},this.operations.set(e.key,n)),n.refCount+=1,this.removeFromReleaseBuffer(e.key);let r=!1;return{dispose:()=>{r||(r=!0,this.release(e.key)&&t?.())}}}getDescriptors(){return[...this.operations.values()].map(e=>e.descriptor)}restore(e){for(let t of e.slice(-Math.max(1,this.releaseBufferSize)))this.operations.has(t.key)||(this.operations.set(t.key,{descriptor:t,refCount:0}),this.releaseBuffer.push(t.key))}release(e){let t=this.operations.get(e);if(!t||(--t.refCount,t.refCount>0))return!1;if(this.releaseBufferSize<=0)return this.operations.delete(e),!0;this.releaseBuffer.push(e);let n=!1;for(;this.releaseBuffer.length>this.releaseBufferSize;){let e=this.releaseBuffer.shift();if(!e)continue;let t=this.operations.get(e);t&&t.refCount<=0&&(this.operations.delete(e),n=!0)}return n}removeFromReleaseBuffer(e){let t=this.releaseBuffer.indexOf(e);t!==-1&&this.releaseBuffer.splice(t,1)}},Wm=e=>`${typeof e}:${String(e)}`,Gm=e=>{let t=new Set,n=new Set,r=e=>{if(e&&typeof e==`object`&&!n.has(e)){n.add(e);for(let[n,i]of Object.entries(e))qf(n)&&t.add(n),r(i)}};return r(e),t.size?[...t].sort().join(`,`):``},Km=(e,t,n)=>t?wm(`__root__`,e,n.args.get(``)?.hash??Af(t)):e,qm=(e,t,n)=>t?wm(`__root__`,e,n.args.get(``)?.hash??Af(jf(t)??{})):e,Jm=e=>!!(e&&(`after`in e||`before`in e||`cursor`in e)),Ym=e=>({direction:e?.before!==void 0||e?.last!==void 0?`backward`:`forward`,hasCursorArg:Jm(e)}),Xm=e=>{let t=[],n=[...e].sort((e,t)=>e.name.localeCompare(t.name));for(let e of n){if(e.kind===`node`){t.push(`node:${e.name}:${e.viewSignature}:${e.ids[0]}`);continue}if(e.kind===`nodes`){t.push(`node:${e.name}:${e.viewSignature}:${e.ids.map(Wm).join(`,`)}`);continue}if(e.kind===`query`){t.push(`query:${e.name}:${e.viewSignature}:${e.argsPayload?Af(e.argsPayload):``}`);continue}e.kind===`list`&&t.push(`list:${e.name}:${e.hasItems?`connection`:`entity`}:${e.viewSignature}:${e.argsPayload?Af(e.argsPayload):``}`)}return t.join(`$`)},Zm=(e,t)=>{let n=[];for(let[r,i]of Object.entries(e)){let e=t(r);if(Jf(i)){n.push({ids:[i.id],kind:`node`,name:r,plan:nm(i.view,null),refViewNames:new Set(Hp(i.view)),type:e,viewSignature:Gm(i.view)});continue}if(Yf(i)){n.push({ids:i.ids,kind:`nodes`,name:r,plan:nm(i.view,null),refViewNames:new Set(Hp(i.view)),type:e,viewSignature:Gm(i.view)});continue}if(Xf(i)){let{argsPayload:t,plan:a}=Qm(i.view,i.args);n.push({argsPayload:t,kind:`query`,name:r,plan:a,queryKey:Km(r,t,a),refViewNames:$p(i.view),type:e,viewSignature:Gm(i.view)});continue}let{argsPayload:a,plan:o}=Qm(i.list,i.args),s=i.list&&typeof i.list==`object`&&`items`in i.list,c=s&&i.list.items?i.list.items.node??i.list:i.list;n.push({argsPayload:a,hasItems:s,kind:`list`,listKey:qm(r,a,o),name:r,nodeRefViewNames:$p(c),plan:o,type:e,viewSignature:Gm(i.list)})}return{items:n,key:Xm(n)}},Qm=(e,t)=>{let n=nm(e,null),r=Ff(t,Nf(n));return r&&Lf(n,r),{argsPayload:r,plan:n}},$m,eh=class{static{$m=Symbol.toStringTag}constructor(e,t){this.descriptor=e,this.readValue=t,this[$m]=`Promise`,this.status=`pending`,this.execution=null}get value(){return this.readValue()}start(e){this.execution=e,this.reason=void 0,this.status=`pending`,e.then(()=>{this.execution===e&&(this.execution=null,this.status=`fulfilled`)},t=>{this.execution===e&&(this.execution=null,this.reason=t,this.status=`rejected`)})}then(e,t){switch(this.status){case`fulfilled`:return Promise.resolve().then(()=>this.readValue()).then(e??void 0,t??void 0);case`rejected`:return Promise.reject(this.reason).then(e??void 0,t??void 0);default:if(!this.execution)throw Error(`fate: Pending request is missing its execution.`);return this.execution.then(e??void 0,t??void 0)}}catch(e){return this.then(void 0,e??void 0)}finally(e){return this.then(async t=>(await e?.(),t),async t=>{throw await e?.(),t})}},th=e=>{if(!e||typeof e!=`object`||!(`id`in e))throw Error(`fate: Missing 'id' on entity record.`);let t=e.id,n=typeof t;if(n!==`string`&&n!==`number`)throw Error(`fate: Entity id must be a string or number, received '${n}'.`);return t},nh=new Set,rh=()=>void 0,ih=(e,t)=>e<t?-1:+(e>t),ah=(e,t)=>JSON.stringify({roots:Object.entries(e??{}).map(([e,t])=>[e,t.type]).sort(([e],[t])=>ih(e,t)),types:t.map(({fields:e,type:t})=>({fields:Object.entries(e??{}).map(([e,t])=>[e,t]).sort(([e],[t])=>ih(e,t)),type:t})).sort((e,t)=>ih(e.type,t.type))}),oh=(e,t)=>{if(!e||e.length===0)return;let n=new Set(t),r=e.filter(e=>!n.has(e));return r.length>0?r:void 0},sh=(e,t)=>e?.includes(t)?e.filter(e=>e!==t):e,ch=(e,t)=>e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),lh=(e,t)=>e===t||(!e||!t?!1:e.hasNext===t.hasNext&&e.hasPrevious===t.hasPrevious&&e.nextCursor===t.nextCursor&&e.previousCursor===t.previousCursor),uh=(e,t)=>!!e&&ch(e?.ids,t.ids)&&ch(e?.cursors,t.cursors)&&ch(e?.liveAfterIds,t.liveAfterIds)&&ch(e?.liveBeforeIds,t.liveBeforeIds)&&ch(e?.pendingAfterIds,t.pendingAfterIds)&&ch(e?.pendingBeforeIds,t.pendingBeforeIds)&&e?.backwardPageLimit===t.backwardPageLimit&&e?.forwardPageLimit===t.forwardPageLimit&&lh(e?.pagination,t.pagination),dh=(e,t,n={})=>{if(n.reuseCurrentArray!==!1&&Array.isArray(t)&&t.length===e.length){let n=!0;for(let r=0;r<e.length;r+=1){let i=t[r];if(!$f(i)||ep(i)!==e[r]){n=!1;break}}if(n)return t}let r=new Map;if(Array.isArray(t))for(let e of t)$f(e)&&r.set(ep(e),e);return e.map(e=>r.get(e)??Qf(e))},fh=(e,t)=>{let n=t===`forward`?e?.first??e?.last:e?.last??e?.first;return typeof n==`number`&&Number.isFinite(n)&&n>=0?n:null},ph=(e,t,n)=>{let r=fh(t.args,n);return r!=null&&e.ids.length>=r},mh=(e,t,n)=>{let r=fh(t,n),i=e.pagination;return n===`forward`?i?.hasPrevious?!1:r==null||e.ids.length>=r||e.forwardPageLimit!=null&&e.forwardPageLimit>=r||i?.hasNext===!1:i?.hasNext?!1:r==null||e.ids.length>=r||e.backwardPageLimit!=null&&e.backwardPageLimit>=r||i?.hasPrevious===!1},hh=e=>{let t=Ym(e);return{...t,pageLimit:fh(e,t.direction)}},gh=(e,t)=>{if(e.cursors&&e.cursors.length!==0)return t===`forward`?e.cursors.at(-1):e.cursors[0]},_h=(e,t)=>{let n={hasNext:!!e.pagination?.hasNext,hasPrevious:!!e.pagination?.hasPrevious,nextCursor:e.pagination?.nextCursor,previousCursor:e.pagination?.previousCursor},r=gh(e,t);return t===`forward`?(n.hasNext=!0,n.nextCursor=r??n.nextCursor):(n.hasPrevious=!0,n.previousCursor=r??n.previousCursor),{...e,pagination:n}},vh=(e,t,n)=>{let r=t.split(`.`),i=e;for(let e=0;e<r.length;e+=1){let t=r[e],a=e===r.length-1;if(t){if(a){i[t]=n;return}i[t]=i[t]??Object.create(null),i=i[t]}}},yh=e=>{let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t},bh=e=>{if(e.size===0)return new Map;let t=new Map;for(let n of e){let e=n.indexOf(`.`);if(e===-1)continue;let r=n.slice(0,e),i=n.slice(e+1),a=t.get(r);a||(a=new Set,t.set(r,a)),a.add(i)}return t},xh=class{constructor(e){this.parentLists=new Map,this.rootLists=new Map,this.pending=new Map,this.pendingDeferred=new Map,this.pendingOptimisticMutations=new Map,this.optimisticEntityResolutions=new Map,this.liveSubscriptions=new Map,this.liveConnectionInvalidations=new Map,this.stableRefs=new Map,this.requests=new Map,this.requestExecutionOptions=new WeakMap,this.rootRequests=new Map,this.stalledRequests=new Set,this.gcPending=!1,this.gcScheduled=!1,this.pendingNetworkRequests=0,this.store=new Fm(e=>{for(let t of e)this.viewDataCache.invalidate(t);this.runPendingGarbageCollection()},e=>this.persistenceRuntime?.changed(e)),this.viewDataCache=new Hm(()=>!this.store.isRebasing),this.liveConnectionInvalidationToken=0,this.persistenceDisposal=e.persistence?new AbortController:void 0,this.actions=Object.create(null),this.mutationMap=Object.create(null),e.persistence&&(this.mutationEntities=new Map(Object.entries(e.mutations??{}).map(([e,t])=>[e,t.entity]))),this.mutations=Object.create(null),this.onLiveError=e.onLiveError,this.operationLifetime=new Um(e.gcReleaseBufferSize??10),this.hydrationLimits=rp(e.hydrationLimits);let t=e.hydrationScope??ah(e.roots,e.types);if(typeof t!=`string`||t.length===0)throw Error(`fate: Hydration scope must be a non-empty string.`);if(this.hydrationScope=t,this.roots=e.roots,this.transport=e.transport,this.types=new Map(e.types.map(e=>[e.type,{getId:th,...e}])),e.mutations)for(let[t,n]of Object.entries(e.mutations)){let e=cm(this,{...n,key:t});this.mutationMap[t]=e,vh(this.mutations,t,e),vh(this.actions,t,async(e,n)=>n===`reset`?null:await this.mutationMap[t](n))}this.initializeParentLists(),this.persistenceRuntime=e.persistence?.attach(this),this.persistence=this.persistenceRuntime}initializeParentLists(){for(let e of this.types.values())if(e.fields){for(let[t,n]of Object.entries(e.fields))if(n&&typeof n==`object`&&`listOf`in n){let r=n.listOf,i=this.types.get(r);if(!i)throw Error(`fate: Unknown related type '${r}' (field '${e.type}.${t}').`);if(!i.fields)continue;let a;for(let[t,n]of Object.entries(i.fields))if(n&&typeof n==`object`&&`type`in n&&n.type===e.type){a=t;break}if(!a)continue;let o=this.parentLists.get(r);o||(o=[],this.parentLists.set(r,o)),o.push({field:t,parentType:e.type,via:a})}}}dehydrate(){if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot dehydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot dehydrate while requests are pending.`);return{data:cp({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],store:this.store.dehydrate()},this.hydrationLimits),scope:this.hydrationScope,version:1}}hydrate(e,t={}){if(!e||typeof e!=`object`||e.version!==1)throw Error(`fate: Unsupported hydration state version.`);if(e.scope!==this.hydrationScope)throw Error(`fate: Hydration state scope does not match this client.`);if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot hydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot hydrate while requests are pending.`);let n=t.merge??`preserve-existing`;if(n!==`preserve-existing`&&n!==`replace`)throw Error(`fate: Unsupported hydration merge mode.`);let r=Op(e.data,this.hydrationLimits),i=this.store.hydrate(r.store,n,{deferNotifications:!0});n===`replace`&&(this.rootLists.clear(),this.rootRequests.clear(),this.stableRefs.clear());for(let[e,t]of r.rootLists){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n));for(let e of t)n.add(e)}for(let[e,t]of r.rootRequests)(n===`replace`||!this.rootRequests.has(e))&&this.rootRequests.set(e,t);this.stalledRequests.clear(),this.viewDataCache.clear(),i()}exportPersistenceState(){return{data:cp({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],store:this.store.dehydrateConfirmed()},this.hydrationLimits),scope:this.hydrationScope,version:1}}retainPersistenceRequest(e){return this.operationLifetime.retain(e,()=>this.scheduleGarbageCollection())}getPersistenceScope(){return this.hydrationScope}getPersistenceRootLists(e){return this.rootLists.get(e)??new Set}getPersistenceQuery(e){return this.rootRequests.get(e)}restorePersistenceData(e){this.store.update(()=>{let t=new Map(e.store.coverage);for(let[n,r]of e.store.records){let e=this.store.read(n),i=t.get(n)??[];this.store.merge(n,e?km(r,e):r,i)}for(let[t,n]of e.store.lists)this.store.getListState(t)||this.store.setList(t,n);for(let[t,n]of e.rootRequests)this.rootRequests.has(t)||this.rootRequests.set(t,n);for(let[t,n]of e.rootLists)for(let e of n)this.registerRootList(t,e)})}getRetainedRequests(){return this.operationLifetime.getDescriptors()}restoreRetainedRequests(e){this.operationLifetime.restore(e)}hasMutation(e,t){return this.mutationEntities?.get(e)===t&&this.types.has(t)}registerRootList(e,t){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n)),n.add(t)}applyListInsert(e,t,n){let r=e.pendingBeforeIds??[],i=e.pendingAfterIds??[];if(e.ids.includes(t)||r.includes(t)||i.includes(t))return{list:e,pending:!1};if(n===`before`?e.pagination?.hasPrevious:e.pagination?.hasNext)return{list:n===`before`?{...e,pendingBeforeIds:[t,...r]}:{...e,pendingAfterIds:[...i,t]},pending:!0};let a=n===`before`?[t,...e.ids]:[...e.ids,t],o=e.cursors?n===`before`?[void 0,...e.cursors]:[...e.cursors,void 0]:e.cursors;return{list:{...e,cursors:o,ids:a},pending:!1}}insertIntoRootLists(e,t,n){if(n===`none`)return;let r=this.rootLists.get(e);if(r)for(let e of r){let r=this.store.getListState(e);if(!r)continue;let i=this.applyListInsert(r,t,n).list;i!==r&&this.store.setList(e,i)}}getTypeConfig(e){let t=this.types.get(e);if(!t)throw Error(`fate: Unknown entity type '${e}'.`);return t}getListNodeType(e,t){let n=this.getTypeConfig(e).fields?.[t];if(!n||n===`scalar`||!(`listOf`in n))throw Error(`fate: Could not find node type for '${e}.${t}'.`);return n.listOf}validatePersistence(){this.mutationEntities?.size&&this.requireDurableMutationTransport()}persistMutation(e){if(!this.persistenceRuntime)throw Error(`fate: Persistence is not configured.`);return this.persistenceRuntime.mutate(e)}assertPersistenceActive(){if(this.persistenceDisposal?.signal.aborted||this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`)}disposePersistence(){this.persistenceDisposal?.abort();for(let{unsubscribe:e}of this.liveSubscriptions.values())try{e()}catch{}this.liveSubscriptions.clear()}requireDurableMutationTransport(){if(!this.transport.mutateDurably)throw new kp(`BAD_REQUEST`,`fate: Persisted mutations require transport.mutateDurably connected to a server idempotency handler. Configure that adapter, or use persist: false for immediate calls. Cache persistence remains available.`)}async executeMutation(e,t,n,r={}){if(r.identity)this.requireDurableMutationTransport();else if(!this.transport.mutate)throw Error(`fate: transport does not support mutations. Please provide a 'mutate' implementation in your transport.`);let i=t&&typeof t==`object`?t:void 0,a=i&&typeof i.args==`object`?i.args:void 0,o=Ff(r.plan?Nf(r.plan):void 0,Ff(a,r.args)),s=o&&i?{...i,args:o}:o?{args:o}:t;return await this.trackPendingRequest(()=>r.identity?this.transport.mutateDurably(e,s,n,r.identity):this.transport.mutate(e,s,n))}write(e,t,n,r,i){return this.writeEntity(e,t,n,r,null,i)}deleteRecord(e,t){return this.store.update(()=>{let n=Xp(e,t);this.viewDataCache.invalidate(n),this.stableRefs.delete(n),this.store.deleteRecord(n),this.store.removeReferencesTo(n,this.viewDataCache)})}stableRefWithViewNames(e,t,n){let r=Xp(e,t),i=`${typeof t}:${String(t)}:${[...n].sort().join(`,`)}`,a=this.stableRefs.get(r);a||(a=new Map,this.stableRefs.set(r,a));let o=a.get(i);if(o)return o;let s=em(e,t,n);return a.set(i,s),s}ref(e,t,n){return this.stableRefWithViewNames(e,t,Hp(n))}rootListRef(e,t){let{id:n,type:r}=Zp(e);return this.stableRefWithViewNames(r,n,$p(t))}readView(e,t){if(this.persistence&&this.persistence.getSnapshot().status!==`ready`){let n=`restore:${t.__typename}:${t.id}:${[...Hp(e)].sort().join(`,`)}`,r=this.pending.get(n);return r||(r=this.persistence.ready.then(()=>{if(this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`);return this.readView(e,t)}).finally(()=>this.pending.delete(n)),this.pending.set(n,r)),r}let n=t.id,r=t.__typename;if(n==null){let e=Object.keys(t).length>0?`'${JSON.stringify(t)}'`:`an empty object`;throw Error(`fate: Invalid view reference. Expected 'id' to be provided as part of the reference, received ${e}. Did you forget to spread the correct view into its parent or pass the wrong ref to 'useView'?`)}if(r==null)throw Error(`fate: Invalid view reference. Expected '__typename' to be provided as part of the reference, received '${JSON.stringify(t)}'.`);let i=Xp(r,n),a=this.optimisticEntityResolutions.get(i)??null;if(a&&a!==i){let{id:t,type:n}=Zp(a);return this.readView(e,this.stableRefWithViewNames(n,t,Hp(e)))}let o=Hp(e),s=t[Bf];if(!s||![...o].every(e=>s.has(e))){let e=s?[...s].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid view reference. Expected the provided ref to include the view(s) '${[...o].join(`', '`)}', received '${e}'. You can fix this issue by spreading the correct view into its parent so fate can create the correct view refs for you.`)}let c=this.viewDataCache.get(i,e,t);if(c)return c;let l=nm(e,t),u=l.paths,d=this.store.missingForSelection(i,u),f=()=>{let n=this.readViewSelection(e,t,i,l),r={status:`fulfilled`,then:(e,t)=>Promise.resolve(n).then(e,t),value:n};return this.viewDataCache.set(i,e,t,r,new Set(n.coverage.map(([e])=>e))),r};if(d.size===0)return this.clearStalledRequestsForEntity(i),f();if(d.size>0){let a=this.pendingKey(i,d),o=this.getPendingOptimisticMutations(i);if(o){let n=this.pending.get(a);if(n)return n;let r=Promise.all(o).then(()=>this.readView(e,t)).finally(()=>this.pending.delete(a));return this.pending.set(a,r),r}if(this.stalledRequests.has(a))return f();let s=this.pending.get(a)||null;if(s)return s;let c=this.trackPendingRequest(async()=>{let o=this.persistenceRuntime;if(o){let e={items:[{ids:[n],kind:`node`,name:r,plan:l,refViewNames:new Set,type:r,viewSignature:``}],key:`view:${a}`};await o.restoreRequest(e);let t=this.store.missingForSelection(i,u);t.size&&(await this.fetchByIdAndNormalize(r,[n],t,l),o.fetched({...e,items:e.items.map(e=>({...e,plan:{...e.plan,paths:t}})),key:`${e.key}:${JSON.stringify([...t].sort())}`}))}else await this.fetchByIdAndNormalize(r,[n],d,l);try{return this.store.missingForSelection(i,u).size>0?(this.stalledRequests.add(a),f()):(this.stalledRequests.delete(a),this.readView(e,t))}finally{this.pending.delete(a)}});return this.pending.set(a,c),c}return f()}readDeferred(e){let t=Lp(e),n=this.optimisticEntityResolutions.get(t.owner)??t.owner,r=Zp(n),i=this.store.read(n),a=i&&(typeof i.id==`string`||typeof i.id==`number`)?i.id:r.id,o=r.type||t.type,s=rm(t.field,t.selection),c=s.paths,l=this.store.missingForSelection(n,c),u=()=>this.hasMissingDeferredList(n,o,t.field,s),d=u(),f=d?c:l,p=()=>{let e=this.readViewSelection({[t.field]:t.selection},this.stableRefWithViewNames(o,a,new Set),n,s),r={coverage:e.coverage,data:e.data[t.field]};return{status:`fulfilled`,then:(e,t)=>Promise.resolve(r).then(e,t),value:r}};if(l.size===0&&!d)return this.clearStalledRequestsForEntity(n),p();let m=this.deferredPendingKey(n,f,s,this.deferredSelectionSignature(t.selection));if(this.stalledRequests.has(m))return p();let h=this.getPendingOptimisticMutations(n);if(h){let t=this.pendingDeferred.get(m);if(t)return t;let n=Promise.all(h).then(()=>this.readDeferred(e)).finally(()=>this.pendingDeferred.delete(m));return this.pendingDeferred.set(m,n),n}let g=this.pendingDeferred.get(m)||null;if(g)return g;let _=this.trackPendingRequest(async()=>{try{return await this.fetchByIdAndNormalize(o,[a],f,s),this.store.missingForSelection(n,c).size>0||u()?(this.stalledRequests.add(m),p().value):(this.stalledRequests.delete(m),this.readDeferred(e).value)}finally{this.pendingDeferred.delete(m)}});return this.pendingDeferred.set(m,_),_}assertLiveViewSupport(){if(!this.transport.subscribeById)throw Error(`fate: transport does not support live views. Please provide a 'subscribeById' implementation in your transport.`)}assertLiveConnectionSupport(){if(!this.transport.subscribeConnection)throw Error(`fate: transport does not support live list views. Please provide a 'subscribeConnection' implementation in your transport.`)}subscribeLiveView(e,t){this.assertPersistenceActive(),this.assertLiveViewSupport();let n=t.id,r=t.__typename;if(n==null)throw Error(`fate: Invalid live view reference. Expected 'id' to be provided as part of the reference.`);if(r==null)throw Error(`fate: Invalid live view reference. Expected '__typename' to be provided as part of the reference.`);let i=Hp(e),a=t[Bf];if(!a||![...i].every(e=>a.has(e))){let e=a?[...a].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid live view reference. Expected the provided ref to include the view(s) '${[...i].join(`', '`)}', received '${e}'.`)}let o=Xp(r,n),s=nm(e,t),c=this.liveSubscriptionKey(o,s),l=this.liveSubscriptions.get(c);if(l)return l.count+=1,l.releaseScheduled=!1,()=>{this.releaseLiveSubscription(c)};let u=Nf(s),d;try{d=this.transport.subscribeById(r,n,s.paths,u,{onData:(e,t)=>{if(this.persistenceDisposal?.signal.aborted||!e||typeof e!=`object`)return;let n=new Set(t??s.paths);this.write(r,e,n,s,`none`)},onDelete:e=>{this.persistenceDisposal?.signal.aborted||this.deleteRecord(r,e??n)},onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)}})}catch(e){return this.reportLiveError(e),rh}return this.persistenceDisposal?.signal.aborted?(d(),rh):(this.liveSubscriptions.set(c,{count:1,unsubscribe:d}),()=>{this.releaseLiveSubscription(c)})}subscribeLiveListView(e,t){this.assertPersistenceActive(),this.assertLiveConnectionSupport();let n=nm(e,null),r=jf(t.args),i=Nf(n),a=this.liveConnectionSubscriptionKey(t,n,r),o=this.liveSubscriptions.get(a);if(o)return o.count+=1,o.releaseScheduled=!1,()=>{this.releaseLiveSubscription(a)};let s;try{s=this.transport.subscribeConnection(t.procedure,t.type,r,n.paths,i,{onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)},onEvent:r=>{this.persistenceDisposal?.signal.aborted||this.applyLiveConnectionEvent(e,t,n,r)}})}catch(e){return this.reportLiveError(e),rh}return this.persistenceDisposal?.signal.aborted?(s(),rh):(this.liveSubscriptions.set(a,{count:1,unsubscribe:s}),()=>{this.releaseLiveSubscription(a)})}applyLiveConnectionEvent(e,t,n,r){return this.store.update(()=>{if(r.type===`invalidate`){this.invalidateLiveConnection(e,t);return}if(r.type===`deleteEdge`){this.deleteConnectionEdge(t,Xp(r.nodeType,r.id));return}let i=r.edge.node;if(!i||typeof i!=`object`)return;let a=i,o=r.nodeType;if(!o){this.reportLiveError(Error(`fate: Live connection event for '${t.procedure}' did not include a node type.`));return}let s=this.write(o,a,n.paths,n,`none`);this.insertConnectionEdge(t.key,s,r.edge.cursor,r.type,r.targetCursor,e,t)})}invalidateLiveConnection(e,t){let n=++this.liveConnectionInvalidationToken;this.liveConnectionInvalidations.set(t.key,n);let r=this.store.getListState(t.key);this.store.restoreList(t.key,void 0),this.loadConnection(e,t,t.args??{}).then(()=>{this.liveConnectionInvalidations.get(t.key)===n&&this.liveConnectionInvalidations.delete(t.key)}).catch(e=>{this.liveConnectionInvalidations.get(t.key)===n&&(this.store.restoreList(t.key,r),this.liveConnectionInvalidations.delete(t.key)),this.reportLiveError(e)})}deleteConnectionEdge(e,t){let n=this.store.getListState(e.key);if(!n){this.syncNestedConnectionOwnerField(e,t,void 0,`delete`);return}let r=[],i=n.cursors?[]:void 0,a=!1;n.ids.forEach((e,o)=>{if(e===t){a=!0;return}r.push(e),i&&i.push(n.cursors?.[o])});let o=sh(n.liveAfterIds,t),s=sh(n.liveBeforeIds,t),c=sh(n.pendingAfterIds,t),l=sh(n.pendingBeforeIds,t);if(a=a||o?.length!==n.liveAfterIds?.length||s?.length!==n.liveBeforeIds?.length||c?.length!==n.pendingAfterIds?.length||l?.length!==n.pendingBeforeIds?.length,a){let a={...n,cursors:i,ids:r,liveAfterIds:o,liveBeforeIds:s,pendingAfterIds:c,pendingBeforeIds:l};this.store.setList(e.key,a),this.syncNestedConnectionOwnerField(e,t,a,`delete`);return}this.syncNestedConnectionOwnerField(e,t,n,`delete`)}insertConnectionEdge(e,t,n,r,i,a,o){let s=this.store.getListState(e)??{ids:[]},c=r===`appendEdge`||r===`appendNode`,l=r===`prependEdge`||r===`prependNode`,u=o.live?.append??`edge`,d=o.live?.prepend??`edge`;if(c&&s.pendingAfterIds?.includes(t)||l&&s.pendingBeforeIds?.includes(t)){this.syncNestedConnectionOwnerField(o,t,s,`insert`);return}let f=s.ids.indexOf(t);if(f>=0&&(c&&u===`visible`||l&&d===`visible`)){let r=n===void 0?s:{...s,cursors:s.ids.map((e,t)=>t===f?n:s.cursors?.[t])};r!==s&&this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let p=this.removeEntityFromListState(s,t),m=l&&d!==`visible`&&(!!p.pagination?.hasPrevious||ph(p,o,`backward`)),h=c&&u!==`visible`&&(!!p.pagination?.hasNext||ph(p,o,`forward`)),g=l&&d===`visible`&&(p.pagination?.hasPrevious===!0||p.pagination?.hasPrevious===void 0&&ph(p,o,`backward`)),_=c&&u===`visible`&&(p.pagination?.hasNext===!0||p.pagination?.hasNext===void 0&&ph(p,o,`forward`));if(m){let n=_h(p,`backward`),r={...n,liveBeforeIds:[t,...n.liveBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(h){let n=_h(p,`forward`),r={...n,liveAfterIds:[...n.liveAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(g){let n=_h(p,`backward`),r={...n,pendingBeforeIds:[t,...n.pendingBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(_){let n=_h(p,`forward`),r={...n,pendingAfterIds:[...n.pendingAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let v=this.getConnectionInsertIndex(p,r,i);if(v==null){this.invalidateLiveConnection(a,o);return}let y=[...p.ids];y.splice(v,0,t);let b=p.cursors||n!==void 0?[...p.cursors??[]]:void 0;if(b){for(;b.length<p.ids.length;)b.push(void 0);b.splice(v,0,n)}let x={...p,cursors:b,ids:y,liveAfterIds:sh(p.liveAfterIds,t),liveBeforeIds:sh(p.liveBeforeIds,t)};this.store.setList(e,x),this.syncNestedConnectionOwnerField(o,t,x,`insert`)}syncNestedConnectionOwnerField(e,t,n,r){if(e.root)return;let i=this.store.read(e.owner),a=Array.isArray(i?.[e.field])?i?.[e.field]:[],o=a.map(e=>$f(e)?ep(e):null).filter(e=>e!=null),s=o.filter(e=>e!==t);if(r===`insert`&&n){let e=Im(n).map(({id:e})=>e),r=e.indexOf(t);if(r>=0){let n=new Map(s.map((e,t)=>[e,t])),i=null;for(let t=r-1;t>=0;--t){let r=n.get(e[t]);if(r!=null){i=r+1;break}}if(i==null)for(let t=r+1;t<e.length;t+=1){let r=n.get(e[t]);if(r!=null){i=r;break}}s.splice(i??(r===0?0:s.length),0,t)}}o.length===s.length&&o.every((e,t)=>e===s[t])||(this.viewDataCache.invalidate(e.owner),this.store.merge(e.owner,{[e.field]:dh(s,a)},[e.field]))}getConnectionInsertIndex(e,t,n){if(t===`prependEdge`||t===`prependNode`)return 0;if(t===`appendEdge`||t===`appendNode`)return e.ids.length;if(n&&e.cursors){let r=e.cursors.indexOf(n);if(r>=0)return t===`insertEdgeBefore`?r:r+1}return null}removeEntityFromListState(e,t){let n=[],r=e.cursors?[]:void 0;return e.ids.forEach((i,a)=>{i!==t&&(n.push(i),r&&r.push(e.cursors?.[a]))}),{...e,cursors:r,ids:n,liveAfterIds:sh(e.liveAfterIds,t),liveBeforeIds:sh(e.liveBeforeIds,t),pendingAfterIds:sh(e.pendingAfterIds,t),pendingBeforeIds:sh(e.pendingBeforeIds,t)}}mergeListState(e,t,n,r,i){let a=e?.ids??[],o=new Set(a),s=i.direction===`backward`,c=(()=>{if(!e||!i.hasCursorArg&&i.replace)return[...t];if(!i.hasCursorArg){let e=new Set(t),n=a.filter(t=>!e.has(t));return s?[...n,...t]:[...t,...n]}let n=t.filter(e=>!o.has(e));return s?[...n,...a]:[...a,...n]})(),l=n.some(e=>e!==void 0),u=new Map;e?.cursors&&e.cursors.forEach((e,t)=>{u.set(a[t],e)}),n.forEach((e,n)=>{e!==void 0&&u.set(t[n],e)});let d=l||e?.cursors||i.hasCursorArg?c.map(e=>u.get(e)):void 0,f=e?.pagination,p=r,m=i.hasCursorArg&&a.length>0,h=m&&!s?f??p:p,g=m&&s?f??p:p,_=f||p?{hasNext:!!(g?.hasNext??f?.hasNext),hasPrevious:!!(h?.hasPrevious??f?.hasPrevious),nextCursor:g?.nextCursor??f?.nextCursor,previousCursor:h?.previousCursor??f?.previousCursor}:void 0;return{backwardPageLimit:!i.hasCursorArg&&s&&i.pageLimit!=null?Math.max(e?.backwardPageLimit??0,i.pageLimit):e?.backwardPageLimit,cursors:d,forwardPageLimit:!i.hasCursorArg&&!s&&i.pageLimit!=null?Math.max(e?.forwardPageLimit??0,i.pageLimit):e?.forwardPageLimit,ids:c,liveAfterIds:oh(e?.liveAfterIds,c),liveBeforeIds:oh(e?.liveBeforeIds,c),pagination:_,pendingAfterIds:oh(e?.pendingAfterIds,c),pendingBeforeIds:oh(e?.pendingBeforeIds,c)}}registerPendingOptimisticMutation(e,t){let n=this.pendingOptimisticMutations.get(e);n||(n=new Set,this.pendingOptimisticMutations.set(e,n));let r=t.catch(()=>void 0);n.add(r),r.finally(()=>{let t=this.pendingOptimisticMutations.get(e);t&&(t.delete(r),t.size===0&&this.pendingOptimisticMutations.delete(e),this.runPendingGarbageCollection())})}resolveOptimisticEntity(e,t){this.optimisticEntityResolutions.set(e,t),this.store.replaceListEntityId(e,t)}getPendingOptimisticMutations(e){let t=this.pendingOptimisticMutations.get(e);return t&&t.size>0?[...t]:null}async loadConnection(e,t,n,r={}){return await this.trackPendingRequest(()=>this.loadConnectionInternal(e,t,n,r))}async loadConnectionInternal(e,t,n,r={}){let i=r.direction??`forward`;if(t.root){if(!this.transport.fetchList)throw Error(`fate: transport does not support list fetching. Please add support for 'fetchList' in your transport.`);let r=yh({...t.args,...n}),{argsPayload:i,plan:a}=Qm(e,r),{items:o,pagination:s}=await this.transport.fetchList(t.field,a.paths,i);return this.assertPersistenceActive(),o&&this.store.update(()=>{let e=[],n=[];for(let r of o){let i=this.write(t.type,r.node,a.paths,a,`none`);e.push(i),n.push(r.cursor)}let i=this.store.getListState(t.key),c=this.mergeListState(i,e,n,s,{...hh(r),replace:!0});jf(t.args)||this.registerRootList(t.type,t.key),this.store.setList(t.key,c)}),this.store.getListState(t.key)}let a=Zp(t.owner),o=yh({...t.args,...n});o.id===void 0&&a.id&&(o.id=a.id);let{argsPayload:s,plan:c}=Qm(e,o),l=c.paths,u=s?Rf(s,t.field):void 0,d=new Set;for(let e of l)d.add(`${t.field}.${e}`);let[f]=await this.transport.fetchById(a.type,[a.id],d,u);if(this.assertPersistenceActive(),!f||typeof f!=`object`)return this.store.getListState(t.key);let p=f[t.field],m=Array.isArray(p)?{items:p.map(e=>({cursor:void 0,node:e})),pagination:void 0}:p;return m&&this.store.update(()=>{let e=[],n=[],r=this.getListNodeType(a.type,t.field);for(let t of m.items){let{node:i}=t,a=this.write(r,i,l,c);e.push(a),n.push(t.cursor)}let o=this.store.getListState(t.key),u=o?.ids??[],d=new Set(u),f=e.filter(e=>!d.has(e)),p=this.mergeListState(o,e,n,m.pagination,{...hh(s),direction:i,hasCursorArg:!0,replace:!0});this.store.setList(t.key,p);let h=this.store.read(t.owner),g=Array.isArray(h?.[t.field])&&h?.[t.field]||[],_=dh(f,void 0),v=i===`forward`?[...g,..._]:[..._,...g];this.viewDataCache.invalidate(t.owner),this.store.merge(t.owner,{[t.field]:v},[t.field])}),this.store.getListState(t.key)}request(e,t){let n=t?.mode??`cache-first`;return this.requestWithDescriptor(this.createRequestDescriptor(e),n,{revalidateExisting:!0},t)}requestForRender(e,t){return this.prepareRequestForRender(e,t).promise}prepareRequestForRender(e,t){let n=t?.mode??`cache-first`,r=this.createRequestDescriptor(e);return{promise:this.requestWithDescriptor(r,n,{revalidateExisting:!1},t),requestKey:r.key}}requestWithDescriptor(e,t,{revalidateExisting:n},r){this.assertPersistenceActive();let i=this.persistenceRuntime;if(i&&r?.persist&&(!Number.isSafeInteger(r.persist.maxAge)||r.persist.maxAge<0||r.persist.maxAge>2**53-1-Date.now()))throw Error(`fate: Persistence maxAge must be a non-negative finite duration.`);let a=e.key,o=this.requests.get(a)?.get(t);if(o){if(i&&r?.persist){let e=this.requestExecutionOptions.get(o.descriptor);e&&(e.persist={...r.persist})}i&&r?.persist&&o.status===`fulfilled`&&i.used(o.descriptor,r.persist);let e=t===`cache-first`&&o.status===`fulfilled`&&!this.hasRequestData(o.descriptor);return o.status!==`pending`&&(e||n&&(t===`network-only`||t===`stale-while-revalidate`||t===`cache-first`&&o.status===`rejected`))&&this.executeRequestHandle(o,t,r),o}let s=new eh(e,()=>this.getRequestResultFromDescriptor(e)),c=this.requests.get(a);return c||(c=new Map,this.requests.set(a,c)),c.set(t,s),this.executeRequestHandle(s,t,r),s}releaseRequest(e,t){this.releaseRequestKey(this.createRequestDescriptor(e).key,t)}releaseRequestKey(e,t){let n=this.requests.get(e);n&&(n.delete(t),n.size===0&&this.requests.delete(e))}retainRequestKey(e,t){let n=this.requests.get(e),r=(t?n?.get(t)?.descriptor:void 0)??n?.values().next().value?.descriptor;return r?this.operationLifetime.retain(r,()=>this.scheduleGarbageCollection()):{dispose:rh}}retain(e){return this.operationLifetime.retain(this.createRequestDescriptor(e),()=>this.scheduleGarbageCollection())}scheduleGarbageCollection(){this.gcScheduled||(this.gcScheduled=!0,queueMicrotask(()=>{this.gcScheduled=!1,this.gc()}))}gc(){if(this.persistence?this.store.hasTransientOptimisticUpdates:this.hasActiveOptimisticUpdates()){this.gcPending=!0;return}this.gcPending=!1;let e=new Set,t=new Set,n=[],r=e=>{e&&!t.has(e)&&(t.add(e),n.push(e))},i=t=>{e.add(t);let n=this.store.getListState(t);if(n){for(let e of n.pendingBeforeIds??[])r(e);for(let e of n.ids)r(e);for(let e of n.pendingAfterIds??[])r(e)}},a=this.store.getOptimisticRoots();a.baseRecords.forEach(e=>this.markRecordReferences(e,r)),a.records.forEach(r),a.lists.forEach(i);for(let e of this.operationLifetime.getDescriptors())for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){for(let e of t.ids)r(Xp(t.type,e));continue}if(t.kind===`query`){r(this.rootRequests.get(t.queryKey));continue}t.kind===`list`&&i(t.listKey)}for(let e=0;e<n.length;e+=1){let t=n[e];if(!t)continue;let a=this.store.read(t);if(!a)continue;this.markRecordReferences(a,r);let{type:o}=Zp(t),s=this.types.get(o);if(s?.fields){for(let[e,n]of Object.entries(s.fields))if(n&&n!==`scalar`&&`listOf`in n)for(let[n]of this.store.getListsForField(t,e))i(n)}}let o=this.store.collectGarbage(t,e,{onRecordDeleted:e=>{this.viewDataCache.invalidate(e),this.stableRefs.delete(e),this.clearStalledRequestsForEntity(e)}});if(o.records.size>0)for(let[e,t]of this.rootRequests.entries())t&&o.records.has(t)&&this.rootRequests.delete(e);if(o.lists.size>0)for(let[e,t]of this.rootLists.entries()){for(let e of o.lists)t.delete(e);t.size===0&&this.rootLists.delete(e)}}executeRequestHandle(e,t,n){let r=this.persistenceRuntime,i={fetchAll:t!==`cache-first`,persist:n?.persist?{...n.persist}:void 0};r&&this.requestExecutionOptions.set(e.descriptor,i);let a=()=>(this.assertPersistenceActive(),t===`stale-while-revalidate`?this.handleStoreAndNetworkRequest(e.descriptor,i):this.executeRequest(e.descriptor,i).then(()=>this.getRequestResultFromDescriptor(e.descriptor)));e.start(r?this.withPersistenceLifecycle(()=>r.ready.then(()=>t===`network-only`?void 0:r.restoreRequest(e.descriptor)).then(a)):a())}markRecordReferences(e,t){let n=new Set,r=e=>{if($f(e)){t(ep(e));return}if(e&&typeof e==`object`&&!n.has(e)){if(n.add(e),Array.isArray(e)){for(let t of e)r(t);return}for(let t of Object.values(e))r(t)}};r(e)}hasActiveOptimisticUpdates(){return this.store.hasOptimisticUpdates||this.pendingOptimisticMutations.size>0}hasPendingRequests(){return this.pendingNetworkRequests>0}async withPersistenceLifecycle(e){this.assertPersistenceActive();let t=this.persistenceDisposal?.signal,n;try{let r=e(),i=t?await Promise.race([r,new Promise((e,r)=>{n=()=>r(Error(`fate: Persistence was disposed.`)),t.addEventListener(`abort`,n,{once:!0}),t.aborted&&n()})]):await r;return this.assertPersistenceActive(),i}finally{n&&t?.removeEventListener(`abort`,n)}}async trackPendingRequest(e){return this.withPersistenceLifecycle(async()=>{this.persistence&&await this.persistence.ready,this.assertPersistenceActive(),this.pendingNetworkRequests+=1;try{return await this.withPersistenceLifecycle(e)}finally{--this.pendingNetworkRequests,this.persistenceRuntime?.changed()}})}runPendingGarbageCollection(){this.gcPending&&!this.hasActiveOptimisticUpdates()&&this.gc()}async handleStoreAndNetworkRequest(e,t){if(!this.hasRequestData(e))return await this.executeRequest(e,t),this.getRequestResultFromDescriptor(e);let n=this.getRequestResultFromDescriptor(e);return this.executeRequest(e,t).catch(()=>{}),n}getRootType(e){let t=this.roots[e];if(!t)throw Error(`fate: Unknown root request '${e}'.`);return t.type}createRequestDescriptor(e){return Zm(e,e=>this.getRootType(e))}getRequestKey(e){return this.createRequestDescriptor(e).key}hasRootListData(e){let t=this.store.getListState(e.listKey);if(!t)return!1;let n=Ym(e.argsPayload);if(!n.hasCursorArg&&!mh(t,e.argsPayload,n.direction))return!1;for(let n of t.ids)if(this.store.missingForSelection(n,e.plan.paths).size>0)return!1;return!0}async executeRequest(e,t={}){let n=t.fetchAll??!1,r=new Map,i=[],a=[],o=!0;for(let t of e.items)if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths,i=[...e].slice().sort().join(`,`),s=[...t.plan.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`,`),c=`${t.type}#${i}|${s}`,l=r.get(c);l||(l={fields:e,ids:[],plan:t.plan,type:t.type},r.set(c,l));let u=[];for(let r of t.ids){let i=Xp(t.type,r),a=this.store.missingForSelection(i,e);(n||a.size>0)&&(l.ids.push(r),u.push(r))}u.length&&a.push({...t,ids:u}),o&&=u.length===t.ids.length}else{if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),r=this.rootRequests.get(t.queryKey),s=e&&r?this.store.missingForSelection(r,t.plan.paths):t.plan.paths;n||!e||r&&s.size>0?(i.push(this.fetchQueryAndNormalize(t)),a.push(t)):o=!1}if(t.kind!==`list`)continue;if(!n&&!Ym(t.argsPayload).hasCursorArg&&this.hasRootListData(t)){o=!1;continue}i.push(this.fetchListAndNormalize(t)),a.push(t)}await Promise.all([...i,...Array.from(r.values()).map(e=>e.ids.length?this.fetchByIdAndNormalize(e.type,e.ids,e.fields,e.plan):Promise.resolve())]);let s=this.persistenceRuntime;s&&(a.length&&s.fetched(o?e:{items:a,key:`partial:${JSON.stringify([e.key,a.map(e=>[e.name,`ids`in e?e.ids:null])])}`},t.persist),(!a.length||!o)&&s.used(e,t.persist))}hasRequestData(e){for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths;for(let n of t.ids){let r=Xp(t.type,n);if(this.store.missingForSelection(r,e).size>0)return!1}continue}if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),n=this.rootRequests.get(t.queryKey),r=e&&n?this.store.missingForSelection(n,t.plan.paths):t.plan.paths;if(!e||n&&r.size>0)return!1;continue}if(t.kind===`list`&&!this.hasRootListData(t))return!1}return!0}getRequestResult(e){return this.getRequestResultFromDescriptor(this.createRequestDescriptor(e))}getRequestResultFromDescriptor(e){let t={};for(let n of e.items){if(n.kind===`node`){t[n.name]=this.stableRefWithViewNames(n.type,n.ids[0],n.refViewNames);continue}if(n.kind===`nodes`){t[n.name]=n.ids.map(e=>this.stableRefWithViewNames(n.type,e,n.refViewNames));continue}if(n.kind===`query`){let e=this.rootRequests.get(n.queryKey);if(e){let{id:r}=Zp(e);t[n.name]=this.stableRefWithViewNames(n.type,r,n.refViewNames)}else t[n.name]=null;continue}if(n.kind!==`list`)continue;let e=this.store.getListState(n.listKey),r=Im(e),i=r.map(({id:e})=>{let{id:t,type:r}=Zp(e);return this.stableRefWithViewNames(r,t,n.nodeRefViewNames)});if(n.hasItems){let a={items:i.map((e,t)=>({cursor:r[t]?.cursor,node:e})),pagination:e?.pagination},o={args:n.argsPayload,field:n.name,key:n.listKey,live:n.plan.live.get(``),owner:n.name,procedure:n.name,root:!0,type:n.type};Object.defineProperty(a,Hf,{configurable:!1,enumerable:!1,value:o,writable:!1}),t[n.name]=a;continue}t[n.name]=i}return t}async fetchByIdAndNormalize(e,t,n,r,i=null){let a=Nf(r);await this.trackPendingRequest(async()=>{let o=await this.transport.fetchById(e,t,n,a);this.assertPersistenceActive();for(let t of o)this.writeEntity(e,t,n,r,i)})}async fetchQueryAndNormalize(e){if(!this.transport.fetchQuery)throw Error(`fate: transport does not support queries. Please add support for 'fetchQuery' in your transport for '${e.name}'.`);await this.trackPendingRequest(async()=>{let t=await this.transport.fetchQuery(e.name,e.plan.paths,e.argsPayload);if(this.assertPersistenceActive(),!t||typeof t!=`object`){this.rootRequests.set(e.queryKey,null);return}let n=this.writeEntity(e.type,t,e.plan.paths,e.plan);this.rootRequests.set(e.queryKey,n)})}async fetchListAndNormalize(e){if(!this.transport.fetchList)throw Error(`fate: 'transport.fetchList' is not configured but request includes a list for key '${e.name}'.`);await this.trackPendingRequest(async()=>{let{items:t,pagination:n}=await this.transport.fetchList(e.name,e.plan.paths,e.argsPayload);this.assertPersistenceActive(),this.store.update(()=>{let r=[],i=[];for(let n of t){let t=this.writeEntity(e.type,n.node,e.plan.paths,e.plan);r.push(t),i.push(n.cursor)}jf(e.argsPayload)||this.registerRootList(e.type,e.listKey);let a=this.store.getListState(e.listKey);this.store.setList(e.listKey,this.mergeListState(a,r,i,n,{...hh(e.argsPayload),replace:!0}))})})}writeEntity(e,t,n,r,i=null,a){return this.store.update(()=>{let o=this.types.get(e);if(!o)throw Error(`fate: Found unknown entity type '${e}' in normalization.`);let s=Xp(e,o.getId(t)),c={},l=bh(n);if(o.fields)for(let[n,a]of Object.entries(o.fields)){let o=t[n],u=i?`${i}.${n}`:n,d=r?.args.get(u);if(a===`scalar`){if(!Object.hasOwn(t,n))continue;c[n]=o}else if(a&&typeof a==`object`&&`type`in a){let t=l.get(n)??nh;if(o===null){c[n]=null;continue}if(o&&typeof o==`object`&&!$f(o)){let i=a.type,s=this.types.get(i);if(!s)throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);c[n]=Qf(Xp(i,s.getId(o))),this.writeEntity(i,o,t,r,u)}}else if(a&&typeof a==`object`&&`listOf`in a){let t=l.get(n)??nh;if(o===null){c[n]=null;continue}let i=a.listOf,f=this.types.get(i);if(!f)throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);let p=(()=>{if(Array.isArray(o))return{items:o.map(e=>({node:e}))};if(o&&typeof o==`object`){let e=o;if(Array.isArray(e.items))return{items:e.items.map(e=>{if(e&&typeof e==`object`&&`node`in e){let t=e;return{cursor:t.cursor,node:t.node}}return{node:e}}),pagination:e.pagination}}return null})();if(p){let e=[],a=[],o=t.size>0?new Set:t;if(t.size>0)for(let e of t){if(e.startsWith(`items.node.`)){o.add(e.slice(11));continue}if(e.startsWith(`node.`)){o.add(e.slice(5));continue}e===`items.node`||e.startsWith(`items.`)||o.add(e)}for(let t of p.items){let n=t.node,s=`cursor`in t?t.cursor:void 0;if(a.push(s),$f(n)){e.push(ep(n));continue}if(n&&typeof n==`object`){let t=Xp(i,f.getId(n));this.writeEntity(i,n,o,r,u),e.push(t);continue}}let l=wm(s,n,d?.hash),m=this.store.getListState(l),h=d?.value,g=this.mergeListState(m,e,a,p.pagination,hh(h)),_=!uh(m,g);c[n]=dh(g.ids,this.store.read(s)?.[n],{reuseCurrentArray:!_}),this.store.setList(l,g)}}else c[n]=o}for(let[e,n]of Object.entries(t))e in(o.fields??{})||(c[e]=n);return this.viewDataCache.invalidate(s),this.store.merge(s,c,n),this.linkParentLists(e,s,c,a??`after`),!i&&a&&this.insertIntoRootLists(e,s,a),s})}linkParentLists(e,t,n,r){if(r===`none`)return;let i=this.parentLists.get(e);if(i)for(let e of i){if(!e.via)continue;let i=n[e.via],a=$f(i)?ep(i):null;if(!a)continue;let o=this.store.read(a);if(!o)continue;let s=Array.isArray(o[e.field])?o[e.field]:[];if(s.some(e=>$f(e)&&ep(e)===t))continue;this.viewDataCache.invalidate(a);let c=wm(a,e.field),l=this.store.getListState(c),u=s;if(l){let{list:e,pending:n}=this.applyListInsert(l,t,r);e!==l&&this.store.setList(c,e),u=dh(n?Im(e).map(({id:e})=>e):e.ids,s)}else{let e=s.map(e=>$f(e)?ep(e):null).filter(e=>e!=null),n={ids:r===`before`?[t,...e]:[...e,t]};this.store.setList(c,n),u=dh(n.ids,s)}let d=this.store.getListsForField(a,e.field).filter(([e])=>e!==c);for(let[e,n]of d){let i=this.applyListInsert(n,t,r).list;i!==n&&this.store.setList(e,i)}this.store.merge(a,{[e.field]:u},[e.field])}}readViewSelection(e,t,n,r,i=null){let a=this.store.read(n)||{id:n},o=new Set;o.add(n);let s=new Map,c=(e,t,i,a,l)=>{for(let[u,d]of Object.entries(e)){if(qf(u)){i[Bf]||Qp(i,new Set),i[Bf].add(u);continue}let e=l?`${l}.${u}`:u;if(Np(d)){let{id:e,type:t}=Zp(a);s.set(a,(s.get(a)??new Set).add(u)),i[u]=Fp({field:u,id:e,owner:a,selection:Pp(d),type:t});continue}s.set(a,(s.get(a)??new Set).add(u));let f=typeof d;if(f===`boolean`&&d)i[u]=t[u];else if(d&&f===`object`){let s=d,{args:l,...f}=s;if(l&&typeof l==`object`&&Object.keys(f).length===0){i[u]=t[u];continue}u in i||(i[u]={});let p=Object.keys(f).length?f:s,m=t[u];if(m==null){i[u]=null;continue}if(Array.isArray(m)){if(p.items&&typeof p.items==`object`){let t=p.items,n=r.args.get(e),s=wm(a,u,n?.hash),l=this.store.getListState(s),d={items:(l?Im(l):m.map(e=>({cursor:void 0,id:$f(e)?ep(e):null}))).map((n,r)=>{let i=n.id;if(!i)return{cursor:l?.cursors?.[r],node:null};o.add(i);let a=this.store.read(i),{id:s,type:u}=Zp(i),d={__typename:u,id:s};a&&c(t.node,a,d,i,e);let f={node:a?d:null};return t.cursor===!0&&(f.cursor=n.cursor),f})};if(`pagination`in p&&p.pagination){let e=p.pagination,t=l?.pagination;if(t){let n={};e.nextCursor===!0&&t.nextCursor!==void 0&&(n.nextCursor=t.nextCursor),e.previousCursor===!0&&t.previousCursor!==void 0&&(n.previousCursor=t.previousCursor),e.hasNext===!0&&(n.hasNext=t.hasNext),e.hasPrevious===!0&&(n.hasPrevious=t.hasPrevious),Object.keys(n).length>0&&(d.pagination=n)}else d.pagination=void 0}let{id:f,type:h}=Zp(a);if(h){let t=this.getListNodeType(h,u),i={args:(()=>{if(!n?.value&&f===void 0)return;let e=n?.value?{...n.value}:{};return f!==void 0&&(e.id=f),e})(),field:u,hash:n?.hash,key:s,live:r.live.get(e),owner:a,procedure:`${h}.${u}`,root:!1,type:t};Object.defineProperty(d,Hf,{configurable:!1,enumerable:!1,value:i,writable:!1})}i[u]=d}else i[u]=m.map(t=>{let n=$f(t)?ep(t):null;if(!n)return t;o.add(n);let r=this.store.read(n),{id:i,type:a}=Zp(n);if(r){let t={__typename:a,id:i};return c(p,r,t,n,e),t}return null})}else if($f(m)){let t=ep(m);o.add(t);let n=this.store.read(t),{id:r,type:a}=Zp(t),s=i[u];s.id=r,s.__typename=a,n&&c(p,n,s,t,e)}else c(p,m,i[u],n,e)}}},l={__typename:Zp(n).type},u=Vp(e,t);if(u.length===0&&Tf(e))c(e,a,l,n,i);else for(let e of u)c(e.select,a,l,n,i);return{coverage:[...s.entries()],data:l}}clearStalledRequestsForEntity(e){let t=this.pendingPrefix(e);for(let e of this.stalledRequests)e.startsWith(t)&&this.stalledRequests.delete(e)}pendingPrefix(e){return`__fate__|${e}|`}pendingKey(e,t){return`${this.pendingPrefix(e)}${[...t].sort().join(`|`)}`}deferredPendingKey(e,t,n,r){let i=[...n.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`${this.pendingKey(e,new Set(t))}|${i}|${r}`}deferredSelectionSignature(e){let t=new Set,n=e=>typeof e!=`object`||!e?`${typeof e}:${String(e)}`:t.has(e)?`[Circular]`:(t.add(e),Array.isArray(e)?`[${e.map(e=>n(e)).join(`,`)}]`:`{${Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>qf(e)?`view:${e}`:`${e}:${n(t)}`).join(`,`)}}`);return n(e)}hasMissingDeferredList(e,t,n,r){let i=this.types.get(t)?.fields?.[n];if(!i||i===`scalar`||!(`listOf`in i))return!1;let a=r.args.get(n),o=this.store.getListState(wm(e,n,a?.hash));if(!o)return!0;let s=a?.value,c=Ym(s);return c.hasCursorArg?!0:!mh(o,s,c.direction)}liveSubscriptionKey(e,t){return`${e}|${[...t.paths].sort().join(`|`)}|${[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`)}`}liveConnectionSubscriptionKey(e,t,n){let r=[...t.paths].sort().join(`|`),i=[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`connection|${e.procedure}|${e.type}|${Af(n??{})}|${r}|${i}`}releaseLiveSubscription(e){let t=this.liveSubscriptions.get(e);t&&(t.count<=0||(--t.count,!(t.count>0)&&(t.releaseScheduled=!0,queueMicrotask(()=>{let t=this.liveSubscriptions.get(e);!t||!t.releaseScheduled||t.count>0||(t.unsubscribe(),this.liveSubscriptions.delete(e))}))))}reportLiveError(e){let t=this.onLiveError;t&&queueMicrotask(()=>{t(e)})}};function Sh(e){return new xh(e)}var Ch=(e,t)=>{e.handlers.onError?.(t)},wh=(e,t,n)=>{if(n){e.onData(t,n);return}e.onData(t)},Th=e=>new kp(e.error.code,e.error.message,{issues:e.error.issues}),Eh=(e,t)=>e===t||e.startsWith(`${t}.`)||t.startsWith(`${e}.`),Dh=(e,t)=>{if(!t)return null;let n=t.filter(e=>e.length>0);if(n.length===0)return[];let r=e.filter(e=>n.some(t=>Eh(e,t)));if(r.length===0)return[];let i=new Set(r);i.add(`id`);for(let t of e){if(!t.endsWith(`.id`))continue;let e=t.slice(0,-3);r.some(t=>Eh(t,e))&&i.add(t)}return[...i]},Oh=(e,t)=>{if(t.length===0)return!0;if(Array.isArray(e))return e.every(e=>Oh(e,t));if(!Tf(e))return!1;let[n,...r]=t;return n in e&&Oh(e[n],r)},kh=(e,t)=>{if(!Tf(e))return!1;for(let n of t)if(!Oh(e,n.split(`.`)))return!1;return!0},Ah=(e,t)=>globalThis.fetch(e,t),jh=async e=>typeof e==`function`?await e():e??{},Mh=async(e,t)=>{let n=new Headers(e);return new Headers(await jh(t)).forEach((e,t)=>{n.set(t,e)}),n},Nh=e=>String(e).replace(/\/$/,``),Ph=e=>`${Nh(e)}/live`,Fh=async e=>{let t=e.statusText||`HTTP ${e.status}`;try{let n=await e.clone().json();Tf(n)&&Array.isArray(n.results)&&Tf(n.results[0])&&Tf(n.results[0].error)&&typeof n.results[0].error.message==`string`&&(t=n.results[0].error.message)}catch{try{let n=await e.text();n&&(t=n)}catch{}}return new kp(jp(e.status),t,{status:e.status})},Ih=e=>{if(!Tf(e)||e.version!==1&&e.version!==2||!Array.isArray(e.results)||e.results.some(e=>!Tf(e)||typeof e.id!=`string`))throw Error(`fate(http): Invalid protocol response.`);return e},Lh=e=>{if(e.ok)return e.data;throw new kp(e.error.code,e.error.message,{issues:e.error.issues})};function Rh({eventSource:e,fetch:t=Ah,headers:n,live:r=!0,liveRetryMs:i=1e3,liveUrl:a,url:o}){let s=Nh(o),c=a?String(a):Ph(s),l=typeof r==`function`?r:void 0,u=r!==!1,d=0,f=[],p=!1,m=e=>new Promise((t,n)=>{f.push({operation:{...e,id:String(++d)},reject:n,resolve:t}),p||(p=!0,queueMicrotask(h))}),h=async()=>{p=!1;let e=f;if(f=[],e.length)try{let r=await t(s,{body:JSON.stringify({operations:e.map(e=>e.operation),version:e.some(e=>e.operation.mutation)?2:1}),headers:await Mh({"content-type":`application/json`},n),method:`POST`});if(!r.ok)throw await Fh(r);let i=Ih(await r.json()),a=new Map(i.results.map(e=>[e.id,e]));for(let t of e){let e=a.get(t.operation.id);if(!e){t.reject(Error(`fate(http): Missing result for operation '${t.operation.id}'.`));continue}try{t.resolve(Lh(e))}catch(e){t.reject(e)}}}catch(t){for(let n of e)n.reject(t)}},g={fetchById(e,t,n,r){return m({args:r,ids:t,kind:`byId`,select:[...n],type:e})},fetchList(e,t,n){return m({args:n,kind:`list`,name:e,select:[...t]})},fetchQuery(e,t,n){return m({args:n,kind:`query`,name:e,select:[...t]})},mutate(e,t,n){return m({input:t,kind:`mutation`,name:e,select:[...n]})},mutateDurably(e,t,n,r){return m({input:t,kind:`mutation`,mutation:r,name:e,select:[...n]})}};if(u){let r=new Map,a,o,s=0,u=()=>{if(!l)throw Error(`fate(http): A live connector is required for topic subscriptions.`);return a??=l(c,{eventSource:e,fetch:t,headers:n,onError(e){for(let t of new Set(r.values()))t.handlers.onError?.(e)},retryDelay:i,withCredentials:!0})},d=()=>{if(o)return o;let i=e??globalThis.EventSource;if(!i)throw Error(`fate(http): EventSource is required for live views.`);let a=globalThis.crypto?.randomUUID?.()??`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,s=new Map,l=new Map,u=!1,d,f,p=new Promise((e,t)=>{d=e,f=t}),m=new URL(c,typeof globalThis.location==`object`?globalThis.location.href:`http://local`);m.searchParams.set(`connectionId`,a);let h=new i(m.href,{withCredentials:!0}),g=async e=>{let r=await t(c,{body:JSON.stringify({connectionId:a,operations:e,version:1}),headers:await Mh({"content-type":`application/json`},n),method:`POST`});if(!r.ok)throw await Fh(r);let i=Ih(await r.json());for(let e of i.results)Lh(e)},_=e=>{let t=l.get(e.id);return t?{...e,lastEventId:t}:e},v=e=>{for(let t of new Set(r.values()))Ch(t,e)};h.addEventListener(`open`,()=>{if(!u){u=!0,d?.();return}let e=[...s.values()].map(_);e.length>0&&g(e).catch(v)});let y=e=>{let t=JSON.parse(e.data),n=r.get(t.id);if(!n)return;let i=e.lastEventId;if(i&&l.set(t.id,i),t.kind===`error`){Ch(n,Th(t));return}if(t.kind===`connection`){`onEvent`in n.handlers&&n.handlers.onEvent(t.event);return}if(`delete`in t.event&&t.event.delete){`onDelete`in n.handlers&&n.handlers.onDelete?.(t.event.id??n.targetId);return}`onData`in n.handlers&&wh(n.handlers,t.event.data,t.event.select)};return h.addEventListener(`error`,e=>{if(`data`in e){y(e);return}u||f?.(e),v(e)}),h.addEventListener(`message`,y),h.addEventListener(`next`,y),h.addEventListener(`connection`,y),o={add(e){s.set(e.id,e),p.then(()=>g([_(e)])).catch(t=>{s.delete(e.id),r.delete(e.id),v(t)})},remove(e){s.delete(e),l.delete(e),p.then(()=>g([{id:e,kind:`unsubscribe`}])).catch(v),s.size===0&&(h.close(),o=void 0)}},o},f=async(e,t=e.select)=>{let[n]=await g.fetchById(e.type,[e.targetId],t,e.args);return n},p=async(e,t,n)=>{let[r]=await g.fetchById(n,[t],e.select,e.selectionArgs);return r};g.subscribeById=(e,t,n,i,a)=>{let o=String(++s),c={args:i,handlers:a,select:[...n],targetId:t,type:e};if(r.set(o,c),!l)return d().add({args:i,entityId:t,id:o,kind:`subscribe`,select:[...n],type:e}),()=>{r.delete(o)&&d().remove(o)};let p=u().subscribe({id:o,onEvent(e){if(e.type===`delete`){a.onDelete?.(e.data.id??t);return}let n=(Array.isArray(e.data.select)?e.data.select:null)??Dh(c.select,e.data.changed);if(n?.length!==0){if(`data`in e.data&&e.data.data!==void 0&&(!n||kh(e.data.data,n))){wh(a,e.data.data,n??void 0);return}f(c,n??c.select).then(e=>{e==null?a.onDelete?.(t):wh(a,e,n??void 0)}).catch(e=>Ch(c,e))}},topic:zm(e,t)}).catch(e=>(r.delete(o),Ch(c,e),null));return()=>{r.delete(o)&&p.then(e=>e?.())}},g.subscribeConnection=(e,t,n,i,a,o)=>{let c=String(++s),f=`${c}:global`,m={args:n,handlers:o,procedure:e,select:[...i],selectionArgs:a,type:t},h=n=>{let r=Tf(n.data)?n.data:{};if(n.type===`invalidate`){o.onEvent({type:`invalidate`});return}let i=typeof r.nodeType==`string`?r.nodeType:t,a=r.id;if(n.type===`deleteEdge`){typeof a==`string`||typeof a==`number`?o.onEvent({id:a,nodeType:i,type:`deleteEdge`}):Ch(m,Error(`fate(http): Live connection delete event for '${e}' missed an id.`));return}if(n.type!==`appendEdge`&&n.type!==`appendNode`&&n.type!==`insertEdgeAfter`&&n.type!==`insertEdgeBefore`&&n.type!==`prependEdge`&&n.type!==`prependNode`)return;let s=n.type,c=e=>{o.onEvent({edge:{cursor:typeof r.cursor==`string`?r.cursor:void 0,node:e},nodeType:i,targetCursor:typeof r.targetCursor==`string`?r.targetCursor:void 0,type:s})};if(`node`in r&&r.node!==void 0){c(r.node);return}if(typeof a!=`string`&&typeof a!=`number`){Ch(m,Error(`fate(http): Live connection event for '${e}' missed a node id.`));return}p(m,a,i).then(c).catch(e=>Ch(m,e))};if(r.set(c,m),!l)return d().add({args:n,id:c,kind:`subscribeConnection`,procedure:e,select:[...i],selectionArgs:a,type:t}),()=>{r.delete(c)&&d().remove(c)};r.set(f,m);let g=u(),_=g.subscribe({id:c,onEvent:h,topic:Bm(e,n)}),v=g.subscribe({id:f,onEvent:h,topic:Vm(e)}),y=Promise.all([_,v]).catch(e=>(r.delete(c),r.delete(f),Ch(m,e),[]));return()=>{(r.delete(c)||r.delete(f))&&(r.delete(f),y.then(e=>Promise.all(e.map(e=>e()))))}}}return g}function zh(e){return Object.freeze({[Zf]:!0,type:e})}var Bh=(0,y.createContext)(null);function Vh({children:e,client:t}){return(0,G.jsx)(Bh,{value:t,children:e})}function Hh(){let e=(0,y.use)(Bh);if(!e)throw Error(`react-fate: '<FateClient client={fate}>' is missing.`);return e}var Uh=e=>`status`in e&&e.status===`fulfilled`&&`value`in e,Wh=e=>({status:`fulfilled`,then(t,n){return Promise.resolve(e).then(t,n)},value:e}),Gh={status:`fulfilled`,then(e,t){return Promise.resolve(null).then(e,t)},value:null};function Kh(e,t){let n=Hh(),r=Ip(t),i=(0,y.useRef)(null),a=(0,y.useRef)(null),o=(0,y.useRef)(null),s=(0,y.useCallback)((t,r=[],o)=>{let s=n.readView(e,t),c=e=>({...e,coverage:r.length?[...r,...e.coverage]:e.coverage});if(Uh(s)){if(r.length){let e=a.current,n=`${t.__typename}:${String(t.id)}`;if(e?.source===s.value&&e.cacheKey===o&&e.resolvedKey===n)return i.current=e.thenable.value,e.thenable;let r=c(s.value),l=Wh(r);return a.current={cacheKey:o,resolvedKey:n,source:s.value,thenable:l},i.current=r,l}a.current=null;let e=s.value;return i.current=e,s}return a.current=null,i.current=null,r.length?Promise.resolve(s).then(e=>{let t=c(e);return i.current=t,t}):s},[n,e]),c=(0,y.useCallback)(()=>{if(t===null)return i.current=null,Gh;if(!r)return o.current=null,s(t);let a=t,c=n.readDeferred(a);if(Uh(c)){let t=c.value.data;return o.current=null,t===null?(i.current={coverage:c.value.coverage,data:null},Wh(i.current)):s(n.ref(t.__typename,t.id,e),c.value.coverage,a)}if(o.current?.deferred===t&&o.current.snapshot===c)return o.current.viewSnapshot;i.current=null;let l=Promise.resolve(c).then(t=>{let r=t.data;if(r===null){let e={coverage:t.coverage,data:null};return i.current=e,e}return Promise.resolve(s(n.ref(r.__typename,r.id,e),t.coverage,a)).then(e=>(i.current=e,e))});return o.current={deferred:a,snapshot:c,viewSnapshot:l},l},[n,e,t,r,s]),l=(0,y.useCallback)(e=>{if(t===null)return i.current=null,()=>{};let r=new Map,a=()=>{e(),c()},o=(e,t)=>{r.has(e)||r.set(e,n.store.subscribe(e,t,a))},s=e=>{for(let[t,n]of r)e.has(t)||(n(),r.delete(t))},c=()=>{if(i.current){for(let[e,t]of i.current.coverage)o(e,t);s(new Set(i.current.coverage.map(([e])=>e)))}};return c(),()=>{for(let e of r.values())e();r.clear()}},[n.store,t]),u=(0,y.use)((0,y.useDeferredValue)((0,y.useSyncExternalStore)(l,c,c)));return u?u.data:null}var qh=e=>{let t=e.items?.node;if(t&&typeof t==`object`){for(let e of Object.keys(t))if(qf(e))return t}return e},Jh=e=>e&&typeof e==`object`?e[Hf]:null,Yh=(e,t)=>({metadata:Jh(t),nodeView:(0,y.useMemo)(()=>qh(e),[e])});function Xh(e,t){let n=Hh(),r=Ip(t)?(0,y.use)(n.readDeferred(t)).data:t,{metadata:i,nodeView:a}=Yh(e,r),o=(0,y.useCallback)(e=>i?n.store.subscribeList(i.key,e):()=>{},[n,i]),s=(0,y.useCallback)(()=>i?n.store.getListState(i.key):void 0,[n,i]),c=(0,y.useDeferredValue)((0,y.useSyncExternalStore)(o,s,s)),l=c?.pagination??r?.pagination,u=!!l?.hasNext,d=!!l?.hasPrevious,f=l?.nextCursor,p=l?.previousCursor;return[(0,y.useMemo)(()=>i&&c?Im(c).map(({cursor:e,id:t})=>({cursor:e,node:n.rootListRef(t,a)})):r?.items,[n,r?.items,c,i,a]),(0,y.useMemo)(()=>!i||!u||!f?null:async()=>{let{before:e,first:t,last:r,...o}=i.args||{},s=t??r;await n.loadConnection(a,i,{...o,after:f,before:void 0,...s===void 0?null:{first:s},last:void 0},{direction:`forward`})},[n,u,a,i,f]),(0,y.useMemo)(()=>!i||!d||!p?null:async()=>{let{after:e,first:t,last:r,...o}=i.args||{},s=r??t;await n.loadConnection(a,i,{...o,after:void 0,before:p,first:void 0,...s===void 0?null:{last:s}},{direction:`backward`})},[n,d,a,i,p])]}function Zh(e,t){let n=Hh(),r=t?.mode??`cache-first`,{promise:i,requestKey:a}=n.prepareRequestForRender(e,t);return(0,y.useEffect)(()=>{let e=n.retainRequestKey(a,r);return()=>{e.dispose(),(r===`network-only`||r===`stale-while-revalidate`)&&n.releaseRequestKey(a,r)}},[n,r,a]),(0,y.use)((0,y.useDeferredValue)(i))}var Qh={},$h={adminAuthEdit:zh(`AdminAuthEdit`),adminAuthNew:zh(`AdminAuthNew`),adminAuthSettings:zh(`AdminAuthSettings`),adminBuildDetail:zh(`AdminBuildDetail`),adminBuildLogs:zh(`AdminBuildLogs`),adminBuildStatus:zh(`AdminBuildStatus`),adminCliVersions:zh(`AdminCliVersions`),adminDashboard:zh(`AdminDashboard`),adminDeploymentDetail:zh(`AdminDeploymentDetail`),adminDeploymentLogs:zh(`AdminDeploymentLogs`),adminDeploymentsPage:zh(`AdminDeploymentsPage`),adminEmailProject:zh(`AdminEmailProject`),adminEmailSettings:zh(`AdminEmailSettings`),adminHealth:zh(`AdminHealth`),adminInvitations:zh(`AdminInvitations`),adminProjectDetail:zh(`AdminProjectDetail`),adminProjectsPage:zh(`AdminProjectsPage`),adminSignup:zh(`AdminSignup`),adminTopProject:zh(`AdminTopProject`),adminUserDetail:zh(`AdminUserDetail`),adminUsersPage:zh(`AdminUsersPage`),authEdit:zh(`AdminAuthEdit`),authNew:zh(`AdminAuthNew`),authSettings:zh(`AdminAuthSettings`),buildDetail:zh(`AdminBuildDetail`),buildLogs:zh(`AdminBuildLogs`),buildStatus:zh(`AdminBuildStatus`),cliVersions:zh(`AdminCliVersions`),dashboard:zh(`AdminDashboard`),deploymentDetail:zh(`AdminDeploymentDetail`),deploymentLogs:zh(`AdminDeploymentLogs`),deploymentsPage:zh(`AdminDeploymentsPage`),emailProject:zh(`AdminEmailProject`),emailSettings:zh(`AdminEmailSettings`),health:zh(`AdminHealth`),invitations:zh(`AdminInvitations`),projectDetail:zh(`AdminProjectDetail`),projectsPage:zh(`AdminProjectsPage`),signupControl:zh(`AdminSignup`),userDetail:zh(`AdminUserDetail`),usersPage:zh(`AdminUsersPage`)},eg=`{"moduleName":"./server.ts","roots":{"authEdit":{"kind":"query","procedure":"authEdit","router":"adminAuthEdit","type":"AdminAuthEdit"},"authNew":{"kind":"query","procedure":"authNew","router":"adminAuthNew","type":"AdminAuthNew"},"authSettings":{"kind":"query","procedure":"authSettings","router":"adminAuthSettings","type":"AdminAuthSettings"},"buildDetail":{"kind":"query","procedure":"buildDetail","router":"adminBuildDetail","type":"AdminBuildDetail"},"buildLogs":{"kind":"query","procedure":"buildLogs","router":"adminBuildLogs","type":"AdminBuildLogs"},"buildStatus":{"kind":"query","procedure":"buildStatus","router":"adminBuildStatus","type":"AdminBuildStatus"},"cliVersions":{"kind":"query","procedure":"cliVersions","router":"adminCliVersions","type":"AdminCliVersions"},"dashboard":{"kind":"query","procedure":"dashboard","router":"adminDashboard","type":"AdminDashboard"},"deploymentDetail":{"kind":"query","procedure":"deploymentDetail","router":"adminDeploymentDetail","type":"AdminDeploymentDetail"},"deploymentLogs":{"kind":"query","procedure":"deploymentLogs","router":"adminDeploymentLogs","type":"AdminDeploymentLogs"},"deploymentsPage":{"kind":"query","procedure":"deploymentsPage","router":"adminDeploymentsPage","type":"AdminDeploymentsPage"},"emailProject":{"kind":"query","procedure":"emailProject","router":"adminEmailProject","type":"AdminEmailProject"},"emailSettings":{"kind":"query","procedure":"emailSettings","router":"adminEmailSettings","type":"AdminEmailSettings"},"health":{"kind":"query","procedure":"health","router":"adminHealth","type":"AdminHealth"},"invitations":{"kind":"query","procedure":"invitations","router":"adminInvitations","type":"AdminInvitations"},"projectDetail":{"kind":"query","procedure":"projectDetail","router":"adminProjectDetail","type":"AdminProjectDetail"},"projectsPage":{"kind":"query","procedure":"projectsPage","router":"adminProjectsPage","type":"AdminProjectsPage"},"signupControl":{"kind":"query","procedure":"signupControl","router":"adminSignup","type":"AdminSignup"},"userDetail":{"kind":"query","procedure":"userDetail","router":"adminUserDetail","type":"AdminUserDetail"},"usersPage":{"kind":"query","procedure":"usersPage","router":"adminUsersPage","type":"AdminUsersPage"}},"types":[{"type":"AdminAuthEdit"},{"type":"AdminAuthNew"},{"type":"AdminAuthSettings"},{"type":"AdminBuildDetail"},{"type":"AdminBuildLogs"},{"type":"AdminBuildStatus"},{"type":"AdminCliVersions"},{"fields":{"topProjects":{"listOf":"AdminTopProject"}},"type":"AdminDashboard"},{"type":"AdminDeploymentDetail"},{"type":"AdminDeploymentLogs"},{"type":"AdminDeploymentsPage"},{"type":"AdminEmailProject"},{"type":"AdminEmailSettings"},{"type":"AdminHealth"},{"type":"AdminInvitations"},{"type":"AdminProjectDetail"},{"type":"AdminProjectsPage"},{"type":"AdminSignup"},{"type":"AdminTopProject"},{"type":"AdminUserDetail"},{"type":"AdminUsersPage"}]}`,tg=e=>Sh({hydrationScope:eg,mutations:Qh,onLiveError:e.onLiveError,persistence:e.persistence,roots:$h,transport:Rh({fetch:e.fetch,headers:e.headers,live:!1,liveRetryMs:e.liveRetryMs,liveUrl:e.liveUrl,url:e.url}),types:[{type:`AdminHealth`},{type:`AdminTopProject`},{fields:{topProjects:{listOf:`AdminTopProject`}},type:`AdminDashboard`},{type:`AdminUsersPage`},{type:`AdminProjectsPage`},{type:`AdminDeploymentsPage`},{type:`AdminUserDetail`},{type:`AdminProjectDetail`},{type:`AdminDeploymentDetail`},{type:`AdminBuildDetail`},{type:`AdminCliVersions`},{type:`AdminSignup`},{type:`AdminInvitations`},{type:`AdminAuthSettings`},{type:`AdminAuthNew`},{type:`AdminAuthEdit`},{type:`AdminEmailSettings`},{type:`AdminEmailProject`},{type:`AdminBuildLogs`},{type:`AdminBuildStatus`},{type:`AdminDeploymentLogs`}]});H(),hn(),Au(),ut();var ng=.375,rg={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},ig=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],ag=`--_spinner-box-size`;function og(){if(!(typeof CSS>`u`||typeof CSS.registerProperty!=`function`))for(let e of ig)try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!0,initialValue:`0px`})}catch{}}og();var sg=new Set,cg=!1;function lg(){cg=!1;let e=[];for(let t of sg)e.push(...t.getAnimations({subtree:!0}));sg.clear();for(let t of e)t.startTime=0}function ug(e){if(e!=null&&typeof e.getAnimations==`function`)return sg.add(e),cg||(cg=!0,requestAnimationFrame(lg)),()=>{sg.delete(e)}}var dg={wrapper:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},spinner:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kXLuUW:`xxymvpz`,"--_spinner-ring-diameter":`x2lq4xu`,"--_spinner-ring-stroke":`x10qssua`,"--_spinner-box-size":`x69vvuq`,kmuXW:`x2lah0s`,$$css:!0},circle:{kDwRjp:`xbh8q5q`,kR8GR0:`x1764fhq`,k3nNDw:`x1g0ag68`,kU5bRw:`x1owpc8m`,kPFa82:`xio8zfp`,kfJifR:`xgw3ha0`,$$css:!0},track:{kjVXCG:`xalkhop`,$$css:!0}},fg={sm:{"--spinner-diameter":`x11wm0hx`,"--spinner-stroke-width":`xls98ul`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},md:{"--spinner-diameter":`x15pu9g6`,"--spinner-stroke-width":`xr0wkrm`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},lg:{"--spinner-diameter":`x1w424tr`,"--spinner-stroke-width":`xr0wkrm`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},xl:{"--spinner-diameter":`x1orj1z9`,"--spinner-stroke-width":`x7y2bof`,"--spinner-arc-fraction":`x7o5821`,$$css:!0}},pg={default:{"--spinner-color":`xt1b8mc`,"--spinner-track-color":`xspt9s2`,$$css:!0},subtle:{"--spinner-color":`x1jevo6s`,"--spinner-track-color":`xspt9s2`,$$css:!0},onMedia:{"--spinner-color":`x13u6jys`,"--spinner-track-color":`x1ufpcf6`,$$css:!0},inherit:{"--spinner-color":`x1uzk0gl`,"--spinner-track-color":`xbfzqbu`,$$css:!0}},mg={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}};function hg({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=rg[e],f=d+u*2,p=Math.PI*d,m=p*ng,h=n!=null,g=(0,y.useId)(),_=wu(),v=h&&typeof n==`string`&&o==null,b=o??(typeof n==`string`?n:void 0)??_(`@astryx.spinner.loading`),x=(0,G.jsx)(`span`,{ref:h?void 0:c,role:`status`,"aria-label":v?void 0:b,"aria-labelledby":v?g:void 0,"data-testid":h?void 0:s,...h?{}:l,...W(h?``:U(`spinner`,{size:e,shade:t}),V(dg.spinner,!h&&fg[e],!h&&pg[t],!h&&r),h?void 0:i,{...h?{}:a,width:`var(${ag}, ${f}px)`,height:`var(${ag}, ${f}px)`}),children:(0,G.jsxs)(`svg`,{ref:ug,width:f,height:f,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4`,children:[(0,G.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,...V(dg.circle,dg.track,mg[t])}),(0,G.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,strokeDasharray:`${m} ${p-m}`,className:`xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb`})]})});return h?(0,G.jsxs)(`div`,{ref:c,"data-testid":s,...l,...W(U(`spinner`,{size:e,shade:t}),V(dg.wrapper,fg[e],pg[t],r),i,a),children:[x,typeof n==`string`?(0,G.jsx)(Yi,{id:g,type:`body`,weight:`bold`,children:n}):n]}):x}hg.displayName=`Spinner`;var gg=`data-astryx-edge-comp`,_g={keTefX:`x1kftj4p`,k71WvV:`x92e2el`,$$css:!0},vg={inset:e=>[_g,{"--x-126w13d":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`)}]},yg=(0,y.createContext)(null);yg.displayName=`SizeContext`;function bg(e,t=`md`){let n=(0,y.use)(yg);return e??n??t}var xg=yg.Provider,Sg=(0,y.createContext)(null);Sg.displayName=`ButtonGroupContext`;function Cg(){return(0,y.use)(Sg)}H(),Li(),Ze(),hn(),Un(),ut(),dn(),Au();var wg={base:{"--button-focus-offset":`x16bblx1`,kInvED:`x1wfwxd8 x13aywxo`,kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x1txdalj`,k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kaIpWk:`x1jxw6zd`,kMv6JI:`xjb2p0i`,kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,k63SB2:`x1e4wzip`,khDVqt:`xuxw1ft`,kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`xrafxwg`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},pressable:{k3aq6I:`x3oybdh x8ppqj`,$$css:!0},inactive:{kkrTdU:`xt0e3qv`,kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0},ariaDisabled:{kKwaWg:`x18o3ruo xuqm82a`,$$css:!0},iconOnly:{"--button-icon-only-aspect":`x1v15ycx`,kOBAk4:`xioom0i`,kg3NbH:`xnjsko4`,k8WAf4:`xt970qd`,$$css:!0},iconWrapper:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,$$css:!0},contentWrapper:{k1xSpc:`xjp7ctv`,$$css:!0},link:{kybGjl:`x1hl2dhg`,$$css:!0}},Tg={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},Eg={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},Dg={sm:{kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kGuDYH:`x1j61zf2`,$$css:!0},md:{kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kGuDYH:`x1j61zf2`,$$css:!0},lg:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,kGuDYH:`xwsyq91`,$$css:!0}},Og={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}},kg={primary:{kWkggS:`x1ewilqj`,kMwMTN:`x17wrial`,$$css:!0},secondary:{kWkggS:`x17x4s8c`,kMwMTN:`x1tgivj0`,$$css:!0},ghost:{kWkggS:`xjbqb8w`,kMwMTN:`x1tgivj0`,$$css:!0},destructive:{kWkggS:`x1pjz0fi`,kMwMTN:`x1m024r3`,kjBf7l:`x1e0x2sz`,$$css:!0}};Ye[`--duration-medium-min`];var Ag={hiddenContent:{kMwMTN:`x19co3pv`,$$css:!0},hiddenContentDelayed:{kKVMdj:`x1ffowhz`,k44tkh:`xjlvqhv`,kWV6AL:`x10e4vud`,kKxzle:`x17yabm6 x14q22ui`,$$css:!0}},jg={horizontal:{krdFHd:`x15mokao x8eehn2`,kVL7Gh:`xbiv7yw x1xrp5p4`,kfmiAY:`x1ga7v0g x1tzxhge`,kT0f0o:`x16uus16 x1rmb4wm`,k2ei4v:`xgbv0en x1pjv70x`,kVhnKS:`x1t7ytsu xyf0ibl`,kGJrpR:`x1j92z86`,$$css:!0},vertical:{krdFHd:`x15mokao x8eehn2`,kfmiAY:`x1ga7v0g x2qxyot`,kVL7Gh:`xbiv7yw xturttb`,kT0f0o:`x16uus16 x1rmb4wm`,kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20 x1d9v4yf`,kLZC3w:`x1pc3f07`,$$css:!0},onSolidHorizontal:{kGJrpR:`xrvmtm5`,$$css:!0},onSolidVertical:{kLZC3w:`x11npmm7`,$$css:!0}};function Mg({label:e,variant:t=`secondary`,size:n,type:r=`button`,isDisabled:i=!1,isLoading:a=!1,isInterruptible:o=!1,clickAction:s,icon:c,isIconOnly:l=!1,width:u,elevation:d=`none`,children:f,endContent:p,tooltip:m,href:h,as:g,target:_,rel:v,xstyle:b,className:x,style:S,ref:C,...w}){let T=wu(),E=bg(n,`md`),D=Cg(),[O,k]=(0,y.useTransition)(),A=(0,y.useRef)(!1),j=a||O,M=O||o,N=D?.isDisabled??!1,P=i||N||j&&!o,F=i||N,I=Mc(g),ee=h!=null&&!P,L=m!=null&&P,te=Mi({placement:`above`,isEnabled:m!=null}),R=e=>{if(P||A.current&&!o){e.preventDefault();return}w.onClick?.(e),s&&!e.defaultPrevented&&(A.current=!0,k(async()=>{try{await s(e)}finally{A.current=!1}}))},ne=L?e=>{e.key===`Enter`||e.key===` `?e.preventDefault():w.onKeyDown?.(e)}:void 0,re=t===`ghost`?{[gg]:``}:null,ie=un.focusVisible(wg.base,Eg[E],l&&wg.iconOnly,Vc.backgroundImage,P&&wg.inactive,F&&wg.disabled,L&&wg.ariaDisabled,ee&&wg.link,!D&&wg.pressable,D&&(D.orientation===`horizontal`?jg.horizontal:jg.vertical),D&&(t===`primary`||t===`destructive`)&&(D.orientation===`horizontal`?jg.onSolidHorizontal:jg.onSolidVertical),!D&&Og[d],u!=null&&Tg.width(u),kg[t],b),ae=W(U(`button`,{variant:t,size:E,elevation:D?`none`:d}),ie,x,S),oe=(0,G.jsxs)(G.Fragment,{children:[j&&(0,G.jsx)(`span`,{...{0:{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1`},1:{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1 xqcmdr3 xb2rp9n xskzprw x17yabm6 x14q22ui`}}[!!M<<0],"aria-hidden":`true`,children:(0,G.jsx)(hg,{size:`sm`,shade:`inherit`})}),(0,G.jsxs)(`span`,{...V(wg.contentWrapper,j&&(M?Ag.hiddenContentDelayed:Ag.hiddenContent)),"aria-hidden":j||void 0,children:[c&&(0,G.jsx)(`span`,{...V(wg.iconWrapper,Dg[E]),children:c}),l?null:(0,G.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:f??e}),!l&&p&&(0,G.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x1heor9g`,children:p})]}),(0,G.jsx)(kc,{role:`status`,"aria-live":`polite`,children:j?T(`@astryx.button.loading`):``})]}),se=l&&e!==``||j&&!l||f!=null&&f!==e?{"aria-label":e}:null,ce=m==null?null:{"aria-describedby":[w[`aria-describedby`],te.describedBy].filter(Boolean).join(` `)||void 0},le=Vn(C,m==null?void 0:te.ref),ue;return ue=ee?(0,G.jsx)(I,{ref:le,href:h,target:_,rel:v,...ae,...w,...se,...ce,...re,"aria-busy":j||void 0,onClick:R,children:oe}):(0,G.jsx)(`button`,{ref:le,type:r,disabled:L?void 0:P,...ae,...w,...se,...ce,...re,"aria-busy":j||void 0,"aria-disabled":L||void 0,onClick:R,...ne?{onKeyDown:ne}:null,children:oe}),m?(0,G.jsxs)(G.Fragment,{children:[ue,te.renderTooltip(m)]}):ue}Mg.displayName=`Button`;var Ng=(0,y.createContext)(null);Ng.displayName=`CollapsibleGroupContext`;var Pg=(0,y.createContext)(null);Pg.displayName=`CollapsibleGroupPresentationContext`;function Fg(e){let{isCollapsible:t,value:n}=e,r=(0,y.use)(Ng),i=r!=null&&n!=null,a=t===!0?{}:t||null,o=a!=null,[s,c]=(0,y.useState)(()=>i?!0:a?.isOpen===void 0?a?.defaultIsOpen??!0:a.isOpen),l;return l=i&&n!=null?r.isOpen(n):a?.isOpen===void 0?s:a.isOpen,{isEnabled:o,isOpen:l,toggle:()=>{if(i&&n!=null){r.toggle(n);return}let e=!l;a?.isOpen===void 0&&c(e),a?.onOpenChange?.(e)}}}H(),Dc(),Ze(),hn(),ut(),Au();var Ig={info:`info`,warning:`warning`,error:`error`,success:`success`},Lg={info:`status`,warning:`alert`,error:`alert`,success:`status`},Rg=`status`,zg={info:`accent`,warning:`warning`,error:`error`,success:`success`},Bg={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kMv6JI:`xjb2p0i`,$$css:!0},rootElevatedCard:{kaIpWk:`x1vf2byn`,$$css:!0},header:{k1xSpc:`x78zum5`,kGNEyG:`x1cy8zhl`,kwnvtZ:`x1a02dak`,k1C7PZ:`xak3so`,khm7nJ:`x4olc9o`,k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0},headerCardStandalone:{kaIpWk:`x1vf2byn`,$$css:!0},headerCardWithContent:{krdFHd:`xwxb7qi`,kfmiAY:`x13nour3`,kVL7Gh:`xbiv7yw`,kT0f0o:`x16uus16`,$$css:!0},headerCentered:{kGNEyG:`x6s0dn4`,$$css:!0},endArea:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kwnvtZ:`x1a02dak`,kjj79g:`x13a6bvl`,kOIVth:`x1txdalj`,kmuXW:`x2lah0s`,ks0D6T:`x193iq5w`,keTefX:`xvc5jky`,kqGvvJ:`x81ka23`,$$css:!0},chevron:{k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},chevronExpanded:{k3aq6I:`x19jd1h0`,$$css:!0}},Vg={info:{kWkggS:`xgcxg3y`,$$css:!0},warning:{kWkggS:`x24i8r5`,$$css:!0},error:{kWkggS:`x1pritpl`,$$css:!0},success:{kWkggS:`xu13z74`,$$css:!0}};function Hg(e){return Object.prototype.hasOwnProperty.call(Vg,e)}var Ug={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}};function Wg({status:e,title:t,description:n,icon:r,isDismissable:i=!1,onDismiss:a,dismissLabel:o,endContent:s,container:c=`card`,elevation:l=`none`,collapsible:u=!0,children:d,xstyle:f,className:p,style:m,ref:h,onFocusCapture:g,onPointerDownCapture:_,...v}){let b=wu(),[x,S]=(0,y.useState)(!1),C=typeof u==`object`&&u?u:{},{isEnabled:w,isOpen:T,toggle:E}=Fg({isCollapsible:u!==!1&&{...C,defaultIsOpen:C.defaultIsOpen??!1}}),D=(0,y.useRef)(null),O=(0,y.useId)(),k=Ig[e],A=Lg[e]??Rg,j=zg[e],M=It(d),N=b(`@astryx.banner.dismiss`),P=o??N,F=o??(typeof t==`string`?b(`@astryx.banner.dismissTitled`,{dismiss:N,title:t}):N);if(x)return null;let I=(e,t)=>{e instanceof HTMLElement&&e!==document.body&&!t.contains(e)&&(D.current=e)},ee=e=>{I(e.relatedTarget,e.currentTarget)},L=e=>{I(document.activeElement,e.currentTarget)},te=()=>{let e=D.current;S(!0),a?.(),e?.isConnected&&e.focus()},R=w&&M,ne=It(s)||i||R,re=It(s)||i,ie=!It(n)&&re,ae=M&&(!w||T),oe=c===`card`;return(0,G.jsxs)(`div`,{ref:h,role:A,onFocusCapture:Tt(g,ee),onPointerDownCapture:Tt(_,L),...W(U(`banner-frame`,{container:c,elevation:l}),V(Bg.root,Ug[l],oe&&l!==`none`&&Bg.rootElevatedCard,f),p,m),...v,children:[(0,G.jsxs)(`div`,{...W(U(`banner`,{container:c,status:e}),V(Bg.header,ie&&Bg.headerCentered,Hg(e)&&Vg[e],oe&&(ae?Bg.headerCardWithContent:Bg.headerCardStandalone))),children:[(0,G.jsx)(`div`,{...It(r)?W(U(`banner-icon`,{status:e}),{className:`x78zum5 x6s0dn4 x2lah0s`}):{className:`x78zum5 x6s0dn4 x2lah0s`},"aria-hidden":`true`,children:It(r)?r:k==null?null:(0,G.jsx)(vc,{icon:k,size:`md`,color:j,...U(`banner-icon`,{status:e})})}),(0,G.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli`},1:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli xgualba`}}[!!It(s)<<0],children:[(0,G.jsx)(`div`,{className:`x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0 xj0a0fe`,children:t}),It(n)&&(0,G.jsx)(`div`,{...W(U(`banner-description`),{className:`x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4 xj0a0fe`}),children:n})]}),ne&&(0,G.jsxs)(`div`,{...V(Bg.endArea,vg.inset(qe[`--spacing-2`])),children:[s,R&&(0,G.jsx)(Mg,{variant:`ghost`,size:`sm`,label:b(T?`@astryx.banner.collapse`:`@astryx.banner.expand`),tooltip:b(T?`@astryx.banner.collapse`:`@astryx.banner.expand`),icon:(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:[Bg.chevron,T&&Bg.chevronExpanded]}),onClick:E,"aria-expanded":T,"aria-controls":ae?O:void 0,isIconOnly:!0}),i&&(0,G.jsx)(Mg,{variant:`ghost`,size:`sm`,label:F,tooltip:P,icon:(0,G.jsx)(vc,{icon:`close`,size:`sm`,color:`inherit`}),onClick:te,isIconOnly:!0})]})]}),ae&&(0,G.jsx)(`div`,{id:R?O:void 0,...W(U(`banner-content`,{container:c,status:e}),{0:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh`},1:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh x1k5g1gk x1eprgri`}}[!!oe<<0]),children:d})]})}Wg.displayName=`Banner`;function Gg(e){let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e===-1)continue;let r=n.slice(0,e).trim().replace(/-([a-z])/g,(e,t)=>t.toUpperCase());r&&(t[r]=n.slice(e+1).trim())}return t}function Kg(e,t){if(typeof e!=`string`)return t;let n={...t};typeof n.style==`string`&&(n.style=Gg(n.style)),`class`in n&&(n.className=n.class,delete n.class);for(let[e,t]of[[`readonly`,`readOnly`],[`colspan`,`colSpan`],[`rowspan`,`rowSpan`],[`maxlength`,`maxLength`],[`autocomplete`,`autoComplete`]])e in n&&(n[t]=n[e],delete n[e]);return(e===`input`||e===`textarea`||e===`select`)&&(`value`in n&&!(`onChange`in n)&&(n.defaultValue=n.value,delete n.value),`checked`in n&&!(`onChange`in n)&&(n.defaultChecked=n.checked,delete n.checked)),n}function qg(e,t){let n=Kg(e,t);return e===`a`&&typeof n.href==`string`&&n.href.startsWith(`/admin/`)&&n.href!==`/admin/logout`&&!n.href.startsWith(`/admin/login`)?{type:ia,props:n}:{type:e,props:n}}function J(e,t,n){let r=qg(e,t);return(0,G.jsx)(r.type,r.props,n)}function Y(e,t,n){let r=qg(e,t);return(0,G.jsxs)(r.type,r.props,n)}function Jg({message:e,status:t}){return Y(`main`,{className:`void-admin-auth`,children:[J(Wg,{status:`error`,title:e}),J(`div`,{className:`void-admin-auth-actions`,children:J(Mg,{as:`a`,href:t===401?`/admin/logout`:`/admin/`,label:t===401?`Sign in again`:`Return to admin`})})]})}function Yg(e){return e instanceof Error&&e.name===`FateRequestError`&&`status`in e&&typeof e.status==`number`}var Xg=class extends y.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){let{error:e}=this.state;if(e){let t=Yg(e)?e.status:500;return J(Jg,{message:Yg(e)?e.message:`The admin page could not be loaded.`,status:t})}return this.props.children}};function Zg({children:e}){return J(Hu,{theme:wf,children:J(Fu,{component:ia,children:e})})}function Qg({children:e}){let t=oa(),n=t.adminFateSession??`guest`;return J(Zg,{children:J(Vh,{client:(0,y.useMemo)(()=>{let e=tg({url:typeof window>`u`?`http://localhost/admin/fate`:`/admin/fate`,fetch:(e,t)=>fetch(e,{...t,credentials:`same-origin`}).then(e=>{if(e.redirected&&new URL(e.url).pathname===`/admin/login`)throw window.location.assign(`/admin/login`),Error(`Administrator session expired.`);return e})});return t.adminFateSnapshot&&e.hydrate(t.adminFateSnapshot),e},[n]),children:J(Xg,{children:e},t.adminPageUrl)},n)})}function $g({padding:e=`spacing4`,paddingOuterX:t,paddingOuterY:n,paddingInnerX:r,paddingInnerY:i,useThemeDefault:a,maxHeight:o}){let s=t??e,c=n??e,l=r??e,u=i??e,d=o?__.containerMaxHeight(o):null;if(a){let e=c_[a];return[e_.container,e.containerPaddingInlineStart,e.containerPaddingInlineEnd,e.containerPaddingBlockStart,e.containerPaddingBlockEnd,e.layoutPaddingOuterX,e.layoutPaddingOuterY,e.layoutPaddingInnerX,e.layoutPaddingInnerY,d]}return[e_.container,l_[s],u_[s],d_[c],f_[c],p_[s],m_[c],h_[l],g_[u],d]}var e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_=o((()=>{Ze(),e_={container:{kB7OPa:`x9f619`,kZCmMZ:`x1c35znw`,kwRFfy:`x64h4k7`,kLKAdn:`x14m0hsi`,kGO01o:`xc1wllq`,$$css:!0}},t_=qe[`--spacing-4`],n_=`var(--astryx-card-padding, ${t_})`,r_=`var(--astryx-card-padding-inline, ${n_})`,`${r_}`,`${r_}`,`${n_}`,`${n_}`,i_=`var(--_section-padding-propagated, ${`var(--astryx-section-padding, ${t_})`})`,a_=`var(--astryx-section-padding-inline, ${i_})`,`${a_}`,`${a_}`,`${i_}`,`${i_}`,o_=`var(--astryx-dialog-padding, ${t_})`,s_=`var(--astryx-dialog-padding-inline, ${o_})`,`${s_}`,`${s_}`,`${o_}`,`${o_}`,c_={card:{containerPaddingInlineStart:{"--container-padding-inline-start":`xjmlhfd`,$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":`x1ihxwbr`,$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":`x1rqz8me`,$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":`x1omyuck`,$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":`x14rzhog`,$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":`xjej9fs`,$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":`x4poyjn`,$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":`x1u1kw4e`,$$css:!0}},section:{containerPaddingInlineStart:{"--container-padding-inline-start":`x19lemt0`,$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":`xu1wldr`,$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":`xnw7zt4`,$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":`xek4msv`,$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":`x15i0zw9`,$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":`x1vw4zgg`,$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":`x1v3gmnx`,$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":`x15yx5hm`,$$css:!0}},dialog:{containerPaddingInlineStart:{"--container-padding-inline-start":`x1tewnwq`,$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":`x11h1f2o`,$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":`x1g2kccc`,$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":`x1gvthzm`,$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":`x1hsjncj`,$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":`x1pui4bz`,$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":`x2so38`,$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":`xinu7xd`,$$css:!0}}},l_={spacing0:{"--container-padding-inline-start":`x1gu2k80`,$$css:!0},spacing0_5:{"--container-padding-inline-start":`x14ws0sr`,$$css:!0},spacing1:{"--container-padding-inline-start":`x1cvlban`,$$css:!0},spacing1_5:{"--container-padding-inline-start":`x176g23i`,$$css:!0},spacing2:{"--container-padding-inline-start":`x1xlrr2o`,$$css:!0},spacing3:{"--container-padding-inline-start":`xfdwxua`,$$css:!0},spacing4:{"--container-padding-inline-start":`x1dlhslv`,$$css:!0},spacing5:{"--container-padding-inline-start":`x1s81nki`,$$css:!0},spacing6:{"--container-padding-inline-start":`x1ep0dkj`,$$css:!0},spacing7:{"--container-padding-inline-start":`x157xojc`,$$css:!0},spacing8:{"--container-padding-inline-start":`xw1diwv`,$$css:!0},spacing9:{"--container-padding-inline-start":`xraca2a`,$$css:!0},spacing10:{"--container-padding-inline-start":`xserb3f`,$$css:!0},spacing11:{"--container-padding-inline-start":`xziclwo`,$$css:!0},spacing12:{"--container-padding-inline-start":`x1iiwihq`,$$css:!0}},u_={spacing0:{"--container-padding-inline-end":`x91ghl5`,$$css:!0},spacing0_5:{"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},spacing1:{"--container-padding-inline-end":`x2oyxnl`,$$css:!0},spacing1_5:{"--container-padding-inline-end":`xntetml`,$$css:!0},spacing2:{"--container-padding-inline-end":`xcas3b9`,$$css:!0},spacing3:{"--container-padding-inline-end":`xu0ipoa`,$$css:!0},spacing4:{"--container-padding-inline-end":`xs0pscg`,$$css:!0},spacing5:{"--container-padding-inline-end":`xgkj7vj`,$$css:!0},spacing6:{"--container-padding-inline-end":`x94cj42`,$$css:!0},spacing7:{"--container-padding-inline-end":`x11tj35w`,$$css:!0},spacing8:{"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},spacing9:{"--container-padding-inline-end":`x19w02kr`,$$css:!0},spacing10:{"--container-padding-inline-end":`xx5lg5w`,$$css:!0},spacing11:{"--container-padding-inline-end":`x1nmgbqg`,$$css:!0},spacing12:{"--container-padding-inline-end":`x1wsfsk2`,$$css:!0}},d_={spacing0:{"--container-padding-block-start":`x1i3qcxz`,$$css:!0},spacing0_5:{"--container-padding-block-start":`xvdf9ev`,$$css:!0},spacing1:{"--container-padding-block-start":`xnsckjb`,$$css:!0},spacing1_5:{"--container-padding-block-start":`x1kbx601`,$$css:!0},spacing2:{"--container-padding-block-start":`xa8b4fq`,$$css:!0},spacing3:{"--container-padding-block-start":`x11k4f5r`,$$css:!0},spacing4:{"--container-padding-block-start":`xm01sq8`,$$css:!0},spacing5:{"--container-padding-block-start":`xp8wdkl`,$$css:!0},spacing6:{"--container-padding-block-start":`x1hmud4d`,$$css:!0},spacing7:{"--container-padding-block-start":`x1c00sag`,$$css:!0},spacing8:{"--container-padding-block-start":`xfv60at`,$$css:!0},spacing9:{"--container-padding-block-start":`x14fzdu7`,$$css:!0},spacing10:{"--container-padding-block-start":`x17h9kl7`,$$css:!0},spacing11:{"--container-padding-block-start":`x1rdjxae`,$$css:!0},spacing12:{"--container-padding-block-start":`xecwdl6`,$$css:!0}},f_={spacing0:{"--container-padding-block-end":`xkunwnr`,$$css:!0},spacing0_5:{"--container-padding-block-end":`x1cao3zv`,$$css:!0},spacing1:{"--container-padding-block-end":`x57a7ii`,$$css:!0},spacing1_5:{"--container-padding-block-end":`xv53x8y`,$$css:!0},spacing2:{"--container-padding-block-end":`x1lsgcmx`,$$css:!0},spacing3:{"--container-padding-block-end":`x1q3ppug`,$$css:!0},spacing4:{"--container-padding-block-end":`x4hfsld`,$$css:!0},spacing5:{"--container-padding-block-end":`xbib2ws`,$$css:!0},spacing6:{"--container-padding-block-end":`x1q8d17g`,$$css:!0},spacing7:{"--container-padding-block-end":`x1yqogew`,$$css:!0},spacing8:{"--container-padding-block-end":`x8lgq76`,$$css:!0},spacing9:{"--container-padding-block-end":`x1f7f9rt`,$$css:!0},spacing10:{"--container-padding-block-end":`x15vxphk`,$$css:!0},spacing11:{"--container-padding-block-end":`x4bg2x9`,$$css:!0},spacing12:{"--container-padding-block-end":`x186mjxr`,$$css:!0}},p_={spacing0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},spacing0_5:{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},spacing1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},spacing1_5:{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0},spacing2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},spacing3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},spacing4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},spacing5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},spacing6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},spacing7:{"--layout-padding-outer-x":`x1gfiokx`,$$css:!0},spacing8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},spacing9:{"--layout-padding-outer-x":`xzr4qsh`,$$css:!0},spacing10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},spacing11:{"--layout-padding-outer-x":`x1hct0t0`,$$css:!0},spacing12:{"--layout-padding-outer-x":`x11cyqoe`,$$css:!0}},m_={spacing0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},spacing0_5:{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},spacing1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},spacing1_5:{"--layout-padding-outer-y":`xd3dqby`,$$css:!0},spacing2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},spacing3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},spacing4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},spacing5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},spacing6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},spacing7:{"--layout-padding-outer-y":`x1q6rme1`,$$css:!0},spacing8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},spacing9:{"--layout-padding-outer-y":`x1t5kicu`,$$css:!0},spacing10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},spacing11:{"--layout-padding-outer-y":`x10zktp0`,$$css:!0},spacing12:{"--layout-padding-outer-y":`x1yz3n6a`,$$css:!0}},h_={spacing0:{"--layout-padding-inner-x":`xj1bl4l`,$$css:!0},spacing0_5:{"--layout-padding-inner-x":`xlriy2h`,$$css:!0},spacing1:{"--layout-padding-inner-x":`x6uuyak`,$$css:!0},spacing1_5:{"--layout-padding-inner-x":`xd38f90`,$$css:!0},spacing2:{"--layout-padding-inner-x":`xxqksqd`,$$css:!0},spacing3:{"--layout-padding-inner-x":`x1fyui2f`,$$css:!0},spacing4:{"--layout-padding-inner-x":`x1i2ajwi`,$$css:!0},spacing5:{"--layout-padding-inner-x":`x1tac27u`,$$css:!0},spacing6:{"--layout-padding-inner-x":`x1ntgf3t`,$$css:!0},spacing7:{"--layout-padding-inner-x":`xhjd9tl`,$$css:!0},spacing8:{"--layout-padding-inner-x":`xn7c84u`,$$css:!0},spacing9:{"--layout-padding-inner-x":`xeqkbsz`,$$css:!0},spacing10:{"--layout-padding-inner-x":`x1vf4qco`,$$css:!0},spacing11:{"--layout-padding-inner-x":`xsmamsf`,$$css:!0},spacing12:{"--layout-padding-inner-x":`x2xk2xj`,$$css:!0}},g_={spacing0:{"--layout-padding-inner-y":`xwuefyo`,$$css:!0},spacing0_5:{"--layout-padding-inner-y":`x180h0y5`,$$css:!0},spacing1:{"--layout-padding-inner-y":`xmpug6m`,$$css:!0},spacing1_5:{"--layout-padding-inner-y":`x1g8jpzm`,$$css:!0},spacing2:{"--layout-padding-inner-y":`x1lksgje`,$$css:!0},spacing3:{"--layout-padding-inner-y":`x4j7gld`,$$css:!0},spacing4:{"--layout-padding-inner-y":`x1s3ehtl`,$$css:!0},spacing5:{"--layout-padding-inner-y":`x1rj5eim`,$$css:!0},spacing6:{"--layout-padding-inner-y":`x1ftgg6u`,$$css:!0},spacing7:{"--layout-padding-inner-y":`x1ho74vh`,$$css:!0},spacing8:{"--layout-padding-inner-y":`xm2cs6f`,$$css:!0},spacing9:{"--layout-padding-inner-y":`x1vsq92b`,$$css:!0},spacing10:{"--layout-padding-inner-y":`x18gbwmk`,$$css:!0},spacing11:{"--layout-padding-inner-y":`x14zymzj`,$$css:!0},spacing12:{"--layout-padding-inner-y":`xzfpkx9`,$$css:!0}},__={containerMaxHeight:e=>[{"--container-max-height":e==null?e:`x18nyedi`,$$css:!0},{"--x---container-max-height":e??void 0}]}}));H(),v_(),Dr(),hn(),ut();var y_={card:{"--_card-radius":`x2kkz0m`,kaIpWk:`x153u1i6`,kVQacm:`x7giv3`,kGVxlE:`x1p8z4y0`,$$css:!0},withBorder:{kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kVAM5u:`x14i3s5s`,kZCmMZ:`xs19ii7`,kwRFfy:`x12frdag`,kLKAdn:`x1nex4ik`,kGO01o:`xbv1mwh`,$$css:!0},scrollable:{kVQacm:`xysyzu8`,$$css:!0}},b_={default:{kWkggS:`x1de1mus`,$$css:!0},transparent:{kWkggS:`xjbqb8w`,$$css:!0},muted:{kWkggS:`xwmxj5m`,$$css:!0},blue:{kWkggS:`x1o0wnni`,$$css:!0},cyan:{kWkggS:`x1rgj867`,$$css:!0},gray:{kWkggS:`xspzpui`,$$css:!0},green:{kWkggS:`x1sqjeoo`,$$css:!0},orange:{kWkggS:`x1e9xt6e`,$$css:!0},pink:{kWkggS:`xnpoty2`,$$css:!0},purple:{kWkggS:`x16i6n6f`,$$css:!0},red:{kWkggS:`x1cibrc5`,$$css:!0},teal:{kWkggS:`x1jtji5o`,$$css:!0},yellow:{kWkggS:`x1bo7t0x`,$$css:!0}},x_={none:{"--_card-elevation":`xw28qpl`,$$css:!0},low:{"--_card-elevation":`x1nn8khe`,$$css:!0},med:{"--_card-elevation":`x1ovzxg0`,$$css:!0},high:{"--_card-elevation":`xnpe7fx`,$$css:!0}},S_={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]};function C_({width:e,height:t,maxWidth:n,minHeight:r,children:i,padding:a,variant:o=`default`,elevation:s=`none`,xstyle:c,className:l,style:u,ref:d,...f}){let p=t!=null&&t!==`auto`,m=a==null?void 0:ur[a];return(0,G.jsx)(`div`,{ref:d,...W(U(`card`,{variant:o,elevation:s}),V(y_.card,b_[o],x_[s],p&&y_.scrollable,S_.sizing(e??null,t??null,n??null,r??null),...$g(m==null?{useThemeDefault:`card`}:{paddingInnerX:m,paddingInnerY:m,paddingOuterX:m,paddingOuterY:m}),o==="default"&&y_.withBorder,c),l,u),...f,children:i})}C_.displayName=`Card`;function w_({providers:e}){return J(`main`,{className:`void-admin-auth`,children:Y(C_,{children:[J($i,{level:1,children:`Void Admin`}),J(Yi,{children:`Sign in with your admin account`}),J(`div`,{className:`void-admin-auth-actions`,children:e.map(({id:e,label:t})=>J(Mg,{as:`a`,href:`/admin/login/${encodeURIComponent(e)}`,label:`Sign in with ${t}`},e))})]})})}var T_=Yp()({id:!0,user_id:!0,slug:!0,type:!0,owner_login:!0,requests:!0,bandwidthBytes:!0,lastSeen:!0,url:!0}),E_=Yp()({id:!0,userCount:!0,projectCount:!0,deploymentCount:!0,projects:!0,deployments:!0,siteDomain:!0,tz:!0,topProjects:Mp({items:{node:T_}})}),D_={dashboard:{view:E_}},O_=Yp()({id:!0,allOk:!0,checks:!0}),k_={health:{view:O_}},A_=Yp()({id:!0,lines:!0,lastSeq:!0}),j_=Yp()({id:!0,status:!0,terminal:!0}),M_=Yp()({id:!0,data:!0}),N_=(e,t)=>({buildLogs:{view:A_,args:{id:e,since:t}}}),P_=e=>({buildStatus:{view:j_,args:{id:e}}}),F_=(e,t,n)=>({deploymentLogs:{view:M_,args:{id:e,since:t,limit:n}}}),I_=Yp()({id:!0,users:!0,search:!0,page:!0,totalPages:!0,tz:!0}),L_=Yp()({id:!0,projects:!0,search:!0,page:!0,totalPages:!0,siteDomain:!0,tz:!0}),R_=Yp()({id:!0,deployments:!0,search:!0,page:!0,totalPages:!0,tz:!0}),z_=e=>({usersPage:{view:I_,args:{path:e}}}),B_=e=>({projectsPage:{view:L_,args:{path:e}}}),V_=e=>({deploymentsPage:{view:R_,args:{path:e}}}),H_=Yp()({id:!0,user:!0,projects:!0,deploysToday:!0,usage:!0,tz:!0}),U_=Yp()({id:!0,project:!0,deployments:!0,resources:!0,owner:!0,teamMembers:!0,pendingTeamInvitations:!0,domains:!0,builds:!0,cfAccountId:!0,deployUrl:!0,tz:!0}),W_=Yp()({id:!0,deployment:!0,project:!0,manifest:!0,canCancel:!0,tz:!0}),G_=Yp()({id:!0,build:!0,tz:!0}),K_=e=>({userDetail:{view:H_,args:{path:e}}}),q_=e=>({projectDetail:{view:U_,args:{path:e}}}),J_=e=>({deploymentDetail:{view:W_,args:{path:e}}}),Y_=e=>({buildDetail:{view:G_,args:{path:e}}}),X_=Yp()({id:!0,allTime:!0,last30Days:!0,tz:!0}),Z_=Yp()({id:!0,enabled:!0,entries:!0,directEntries:!0,admission:!0,connections:!0,initialized:!0,revision:!0,methods:!0,protection:!0,invitations:!0,page:!0,totalPages:!0,emailEnabled:!0,connectCommand:!0,inviteUrl:!0,result:!0,tz:!0}),Q_=Yp()({id:!0,invitations:!0,page:!0,totalPages:!0,tz:!0}),$_=e=>({cliVersions:{view:X_,args:{path:e}}}),ev=e=>({signupControl:{view:Z_,args:{path:e}}}),tv=e=>({invitations:{view:Q_,args:{path:e}}}),nv=Yp()({id:!0,data:!0,tested:!0}),rv=Yp()({id:!0,kind:!0,connectionId:!0,callbackUrl:!0}),iv=Yp()({id:!0,configuration:!0,label:!0,revision:!0,callbackUrl:!0}),av=e=>({authSettings:{view:nv,args:{path:e}}}),ov=e=>({authNew:{view:rv,args:{path:e}}}),sv=e=>({authEdit:{view:iv,args:{path:e}}}),cv=Yp()({id:!0,policy:!0,management:!0,senderDomain:!0}),lv=Yp()({id:!0,projectId:!0,project:!0,month:!0,attempts:!0,received:!0,monthlyLimit:!0,burstLimit:!0,isSuspended:!0,domains:!0,destinations:!0,senderDomain:!0,tz:!0}),uv=e=>({emailSettings:{view:cv,args:{path:e}}}),dv=e=>({emailProject:{view:lv,args:{path:e}}}),fv,pv=o((()=>{fv=`button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child`}));function mv(e){(0,xv.useEffect)(()=>{if(e)return Sv+=1,()=>{--Sv}},[e])}function hv(e){if(e.hasAttribute(`inert`)||e.closest(`[inert]`)||e.hidden||e.closest(`[hidden]`)||e.closest(`[aria-hidden="true"]`))return!1;if(typeof window<`u`&&window.getComputedStyle){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function gv(e){return Array.from(e.querySelectorAll(fv)).filter(hv)}function _v(e){try{e.focus()}catch{}return document.activeElement===e}function vv(e){let t=gv(e);for(let e of t)if(_v(e))return!0;return!1}function yv(e){let t=gv(e);for(let e=t.length-1;e>=0;e--)if(_v(t[e]))return!0;return!1}function bv(e){let{isActive:t,onEscape:n}=e,r=(0,xv.useRef)(null),i=(0,xv.useRef)(null),a=(0,xv.useRef)(!1),o=t&&n!=null;Oi({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),mv(o);let s=(0,xv.useCallback)(()=>{r.current&&vv(r.current)},[]);return(0,xv.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current,i=n!=null&&n.contains(document.activeElement),a=e=>{let t=e.target;t!=null&&r.current?.contains(t)&&(i=!0)};return document.addEventListener(`focusin`,a,!0),()=>{if(document.removeEventListener(`focusin`,a,!0),!i)return;let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,xv.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=vv(t);e&&i.current===document.activeElement?yv(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&_v(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,xv.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=gv(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];if(document.activeElement===t){e.preventDefault(),e.shiftKey?o.focus():r.focus();return}e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var xv,Sv,Cv=o((()=>{xv=u(f(),1),pv(),Ai(),Sv=0}));function wv(e){let t=Fv[e];t!=null&&(clearTimeout(t),Fv[e]=null)}function Tv(e,t){wv(e),Fv[e]=setTimeout(()=>{Fv[e]=null,t.textContent=``},Pv)}function Ev(e){let t=document.createElement(`div`);return t.setAttribute(Mv,e),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-atomic`,`true`),t.setAttribute(`role`,e===`assertive`?`alert`:`status`),t.style.cssText=Nv,document.body.appendChild(t),t}function Dv(){return typeof document>`u`?null:Iv?(Iv.polite.isConnected||document.body.appendChild(Iv.polite),Iv.assertive.isConnected||document.body.appendChild(Iv.assertive),Iv):(Iv={polite:Ev(`polite`),assertive:Ev(`assertive`)},Iv)}function Ov(e,t){let n=Dv();if(!n)return;let r=t===`assertive`?n.assertive:n.polite;r.textContent=``,requestAnimationFrame(()=>{r.textContent=e}),Tv(t,r)}function kv(e){if(wv(e),!Iv)return;let t=e===`assertive`?Iv.assertive:Iv.polite;t.textContent=``}function Av(){return(0,jv.useCallback)((e,t=`polite`)=>{if(!e){kv(t);return}Ov(e,t)},[])}var jv,Mv,Nv,Pv,Fv,Iv,Lv=o((()=>{jv=u(f(),1),Mv=`data-astryx-live-region`,Nv=`position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;inset-block-start:0;inset-inline-start:0;pointer-events:none;user-select:none;`,Pv=2e3,Fv={polite:null,assertive:null},Iv=null}));function Rv(e){return!e||typeof window>`u`?!1:window.getComputedStyle(e).direction===`rtl`}var zv=o((()=>{}));function Bv(e){if(e.isContentEditable)return e;let t=e.closest(`[contenteditable]`);return t&&t.getAttribute(`contenteditable`)!==`false`?t:null}function Vv(e,t){if(!(e instanceof HTMLElement))return!1;let n=Bv(e);if(n){let e=typeof window<`u`?window.getSelection():null;return e&&e.rangeCount>0&&!e.isCollapsed?!0:(n.textContent??``).length>0}let r=e.tagName===`TEXTAREA`,i=e.tagName===`INPUT`&&Wv.has(e.type);if(!r&&!i)return!1;let{selectionStart:a,selectionEnd:o,value:s}=e;return a!==o||a==null?!0:t===`ArrowLeft`||t===`ArrowUp`||t===`Home`?a>0:t===`ArrowRight`||t===`ArrowDown`||t===`End`?a<s.length:!1}function Hv(e={}){let{itemSelector:t=`[role="menuitem"]`,boundarySelector:n,wrap:r=!0,onEscape:i,orientation:a=`vertical`,hasHomeEnd:o=!0,hasRovingTabIndex:s=!1,hasCaretGuard:c=!1}=e,l=(0,Uv.useRef)(null),u=(0,Uv.useCallback)(e=>e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0||e.hasAttribute(`disabled`),[]),d=(0,Uv.useCallback)(()=>{let e=l.current;if(!e)return[];let r=Array.from(e.querySelectorAll(t));return n?r.filter(t=>t.closest(n)===e):r},[t,n]),f=(0,Uv.useCallback)(e=>{let t=l.current;if(!t||!n)return!0;let r=e.target;return!r||r.closest(n)===t},[n]),p=(0,Uv.useCallback)((e,t,n,r)=>{let i=e.length;if(i===0)return-1;let a=t;for(let t=0;t<i;t++){if(a<0||a>=i){if(!r)return-1;a=(a+i)%i}let t=e[a];if(t&&!u(t))return a;a+=n}return-1},[u]),m=(0,Uv.useCallback)(()=>{let e=d(),t=document.activeElement;return e.findIndex(e=>e===t||e.contains(t))},[d]),h=(0,Uv.useCallback)((e,t)=>{e.getAttribute(`tabindex`)!==String(t)&&e.setAttribute(`tabindex`,String(t))},[]),g=(0,Uv.useCallback)(()=>{let e=d(),t=e.filter(e=>!u(e));if(t.length===0)return;let n=t.find(e=>e.getAttribute(`tabindex`)===`0`)??t[0];for(let t of e)h(t,t===n?0:-1)},[d,u,h]);Gn(()=>{s&&g()});let _=(0,Uv.useCallback)((e,t)=>{let n=e[t];if(n){if(s)for(let t of e)h(t,t===n?0:-1);n.focus()}},[s,h]),v=(0,Uv.useCallback)(e=>{let t=d();if(t.length===0)return;let n=Math.max(0,Math.min(e,t.length-1));_(t,n)},[d,_]),y=(0,Uv.useCallback)(()=>{let e=d(),t=p(e,0,1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),b=(0,Uv.useCallback)(()=>{let e=d(),t=p(e,e.length-1,-1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),x=(0,Uv.useCallback)(()=>{s&&g()},[s,g]);return{listRef:l,handleKeyDown:(0,Uv.useCallback)(e=>{if(e.ctrlKey||e.metaKey||e.altKey||!f(e))return;if(e.key===`Escape`){i&&(e.preventDefault(),i());return}let t=a===`horizontal`||a===`both`,n=a===`vertical`||a===`both`,s=[],u=[];if(t){let t=e.key===`ArrowLeft`||e.key===`ArrowRight`?Rv(l.current):!1;s.push(t?`ArrowLeft`:`ArrowRight`),u.push(t?`ArrowRight`:`ArrowLeft`)}n&&(s.push(`ArrowDown`),u.push(`ArrowUp`));let h=s.includes(e.key),g=u.includes(e.key),v=o&&e.key===`Home`,x=o&&e.key===`End`;if(!h&&!g&&!v&&!x||c&&(Vv(e.target,e.key)||Vv(document.activeElement,e.key)))return;let S=m(),C=d();if(h){let e=S===-1?0:S+1,t=p(C,e,1,r);t!==-1&&_(C,t)}else if(g){let e=S===-1?C.length-1:S-1,t=p(C,e,-1,r);t!==-1&&_(C,t)}else v?y():x&&b();e.preventDefault()},[m,d,r,a,o,c,p,_,y,b,i,f]),handleFocus:x,focusItem:v,focusFirst:y,focusLast:b,ownsEvent:f,getItems:d}}var Uv,Wv,Gv=o((()=>{Uv=u(f(),1),zv(),Kn(),Wv=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`])}));function Kv(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&e.key!==` `}function qv(e){let{getItemLabels:t,onMatch:n,getCurrentIndex:r,resetMs:i=750,isDisabled:a}=e,o=(0,Jv.useRef)(``),s=(0,Jv.useRef)(void 0),c=(0,Jv.useCallback)(()=>{o.current=``,s.current&&=(clearTimeout(s.current),void 0)},[]),l=(0,Jv.useCallback)(()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=``,s.current=void 0},i)},[i]);return{onKeyDown:(0,Jv.useCallback)(e=>{let i=e.key===` `&&!e.ctrlKey&&!e.metaKey&&o.current.length>0;if(!Kv(e)&&!i)return!1;let s=t();if(s.length===0)return!1;let c=e.key.toLowerCase(),u=o.current.length>0&&o.current.split(``).every(e=>e===c)?c:o.current+c;o.current=u,l();let d=r?.()??-1,f=s.length,p=d>=0,m=p?d:0,h=p&&u.length===1?1:0;for(let e=0;e<f;e++){let t=(m+h+e+f)%f;if(a?.(t))continue;let r=s[t];if(r!=null&&r.trim().toLowerCase().startsWith(u))return n(t),!0}return!0},[t,n,r,l,a]),reset:c}}var Jv,Yv=o((()=>{Jv=u(f(),1)}));function Xv(e,t,n=!0){let r=(0,Zv.useRef)(!1);(0,Zv.useEffect)(()=>{n&&!r.current&&(r.current=!0)},[e,t,n])}var Zv,Qv=o((()=>{Zv=u(f(),1),Zt()}));function $v(e,t){ny.set(e,t)}function ey(e){ny.delete(e)}function ty(e){return ny.get(e)}var ny,ry=o((()=>{ny=new WeakMap}));function iy(e){if(e.tabIndex<0||e.matches(`:disabled`)||e.closest(`[inert], [hidden]`)!=null||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).visibility;return t!==`hidden`&&t!==`collapse`}function ay(e,t){let n=t.querySelectorAll(fv),r=t.matches(`button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child`)&&iy(t)?t:null;for(let e of n)if(!(r!=null&&e.tabIndex<=0)&&iy(e)){if(e.tabIndex>0)return null;r??=e}if(r==null||r.tabIndex!==0||!r.matches(`a[href], button`)||r.closest(`[aria-hidden="true"]`)!=null||r.matches(`[aria-disabled="true"], [aria-haspopup]:not([aria-haspopup="false"])`))return null;let i=r;for(;i!=null&&i!==e;){let e=i.getAttribute(`role`)?.trim().toLowerCase(),t=i===r&&(e===`button`&&r.localName===`button`||e===`link`&&r.localName===`a`);if(e!=null&&e!==``&&!t&&!sy.has(e)||i===r&&e!=null&&e!==``&&!t||i.hasAttribute(`aria-activedescendant`)||i.isContentEditable||i.matches(`[contenteditable]:not([contenteditable="false"])`)||ty(i)!=null)return null;let n=getComputedStyle(i);if(/^(auto|scroll|overlay)$/.test(n.overflowX)&&i.scrollWidth>i.clientWidth+1||/^(auto|scroll|overlay)$/.test(n.overflowY)&&i.scrollHeight>i.clientHeight+1)return null;i=i.parentElement}return i===e?r:null}function oy(e,t){let n=e.ownerDocument,r=n.defaultView;if(r==null)return()=>{};let i=null,a=null,o=null,s,c,l=()=>{i=null,a=null,r.clearTimeout(s),c?.(),c=void 0},u=t=>{if(l(),!(t.key!==`Tab`||t.ctrlKey||t.metaKey)){if(i=t,a=t.target,t.shiftKey&&o!=null&&n.activeElement===o&&e.contains(o)){let t=e.getAttribute(`tabindex`);e.tabIndex=-1,c=()=>{e.getAttribute(`tabindex`)===`-1`&&(t==null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t))}}s=r.setTimeout(l,0)}},d=r=>{let s=i,c=a;if(l(),r.target!==e){e.contains(r.target)||(o=null);return}if(o=null,s==null||s.shiftKey||s.defaultPrevented||s.eventPhase!==0||r.relatedTarget!=null&&r.relatedTarget!==c)return;let u=ay(e,t);u!=null&&(o=u,u.focus(),n.activeElement!==u&&(o=null))};return n.addEventListener(`keydown`,u,!0),n.addEventListener(`keyup`,l,!0),n.addEventListener(`pointerdown`,l,!0),n.addEventListener(`focusin`,d,!0),r.addEventListener(`blur`,l),()=>{l(),n.removeEventListener(`keydown`,u,!0),n.removeEventListener(`keyup`,l,!0),n.removeEventListener(`pointerdown`,l,!0),n.removeEventListener(`focusin`,d,!0),r.removeEventListener(`blur`,l)}}var sy,cy=o((()=>{pv(),ry(),sy=new Set([`article`,`banner`,`complementary`,`contentinfo`,`definition`,`directory`,`document`,`figure`,`form`,`generic`,`group`,`heading`,`list`,`listitem`,`main`,`navigation`,`none`,`note`,`paragraph`,`presentation`,`region`,`section`,`status`,`table`,`term`])}));function ly(e,t){let n=e.toLowerCase(),r=n.startsWith(`vertical`)||n.startsWith(`sideways`),i=t===`rtl`;return r?{inline:`y`,block:`x`,inlineReversed:n===`sideways-lr`?!i:i,blockReversed:n.endsWith(`-rl`)}:{inline:`x`,block:`y`,inlineReversed:i,blockReversed:!1}}function uy(e){return e===`auto`||e===`scroll`||e===`overlay`}function dy(e,t){let n=getComputedStyle(e);return t===`x`?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:n.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:n.overflowY}}function fy(e,t){return e.isConnected&&t.display!==`none`&&e.clientWidth>0&&e.clientHeight>0}function py(e,t,n){if(!fy(e,getComputedStyle(e)))return null;let r=n[t],i=r===`x`?e.clientWidth:e.clientHeight;return(r===`x`?e.scrollWidth:e.scrollHeight)-i>1}function my(e,t,n){if(!fy(e,getComputedStyle(e)))return null;let r=n[t],i=dy(e,r),a=i.contentExtent-i.clientExtent;if(!uy(i.overflow)||a<=1)return hy;let o=n[`${t}Reversed`],s=Math.min(a,Math.max(0,o?Math.abs(i.offset):i.offset));return{isScrollable:!0,atStart:s<=1,atEnd:s>=a-1}}var hy,gy=o((()=>{hy={isScrollable:!1,atStart:!0,atEnd:!0}}));function _y(e,t){return e===t||e===`both`}function vy(e,t){return e.inline.isScrollable===t.inline.isScrollable&&e.inline.atStart===t.inline.atStart&&e.inline.atEnd===t.inline.atEnd&&e.block.isScrollable===t.block.isScrollable&&e.block.atStart===t.block.atStart&&e.block.atEnd===t.block.atEnd}function yy(e,t){return e.inline===t.inline&&e.block===t.block}function by(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function xy(e){if(e==null)return;let t={...e};return delete t.overflow,delete t.overflowX,delete t.overflowY,delete t.overflowInline,delete t.overflowBlock,t}function Sy(e){let t=(0,wy.useRef)(void 0),n=(0,wy.useRef)(null);return(0,wy.useCallback)(r=>{if(n.current!=null&&Object.is(t.current,r))return n.current;let i=Ct(r,e);return t.current=r,n.current=i,i},[e])}function Cy({axis:e,keyboardAccess:t,overscroll:n=`allow`,stickyContainment:r=`whenScrollable`}){let[i,a]=(0,wy.useState)(null),[o,s]=(0,wy.useState)(null),[c,l]=(0,wy.useState)(Ey),[u,d]=(0,wy.useState)(Dy),[f,p]=(0,wy.useState)(Oy),m=(0,wy.useRef)(Ey),h=(0,wy.useCallback)(e=>{a(t=>t===e?t:e)},[]),g=(0,wy.useCallback)(e=>{s(t=>t===e?t:e)},[]),_=Sy(h),v=Sy(g);Gn(()=>{if(i==null||o==null)return;let t=null,n=!0,r=()=>{t=null;let n=getComputedStyle(i),r=ly(n.writingMode,n.direction),a=_y(e,`inline`)?py(i,`inline`,r):!1,o=_y(e,`block`)?py(i,`block`,r):!1,s=_y(e,`inline`)?my(i,`inline`,r):Ty,c=_y(e,`block`)?my(i,`block`,r):Ty;if(a==null||o==null||s==null||c==null)return;let u={inline:a,block:o},f={inline:s,block:c};m.current=f,$v(i,f),d(e=>yy(e,u)?e:u),l(e=>vy(e,f)?e:f),p(e=>by(e,r)?e:r)},a=()=>{n&&t==null&&(t=window.requestAnimationFrame(r))};$v(i,m.current),r();let s=jt(i,a),c=jt(o,a);i.addEventListener(`scroll`,a,{passive:!0}),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),o.addEventListener(`load`,a,!0),i.addEventListener(`transitionend`,a),i.addEventListener(`animationend`,a),o.addEventListener(`transitionend`,a),o.addEventListener(`animationend`,a);let u=typeof MutationObserver>`u`?null:new MutationObserver(a);u?.observe(i,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),u?.observe(o,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`],characterData:!0,childList:!0,subtree:!0});let f=i.parentElement;for(;f!=null;)u?.observe(f,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),f=f.parentElement;let h=document.fonts;return h?.addEventListener?.(`loadingdone`,a),h?.ready.then(a),()=>{n=!1,ey(i),s(),c(),u?.disconnect(),i.removeEventListener(`scroll`,a),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a),o.removeEventListener(`load`,a,!0),i.removeEventListener(`transitionend`,a),i.removeEventListener(`animationend`,a),o.removeEventListener(`transitionend`,a),o.removeEventListener(`animationend`,a),h?.removeEventListener?.(`loadingdone`,a),t!=null&&window.cancelAnimationFrame(t)}},[e,o,i]);let y=(0,wy.useMemo)(()=>({inline:_y(e,`inline`)?c.inline:Ty,block:_y(e,`block`)?c.block:Ty}),[e,c]),b=y.inline.isScrollable||y.block.isScrollable;return Gn(()=>{if(t.owner===`contentOrViewport`&&b&&i!=null&&o!=null)return oy(i,o)},[o,b,t.owner,i]),{getViewportProps:(0,wy.useCallback)((a={})=>{let o=y.inline.isScrollable||y.block.isScrollable,s=_y(e,`inline`)&&f.inline===`x`||_y(e,`block`)&&f.block===`x`,c=_y(e,`inline`)&&f.inline===`y`||_y(e,`block`)&&f.block===`y`,l=u.inline&&f.inline===`x`||u.block&&f.block===`x`,d=u.inline&&f.inline===`y`||u.block&&f.block===`y`,p=l||d||r===`always`,m=r===`always`?s:l,h=r===`always`?c:d,{xstyle:g,...v}=a,b=W({...v,style:xy(v.style)},V(g,ky.overflow(p?m?`auto`:`hidden`:`clip`,p?h?`auto`:`hidden`:`clip`))),x=t.owner!==`content`,S=(!x||!o)&&i!=null&&typeof document<`u`&&document.activeElement===i,C={...b.style},w=n===`contain`&&y.inline.isScrollable,T=n===`contain`&&y.block.isScrollable,E=f.inline,D=f.block;_y(e,`inline`)&&(C[E===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=w?`contain`:`auto`),_y(e,`block`)&&(C[D===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=T?`contain`:`auto`);let O=t.owner===`content`?{}:{role:t.role??`group`,"aria-label":t.label,tabIndex:x&&o?0:S?-1:void 0};return{...b,...O,ref:_(b.ref),style:C,"data-scroll-axis":e,"data-scrollable-inline":y.inline.isScrollable?`true`:void 0,"data-scrollable-block":y.block.isScrollable?`true`:void 0,"data-scroll-inline-start":y.inline.atStart?`true`:void 0,"data-scroll-inline-end":y.inline.atEnd?`true`:void 0,"data-scroll-block-start":y.block.atStart?`true`:void 0,"data-scroll-block-end":y.block.atEnd?`true`:void 0}},[e,_,t,f,u,n,y,r,i]),getContentProps:(0,wy.useCallback)((e={})=>({...e,ref:v(e.ref),"data-scroll-content":``}),[v]),state:y}}var wy,Ty,Ey,Dy,Oy,ky,Ay=o((()=>{wy=u(f(),1),H(),cy(),Kn(),St(),wt(),Ft(),gy(),ry(),Ty={isScrollable:!1,atStart:!0,atEnd:!0},Ey={inline:Ty,block:Ty},Dy={inline:!1,block:!1},Oy={inline:`x`,block:`y`,inlineReversed:!1,blockReversed:!1},ky={overflow:(e,t)=>[{kXHlph:e==null?e:`xyto64x`,kORKVm:t==null?t:`x4ncuvb`,$$css:!0},{"--x-overflowX":e??void 0,"--x-overflowY":t??void 0}]}}));function jy(e){if(typeof window>`u`||typeof document>`u`)return My;let t=document.documentElement,n=t.clientWidth;if(n===0)return My;let r=t.style.scrollbarGutter,i=e.style.paddingRight,a=e.getBoundingClientRect().width,o=!1,s=!1,c=!1;return window.innerWidth>n&&(t.style.scrollbarGutter=`stable`,o=!0),{settle(){if(c)return;c=!0;let t=e.getBoundingClientRect().width-a;if(t<=0)return;let n=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`,s=!0},release(){s&&=(e.style.paddingRight=i,!1),o&&=(t.style.scrollbarGutter=r,!1)}}}var My,Ny=o((()=>{My={settle(){},release(){}}}));function Py(e){(0,Fy.useEffect)(()=>{if(!e)return;let{body:t}=document;if(Iy===0){let e=window.scrollX,n=window.scrollY,r=jy(t);Ly={scrollX:e,scrollY:n,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:r},t.style.overflow=`hidden`,t.style.position=`fixed`,t.style.top=`-${n}px`,t.style.left=`0`,t.style.right=`0`,r.settle()}return Iy+=1,()=>{if(--Iy,Iy!==0||Ly==null)return;let e=Ly;Ly=null,t.style.overflow=e.overflow,t.style.position=e.position,t.style.top=e.top,t.style.left=e.left,t.style.right=e.right,e.gutter.release(),window.scrollTo(e.scrollX,e.scrollY)}},[e])}var Fy,Iy,Ly,Ry=o((()=>{Fy=u(f(),1),Ny(),Iy=0,Ly=null}));function zy(e=`slideDown`){let[t]=(0,By.useState)(()=>Vy);return t?Hy[e]:null}var By,Vy,Hy,Uy=o((()=>{By=u(f(),1),Vy=!1,typeof window<`u`&&requestAnimationFrame(()=>{Vy=!0}),Hy={slideDown:{kKVMdj:`x1srr2gu x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},slideUp:{kKVMdj:`x1dvww92 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},fadeIn:{kKVMdj:`xqcmdr3 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},scaleIn:{kKVMdj:`x97zbip x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0}}}));function Wy(e,t){let n=e;for(;n!=null&&n!==t&&n!==document.body;){if(n.matches(Jy)&&!n.matches(Yy))return!0;n=n.parentElement}return!1}function Gy(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function Ky({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return(0,qy.useEffect)(()=>{let t=e.current;t&&t.setAttribute(`data-pressable-container`,`true`)},[e]),{onClick:(0,qy.useCallback)(o=>{if(a)return;let s=e.current;if(!s||Gy(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&Wy(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,qy.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&(i===t.currentTarget||!Wy(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a])}}var qy,Jy,Yy,Xy=o((()=>{qy=u(f(),1),Jy=[`button`,`a`,`input`,`select`,`textarea`,`[role="button"]`,`[role="link"]`,`[role="checkbox"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`,`[role="menuitem"]`,`[role="option"]`,`[role="combobox"]`,`[role="listbox"]`,`[role="slider"]`,`[role="spinbutton"]`,`[data-pressable-container]`].join(`,`),Yy=`[aria-readonly="true"]`}));function Zy(e){if(e.getAttribute(`role`)===`combobox`)return!0;let t=e.getAttribute(`aria-haspopup`);return t!=null&&tb.has(t)}function Qy({containerRef:e,inputRef:t,disabled:n=!1}){return Ky({containerRef:e,interactiveRef:t,onClick:(0,$y.useCallback)(()=>{let e=t.current;e!=null&&(e instanceof HTMLElement&&Zy(e)?e.click():e instanceof HTMLInputElement&&eb.has(e.type)||e instanceof HTMLTextAreaElement?e.focus():e instanceof HTMLElement?e.click():`focus`in e&&e.focus())},[t]),disabled:n})}var $y,eb,tb,nb=o((()=>{$y=u(f(),1),Xy(),eb=new Set([`text`,`password`,`email`,`number`,`search`,`tel`,`url`,`date`,`datetime-local`,`month`,`time`,`week`]),tb=new Set([`true`,`menu`,`listbox`,`tree`,`grid`,`dialog`])}));function rb({status:e,statusVariant:t=`attached`,isInGroup:n=!1,size:r=`md`}){let i=wu(),a=t===`tooltip`&&!!e?.message,[o,s]=(0,ib.useState)(void 0),c=Mi({placement:`above`,isEnabled:a,isOpen:o}),l=(0,ib.useCallback)(()=>{s(void 0)},[]),u=(0,ib.useCallback)(()=>{typeof window>`u`||typeof window.matchMedia!=`function`||!window.matchMedia(`(hover: none)`).matches||s(e=>e!==!0)},[]);if((0,ib.useEffect)(()=>{if(o!==!0)return;let e=e=>{e.key===`Escape`&&s(void 0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[o]),!e||n||t===`detached`)return{statusIcon:null,describedBy:void 0};let d=(0,ab.jsx)(vc,{icon:ob[e.type],size:r,color:e.type,...U(`input-status-icon`,{size:r,status:e.type})});return a?{statusIcon:(0,ab.jsxs)(ab.Fragment,{children:[(0,ab.jsx)(`button`,{type:`button`,ref:c.ref,"aria-label":i(sb[e.type]),"aria-describedby":c.describedBy,onClick:u,onBlur:l,...V(ln.focusVisible,cb.statusButton),children:d}),c.renderTooltip(e.message)]}),describedBy:c.describedBy}:{statusIcon:d,describedBy:void 0}}var ib,ab,ob,sb,cb,lb=o((()=>{ib=u(f(),1),H(),Dc(),Oc(),Au(),ut(),dn(),ab=_n(),ob={warning:`warning`,error:`error`,success:`success`},sb={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},cb={statusButton:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kfzvcC:`x67bb7w`,kaIpWk:`xjspbzw`,kInvED:`x7s97pk`,$$css:!0}}}));function ub(e){let{onLongPress:t,disabled:n=!1,delayMs:r=fb,moveCancelPx:i=pb}=e,a=(0,db.useRef)(null),o=(0,db.useRef)(null),s=(0,db.useRef)(t);s.current=t;let c=(0,db.useCallback)(()=>{a.current!=null&&(clearTimeout(a.current),a.current=null),o.current=null},[]),l=(0,db.useCallback)(e=>{if(n)return;if(e.touches.length!==1){c();return}let t=e.touches[0];c(),o.current={x:t.clientX,y:t.clientY},a.current=setTimeout(()=>{let e=o.current;e!=null&&s.current({x:e.x,y:e.y})},r)},[n,r,c]),u=(0,db.useCallback)(e=>{let t=o.current;if(t==null)return;if(e.touches.length!==1){c();return}let n=e.touches[0];(Math.abs(n.clientX-t.x)>i||Math.abs(n.clientY-t.y)>i)&&c()},[i,c]);return(0,db.useEffect)(()=>c,[c]),{onTouchStart:l,onTouchMove:u,onTouchEnd:c,onTouchCancel:c}}var db,fb,pb,mb=o((()=>{db=u(f(),1),fb=500,pb=10}));function hb(e,t=!1){let n=(0,gb.useCallback)(t=>{let n=e.current?.firstElementChild;n instanceof HTMLElement&&Object.assign(n.style,t?sn:cn)},[e]),r=(0,gb.useCallback)(e=>{if(t)return;let r=e.target;r instanceof HTMLElement&&!r.matches(`:focus-visible`)||n(!0)},[t,n]),i=(0,gb.useCallback)(()=>n(!1),[n]);return(0,gb.useMemo)(()=>({focusProps:{onFocus:r,onBlur:i}}),[r,i])}var gb,_b=o((()=>{gb=u(f(),1),dn()})),vb=o((()=>{Cv(),Lv(),Kn(),Gv(),Yv(),H(),Ze(),hn(),ut(),Br(),Au(),Js(),Un(),Ft(),Qv(),Ay(),Ry(),Uy(),cc(),Xy(),nb(),lb(),Bc(),mb(),_b()})),yb=(0,y.createContext)({direction:`vertical`});yb.displayName=`FormLayoutContext`,H(),hn(),Dc(),Oc(),Au(),ut(),vb();var bb={label:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,k63SB2:`x1e4wzip`,kMwMTN:`xv1l7n4`,kkrTdU:`x1ypdohk x16khyan`,$$css:!0},labelDisabled:{kMwMTN:`xnbbluu`,kkrTdU:`xt0e3qv`,$$css:!0},srOnly:{ksu8eU:`xng3xce`,kMcinP:`xzpqnlu`,kZKoxP:`xjm9jq1`,kLqNvP:`x1o0tod`,kogj98:`xkdpibf`,kVQacm:`xb3r6kr`,kmVPX3:`x1717udv`,kfzvcC:`x47corl`,kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kfSwDN:`x87ps6o`,khDVqt:`xuxw1ft`,kzqmXN:`x1i1rx1s`,$$css:!0}};function xb({label:e,inputID:t,labelID:n,isGroupLabel:r=!1,isLabelHidden:i=!1,isDisabled:a=!1,isOptional:o=!1,isRequired:s=!1,labelIcon:c,labelTooltip:l,description:u,descriptionID:d,className:f,style:p,xstyle:m,ref:h,...g}){let _=wu(),{defaultOptionality:v}=(0,y.use)(yb),b=o&&v!==`optional`?_(`@astryx.field.optional`):s&&v!==`required`?_(`@astryx.field.required`):null,x=r?`span`:`label`,S=!r&&t!=null,C=(0,y.useRef)(null),w=Qy({containerRef:C,inputRef:(0,y.useMemo)(()=>({get current(){return t==null?null:C.current?.ownerDocument.getElementById(t)??null},set current(e){}}),[t]),disabled:!S}),T=(0,G.jsxs)(G.Fragment,{children:[c&&bc(c,{size:`sm`,color:`inherit`}),e,b&&(0,G.jsxs)(`span`,{className:`x1sodnla x141an7d x1ltkj2j xv1l7n4`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,children:` ∙ `}),b]}),l&&(0,G.jsx)(Vi,{content:l,placement:`above`,children:(0,G.jsx)(vc,{icon:`info`,size:`sm`,color:`inherit`})})]}),E=(0,G.jsx)(x,{ref:h,id:n,htmlFor:r?void 0:t,...g,...W(U(`field-label`),V(bb.label,a&&bb.labelDisabled,i&&bb.srOnly,m),f,p),children:T});return u?(0,G.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf`},1:{className:`xdt5ytf xjp7ctv`}}[!!i<<0],children:[E,(0,G.jsx)(`span`,{ref:S?C:void 0,id:d,...S?w:void 0,...{0:{className:`x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4`},2:{className:`x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan`},1:{className:`x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s`},3:{className:`x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s`}}[!!S<<1|!!i<<0],children:u})]}):E}xb.displayName=`FieldLabel`,H(),Lv(),hn(),Ze(),Uy(),ut(),Dc();var Sb={warning:`warning`,error:`error`,success:`success`};`${qe[`--spacing-1-5`]}`;var Cb={base:{kMv6JI:`x9ynric`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},attached:{keoZOQ:`x3dbumh`,kLKAdn:`xdgtoc0`,kGO01o:`x1wesfrj`,kg3NbH:`xf314gf`,kVL7Gh:`xquck67`,kT0f0o:`x14i3lts`,kfzvcC:`x47corl`,$$css:!0},detached:{keoZOQ:`xcsaf9d`,k8WAf4:`xce4md1`,kg3NbH:`xf314gf`,kaIpWk:`xh6dtrn`,$$css:!0}},wb={warning:{kWkggS:`x24i8r5`,kMwMTN:`xdhq94a`,$$css:!0},error:{kWkggS:`x1pritpl`,kMwMTN:`x1joocv1`,$$css:!0},success:{kWkggS:`xu13z74`,kMwMTN:`xltfdvo`,$$css:!0}};function Tb({ref:e,type:t,message:n,id:r,variant:i=`attached`,xstyle:a,className:o,style:s,...c}){let l=zy(`slideDown`),u=Av();return(0,y.useEffect)(()=>{n&&u(n,t===`error`?`assertive`:`polite`)},[u,n,t]),(0,G.jsx)(`div`,{ref:e,id:r,...c,...W(U(`field-status`,{type:t,variant:i}),V(Cb.base,l,i===`attached`?Cb.attached:Cb.detached,wb[t],a),o,s),children:i===`detached`?(0,G.jsxs)(`span`,{className:`x78zum5 x1cy8zhl xzye2dw`,children:[(0,G.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x14o5nre x2lah0s`,children:(0,G.jsx)(vc,{icon:Sb[t],size:`sm`,color:`inherit`,...U(`field-status-icon`,{type:t})})}),(0,G.jsx)(`span`,{children:n})]}):n})}Tb.displayName=`FieldStatus`;var Eb={x1odsvnm:`x1odsvnm`,$$css:!0};function Db({isRequired:e=!1,isOptional:t=!1}){let{defaultOptionality:n}=(0,y.use)(yb);return!t&&(e||n===`required`)}H(),hn();var Ob={box:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kaIpWk:`xx3sua9`,k1ekBW:`xts7igz`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},unchecked:{kMwMTN:`xqwr325`,kVAM5u:`xvy26l8 xilc7fp`,kWkggS:`x10xzikg xeultfy`,$$css:!0},checked:{kMwMTN:`x17wrial`,kVAM5u:`xad5do x1ozl1p1`,kWkggS:`x1ewilqj x17srpfb`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kVAM5u:`x14i3s5s x61roa7`,$$css:!0},disabledUnchecked:{kWkggS:`xwmxj5m xqxnq6d`,$$css:!0},checkmark:{k1xSpc:`x1s85apg`,kMwMTN:`x17wrial xs5hli`,$$css:!0},checkmarkVisible:{k1xSpc:`x1lliihq`,$$css:!0},indeterminateMark:{k1xSpc:`x1s85apg`,kWkggS:`x1azo05 xwvh9j7`,kaIpWk:`xjspbzw`,$$css:!0},indeterminateMarkVisible:{k1xSpc:`x1lliihq`,$$css:!0}},kb={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Ab={sm:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,$$css:!0},md:{kzqmXN:`x6jxa94`,kZKoxP:`x1v9usgg`,$$css:!0}},jb={sm:{kzqmXN:`x1fsd2vl`,kZKoxP:`x36qwtl`,$$css:!0},md:{kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,$$css:!0}};function Mb({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`,u=e===`indeterminate`,d=l||u;return(0,G.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...W(U(`checkbox-indicator`,{size:t,checked:l?`checked`:u?`indeterminate`:null,disabled:n?`disabled`:null},{legacyNames:[`checkbox`]}),V(Ob.box,kb[t],d?Ob.checked:Ob.unchecked,n&&Ob.disabled,n&&!d&&Ob.disabledUnchecked,s),a,o),children:It(r)?r:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`svg`,{viewBox:`0 0 10 10`,...W(U(`checkbox-indicator-check`,{size:t}),V(Ob.checkmark,Ab[t],l&&Ob.checkmarkVisible)),children:(0,G.jsx)(`path`,{d:`M8.5 2.5L4 7.5L1.5 5`,stroke:`currentColor`,strokeWidth:`1.5`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,G.jsx)(`span`,{...W(U(`checkbox-indicator-dash`,{size:t}),V(Ob.indeterminateMark,jb[t],u&&Ob.indeterminateMarkVisible))})]})})}Mb.displayName=`CheckboxIndicator`,H(),Ec(),hn();var Nb={sm:`sm`,md:`sm`},Pb={slot:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xcdlrvm`,kZKoxP:`x1l36t39`,$$css:!0},enabled:{kMwMTN:`xqwr325`,$$css:!0},disabled:{kMwMTN:`xqa6c3m`,$$css:!0}};function Fb({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`;return It(r)?(0,G.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...W(V(Pb.slot,n?Pb.disabled:Pb.enabled,s),a,o),children:r}):l?(0,G.jsx)(vc,{...c,"aria-hidden":`true`,icon:`check`,size:Nb[t],color:n?`disabled`:`accent`,xstyle:s,className:a,style:o}):null}Fb.displayName=`CheckIndicator`,H(),hn();var Ib={circle:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kaIpWk:`xjspbzw`,k1ekBW:`xts7igz`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},unchecked:{kVAM5u:`xvy26l8 xilc7fp`,kWkggS:`x10xzikg xeultfy`,$$css:!0},checked:{kVAM5u:`xad5do x1ozl1p1`,kWkggS:`x1ewilqj x17srpfb`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kVAM5u:`x14i3s5s x61roa7`,$$css:!0},disabledUnchecked:{kWkggS:`xwmxj5m xqxnq6d`,$$css:!0},dot:{kaIpWk:`xjspbzw`,kWkggS:`x1azo05 xwvh9j7`,$$css:!0}},Lb={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Rb={sm:{kzqmXN:`x1xc55vz`,kZKoxP:`xdk7pt`,$$css:!0},md:{kzqmXN:`x1fsd2vl`,kZKoxP:`x170jfvy`,$$css:!0}};function zb({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e!==`unchecked`;return(0,G.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...W(U(`radio-indicator`,{size:t,checked:l?`checked`:null,disabled:n?`disabled`:null},{legacyNames:[`radio`]}),V(Ib.circle,Lb[t],l?Ib.checked:Ib.unchecked,n&&Ib.disabled,n&&!l&&Ib.disabledUnchecked,s),a,o),children:It(r)?r:l&&(0,G.jsx)(`span`,{...W(U(`radio-indicator-dot`,{size:t},{legacyNames:[`radio-dot`]}),V(Ib.dot,Rb[t]))})})}zb.displayName=`RadioIndicator`,ss();var Bb={check:Fb,checkbox:Mb,radio:zb};function Vb(e){return e==null?null:typeof e==`string`?as(e):e}function Hb(e){return Vb(e)?.indicators??null}function Ub(e,t){return Hb(t)?.[e]??Bb[e]}cc();function Wb(e){return Ub(e,nc())}var Gb=(0,y.createContext)(null);Gb.displayName=`CheckboxListContext`,H(),Oc(),hn(),_b(),ut(),Un();var Kb={container:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},containerLabelHidden:{kOIVth:`xxhr3t`,$$css:!0},checkboxWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xtb6wbx`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 xzywxsk`,$$css:!0},input:{kVAEAm:`x10l6tqk`,k87sOh:`xwa60dl`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kSiTet:`xg01cxk`,kkrTdU:`x1ypdohk x16khyan`,kY2c9j:`x1vjfegm`,$$css:!0},inputCoarse:{kjFi6P:`xkagaj0`,kHzOjL:`x80b3aj`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0}},qb={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Jb={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function Yb({label:e,isLabelHidden:t=!1,description:n,onChange:r,changeAction:i,isLoading:a=!1,value:o,isDisabled:s=!1,htmlName:c,disabledMessage:l,isReadOnly:u=!1,isOptional:d=!1,isRequired:f=!1,size:p=`md`,onFocus:m,onBlur:h,labelIcon:g,status:_,width:v,xstyle:b,className:x,style:S,ref:C,"aria-describedby":w,...T}){let E=(0,y.useId)(),D=(0,y.useId)(),O=(0,y.useId)(),k=Db({isRequired:f,isOptional:d}),[,A]=(0,y.useTransition)(),[j,M]=(0,y.useOptimistic)(o),N=a||j!==o,P=s&&!!l,F=(0,y.use)(Gb),I=s&&(P||(F?.hasDisabledMessage??!1)),ee=Mi({placement:`above`,focusTrigger:`always`,isEnabled:P}),L=Wb(`checkbox`),te=(0,y.useRef)(null),{focusProps:R}=hb(te,s),ne=j===`indeterminate`,re=j===!0,ie=(0,y.useCallback)(e=>{e&&(e.indeterminate=ne)},[ne]),ae=[];w&&ae.push(w),n&&ae.push(D),_?.message&&ae.push(O),P&&ae.push(ee.describedBy);let oe=ae.length>0?ae.join(` `):void 0;return(0,G.jsxs)(`div`,{...W(U(`checkbox-input`,{size:p}),V(v!=null&&Jb.width(v),b),x,S),children:[(0,G.jsxs)(`div`,{ref:e=>{ee.interactionRef(e)},...V(Kb.container,t&&Kb.containerLabelHidden,!s&&Eb),children:[(0,G.jsxs)(`div`,{...V(Kb.checkboxWrapper,qb[p],!s&&Kb.indicatorPressOverlay),...R,children:[(0,G.jsx)(`input`,{...T,ref:Vn(C,ie,ee.positionRef),id:E,type:`checkbox`,name:s?void 0:c,checked:re,disabled:s&&!I,"aria-disabled":I?`true`:void 0,form:I?``:void 0,readOnly:u,required:f,"aria-required":k?`true`:void 0,onChange:e=>{if(s||N||u)return;let t=e.target.checked;r?.(t,e),i&&!e.defaultPrevented&&A(async()=>{M(t),await i(t,e)})},onFocus:m,onBlur:h,"aria-readonly":u||void 0,"aria-describedby":oe,"aria-invalid":_?.type===`error`||void 0,"aria-busy":N||void 0,...V(Kb.input,$t.centerInline(`-50%`),Kb.inputCoarse,qb[p],s&&Kb.inputDisabled)}),(0,G.jsx)(`span`,{ref:te,className:`xjp7ctv`,children:(0,G.jsx)(L,{state:ne?`indeterminate`:re?`checked`:`unchecked`,size:p,isDisabled:s,children:N?(0,G.jsx)(hg,{size:`sm`,shade:`inherit`}):null})})]}),(0,G.jsx)(`div`,{className:`x78zum5 xdt5ytf`,children:(0,G.jsx)(xb,{...U(`checkbox-label`),label:e,inputID:E,isLabelHidden:t,isDisabled:s,isOptional:d,isRequired:f,labelIcon:g,description:n,descriptionID:D})})]}),_?.message&&(0,G.jsx)(Tb,{type:_.type,message:_.message,id:O,variant:`detached`}),P&&ee.renderTooltip(l)]})}Yb.displayName=`CheckboxInput`,H(),hn(),Qv(),ut();var Xb={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kHBbk8:`xc8icb0`,$$css:!0},containerGap:{kOIVth:`xzye2dw`,$$css:!0},horizontalLabels:{k1xSpc:`xjp7ctv`,$$css:!0},attachedStatusLayer:{kVAEAm:`x1n2onr6`,kY2c9j:`x8knxv4`,$$css:!0}},Zb={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function Qb({label:e,isLabelHidden:t=!1,description:n,inputID:r,labelID:i,isGroupLabel:a=!1,descriptionID:o,isOptional:s=!1,isRequired:c=!1,isDisabled:l=!1,labelIcon:u,status:d,labelTooltip:f,statusVariant:p=`attached`,width:m,xstyle:h,children:g,className:_,style:v,ref:b,...x}){let{direction:S}=(0,y.use)(yb),C=S===`horizontal-labels`,w=o??(n?`${r}-desc`:void 0),T=d?.messageID??(d?.message?`${r}-status`:void 0);Xv(`Field`,`isOptional and isRequired are mutually exclusive. isOptional takes precedence.`,s&&c);let E=(0,G.jsx)(xb,{label:e,inputID:r,labelID:i,isGroupLabel:a,isLabelHidden:t,isDisabled:l,isOptional:s,isRequired:c,labelIcon:u,labelTooltip:f,description:C?void 0:n,descriptionID:C?void 0:w}),D=d?.message&&p!==`tooltip`?(0,G.jsx)(Tb,{type:d.type,message:d.message,id:T,variant:p,xstyle:p===`attached`?Xb.attachedStatusLayer:void 0}):null;return C?(0,G.jsxs)(`div`,{ref:b,...W(U(`field`,{layout:`horizontal-labels`}),V(Xb.horizontalLabels,h),_,v),...x,children:[(0,G.jsx)(`div`,{className:`x1enrzb7`,children:E}),(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[n&&(0,G.jsx)(Yi,{type:`supporting`,display:`block`,id:w,children:n}),g,D]})]}):(0,G.jsxs)(`div`,{ref:b,...W(U(`field`),V(Xb.container,!t&&Xb.containerGap,m!=null&&Zb.width(m),h),_,v),...x,children:[E,p===`attached`?(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[g,D]}):(0,G.jsxs)(G.Fragment,{children:[g,D]})]})}Qb.displayName=`Field`;var $b={base:{kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,kY2c9j:`x1vjfegm`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kVAM5u:`xvy26l8 x6q1khz`,"--_field-radius":`x1832zxr`,kaIpWk:`xvdfih8`,kWkggS:`x10xzikg`,k1ekBW:`x12zzom9`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,kGVxlE:`x1gnnqk1 x1xqjsvb xuihb5h`,kI3sdo:`x1a2a7pz`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,$$css:!0}},ex={warning:{kVAM5u:`x8wg1ba`,$$css:!0},error:{kVAM5u:`x1ofxpqo`,$$css:!0},success:{kVAM5u:`x16m2moy`,$$css:!0}},tx={warning:{kGVxlE:`x1gnnqk1 x9156jc`,$$css:!0},error:{kGVxlE:`x1gnnqk1 x1bgmis8`,$$css:!0},success:{kGVxlE:`x1gnnqk1 x8wp45d`,$$css:!0}},nx={warning:{kVAM5u:`x8wg1ba xa1yw2k`,$$css:!0},error:{kVAM5u:`x1ofxpqo xk2sxw7`,$$css:!0},success:{kVAM5u:`x16m2moy xyq33ac`,$$css:!0}};Dc(),ut();var rx={button:{kZKoxP:`x1qx5ct2`,kmuXW:`x2lah0s`,kVAEAm:`x1n2onr6`,"--_input-clear-hit-inset":`xtoycft x181bpwf`,"--_input-clear-hit-content":`xqxtgf4 xp8r40j`,k5JduY:`xh3pasq`,kwXMNM:`x1j6awrg`,kv0HGH:`xht581f`,$$css:!0}};function ix({label:e,onClick:t,onPointerDown:n,onClickCapture:r,xstyle:i,iconClassName:a}){let{className:o}=U(`input-clear-icon`),{className:s}=U(`input-clear-button`);return(0,G.jsx)(Mg,{variant:`ghost`,size:`sm`,label:e,tooltip:e,className:s,icon:(0,G.jsx)(vc,{icon:`close`,size:`sm`,color:`secondary`,className:a==null?o:`${o} ${a}`}),onPointerDown:e=>{e.preventDefault(),n?.(e)},onMouseDown:e=>e.preventDefault(),onClick:t,onClickCapture:r,isIconOnly:!0,xstyle:[rx.button,i]})}function ax(e){return ix(e)}function ox(e){return ix(e)}ax.displayName=`InputClearButton`;var sx=(0,y.createContext)(null);sx.displayName=`InputGroupContext`;function cx(){return(0,y.use)(sx)}var lx={inGroup:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kZKoxP:`x5yr21d`,keTefX:`xd10s4z x1pwwqoy`,krdFHd:`x15mokao x8eehn2`,kVL7Gh:`xbiv7yw x1xrp5p4`,kfmiAY:`x1ga7v0g x1tzxhge`,kT0f0o:`x16uus16 x1rmb4wm`,kXnDq0:`x1rm9qnc`,$$css:!0}},ux=new Map;function dx(e){let t=e??``,n=ux.get(t);if(n===void 0){let r;try{r=new Intl.NumberFormat(e)}catch{r=new Intl.NumberFormat(`en`)}let i=r.formatToParts(12345.6),a=r.formatToParts(11111111111).filter(e=>e.type===`integer`).map(e=>e.value.length),o=a.length>1;n={group:(i.find(e=>e.type===`group`)?.value??`,`).normalize(`NFKC`),decimal:i.find(e=>e.type===`decimal`)?.value??`.`,primaryGroupSize:o?a[a.length-1]:3,secondaryGroupSize:o?a[a.length-2]:3},ux.set(t,n)}return n}var fx=RegExp(`\\p{Nd}`,`u`),px=RegExp(`\\p{Sc}`,`u`),mx=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,hx=`−‒–-`,gx=RegExp(`^[0-9,.' ’٫٬]+$`),_x=/^(?:\d+\.?\d*|\.\d+)$/;function vx(e){let t=e.codePointAt(0);if(t==null)return null;for(let e=t;t-e<10;e--)if(!fx.test(String.fromCodePoint(e-1)))return t-e;return null}function yx(e){let t=``;for(let n of e){if(!fx.test(n)){t+=n;continue}let e=vx(n);if(e==null)return null;t+=String(e)}return t}function bx(e,t,n,r,i,a){let o=e,s=null;if(n!==``&&e.includes(n)){let t=e.indexOf(n);if(e.includes(n,t+n.length)||(o=e.slice(0,t),s=e.slice(t+n.length),!/^\d*$/.test(s)))return null}let c;if(t!==``&&o.includes(t)){let e=o.split(t);if(e.length-1<a||!e.every(e=>/^\d+$/.test(e)))return null;let n=e[0];if(e[e.length-1].length!==r||n.length>i)return null;for(let t=1;t<e.length-1;t++)if(e[t].length!==i)return null;c=e.join(``)}else{if(!/^\d*$/.test(o))return null;c=o}return c===``&&(s==null||s===``)?null:s==null?c:`${c}.${s}`}function xx(e){return/^[\s'\u2019]$/.test(e)}function Sx(e,t){if(!gx.test(e))return null;let{group:n,decimal:r,primaryGroupSize:i,secondaryGroupSize:a}=dx(t),o=bx(e,n,r,i,a,1);if(o!=null)return o;if(_x.test(e))return e;let s=[...new Set(e.replace(/\d/g,``))];if(s.length===0||s.length>2)return null;for(let t of s){let n=e.split(t).length-1,r=xx(t)?1:2;if(n<r)continue;let i=s.find(e=>e!==t)??``;if(i!==``&&e.split(i).length-1!=1)continue;let a=bx(e,t,i,3,3,r);if(a!=null)return a}return null}function Cx(e,t){let n=yx(e.normalize(`NFKC`).replace(mx,``));if(n==null)return null;let r=n.trim(),i=1,a=/^\((.*)\)$/s.exec(r);a&&(i=-1,r=a[1].trim()),r=wx(r);let o=!1,s=RegExp(`^([+${hx}])\\s*`).exec(r);if(s)o=!0,i=s[1]===`+`?i:-i,r=r.slice(s[0].length);else{let e=RegExp(`\\s*([+${hx}])$`).exec(r);e&&(o=!0,i=e[1]===`+`?i:-i,r=r.slice(0,r.length-e[0].length))}if(a&&o)return null;r=wx(r);let c=0,l=/\s*[eE]\s*([+-]?\d+)$/.exec(r);l&&(c=Number(l[1]),r=r.slice(0,r.length-l[0].length));let u=r.trim();if(u===``)return null;let d=Sx(u,t);if(d==null)return null;let f=Number(d);if(!Number.isFinite(f))return null;let p=c===0?f:Number((f*10**c).toPrecision(15));if(!Number.isFinite(p))return null;let m=i*p;return Object.is(m,-0)?0:m}function wx(e){let t=e.trim();return px.test(t.charAt(0))&&(t=t.slice(1).trim()),px.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function Tx(e,t){let{decimal:n}=dx(t),r=String(e);return n===`.`?r:r.replace(`.`,n)}function Ex(e,t){let n=e.trim();if(n===``)return null;let r=Cx(n,t.locale);return r==null||!Number.isFinite(r)||t.isIntegerOnly&&!Number.isInteger(r)?null:r}function Dx(e,t){let n=Ex(e,t);return n===null||t.min!=null&&n<t.min||t.max!=null&&n>t.max?null:n}function Ox(e,t){if(e.trim()===``)return t.hasClear?{type:`clear`}:{type:`revert`};let n=Ex(e,t);if(n===null)return{type:`revert`};let r=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,i=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(r!=null&&i!=null&&r>i)return{type:`revert`};let a=r!=null&&n<r?r:i!=null&&n>i?i:n;return{type:`commit`,value:a,didClamp:a!==n}}H(),Ze(),Dc(),Oc(),hn(),nb(),lb(),ut(),Au();var kx=qe[`--spacing-1`],Ax=qe[`--spacing-2`],jx=`var(--astryx-number-input-padding, ${kx})`,Mx=`var(--astryx-number-input-padding-inline, ${`var(--astryx-number-input-padding, ${Ax})`})`;`${Mx}`,`${Mx}`,`${jx}`,`${jx}`;var Nx={wrapper:{kY2c9j:`x1vjfegm`,kLKAdn:`x4kswst`,kGO01o:`x3jnfsm`,kZCmMZ:`x1jni19p`,kwRFfy:`x17sfb9`,$$css:!0},wrapperWithNumberSteppers:{kwRFfy:`xyri2b`,$$css:!0},numberStepperButton:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kMwMTN:`xv9yike`,kWkggS:`x10xzikg`,kkrTdU:`x1ypdohk x16khyan`,kI3sdo:`x1a2a7pz`,$$css:!0},numberStepperButtonDisabled:{kMwMTN:`xqa6c3m`,kkrTdU:`xt0e3qv`,kKwaWg:`x18o3ruo`,$$css:!0},decrementButton:{kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1mly77v`,$$css:!0},incrementIcon:{k3aq6I:`x19jd1h0`,$$css:!0}},Px={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}};function Fx(e){let[t,n]=String(e).toLowerCase().split(`e`),r=t.split(`.`)[1]?.length??0,i=n==null?0:Number(n);return Math.max(0,r-i)}function Ix(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function Lx({currentValue:e,direction:t,min:n,max:r,step:i,isIntegerOnly:a}){let o=Ix(i,a),s=n!=null&&(!a||Number.isInteger(n))?n:0,c;if(e==null)c=t===1?n??0:r??0,a&&(c=t===1?Math.ceil(c):Math.floor(c));else{let n=(e-s)/o,r=2**-52*Math.max(1,Math.abs(n))*4;c=s+(t===1?Math.floor(n+r)+1:Math.ceil(n-r)-1)*o}let l=Math.min(12,Math.max(Fx(o),Fx(s)));return c=Number(c.toFixed(l)),n!=null&&(c=Math.max(n,c)),r!=null&&(c=Math.min(r,c)),!Number.isFinite(c)||a&&!Number.isInteger(c)?e:Object.is(c,-0)?0:c}function Rx({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,isDisabled:a=!1,isReadOnly:o=!1,disabledMessage:s,startIcon:c,labelIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,value:m,placeholder:h,labelTooltip:g,hasAutoFocus:_=!1,htmlName:v,autoComplete:b,min:x,max:S,step:C,formatValue:w,isWheelEnabled:T=!0,hasNumberSteppers:E=!1,units:D,isIntegerOnly:O=!1,onFocus:k,onBlur:A,hasClear:j,onEnter:M,onKeyDown:N,width:P,xstyle:F,className:I,style:ee,ref:L,...te}){let R=wu(),ne=Du(),re=Db({isRequired:i,isOptional:r}),ie=bg(f,`md`),ae=(0,y.useId)(),oe=(0,y.useId)(),se=(0,y.useId)(),ce=(0,y.useId)(),le=(0,y.useId)(),ue=(0,y.useRef)(null),de=(0,y.useRef)(null),z=cx(),[B,fe]=(0,y.useState)(null),[pe,me]=(0,y.useState)(!1),he=a&&!!s,ge=Mi({placement:`above`,focusTrigger:`always`,isEnabled:he}),{statusIcon:_e,describedBy:ve}=rb({status:u,statusVariant:d,isInGroup:!!z}),{ariaLabelledBy:ye,ariaDescribedBy:be}=zt(oe,[n?se:null,!z&&d!==`tooltip`&&u?.message?ce:null,ve,D?le:null,he?ge.describedBy:null],z),xe=(0,y.useCallback)(e=>Dx(e,{min:x,max:S,isIntegerOnly:O,locale:ne}),[O,ne,S,x]),Se=(0,y.useMemo)(()=>m==null?``:w?.(m)??String(m),[w,m]),Ce=(0,y.useMemo)(()=>B===null?m==null?``:pe?Tx(m,ne):Se:B,[Se,pe,ne,B,m]),we=(0,y.useMemo)(()=>B===null||!B.trim()||xe(B)!==null,[B,xe]),Te=(0,y.useCallback)(e=>{a||o||fe(e.target.value)},[a,o]),Ee=(0,y.useCallback)(e=>{me(!0),k?.(e)},[k]),De=(0,y.useCallback)(e=>{if(B===null)return;let t=Ox(B,{min:x,max:S,isIntegerOnly:O,locale:ne,hasClear:!!j});(e===`blur`||t.type===`commit`&&t.didClamp)&&fe(null),t.type===`clear`?j&&m!=null&&p(null):t.type===`commit`&&t.value!==m&&p(t.value)},[j,O,ne,S,x,p,B,m]),Oe=(0,y.useCallback)(e=>{De(`blur`),me(!1),A?.(e)},[De,A]),ke=(0,y.useMemo)(()=>B===null?m??null:B.trim()===``?null:xe(B)??m??null,[xe,B,m]),Ae=(0,y.useCallback)(e=>Lx({currentValue:ke,direction:e,min:x,max:S,step:C,isIntegerOnly:O}),[O,S,x,C,ke]),je=(0,y.useCallback)(e=>{if(a||o)return;let t=Ae(e);t!=null&&(fe(null),t!==m&&p(t))},[Ae,a,o,p,m]),Me=(0,y.useCallback)(e=>{if(!fn(e.nativeEvent)){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)){if(N?.(e),e.defaultPrevented)return;e.preventDefault(),je(e.key===`ArrowUp`?1:-1);return}e.key===`Enter`&&(De(`Enter`),M?.()),N?.(e)}},[De,M,N,je]),Ne=(0,y.useCallback)(e=>{if(e==null||!T)return;let t=t=>{document.activeElement!==e||a||o||t.deltaY===0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(t.preventDefault(),t.stopPropagation(),je(t.deltaY<0?1:-1))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[a,o,T,je]),Pe=(0,y.useMemo)(()=>Ct(L,ue,Ne),[L,Ne]),Fe=Ae(1)!==ke,Ie=Ae(-1)!==ke,Le=(0,y.useCallback)(e=>{j&&p(null),fe(null),!e||e.detail===0?ue.current?.focus():requestAnimationFrame(()=>{ue.current?.focus({preventScroll:!0})})},[j,p]),{onClick:Re,onMouseUp:ze}=Qy({containerRef:de,inputRef:ue,disabled:a}),Be=(0,G.jsxs)(`div`,{ref:e=>{de.current=e,ge.ref(e)},onClick:Re,onMouseUp:ze,...W(U(`number-input`,{size:ie,status:u?.type??null,disabled:a?`disabled`:null,readonly:o?`readonly`:null}),V($b.base,Nx.wrapper,E&&Nx.wrapperWithNumberSteppers,Px[ie],a&&$b.disabled,u&&ex[u.type],u&&!a&&tx[u.type],u&&nx[u.type],z&&lx.inGroup,F),I,ee),children:[c&&bc(c,{size:`sm`,color:`secondary`}),z&&(0,G.jsx)(kc,{id:oe,children:e}),(0,G.jsx)(`input`,{...te,ref:Pe,id:ae,name:a||w?void 0:v,type:`text`,inputMode:O?`numeric`:`decimal`,role:`spinbutton`,autoComplete:b,value:Ce,onChange:Te,onFocus:Ee,onBlur:Oe,onKeyDown:Me,placeholder:h,disabled:a&&!he,"aria-disabled":he?`true`:void 0,readOnly:o||he||void 0,autoFocus:_,"data-autofocus":_||void 0,"aria-valuemin":x??void 0,"aria-valuemax":S??void 0,"aria-valuenow":m??void 0,"aria-valuetext":m==null||!w?void 0:Se,"aria-describedby":be,"aria-required":re?`true`:void 0,"aria-invalid":u?.type===`error`||!we?`true`:void 0,"aria-labelledby":ye,...{0:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5`},2:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv`},1:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xv1l7n4`},3:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xt0e3qv xv1l7n4`}}[!!a<<1|!we<<0]}),w&&v&&!a&&(0,G.jsx)(`input`,{type:`hidden`,name:v,value:m==null?``:String(m)}),D&&(0,G.jsx)(`span`,{id:le,className:`x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s`,children:D}),(0,G.jsx)(kc,{as:`div`,role:`alert`,"aria-live":`assertive`,children:we?``:`Invalid number`}),j&&m!=null&&!a&&!o&&(0,G.jsx)(ax,{label:R(`@astryx.numberInput.clearLabel`,{label:e}),onClick:Le}),_e,E&&(0,G.jsxs)(`div`,{className:`xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b`,children:[(0,G.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Fe,"aria-label":R(`@astryx.numberInput.incrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{ue.current?.focus(),je(1)},...V(Nx.numberStepperButton,Vc.backgroundImage,(a||o||!Fe)&&Nx.numberStepperButtonDisabled),children:(0,G.jsx)(vc,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`,xstyle:Nx.incrementIcon})}),(0,G.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Ie,"aria-label":R(`@astryx.numberInput.decrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{ue.current?.focus(),je(-1)},...V(Nx.numberStepperButton,Vc.backgroundImage,Nx.decrementButton,(a||o||!Ie)&&Nx.numberStepperButtonDisabled),children:(0,G.jsx)(vc,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`})})]})]});return z?(0,G.jsxs)(G.Fragment,{children:[Be,he&&ge.renderTooltip(s)]}):(0,G.jsxs)(Qb,{label:e,isLabelHidden:t,description:n,inputID:ae,descriptionID:n?se:void 0,isOptional:r,isRequired:i,isDisabled:a,labelIcon:l,status:u?{type:u.type,message:u.message,messageID:u.message?ce:void 0}:void 0,statusVariant:d,labelTooltip:g,width:P,children:[Be,he&&ge.renderTooltip(s)]})}Rx.displayName=`NumberInput`,H(),hn(),ut();var zx={horizontal:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,$$css:!0},vertical:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kZKoxP:`x5yr21d`,$$css:!0}},Bx={horizontalLine:{kZKoxP:`xsyqizj`,kzQI83:`x1iyjqo2`,kmuXW:`xs83m0k`,$$css:!0},verticalLine:{kzqmXN:`xjk4fl7`,kzQI83:`x1iyjqo2`,kmuXW:`xs83m0k`,$$css:!0},subtle:{kWkggS:`x1m4xfpy`,$$css:!0},strong:{kWkggS:`x7njt3n`,$$css:!0}},Vx={horizontal:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,$$css:!0},vertical:{keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,kZKoxP:`x12qplqi`,$$css:!0}};function Hx({orientation:e=`horizontal`,label:t,variant:n=`subtle`,isFullBleed:r=!1,xstyle:i,className:a,style:o,ref:s,"aria-label":c,"aria-labelledby":l,...u}){let d=e===`horizontal`,f=(0,y.useId)(),p=l??(t&&c==null?f:void 0);return(0,G.jsxs)(`div`,{ref:s,...u,role:`separator`,"aria-orientation":e,"aria-label":c,"aria-labelledby":p,...W(U(`divider`,{variant:n,orientation:e}),V(d?zx.horizontal:zx.vertical,r&&(d?Vx.horizontal:Vx.vertical),i),a,o),children:[(0,G.jsx)(`div`,{...V(d?Bx.horizontalLine:Bx.verticalLine,Bx[n])}),t&&(0,G.jsx)(`div`,{id:f,...{0:{className:`x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4`},1:{className:`x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82`}}[!d<<0],children:t}),t&&(0,G.jsx)(`div`,{...V(d?Bx.horizontalLine:Bx.verticalLine,Bx[n])})]})}Hx.displayName=`Divider`,H(),Dc(),hn(),qr();var Ux={wrapper:{k8WAf4:`xu0wf1k`,kg3NbH:`x7a5moj`,$$css:!0},icon:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kmuXW:`x2lah0s`,$$css:!0}};function Wx({ref:e,label:t,clearLabel:n,placeholder:r,value:i,onValueChange:a,onKeyDown:o,onFocus:s,onBlur:c,onContainerKeyDown:l,xstyle:u,className:d,style:f,...p}){let[m,h]=(0,y.useState)(!1);Ur();let g=(0,y.useCallback)(e=>{h(Wr()===`keyboard`),s?.(e)},[s]),_=(0,y.useCallback)(e=>{h(!1),c?.(e)},[c]),v=(0,y.useCallback)(t=>{a(``),!t||t.detail===0?typeof e==`object`&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e==`object`&&e?.current&&e.current.focus({preventScroll:!0})})},[a,e]);return(0,G.jsx)(`div`,{onKeyDown:l,...W(V(Ux.wrapper,u),d,f),children:(0,G.jsxs)(`div`,{"data-keyboard-focus":m?`true`:void 0,...{0:{className:`x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92`},1:{className:`x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92 x1gnnqk1 x1btxeh5`}}[!!m<<0],children:[(0,G.jsx)(vc,{icon:`search`,size:`sm`,color:`secondary`,xstyle:Ux.icon}),(0,G.jsx)(`input`,{ref:e,type:`text`,"aria-label":t,placeholder:r,value:i,onChange:e=>a(e.target.value),onKeyDown:o,onFocus:g,onBlur:_,className:`x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5`,...p}),i!==``&&(0,G.jsx)(ax,{label:n,onClick:v})]})})}Wx.displayName=`PanelSearchInput`;function Gx(e){return typeof e==`string`||!(`type`in e)}function Kx(e){return typeof e==`object`&&`type`in e&&e.type===`divider`}function qx(e){return typeof e==`object`&&`type`in e&&e.type===`section`}function Jx(e){return typeof e==`string`?{value:e,label:e}:{...e,label:e.label??e.value}}function Yx(e){let t=[];for(let n of e)if(Gx(n))t.push(Jx(n));else if(qx(n))for(let e of n.options)t.push(Jx(e));return t}function Xx({isOpen:e,highlightedIndex:t,setHighlightedIndex:n,getOptionId:r,itemCount:i}){let a=(0,y.useRef)(!1),o=(0,y.useCallback)(e=>{e!==t&&(a.current=!0),n(e)},[t,n]);return(0,y.useEffect)(()=>{if(a.current){a.current=!1;return}!e||t<0||document.getElementById(r(t))?.scrollIntoView?.({block:`nearest`})},[e,t,r,i]),o}Kn();var Zx=1;function Qx(e){let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t}function $x({isOpen:e,selectedItemIndex:t,listboxId:n,listboxRef:r,anchorRef:i}){let[a,o]=(0,y.useState)(0),[s,c]=(0,y.useState)(!1),l=(0,y.useCallback)((e,t)=>{o(e),c(t)},[]);return Gn(()=>{if(!e){l(0,!1);return}if(!r.current||!i.current){l(0,!0);return}let a=`${n}-item-${t>=0?t:0}`,o=document.getElementById(a);if(!o){l(0,!0);return}let s=r.current,c=i.current.getBoundingClientRect(),u=s.offsetHeight;if(u<=0){l(0,!0);return}let d=Qx(o)-Qx(s)-s.scrollTop+o.offsetHeight/2,f=c.top+c.height/2-d-Zx,p=window.innerHeight,m=Math.max(0,p-u),h=Math.min(Math.max(f,0),m),g=Math.max(0,c.bottom-h);l(g,!0)},[e,t,n,r,i,l]),{offset:a,isPositioned:s}}function eS({selectableItems:e,value:t,isDisabled:n=!1,isOpen:r,hasSearch:i=!1,onOpen:a,onClose:o,onSelect:s,onClear:c,onSearchSeed:l,listboxId:u}){let[d,f]=(0,y.useState)(-1),p=(0,y.useCallback)(e=>`${u}-item-${e}`,[u]),m=(0,y.useCallback)(()=>e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),[e]),h=(0,y.useCallback)(()=>e.findIndex(e=>e.value===t),[e,t]),g=(0,y.useCallback)(()=>{f(-1),o()},[o]),_=(0,y.useCallback)(e=>{e.disabled||(s?.(e.value),g())},[s,g]),v=(0,y.useCallback)(()=>{if(!n){if(r)g();else if(a()!==!1&&!i){let e=h();f(e>=0?e:0)}}},[n,r,a,g,h,i]),b=Xx({isOpen:r,highlightedIndex:d,setHighlightedIndex:f,getOptionId:p}),x=(0,y.useCallback)((e,t)=>{e.disabled||b(t)},[b]);return{highlightedIndex:d,setHighlightedIndex:f,getItemId:p,onTriggerClick:v,onKeyDown:(0,y.useCallback)(o=>{if(n)return;let s=m();switch(o.key){case`ArrowDown`:if(o.preventDefault(),!r)a()!==!1&&f(0);else{let e=s.indexOf(d),t=Math.min(e+1,s.length-1);f(s[t]??d)}break;case`ArrowUp`:if(o.preventDefault(),!r)a()!==!1&&f(e.length-1);else{let e=s.indexOf(d),t=Math.max(e-1,0);f(s[t]??d)}break;case` `:if(i)break;case`Enter`:if(o.preventDefault(),r&&d>=0){let t=e[d];t&&!t.disabled&&_(t)}else if(!r&&a()!==!1&&!i){let e=h();f(e>=0?e:0)}break;case`Escape`:r&&(o.preventDefault(),g());break;case`Tab`:r&&g();break;case`Home`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`End`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`PageUp`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`PageDown`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`Delete`:case`Backspace`:!i&&!r&&c!=null&&t!=null&&(o.preventDefault(),c());break;default:i&&l&&o.key.length===1&&!o.ctrlKey&&!o.metaKey&&(r||a()!==!1)&&l(o.key)}},[n,r,a,g,e,d,_,h,m,i,c,l,t]),onItemSelect:_,onItemMouseEnter:x}}var tS=(0,y.createContext)(null);tS.displayName=`ItemDescriptionContext`,H(),hn(),Un(),Xy(),Qv(),ut(),dn();var nS=new Set([`option`,`tab`,`row`,`gridcell`,`columnheader`,`rowheader`,`treeitem`]),rS={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kg3NbH:`xf314gf`,kVAEAm:`x1n2onr6`,kB7OPa:`x9f619`,k9WMMc:`x1yc453h`,kaIpWk:`xh6dtrn`,$$css:!0},alignStart:{kGNEyG:`x1cy8zhl`,$$css:!0},interactive:{kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`x15406qy`,kIyJzY:`xkvfbh3`,kAMwcw:`xlr8y92`,$$css:!0},highlighted:{kWkggS:`x1lmrjuc`,$$css:!0},selected:{kWkggS:`xgcxg3y`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kfzvcC:`x47corl`,$$css:!0},inlineLabel:{kmuXW:`x2lah0s`,$$css:!0},inlineDescription:{kmuXW:`xs83m0k`,k7Eaqz:`xeuugli`,$$css:!0},label:{kMwMTN:`x5tbw38`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},labelSingleTruncate:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},labelMultiTruncate:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0},description:{kMwMTN:`x1gb3s7i`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},descriptionSingleTruncate:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},descriptionMultiTruncate:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},iS={lineClamp:e=>[{kJFfOR:e==null?e:`x1yhjpo9`,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},aS={compact:{k8WAf4:`xu0wf1k`,$$css:!0},balanced:{k8WAf4:`xce4md1`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`xrrkdod`,$$css:!0}};function oS({as:e=`div`,marker:t,startContent:n,label:r,description:i,endContent:a,align:o=`center`,density:s=`balanced`,labelLines:c,descriptionLines:l,layout:u=`stacked`,onClick:d,interactiveRef:f,href:p,target:m,rel:h,isHighlighted:g=!1,isSelected:_=!1,isDisabled:v=!1,xstyle:b,className:x,style:S,ref:C,role:w,...T}){let E=Mc(),D=f!=null,O=(0,y.useRef)(null),{onClick:k}=Ky({containerRef:O,interactiveRef:f??void 0,disabled:v});Xv(`Item`,"`interactiveRef` is mutually exclusive with `onClick`/`href`. In delegation mode the row only forwards clicks to the referenced control, so `onClick`/`href` are ignored. Drop one of them.",D&&(d!=null||p!=null));let A=d!=null||p!=null||D,{target:j,rel:M}=Pc(m,h),N=w!=null,P=w!=null&&nS.has(w),F=(0,y.useId)(),I=It(i),ee=typeof r==`string`,L=typeof i==`string`,te=c==null?ee?rS.labelSingleTruncate:null:c===1?rS.labelSingleTruncate:rS.labelMultiTruncate,R=u===`inline`&&i!=null,ne=l==null?L||R?rS.descriptionSingleTruncate:null:l===1?rS.descriptionSingleTruncate:rS.descriptionMultiTruncate,re=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{...V(rS.label,R&&rS.inlineLabel,te,c!=null&&c>1&&iS.lineClamp(c)),children:r}),i!=null&&(0,G.jsx)(`span`,{id:I?F:void 0,...V(rS.description,R&&rS.inlineDescription,ne,l!=null&&l>1&&iS.lineClamp(l)),children:i})]}),ie=e=>{v||e.target.closest(`button, a, input, select, textarea`)||d?.(e)},ae=(0,G.jsxs)(G.Fragment,{children:[t,n!=null&&(0,G.jsx)(`span`,{className:`x3psx0u x78zum5`,children:n}),N||D?(0,G.jsx)(`span`,{...{0:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h`},2:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo`},3:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!R<<1|!!v<<0],children:re}):p==null?d==null?(0,G.jsx)(`span`,{...{0:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h`},2:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo`},3:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!R<<1|!!v<<0],children:re}):(0,G.jsx)(`button`,{type:`button`,onClick:d,disabled:v,...{0:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz`},2:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz xbyyjgo`},3:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!R<<1|!!v<<0],children:re}):(0,G.jsx)(E,{href:p,target:j,rel:M,"aria-disabled":v||void 0,tabIndex:v?-1:void 0,...{0:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz`},2:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz xbyyjgo`},3:{className:`xmper1u x16khyan xln7xf2 x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!R<<1|!!v<<0],children:re}),a!=null&&(0,G.jsx)(`span`,{...{0:{className:`x3psx0u x78zum5 xvc5jky`},1:{className:`x3psx0u x78zum5 xvc5jky xbyyjgo`}}[!!v<<0],children:a})]}),oe=Vn(C,O);return(0,G.jsx)(e,{ref:D?oe:C,...T,"aria-selected":P&&_||void 0,"aria-current":T[`aria-current`]??(_&&!P?!0:void 0),"aria-disabled":v||void 0,...W(U(`item`,{density:s,align:o}),un.focusWithin(rS.root,aS[s],o===`start`&&rS.alignStart,A&&rS.interactive,A&&Vc.backgroundColor,g&&rS.highlighted,_&&rS.selected,v&&!N&&rS.disabled,b),x,S),role:w,onClick:D?k:N?d:A?ie:void 0,children:(0,G.jsx)(tS,{value:I?F:null,children:ae})})}oS.displayName=`Item`;var sS=(0,y.createContext)(`stacked`);sS.displayName=`SelectorRowLayoutContext`;function cS(){return(0,y.use)(sS)}Dc(),hn(),ut();var lS={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,$$css:!0}};function uS({icon:e,label:t,description:n,layout:r,endContent:i,xstyle:a,className:o,style:s}){let c=cS();return(0,G.jsx)(oS,{startContent:e?bc(e,{size:`sm`,color:`secondary`}):void 0,label:t,description:n,layout:c===`inline`?`inline`:r,endContent:i,xstyle:[lS.root,a],...W(U(`selector-option`),{className:o,style:s})})}uS.displayName=`SelectorOption`;function dS({variant:e=`section`,width:t,height:n,maxWidth:r,minHeight:i,children:a,dividers:o,padding:s,paddingInline:c,paddingInlineStart:l,paddingInlineEnd:u,paddingBlock:d,paddingBlockStart:f,paddingBlockEnd:p,xstyle:m,className:h,style:g,ref:_,...v}){let y=s==null,b=s??4,x=ur[b],S=V(mS.outer,gS.sizing(t??null,n??null,r??null,i??null),m);return(0,fS.jsx)(`div`,{ref:_,className:[S.className,h].filter(Boolean).join(` `)||void 0,style:g&&S.style?{...S.style,...g}:g||S.style,...v,children:(0,fS.jsx)(`div`,{...W(U(`section`,{variant:e}),V(mS.inner,...$g(y?{useThemeDefault:`section`}:{paddingInnerX:x,paddingInnerY:x,paddingOuterX:x,paddingOuterY:x}),!y&&b!==4&&dr[b],!y&&b!==4&&fr[b],!y&&b!==4&&pr[b],!y&&b!==4&&mr[b],!y&&Tr[b],c!=null&&_r[c],c!=null&&fr[c],d!=null&&vr[d],d!=null&&pr[d],d!=null&&mr[d],f!=null&&Cr[f],f!=null&&pr[f],p!=null&&wr[p],p!=null&&mr[p],l!=null&&yr[l],l!=null&&xr[l],u!=null&&br[u],u!=null&&Sr[u],pS[e],o?.includes(`top`)&&hS.top,o?.includes(`bottom`)&&hS.bottom,o?.includes(`start`)&&hS.start,o?.includes(`end`)&&hS.end)),children:a})})}var fS,pS,mS,hS,gS,_S=o((()=>{H(),v_(),Dr(),hn(),ut(),fS=_n(),pS={section:{kWkggS:`x10xzikg`,$$css:!0},transparent:{kWkggS:`xjbqb8w`,$$css:!0},muted:{kWkggS:`xwmxj5m`,$$css:!0}},mS={outer:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,keoZOQ:`xkibk3`,k1K539:`xlayyun`,$$css:!0},inner:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,kZKoxP:`x5yr21d`,$$css:!0}},hS={top:{kEafiO:`x178xt8z`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0},bottom:{kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0},start:{k2ei4v:`xpilrb4`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,$$css:!0},end:{ke9TFa:`x1lun4ml`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},gS={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]},dS.displayName=`Section`}));function vS(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=ES.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function yS(e){return vS(e,1)!==null}function bS(e,t){let n=[];for(let r of e){let e=vS(r,t);e!==null&&n.push(e)}return n}function xS(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function SS(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}function CS(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function wS(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?DS:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function TS(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return SS(e,i)}var ES,DS,OS=o((()=>{ES=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i,DS=.3}));function kS(){return window.visualViewport?.height??window.innerHeight}function AS(){return kS()>=window.innerHeight-.5}function jS(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function MS(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!LS.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function NS(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&MS(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&MS(i)?i:null}function PS({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,FS.useRef)(!1),u=(0,FS.useRef)(!1),d=(0,FS.useRef)(r),f=(0,FS.useRef)(o);d.current=r,f.current=o,(0,FS.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,FS.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,FS.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,p=null,m=jS(),h=()=>{r.style.setProperty(IS,`0px`),o=null,p=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},_=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=kS(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},v=e=>{let n=kS();if(AS()){h();return}if(Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty(IS,`${i}px`)},y=e=>{if(!d.current)return;let t=NS(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=NS(e.target,r);f.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},b=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!MS(e)){if(u.current&&o){v(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=kS(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(p={x:window.scrollX,y:window.scrollY}),l.current=s>0;let f=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty(IS,`${f}px`),_(e,s>0)},x=0,S=()=>{cancelAnimationFrame(x),x=requestAnimationFrame(b)},C=()=>{let e=p;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&MS(t)&&_(t,!1)},w=typeof ResizeObserver>`u`?null:new ResizeObserver(S),T=()=>{if(!w)return;w.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)w.observe(t)},E=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(T(),S())}),D=()=>{T(),S()},O=()=>{u.current=l.current,S()},k=e=>{e.target===a&&e.propertyName===`transform`&&S()},A=window.visualViewport;return m&&document.addEventListener(`blur`,y,!0),r.addEventListener(`focusin`,D),r.addEventListener(`focusout`,O),a?.addEventListener(`transitionend`,k),A?.addEventListener(`resize`,S),A?.addEventListener(`scroll`,S),window.addEventListener(`scroll`,C),window.addEventListener(`resize`,S),E?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),T(),S(),()=>{cancelAnimationFrame(x),m&&document.removeEventListener(`blur`,y,!0),r.removeEventListener(`focusin`,D),r.removeEventListener(`focusout`,O),a?.removeEventListener(`transitionend`,k),A?.removeEventListener(`resize`,S),A?.removeEventListener(`scroll`,S),window.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,S),w?.disconnect(),E?.disconnect(),r.style.removeProperty(IS),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var FS,IS,LS,RS=o((()=>{FS=u(f(),1),IS=`--_sheet-keyboard-inset`,LS=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`])}));function zS(e){return e.syntheticTouch===!0}function BS(){typeof navigator>`u`||typeof navigator.vibrate!=`function`||KS()||navigator.vibrate(8)}function VS(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=ZS)return e;let i=r/ZS,a=1-i*i;return e+(n-e)*a}function HS(e,t,n){return Math.max(0,e-t-n)}function US(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function WS(e){if(!e)return 0;let t=US(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function GS(e,t,n){return Math.max(0,e-n-t)}function KS(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function qS({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,X.useState)(0),[l,u]=(0,X.useState)(0),[d,f]=(0,X.useState)(!1),[p,m]=(0,X.useState)(0),[h,g]=(0,X.useState)(0),[_,v]=(0,X.useState)(0),y=(0,X.useRef)(0),b=(0,X.useRef)(0),[x,S]=(0,X.useState)(null),[C,w]=(0,X.useState)(!1),T=(0,X.useRef)(0),E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(n);O.current=Math.max(0,n);let k=(0,X.useCallback)(e=>{let t=Math.max(0,e);y.current=t,v(t)},[]),A=(0,X.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-T.current)>.5&&(T.current=t,g(t))},[]),j=(0,X.useCallback)(()=>{w(!0),E.current=null,S(null);let e=D.current;D.current=null,e!=null&&A(e)},[A]),M=(0,X.useCallback)((e,t,n,r,i,a,o)=>{let s=HS(e,n,a);if(o&&Math.abs(r-t)>.5&&!KS()){D.current=s,E.current=i,S(i);return}D.current=null,E.current=null,S(null),w(Math.abs(i-n)>.5),A(s)},[A]),N=(0,X.useRef)(0);N.current=d?s:l;let P=(0,X.useRef)(e);P.current=e;let F=(0,X.useRef)(i);F.current=i;let I=(0,X.useRef)(r),ee=(0,X.useRef)(t),L=(0,X.useRef)(a),te=(0,X.useRef)(o);(0,X.useEffect)(()=>{I.current=r,ee.current=t,L.current=a,te.current=o});let R=(0,X.useRef)(null),ne=(0,X.useRef)(0),re=(0,X.useRef)(null),ie=(0,X.useRef)(null),ae=(0,X.useRef)(null);(0,X.useLayoutEffect)(()=>{if(!C)return;re.current?.offsetHeight;let e=requestAnimationFrame(()=>{w(!1)});return()=>cancelAnimationFrame(e)},[C]);let oe=(0,X.useCallback)(e=>{e<=0||!P.current||N.current>0||(ne.current=e,m(t=>t===e?t:e))},[]),se=(0,X.useCallback)(e=>{if(ae.current?.disconnect(),ae.current=null,re.current=e,!e||typeof ResizeObserver>`u`){e&&oe(e.getBoundingClientRect().height);return}oe(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;oe(e??t.target.getBoundingClientRect().height)}});t.observe(e),ae.current=t},[oe]);(0,X.useEffect)(()=>()=>ae.current?.disconnect(),[]),(0,X.useEffect)(()=>{e&&(c(0),u(0),f(!1),w(!1),k(0),b.current=0,T.current=0,E.current=null,D.current=null,g(0),S(null))},[e,k]);let ce=(0,X.useCallback)(()=>ne.current>0?ne.current:re.current?.getBoundingClientRect().height??0,[]),le=(0,X.useCallback)(e=>{let t=GS(e,0,O.current),n=xS(t,F.current?.()??[]);return{offsets:n,peekOffset:CS(n,t)}},[]),ue=(0,X.useCallback)(()=>{let e=re.current;if(!e)return ne.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),de=(0,X.useCallback)(()=>{if(!P.current||R.current!=null||E.current!=null)return;let e=ue();if(e<=0)return;let{offsets:t,peekOffset:n}=le(e),r=Math.min(b.current,t.length-1),i=t[r],a=i===n?0:i,o=y.current;if(e===ne.current&&Math.abs(i-N.current)<=.5&&Math.abs(a-o)<=.5)return;ne.current=e,m(e),b.current=r,M(o,i,a,i,o,WS(ie.current),!1),k(a),u(i),L.current?.(GS(e,i,O.current));let s=t[t.length-1],c=GS(e,s,O.current);te.current?.(wS(i,t,s+c*XS,n))},[ue,M,k,le]);(0,X.useEffect)(()=>{if(!(!e||typeof window>`u`))return window.addEventListener(`resize`,de),window.addEventListener(`orientationchange`,de),()=>{window.removeEventListener(`resize`,de),window.removeEventListener(`orientationchange`,de)}},[e,de]);let z=(0,X.useRef)(!1);(0,X.useLayoutEffect)(()=>{if(!z.current){z.current=!0;return}de()},[de,i]);let B=(0,X.useCallback)(e=>{let t=R.current;if(t==null)return;R.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),f(!1),M(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=le(t.height),i=n[n.length-1],a=i+GS(t.height,i,O.current)*XS;te.current?.(wS(t.baseOffset,n,a,r))},[M,le]);(0,X.useEffect)(()=>{let e=()=>B(),t=()=>{document.visibilityState===`hidden`&&B()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[B]);let fe=(0,X.useCallback)((e,t,n,r,i,a,o,s,l,d)=>{let{offsets:f,peekOffset:p}=le(n),m=f[f.length-1],h=GS(n,m,O.current),g=Math.abs(t)>JS&&i>YS,_=e=>{let t=e===p?0:e;M(o,e,t,s,l,d,!0),k(t),b.current=Math.max(0,f.indexOf(e)),u(e),L.current?.(GS(n,e,O.current));let r=m+h*XS;te.current?.(wS(e,f,r,p)),e!==a&&BS()};if(r>0&&g){ee.current?(M(o,a,o,o,o,d,!1),I.current()):_(m);return}if(r<0&&g){M(o,0,0,s,l,d,!0),k(0),b.current=0,c(0),u(0),L.current?.(GS(n,0,O.current)),te.current?.(1),BS();return}if(e>m+h*XS){ee.current?(M(o,a,o,o,o,d,!1),I.current()):_(m);return}_(TS(e,f,r,a))},[M,k,le]),pe=(0,X.useCallback)((e,t,n)=>{let r=e.currentTarget,i=zS(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=WS(ie.current),s=y.current;R.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,velocity:0,height:t,baseOffset:l,baseLayoutOffset:s,renderedOffset:l,layoutOffset:s,naturalEndGap:o},A(HS(s,s,o)),c(l),f(!0)},[l,A]),me=(0,X.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),pe(e,ce()))},[pe,ce]),he=(0,X.useCallback)(e=>{R.current!=null&&(e.preventDefault(),B(e.currentTarget))},[B]),ge=(0,X.useCallback)(e=>{R.current?.syntheticTouch||R.current?.pointerId===e.pointerId&&B()},[B]),_e=(0,X.useCallback)(e=>{let t=R.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!zS(e))return;let n=e.clientY-t.startCoord,r=e.timeStamp-t.lastTime;r>0&&(t.velocity=(e.clientY-t.lastCoord)/r,t.lastCoord=e.clientY,t.lastTime=e.timeStamp);let{offsets:i,peekOffset:a}=le(t.height),o=t.baseOffset+n,s=i[i.length-1],l;l=o<0?Math.max(-48,o*QS):o>s?o:VS(o,i);let u=l<t.baseOffset?0:t.baseLayoutOffset;t.renderedOffset=l,t.layoutOffset=u,c(l),A(HS(t.baseLayoutOffset,u,t.naturalEndGap));let d=i[i.length-1],f=d+GS(t.height,d,O.current)*XS;te.current?.(wS(l,i,f,a))},[le,A]),ve=(0,X.useCallback)(e=>{let t=R.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!zS(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1;R.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),f(!1),fe(i,t.velocity,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[fe]),ye=(0,X.useRef)(null),be=(0,X.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=e.currentTarget;if(t.scrollTop>0){ye.current=null;return}ye.current={pointerId:e.pointerId,startCoord:e.clientY,scroller:t}},[]),xe=(0,X.useCallback)(e=>{if(R.current){_e(e);return}let t=ye.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>eC&&t.scroller.scrollTop<=0?(ye.current=null,pe(e,ce(),t.startCoord),_e(e)):n<0&&(ye.current=null)},[pe,_e,ce]),Se=(0,X.useCallback)(e=>{ye.current=null,!R.current?.syntheticTouch&&R.current&&ve(e)},[ve]),Ce=(0,X.useRef)(null),we=(0,X.useRef)(null),Te=(0,X.useRef)(pe),Ee=(0,X.useRef)(B),De=(0,X.useRef)(_e),Oe=(0,X.useRef)(ve),ke=(0,X.useRef)(ce);(0,X.useEffect)(()=>{Te.current=pe,Ee.current=B,De.current=_e,Oe.current=ve,ke.current=ce});let Ae=(0,X.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>e.scrollTop<=0,r=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1,i=e=>{let t=e.currentTarget,i=e.changedTouches[0];if(!i){Ce.current=null;return}let a=n(t),o=r(t)&&N.current>0;Ce.current={id:i.identifier,startY:i.clientY,top:a,bottom:o,contentEndY:null,promotedAtContentEnd:!1}},a=e=>{let i=e.currentTarget,a=Ce.current;if(R.current){let n=[...e.changedTouches].find(e=>e.identifier===R.current?.pointerId);if(!n)return;if(a?.promotedAtContentEnd&&a.contentEndY!=null){if(n.clientY>=a.contentEndY){a.contentEndY=null,a.promotedAtContentEnd=!1,Ee.current(i);return}De.current(t(n,i));return}e.preventDefault(),De.current(t(n,i));return}if(!a)return;let o=[...e.changedTouches].find(e=>e.identifier===a.id);if(!o)return;let s=o.clientY-a.startY,c=a.top&&s>eC&&n(i),l=a.bottom&&s<-8&&r(i);if(c||l){e.preventDefault(),Ce.current=null,Te.current(t(o,i),ke.current(),a.startY),De.current(t(o,i));return}(a.top&&s<0||a.bottom&&s>0)&&(a.top=!1,a.bottom=!1),N.current>0&&r(i)?a.contentEndY==null?a.contentEndY=o.clientY:a.contentEndY-o.clientY>=$S&&(a.promotedAtContentEnd=!0,Te.current(t(o,i),ke.current(),a.contentEndY),De.current(t(o,i))):a.contentEndY=null},o=e=>{Ce.current=null;let n=R.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?Oe.current(t(r,i)):e.touches.length===0&&Ee.current(i)},s=ie.current;if(s&&we.current){let e=we.current;s.removeEventListener(`touchstart`,e.start),s.removeEventListener(`touchmove`,e.move),s.removeEventListener(`touchend`,e.end),s.removeEventListener(`touchcancel`,e.end)}ie.current=e,e?(e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchmove`,a,{passive:!1}),e.addEventListener(`touchend`,o,{passive:!0}),e.addEventListener(`touchcancel`,o,{passive:!0}),we.current={start:i,move:a,end:o}):we.current=null},[]),je=Ks(`(prefers-reduced-motion: reduce)`),Me=(0,X.useCallback)(e=>{if(T.current<=0)return;let t=US(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<T.current-.5&&A(r)},[A]),Ne=(0,X.useCallback)(e=>{R.current==null&&E.current==null&&Me(e.currentTarget)},[Me]),Pe=d?s:l;return{sheetRef:se,contentProps:(0,X.useMemo)(()=>({style:{transform:Pe===0?void 0:`translateY(${Pe}px)`,transition:e&&(d||C||je)?`none`:void 0,touchAction:`none`,overscrollBehavior:`contain`}}),[Pe,d,e,C,je]),handleProps:(0,X.useMemo)(()=>({style:{touchAction:`none`,cursor:`grab`},onContextMenu:he,onLostPointerCapture:ge,onPointerDown:me,onPointerMove:_e,onPointerUp:ve,onPointerCancel:ve}),[ve,he,ge,me,_e]),bodyProps:(0,X.useMemo)(()=>({ref:Ae,onContextMenu:he,onLostPointerCapture:ge,onPointerDown:be,onPointerMove:xe,onPointerUp:Se,onPointerCancel:Se,onScroll:Ne}),[Ae,Se,be,xe,Ne,he,ge]),bodyElementRef:ie,dragOffset:s,settledOffset:l,isDragging:d,sheetHeight:p,scrollPreservationInset:h,settlingLayoutOffset:x,settledLayoutOffset:_,completeScrollAreaSettle:j}}var X,JS,YS,XS,ZS,QS,$S,eC,tC=o((()=>{X=u(f(),1),vb(),OS(),JS=1.2,YS=48,XS=.4,ZS=40,QS=.35,$S=4,eC=8}));function nC(){return typeof window>`u`?0:window.innerHeight}function rC(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}function iC(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function aC(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(oC),u=s.transitionDelay.split(`,`).map(oC),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+pC),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function oC(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function sC({ref:e,state:t,height:n,label:r,children:i,snapPoints:a,className:o,style:s,tabIndex:c,xstyle:l,isSwipeDismissAllowed:u=!0,isPageScrollLocked:d=!1,onDismiss:f,onScrimOpacity:p,onElementChange:m,onMotionStart:h,onMotionComplete:g,..._}){let v=(0,cC.useRef)(null),y=(0,cC.useRef)(t),b=(0,cC.useRef)(!1),x=(0,cC.useRef)(h),S=(0,cC.useRef)(g),C=(0,cC.useRef)(null),w=(0,cC.useRef)(null),T=t.kind===`open`&&t.entering,E=y.current,D=E.kind===`open`&&E.entering;T&&!D?b.current=E.kind===`retained`:T||(b.current=!1),(0,cC.useLayoutEffect)(()=>{y.current=t,x.current=h,S.current=g},[g,h,t]);let O=t.kind===`open`,k=t.kind!==`hidden`,A=t.kind===`retained`,j=A||t.kind===`exiting`,M=t.kind===`exiting`,N=A&&t.motion===`fading`,P=A?t.alignmentOffset:0,F=rC(a),I=(0,cC.useRef)(a);I.current=a;let{snapHeights:ee,ignoredSnapPointsMessage:L}=(0,cC.useMemo)(()=>{if(F===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(I.current??[]).filter(e=>!yS(e));return{snapHeights:()=>bS(I.current??[],nC()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[F]);Xv(`BottomSheet`,L,L!==``);let{contentProps:te,handleProps:R,bodyProps:ne,bodyElementRef:re,sheetRef:ie,dragOffset:ae,settledOffset:oe,isDragging:se,sheetHeight:ce,scrollPreservationInset:le,settlingLayoutOffset:ue,settledLayoutOffset:de,completeScrollAreaSettle:z}=qS({isOpen:O,canDismiss:u,offscreenBlockEndInset:dC,onDismiss:f,snapHeights:ee,onScrimOpacity:p}),{getViewportProps:B,getContentProps:fe}=Cy({axis:`both`,keyboardAccess:{owner:`contentOrViewport`,label:r},overscroll:`contain`,stickyContainment:`always`}),pe=(0,cC.useCallback)(e=>{ie(e),v.current=e,m?.(e)},[m,ie]);PS({bodyRef:re,bottomClearance:fC,isEnabled:n===`tall`,isFullyExpanded:oe===0,isPageScrollLocked:d,isSheetTraveling:se&&ae!==oe,isOpen:O,isPresented:k,sheetRef:v}),(0,cC.useImperativeHandle)(e,()=>v.current,[]);let me=iC(t);(0,cC.useLayoutEffect)(()=>{if(me!=null){if(C.current=null,w.current=null,me===`entering`&&b.current){w.current=me;return}return aC(v.current,me===`fading`?`opacity`:`transform`,()=>{C.current===me?S.current?.(me):w.current=me})}},[me]),(0,cC.useLayoutEffect)(()=>{if(ue!=null)return aC(v.current,`transform`,z)},[z,ue]),(0,cC.useEffect)(()=>{if(me!=null)return x.current?.(me),C.current=me,w.current===me&&(w.current=null,S.current?.(me)),()=>{C.current===me&&(C.current=null),w.current===me&&(w.current=null)}},[me]);let he=typeof n==`string`&&n in uC?uC[n]:typeof n==`number`?`${n}px`:n,ge=ce>0,_e=te.style.transform,ve;if(ge){let e=se?ae<oe?0:de:ue??de,t=(se?ae:oe)-e;ve=e>0||se||ue!=null?`${Math.max(0,ce-Math.max(0,e))}px`:void 0,_e=t===0?void 0:`translateY(${t}px)`}let ye=P>0?[_e,`translateY(${P}px)`].filter(Boolean).join(` `):_e,be={...te.style,transform:_e,height:ve};return(0,lC.jsxs)(`div`,{..._,ref:pe,tabIndex:c??-1,...W(U(`bottom-sheet`),V(mC.sheet,Er.reset,n===`hug`?mC.hugHeight:mC.budget,M&&mC.sheetClosing,N&&mC.sheetFading,j&&mC.sheetInactive,l),o,{"--_sheet-budget":he,...O?be:A?{transform:ye,height:ve}:M?{height:ve}:{},...s}),children:[(0,lC.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x5ve5x3 x1jm3nie x16khyan`,...R,"aria-hidden":`true`,children:(0,lC.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,lC.jsx)(`div`,{...B({...ne,...W(V(ln.focusVisible,mC.body,n===`tall`&&mC.tallKeyboardBody),le>0?{style:{paddingBlockEnd:`${le}px`}}:{})}),children:(0,lC.jsx)(`div`,{...fe({className:`xufnvkl x9f619 x5yr21d x121v3j4`}),children:i})})]})}var cC,lC,uC,dC,fC,pC,mC,hC=o((()=>{cC=u(f(),1),H(),vb(),Ay(),Ze(),hn(),dn(),Dr(),OS(),RS(),tC(),lC=_n(),uC={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},dC=48,fC=48,pC=50,qe[`--spacing-6`],mC={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},body:{kzQI83:`x1iyjqo2`,kAzted:`x2lwn1j`,kB7OPa:`x9f619`,kFalU9:`xx69xxh`,kInvED:`x1wfwxd8 x1nw7mhf`,kWkggS:`x10xzikg`,kGO01o:`x18d9i69`,$$css:!0},tallKeyboardBody:{kFlMNQ:`xrw9175`,k5JduY:`x1s928wv`,kc3QkE:`xhkezso`,k4zj60:`xu6fald`,kloYau:`x2q1x1w`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}},sC.displayName=`BottomSheetPanel`}));function gC(){return(0,_C.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var _C,vC=o((()=>{_C=_n()})),yC,bC,xC=o((()=>{yC=u(f(),1),bC=(0,yC.createContext)(null),bC.displayName=`BottomSheetSwitcherContext`})),SC=c({BottomSheet:()=>DC});function CC(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function wC(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function TC({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:s=!0,finalFocusRef:c,purpose:l=`info`,xstyle:u,...d}){let f=(0,OC.useRef)(null),p=(0,OC.useRef)(null),m=(0,OC.useRef)(null),[h,g]=(0,OC.useState)(t),_=t||h,v=t?{kind:`open`,entering:!1}:h?{kind:`exiting`}:{kind:`hidden`},y=(0,OC.useCallback)(()=>{l!==`required`&&n(!1)},[n,l]),b=(0,OC.useCallback)(()=>{l===`info`&&n(!1)},[n,l]),x=(0,OC.useCallback)(e=>{p.current=e},[]),S=(0,OC.useCallback)(e=>{f.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,OC.useEffect)(()=>{let e=f.current;e!=null&&t&&(g(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(s?(m.current=document.activeElement,e.showModal()):e.show(),wC(p.current,s)))},[s,t]),(0,OC.useEffect)(()=>{!t&&h&&s&&S(0)},[S,s,t,h]);let C=(0,OC.useCallback)(e=>{if(e!==`exiting`||t)return;let n=f.current;n?.open&&n.close(),g(!1),(c?.current??m.current)?.focus(),m.current=null},[c,t]);Py(_&&s),Xv(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let w=(0,OC.useCallback)(e=>{e.preventDefault(),y()},[y]),T=(0,OC.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),!fn(e.nativeEvent)&&y())},[y]),E=(0,OC.useCallback)(e=>{s&&e.target===e.currentTarget&&b()},[b,s]);return(0,kC.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!_<<3|!!s<<2|!!(s&&!t&&h)<<1|!s<<0],ref:f,"aria-label":r,"aria-hidden":!t&&h?`true`:void 0,"aria-modal":s&&t?`true`:void 0,role:l===`required`?`alertdialog`:void 0,inert:!t&&h?!0:void 0,onCancel:w,onClick:E,onKeyDown:T,children:[(0,kC.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,kC.jsx)(sC,{...d,ref:e,state:v,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:l===`info`,isPageScrollLocked:_&&s,xstyle:u,onDismiss:b,onScrimOpacity:S,onElementChange:x,onMotionComplete:C,children:i})}),(0,kC.jsx)(gC,{})]})}function EC({switcher:e,ref:t,sheetId:n,label:r,children:i,height:a=`capped`,snapPoints:o,purpose:s=`info`,xstyle:c,...l}){let{activeSheet:u,hasScrim:d,onActiveSheetChange:f,getSheetPhase:p,getSheetAlignmentOffset:m,registerSheetElement:h,registerSheetLabel:g,registerSheetPurpose:_,onSheetEnterStart:v,onSheetTransitionComplete:y,onSheetScrimOpacityChange:b}=e,x=typeof n==`string`&&n.length>0,S=x?p(n):`hidden`,C=CC(S,x?m(n):0),w=S===`active`||S===`entering`,T=S===`covered`||S===`aligning`||S===`fading`||S===`exiting`,E=S!==`hidden`,D=S===`active`||S===`entering`,O=(0,OC.useRef)(null),k=(0,OC.useRef)(S),A=k.current,j=(0,OC.useRef)(!1);(0,OC.useLayoutEffect)(()=>{k.current=S},[S]);let M=(0,OC.useCallback)(()=>{s===`info`&&x&&u===n&&f(null)},[u,x,f,s,n]),N=(0,OC.useCallback)(e=>{O.current=e,x&&h(n,e)},[x,h,n]),P=(0,OC.useCallback)(e=>{e===`entering`&&x&&v(n)},[x,v,n]),F=(0,OC.useCallback)(e=>{x&&y({sheetId:n,phase:e})},[x,y,n]),I=(0,OC.useCallback)(e=>{x&&b(n,e)},[x,b,n]);return(0,OC.useLayoutEffect)(()=>{if(x)return g(n,r),()=>g(n,null)},[x,r,g,n]),(0,OC.useLayoutEffect)(()=>{if(x)return _(n,s),()=>_(n,null)},[x,s,_,n]),(0,OC.useEffect)(()=>{if(w){let e=A===`active`||A===`entering`;(!j.current||!e)&&wC(O.current,d),j.current=!0}else S===`hidden`&&(j.current=!1)},[d,w,S,A]),Xv(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",w&&!r),(0,kC.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!E<<1|!!D<<0],hidden:!E,"aria-hidden":T?`true`:void 0,inert:T?!0:void 0,children:(0,kC.jsx)(sC,{...l,ref:t,state:C,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:s===`info`,isPageScrollLocked:d,xstyle:c,onDismiss:M,onScrimOpacity:I,onElementChange:N,onMotionStart:P,onMotionComplete:F,children:(0,kC.jsx)(bC,{value:null,children:i})})})}function DC(e){let t=(0,OC.use)(bC),n=e.sheetId,r=typeof n==`string`&&n.length>0;return Xv(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),Xv(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,kC.jsx)(TC,{...e}):(0,kC.jsx)(EC,{...e,switcher:t})}var OC,kC,AC=o((()=>{OC=u(f(),1),vb(),hn(),hC(),vC(),xC(),kC=_n(),DC.displayName=`BottomSheet`}));_S();var jC=(0,y.lazy)(async()=>Promise.resolve().then(()=>(AC(),SC)).then(e=>({default:e.BottomSheet}))),MC={heading:{k1K539:`x1p37lm5`,kUOVxO:`xam6yil`,$$css:!0}};function NC({isOpen:e,targetRef:t}){return(0,y.useEffect)(()=>{if(!e)return;let n=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(n)},[e,t]),null}function PC({children:e,finalFocusRef:t,initialFocusRef:n,isOpen:r,label:i,onOpenChange:a}){return(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(jC,{isOpen:r,onOpenChange:a,finalFocusRef:t,label:i,height:`hug`,purpose:`info`,children:(0,G.jsx)(dS,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:(0,G.jsxs)(`div`,{className:`xh8yej3`,children:[(0,G.jsx)($i,{level:3,xstyle:MC.heading,children:i}),e,(0,G.jsx)(NC,{isOpen:r,targetRef:n})]})})})})}PC.displayName=`SelectorBottomSheet`,H(),Br(),Cv(),ci(),pv(),hn(),Au(),Qv(),dn(),St(),ut(),at();var FC=`[data-astryx-popover-fallback-close]`;function IC(e){try{e.focus()}catch{}return document.activeElement===e}function LC(e){let t=Array.from(e.querySelectorAll(fv)).filter(e=>e.closest(FC)==null);for(let e of t)if(IC(e))return!0;return!1}var RC={surface:{kWkggS:`x1prclbq`,"--_popover-radius":`xiki222`,kaIpWk:`x11m9jtl`,kGVxlE:`x1i5ehqx`,$$css:!0},contentWrapper:{kVAEAm:`x1n2onr6`,$$css:!0},closeButtonWrapper:{kVAEAm:`x10l6tqk`,krVfgx:`x1ey2m1c`,kY2c9j:`x1vjfegm`,kzqmXN:`x1i1rx1s x10okhzq`,kZKoxP:`xjm9jq1 x132qfvm`,kVQacm:`xb3r6kr x1dordxg`,kz4h6p:`x1hyvwdk x10wafsz`,kfzvcC:`x47corl xbt4iw`,kLKAdn:`xexx8yu x1kw28su`,$$css:!0}};function zC(e={}){let{onShow:t,onHide:n,xstyle:r,className:i,style:a,hasLightDismiss:o=!0,hasEscapeDismiss:s=!0,hasAutoFocus:c=!0,hasSurface:l=!0,surfaceTarget:u,hasCloseButton:d=!0,closeButtonLabel:f,dialogLabel:p,role:m=`dialog`,isModal:h=!0}=e,g=wu(),_=f??g(`@astryx.popover.close`),v=(0,y.useRef)(null),b=(0,y.useRef)(!1),x=Pr({mode:`context`,lightDismiss:o,onShow:t,onHide:n}),{containerRef:S,focusFirst:C}=bv({isActive:x.isOpen,onEscape:s||o?x.hide:void 0}),w=(0,y.useCallback)(()=>{let e=S.current;if(e&&!LC(e)){if(m===`dialog`){IC(e);return}C()}},[S,C,m]);(0,y.useEffect)(()=>{x.isOpen&&c&&!b.current&&requestAnimationFrame(w),x.isOpen||(b.current=!1)},[x.isOpen,c,w]);let T=(0,y.useCallback)(e=>{v.current=e,x.ref(e)},[x]),E=(0,y.useCallback)(e=>{b.current=e?.skipAutoFocus??!1,x.show()},[x]),D=(0,y.useCallback)(()=>{x.isOpen?x.hide():E()},[x,E]),O={"aria-haspopup":m===`dialog`?`dialog`:`true`,"aria-expanded":x.isOpen,"aria-controls":x.id};Xv(`usePopover`,'role="dialog" without a `dialogLabel` renders an unnamed dialog. Pass `dialogLabel`, or use `role: "none"` for listbox/menu popups whose content already carries its own role.',m===`dialog`&&!p);let k=(0,y.useCallback)((e,t)=>{let n=U(`popover`,void 0,{legacyNames:[`popover-surface`]}),o=u!=null&&u!==`popover`?`${n.className} ${Qe(u)}`:n.className;return x.render((0,G.jsx)(ii,{children:(0,G.jsxs)(`div`,{ref:S,role:m===`dialog`?`dialog`:void 0,"aria-modal":m===`dialog`&&h?!0:void 0,"aria-label":m===`dialog`?p:void 0,tabIndex:m===`dialog`?-1:void 0,...W({...n,className:o},un.focusVisible(RC.contentWrapper,l&&RC.surface,r),i,a),children:[e,d&&(0,G.jsx)(`div`,{"data-astryx-popover-fallback-close":``,...V(RC.closeButtonWrapper,$t.centerInline(`100%`)),children:(0,G.jsx)(Mg,{variant:`secondary`,label:_,onClick:x.hide})})]})}),{...t,xstyle:t?.xstyle})},[x,d,l,u,i,a,_,S,p,m,h,r]);return{triggerRef:T,contentRef:S,anchorId:x.anchorId,show:E,hide:x.hide,toggle:D,isOpen:x.isOpen,id:x.id,render:k,triggerProps:O}}function BC(e={}){return zC(e)}Js();var VC=`(max-width: 768px) and (pointer: coarse)`;function HC(e){let t=Ks(VC);return e===`adaptive`?t?`bottom-sheet`:`popover`:e}qr();function UC(){let[e,t]=(0,y.useState)(!1);Ur();let n=(0,y.useCallback)(()=>{t(Wr()===`pointer`)},[]),r=(0,y.useCallback)(()=>{t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:(0,y.useCallback)(()=>{Wr()===`keyboard`&&t(!1)},[]),prepareFocusReturn:n,resetFocusReturn:r}}function WC({presentation:e,onHide:t,onShow:n,popoverOptions:r,triggerRef:i}){let a=HC(e),o=(0,y.useRef)(a),[s,c]=(0,y.useState)(!1),l=(0,y.useRef)(!1),[u,d]=(0,y.useState)(!1),f=(0,y.useRef)(t),p=(0,y.useRef)(n),m=(0,y.useRef)(!1),{isFocusRingSuppressed:h,onFocusReturnTargetFocus:g,prepareFocusReturn:_,resetFocusReturn:v}=UC();f.current=t,p.current=n;let b=(0,y.useCallback)(()=>{_(),f.current(),i.current?.focus()},[_,i]),x=(0,y.useCallback)(()=>{m.current=!0,v(),p.current()},[v]),S=BC({...r,onHide:b,onShow:x}),{hide:C,show:w}=S,T=(0,y.useCallback)(()=>(o.current=a,a===`bottom-sheet`?(v(),p.current(),l.current=!0,d(!0),c(!0),!0):(d(!1),m.current=!1,w(),m.current)),[v,a,w]),E=(0,y.useCallback)(()=>{l.current?(_(),l.current=!1,c(!1),f.current()):C()},[C,_]),D=(0,y.useCallback)(e=>{g(),!l.current&&o.current===`bottom-sheet`&&d(!1)},[g]),O=(0,y.useCallback)(e=>{e?T():E()},[E,T]),k=S.isOpen||s;return{activePresentation:k||u?o.current:a,hide:E,isOpen:k,isSheetOpen:s,isSheetPresented:u,isTriggerFocusRingSuppressed:h,onSheetOpenChange:O,onTriggerFocus:D,popover:S,show:T}}var GC={pointerRestoredFocus:{kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,$$css:!0}};H(),Oc(),Dc(),ni(),Br(),Lv(),Ze(),Yv(),hn(),ut(),dn(),at(),Au();var KC={triggerContainer:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kOIVth:`x1txdalj`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib x1w61h2b`,kLWn49:`x7acx1w`,kMwMTN:`x1tgivj0`,kkrTdU:`x1ypdohk x16khyan`,$$css:!0},triggerPlaceholder:{kMwMTN:`xv1l7n4`,$$css:!0},triggerInGroup:{kAzted:`x2lwn1j`,k8WAf4:`xt970qd`,$$css:!0},triggerIcon:{kmuXW:`x2lah0s`,$$css:!0},triggerIconRotation:{k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,k3nNDw:`x1g0ag68`,$$css:!0},triggerIconOpen:{k3aq6I:`x19jd1h0`,$$css:!0},triggerGhost:{kzqmXN:`x14atkfc`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kGVxlE:`x1gnnqk1 x1s17dad x15ysqaf`,k63SB2:`x1e4wzip`,k1ekBW:`xrafxwg`,k3aq6I:`x3oybdh xk4oym4`,$$css:!0},triggerGhostDisabled:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},triggerReadOnly:{kkrTdU:`xt0e3qv`,$$css:!0},triggerGhostReadOnly:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},statusButton:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,$$css:!0},searchRowInput:{kg3NbH:`x2hg6jq`,$$css:!0},popover:{k7Eaqz:`xrzjruh`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0},item:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kOIVth:`x1txdalj`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kaIpWk:`xh6dtrn`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kkrTdU:`x1ypdohk x16khyan`,k9WMMc:`x1yc453h`,kI3sdo:`x1a2a7pz`,$$css:!0},itemHighlighted:{kWkggS:`x1lmrjuc`,$$css:!0},itemSelected:{k63SB2:`x1e4wzip`,$$css:!0},itemDisabled:{kSiTet:`xbyyjgo`,kkrTdU:`xt0e3qv`,$$css:!0}},qC={sm:{kAzted:`x1gdqauq`,k8WAf4:`x1ecmfrv`,$$css:!0},md:{kAzted:`x1uogy3y`,k8WAf4:`x1ioay2v`,$$css:!0},lg:{kAzted:`x1xf4nls`,k8WAf4:`x1vn5h1t`,$$css:!0}},JC={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},YC={warning:`warning`,error:`error`,success:`success`},XC={warning:`warning`,error:`error`,success:`success`},ZC={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`};function QC({option:e}){return(0,G.jsx)(uS,{icon:e.icon,label:e.label??e.value,description:e.description})}function $C(e,t){return!t||(e.label??e.value).toLowerCase().includes(t.toLowerCase())}function ew(e,t){return t?e.filter(e=>$C(e,t)):e}function tw(e){let t=wu(),{label:n,isLabelHidden:r=!1,description:i,isOptional:a=!1,isRequired:o=!1,isDisabled:s=!1,isReadOnly:c=!1,disabledMessage:l,options:u,value:d,onChange:f,changeAction:p,isLoading:m=!1,placeholder:h,size:g,variant:_=`input`,status:v,statusVariant:b=`attached`,labelTooltip:x,startIcon:S,htmlName:C,renderOption:w,renderValue:T,indicatorPosition:E=`end`,hasSearch:D=!1,searchPlaceholder:O,emptyText:k,emptySearchText:A,placement:j,presentation:M=`popover`,isDefaultOpen:N=!1,"data-testid":P,width:F,xstyle:I,className:ee,style:L,onFocus:te,hasClear:R,id:ne,...re}=e,ie=Db({isRequired:o,isOptional:a}),ae=h??t(`@astryx.selector.placeholder`),oe=O??t(`@astryx.selector.searchPlaceholder`),se=k??t(`@astryx.selector.empty`),ce=A??t(`@astryx.selector.emptySearchResults`),le=R===!0,ue=bg(g,`md`),de=_===`ghost`&&b===`attached`?`detached`:b,z=c&&!s,B=d===null?void 0:d,fe=(0,y.useId)(),pe=ne??fe,me=(0,y.useId)(),he=(0,y.useId)(),ge=(0,y.useId)(),_e=(0,y.useId)(),ve=(0,y.useId)(),ye=(0,y.useId)(),be=(0,y.useRef)(null),xe=(0,y.useRef)(null),Se=(0,y.useRef)(null),Ce=cx(),[we,Te]=(0,y.useState)(``),Ee=(0,y.useRef)(``),De=we.length>0,[,Oe]=(0,y.useTransition)(),[ke,Ae]=(0,y.useOptimistic)(B),je=m||ke!==B,Me=Av(),Ne=typeof se==`string`?se:t(`@astryx.selector.empty`),Pe=typeof ce==`string`?ce:t(`@astryx.selector.emptySearchResults`),Fe=s&&!!l,Ie=Mi({placement:`above`,focusTrigger:`always`,isEnabled:Fe}),Le=Mi({placement:`above`,isEnabled:de===`tooltip`&&!!v?.message}),{ariaLabelledBy:Re,ariaDescribedBy:ze}=zt(_e,[i?he:null,!Ce&&de!==`tooltip`&&v?.message?ge:null,de===`tooltip`&&v?.message?Le.describedBy:null,Fe?Ie.describedBy:null,z?ve:null],Ce),Be=(0,y.useMemo)(()=>Yx(u),[u]),Ve=(0,y.useMemo)(()=>ew(Be,we),[Be,we]),He=(0,y.useMemo)(()=>Be.findIndex(e=>e.value===ke),[Be,ke]),Ue=(0,y.useMemo)(()=>He>=0?Be[He]:void 0,[Be,He]),We=(0,y.useRef)(null),Ge=(0,y.useRef)(()=>{}),H=WC({presentation:M,onHide:(0,y.useCallback)(()=>{Te(``),Ee.current=``,Ge.current(),Me(``)},[Me]),onShow:(0,y.useCallback)(()=>{D&&requestAnimationFrame(()=>{let e=Se.current;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))})},[D]),triggerRef:xe,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`,surfaceTarget:`selector-popup`}}),{popover:Ke}=H,Je=H.hide,Ye=H.isOpen,Xe=Mr(Ke.id,Ke.isOpen);(0,y.useEffect)(()=>{N&&!z&&H.show()},[]),(0,y.useEffect)(()=>{z&&Ye&&Je()},[z,Ye,Je]);let Ze=(0,y.useCallback)(e=>{if(e.length===0){Me(``);return}if(m){Me(``);return}let n=ew(Be,e).length;Me(n===0?Pe:t(`@astryx.selector.resultCount`,{count:n}))},[Me,m,Be,Pe,t]),$e=(0,y.useCallback)(e=>{Te(e),Ee.current=e,Ze(e)},[Ze]),et=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!H.isOpen||m||we!==``||Be.length!==0){et.current=null;return}et.current!==Ne&&(et.current=Ne,Me(Ne))},[H.isOpen,m,we,Be.length,Ne,Me]);let tt=j==null&&!D,{offset:nt,isPositioned:rt}=$x({isOpen:Ke.isOpen&&tt,selectedItemIndex:He,listboxId:me,listboxRef:We,anchorRef:be}),it=tt?nt:0,at=!tt||rt,ot=j??`below`,st=it>0?{marginBlockStart:`-${it}px`}:void 0,ct=(0,y.useCallback)(()=>{Ge.current(),f?.(null),p&&Oe(async()=>{Ae(void 0),await p(null)})},[f,p,Oe,Ae]),lt=(0,y.useCallback)(e=>{let t=Ee.current+e;Ee.current=t,Te(t),Ze(t)},[Ze]),ut=(0,y.useCallback)(e=>{f?.(e),p&&Oe(async()=>{Ae(e),await p(e)})},[f,p,Oe,Ae]),{highlightedIndex:dt,setHighlightedIndex:ft,getItemId:pt,onTriggerClick:mt,onKeyDown:ht,onItemSelect:gt,onItemMouseEnter:_t}=eS({selectableItems:Ve,value:ke,isDisabled:s||z,isOpen:H.isOpen,hasSearch:D,onOpen:(0,y.useCallback)(()=>H.show(),[H]),onClose:H.hide,onSelect:ut,onClear:le?ct:void 0,onSearchSeed:lt,listboxId:me}),vt=qv({getItemLabels:()=>Be.map(e=>e.label??e.value),isDisabled:e=>Be[e]?.disabled===!0,getCurrentIndex:()=>H.isOpen?dt:He,onMatch:e=>{let t=Be[e];H.isOpen?ft(e):t.value!==ke&&(ut(t.value),Me(t.label??t.value))}});Ge.current=vt.reset;let yt=(0,y.useCallback)(e=>{if(!(s||z)){if(!D&&vt.onKeyDown(e)){e.preventDefault();return}ht(e)}},[s,z,D,vt,ht]),bt=(0,y.useCallback)(e=>{e.stopPropagation(),ct()},[ct]),xt=(0,y.useCallback)(()=>D?(0,G.jsx)(Wx,{ref:Se,id:ye,label:t(`@astryx.selector.searchOptions`),clearLabel:t(`@astryx.textInput.clearLabel`,{label:t(`@astryx.selector.searchOptions`)}),...U(`selector-search`),xstyle:H.activePresentation===`popover`&&_!==`ghost`&&KC.searchRowInput,role:`combobox`,"aria-expanded":H.isOpen,"aria-controls":me,"aria-autocomplete":`list`,"aria-activedescendant":H.isOpen&&dt>=0?pt(dt):void 0,value:we,onValueChange:$e,onContainerKeyDown:e=>{e.target!==Se.current&&e.key===`Tab`&&!e.shiftKey&&ht(e)},onKeyDown:e=>{if(!fn(e.nativeEvent)){if(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`PageUp`||e.key===`PageDown`||e.key===`Enter`||e.key===`Escape`){ht(e);return}e.key===`Tab`&&(e.shiftKey||!De)&&ht(e)}},placeholder:oe}):null,[D,ye,me,we,De,oe,$e,ht,H.isOpen,H.activePresentation,dt,pt,_,t]),St=Wb(`check`),Ct=(0,y.useCallback)((e,t)=>{let n=t===dt,r=e.value===B,i=(0,G.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj`,children:(0,G.jsx)(St,{state:r?`checked`:`unchecked`,size:`sm`,isDisabled:e.disabled??!1,...U(`selector-check`)})}),a=(0,G.jsx)(`span`,{className:`x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli`,children:w?w(e):(0,G.jsx)(QC,{option:e})}),o=E===`start`?(0,G.jsxs)(G.Fragment,{children:[i,a]}):(0,G.jsxs)(G.Fragment,{children:[a,i]});return(0,G.jsx)(`div`,{id:pt(t),role:`option`,"aria-selected":r,"aria-disabled":e.disabled,onClick:()=>gt(e),onMouseEnter:()=>_t(e,t),...W(U(`selector-option-row`,{size:ue,selected:r?`selected`:null,disabled:e.disabled?`disabled`:null}),V(KC.item,JC[ue],n&&KC.itemHighlighted,r&&KC.itemSelected,e.disabled&&KC.itemDisabled)),children:o},e.value)},[w,E,dt,ue,B,pt,gt,_t,St]),wt=(0,y.useCallback)(()=>{let e=D&&!!we;if(Ve.length===0&&!m)return[(0,G.jsx)(`div`,{role:`presentation`,...W(U(`selector-empty-state`),{className:`x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib`}),children:e?ce:se},`empty`)];let t=0,n=[];for(let r=0;r<u.length;r++){let i=u[r];if(Kx(i)){if(e)continue;n.push((0,G.jsx)(Hx,{"aria-hidden":`true`,xstyle:KC.divider},`divider-${r}`))}else if(qx(i)){let a=[];for(let n of i.options){let r=Jx(n);(!e||$C(r,we))&&(a.push(Ct(r,t)),t++)}if(a.length===0)continue;n.push((0,G.jsxs)(`div`,{role:`group`,"aria-label":i.title,children:[i.title&&(0,G.jsx)(`div`,{"aria-hidden":`true`,...W(U(`selector-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:i.title}),a]},`section-${r}`))}else if(Gx(i)){let r=Jx(i);if(e&&!$C(r,we))continue;n.push(Ct(r,t)),t++}}return n},[u,Ct,D,we,Ve,m,se,ce]),Tt=v!=null&&de!==`detached`,Et=v!=null&&de===`tooltip`&&!!v.message,Dt=Ue&&T?(0,G.jsx)(sS,{value:Ce?`inline`:`stacked`,children:(0,G.jsx)(`span`,{...{0:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h`},1:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r`}}[!!Ce<<0],children:T(Ue)})}):(0,G.jsxs)(G.Fragment,{children:[!S&&Ue?.icon!=null&&bc(Ue.icon,{size:`sm`,color:`secondary`}),(0,G.jsx)(`span`,{className:`x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h`,children:Ue?.label??ae})]}),Ot=D?(0,G.jsxs)(`div`,{children:[xt(),(0,G.jsx)(Hx,{}),(0,G.jsx)(`div`,{ref:We,id:me,role:`listbox`,"aria-labelledby":pe,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`}}[(H.activePresentation===`popover`&&_!==`ghost`)<<0],children:wt()})]}):(0,G.jsx)(`div`,{ref:We,id:me,role:`listbox`,"aria-labelledby":pe,"aria-activedescendant":H.isOpen&&dt>=0?pt(dt):void 0,tabIndex:H.activePresentation===`bottom-sheet`?0:void 0,onKeyDown:H.activePresentation===`bottom-sheet`?yt:void 0,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},2:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xg01cxk xq2gx43`},3:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x2hg6jq xg01cxk xq2gx43`}}[(H.activePresentation===`popover`&&_!==`ghost`)<<1|!(H.activePresentation!==`popover`||at)<<0],children:wt()}),kt=null;H.activePresentation===`bottom-sheet`?(!z||H.isSheetPresented)&&(kt=(0,G.jsx)(PC,{isOpen:H.isSheetOpen,onOpenChange:H.onSheetOpenChange,finalFocusRef:xe,initialFocusRef:D?Se:We,label:n,children:Ot})):z||(kt=Ke.render(Ot,{placement:ot,alignment:`start`,offset:tt?void 0:qe[`--spacing-1`],xstyle:[KC.popover,ti[ot]],style:st}));let At={...re,id:pe,"aria-describedby":ze,"aria-labelledby":Re,"aria-required":ie?`true`:void 0,"aria-invalid":v?.type===`error`?`true`:void 0,"aria-busy":je||void 0,onKeyDown:yt,onFocus:e=>{te?.(e),H.onTriggerFocus(e)},tabIndex:s&&!Fe?-1:0,...{0:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz`},2:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv`},1:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz xkh2ocl`},3:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv xkh2ocl`}}[!!z<<1|!!Ce<<0]},jt=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:e=>{be.current=e,Ke.triggerRef(e),Ie.ref(e)},onClick:mt,"data-testid":P,...W(U(`selector`,{variant:_,size:ue,status:v?.type??null,disabled:s?`disabled`:null,readonly:z?`readonly`:null}),V($b.base,KC.triggerContainer,qC[ue],_===`ghost`&&KC.triggerGhost,_===`ghost`&&Vc.backgroundImage,_===`ghost`&&ln.focusWithin,H.isTriggerFocusRingSuppressed&&GC.pointerRestoredFocus,s&&$b.disabled,z&&KC.triggerReadOnly,_===`ghost`&&s&&KC.triggerGhostDisabled,_===`ghost`&&z&&KC.triggerGhostReadOnly,!Ue&&KC.triggerPlaceholder,_!==`ghost`&&v&&ex[v.type],_!==`ghost`&&v&&!s&&tx[v.type],_!==`ghost`&&Ce&&lx.inGroup,Ce&&KC.triggerInGroup,I),ee,L),children:[S&&bc(S,{size:`sm`,color:`secondary`}),Ce&&(0,G.jsx)(kc,{id:_e,children:n}),z&&(0,G.jsx)(kc,{id:ve,children:t(`@astryx.input.readOnly`)}),(0,G.jsx)(`button`,{...At,ref:xe,type:`button`,role:z||!D?`combobox`:void 0,"aria-haspopup":z?void 0:H.activePresentation===`bottom-sheet`?`dialog`:`listbox`,"aria-expanded":!z&&H.isOpen,"aria-controls":z?void 0:me,"aria-readonly":z||void 0,"aria-activedescendant":!z&&!D&&H.isOpen&&dt>=0?pt(dt):void 0,disabled:s&&!Fe,"aria-disabled":Fe?`true`:void 0,children:Dt}),C!=null&&(0,G.jsx)(`input`,{type:`hidden`,name:C,value:d??``,disabled:s}),je&&(0,G.jsx)(hg,{size:`sm`}),le&&d!=null&&!s&&!z&&(0,G.jsx)(ox,{...Xe,label:t(`@astryx.selector.clearLabel`,{label:n}),onClick:bt,iconClassName:Qe(`selector-clear-icon`)}),Tt?Et?(0,G.jsx)(`button`,{ref:Le.ref,type:`button`,"aria-label":t(ZC[v.type]),"aria-describedby":Le.describedBy,...Xe,onClick:e=>e.stopPropagation(),...V(ln.focusVisible,KC.statusButton),children:(0,G.jsx)(vc,{icon:YC[v.type],size:`sm`,color:XC[v.type],xstyle:KC.triggerIcon})}):(0,G.jsx)(vc,{icon:YC[v.type],size:`sm`,color:XC[v.type],xstyle:KC.triggerIcon}):z?null:(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[KC.triggerIcon,KC.triggerIconRotation,H.isOpen&&KC.triggerIconOpen],...U(`selector-indicator-icon`,{state:H.isOpen?`expanded`:`collapsed`})})]}),kt,Et&&Le.renderTooltip(v?.message??``),Fe&&Ie.renderTooltip(l)]});return Ce?jt:(0,G.jsx)(Qb,{label:n,isLabelHidden:r,description:i,inputID:pe,descriptionID:i?he:void 0,isOptional:a,isRequired:o,isDisabled:s,status:v?{type:v.type,message:v.message,messageID:v.message?ge:void 0}:void 0,statusVariant:de,labelTooltip:x,width:F,children:jt})}tw.displayName=`Selector`,H(),Dc(),Oc(),hn(),nb(),lb(),Lv(),ut(),bt(),Au(),Un();var nw=.8,rw={wrapper:{kY2c9j:`x1vjfegm`,k1xSpc:`x1lliihq`,k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,"--_textarea-inline-padding":`x1kdpo6e`,$$css:!0},textarea:{k1xSpc:`x1lliihq`,kzqmXN:`xh8yej3`,kB7OPa:`x9f619`,k7Eaqz:`xeuugli`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,k8WAf4:`xu0wf1k`,kg3NbH:`x1w6f3ag`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,kHenm0:`x288g5`,$$css:!0},textareaDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},textareaWithStartIcon:{kZCmMZ:`x1b6te9z`,$$css:!0},textareaWithStatus:{kwRFfy:`xp2dy4z`,$$css:!0},textareaWithBusyStatus:{kwRFfy:`x1g2apga`,$$css:!0},textareaWithCounter:{kGO01o:`xekm6fs`,$$css:!0}},iw={sm:{$$css:!0},md:{$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}};function aw({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,onChange:a,changeAction:o,isLoading:s=!1,value:c,placeholder:l,rows:u=3,isDisabled:d=!1,isReadOnly:f=!1,disabledMessage:p,status:m,statusVariant:h=`attached`,labelTooltip:g,startIcon:_,hasSpellCheck:v=!0,onPaste:b,maxLength:x,hasAutoFocus:S=!1,size:C,htmlName:w,onFocus:T,onBlur:E,width:D,xstyle:O,className:k,style:A,ref:j,...M}){let N=bg(C,`md`),P=wu(),F=Db({isRequired:i,isOptional:r}),I=Av(),ee=(0,y.useId)(),L=(0,y.useId)(),te=(0,y.useId)(),R=(0,y.useId)(),ne=(0,y.useRef)(null),re=(0,y.useRef)(null),ie=(0,y.useRef)(null),[,ae]=(0,y.useTransition)(),[oe,se]=(0,y.useOptimistic)(c),ce=s||oe!==c,le=d&&!!p,ue=Mi({placement:`above`,focusTrigger:`always`,isEnabled:le}),{statusIcon:de,describedBy:z}=rb({status:m,statusVariant:h}),B=[n?L:null,h!==`tooltip`&&m?.message?te:null,z,x==null?null:R,le?ue.describedBy:null].filter(Boolean).join(` `)||void 0,fe=(0,y.useCallback)(e=>{if(x==null)return;let t=e>x?`over`:e>=x*nw?`near`:`under`;t!==ie.current&&(ie.current=t,t===`over`?I(P(`@astryx.textArea.charactersOverLimit`,{count:e-x}),`assertive`):t===`near`&&I(P(`@astryx.textArea.charactersRemaining`,{count:x-e})))},[I,P,x]),pe=e=>{if(d||f)return;let t=e.target.value;x!=null&&fe(_t(t)),a?.(t,e),o&&!e.defaultPrevented&&ae(async()=>{se(t),await o(t,e)})},me=(0,y.useMemo)(()=>x==null?0:_t(oe),[x,oe]),{onClick:he,onMouseUp:ge}=Qy({containerRef:re,inputRef:ne,disabled:d||ce});return(0,G.jsxs)(Qb,{label:e,isLabelHidden:t,description:n,inputID:ee,descriptionID:n?L:void 0,isOptional:r,isRequired:i,isDisabled:d,status:m?{type:m.type,message:m.message,messageID:m.message?te:void 0}:void 0,statusVariant:h,labelTooltip:g,width:D,children:[(0,G.jsxs)(`div`,{ref:e=>{re.current=e,ue.ref(e)},onClick:he,onMouseUp:ge,...W(U(`text-area`,{size:N,status:m?.type??null,disabled:d?`disabled`:null,readonly:f?`readonly`:null},{legacyNames:[`textarea`]}),V($b.base,rw.wrapper,d&&$b.disabled,m&&ex[m.type],m&&!d&&tx[m.type],m&&nx[m.type],O),k,A),children:[_&&(0,G.jsx)(`span`,{className:`x10l6tqk xctzyg x1kiyvbf x47corl x78zum5`,children:bc(_,{size:`sm`,color:`secondary`})}),(0,G.jsx)(`textarea`,{...M,ref:Vn(j,ne),id:ee,name:d?void 0:w,value:oe,onChange:pe,onPaste:b,onFocus:T,onBlur:E,placeholder:l,rows:u,disabled:d&&!le,"aria-disabled":le?`true`:void 0,readOnly:f||le||void 0,spellCheck:v,autoFocus:S,"data-autofocus":S||void 0,"aria-describedby":B,"aria-required":F?`true`:void 0,"aria-invalid":m?.type===`error`||x!=null&&me>x?`true`:void 0,"aria-busy":ce||void 0,...W(U(`text-area-control`),V(rw.textarea,iw[N],d&&rw.textareaDisabled,!!_&&rw.textareaWithStartIcon,(ce||de!=null)&&rw.textareaWithStatus,ce&&de!=null&&rw.textareaWithBusyStatus,x!=null&&rw.textareaWithCounter))}),(ce||de)&&(0,G.jsxs)(`span`,{className:`x10l6tqk xctzyg x13oyzgk x47corl x78zum5 x6s0dn4 x1txdalj`,children:[ce&&(0,G.jsx)(hg,{size:`sm`}),de]}),x!=null&&(0,G.jsxs)(`div`,{id:R,...W(U(`text-area-counter`),{0:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xv1l7n4`},1:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xjt36v0`}}[(me>x)<<0]),children:[me>x&&(0,G.jsx)(vc,{icon:`warning`,size:`sm`}),me,`/`,x]})]}),le&&ue.renderTooltip(p)]})}aw.displayName=`TextArea`,H(),Dc(),Oc(),hn(),nb(),lb(),ut(),Au(),Un();var ow={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}};function sw({type:e=`text`,label:t,isLabelHidden:n=!1,description:r,isOptional:i=!1,isRequired:a=!1,isDisabled:o=!1,isReadOnly:s=!1,disabledMessage:c,startIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,changeAction:m,isLoading:h=!1,value:g,placeholder:_,labelTooltip:v,hasClear:b=!1,hasAutoFocus:x=!1,htmlName:S,onEnter:C,onKeyDown:w,width:T,xstyle:E,className:D,style:O,ref:k,...A}){let j=wu(),M=Db({isRequired:a,isOptional:i}),N=bg(f,`md`),P=(0,y.useId)(),F=(0,y.useId)(),I=(0,y.useId)(),ee=(0,y.useId)(),L=(0,y.useRef)(null),te=(0,y.useRef)(null),R=cx(),[,ne]=(0,y.useTransition)(),[re,ie]=(0,y.useOptimistic)(g),ae=h||re!==g,oe=o&&!!c,se=Mi({placement:`above`,focusTrigger:`always`,isEnabled:oe}),{statusIcon:ce,describedBy:le}=rb({status:u,statusVariant:d,isInGroup:!!R}),{ariaLabelledBy:ue,ariaDescribedBy:de}=zt(F,[r?I:null,!R&&d!==`tooltip`&&u?.message?ee:null,le,oe?se.describedBy:null],R),z=e=>{if(o||s)return;let t=e.target.value;p?.(t,e),m&&!e.defaultPrevented&&ne(async()=>{ie(t),await m(t,e)})},B=(0,y.useCallback)(e=>{p?.(``,null),!e||e.detail===0?L.current?.focus():requestAnimationFrame(()=>{L.current?.focus({preventScroll:!0})})},[p]),{onClick:fe,onMouseUp:pe}=Qy({containerRef:te,inputRef:L,disabled:o}),me=(0,G.jsxs)(`div`,{ref:e=>{te.current=e,se.ref(e)},onClick:fe,onMouseUp:pe,...W(U(`text-input`,{size:N,status:u?.type??null,disabled:o?`disabled`:null,readonly:s?`readonly`:null}),V($b.base,ow[N],o&&$b.disabled,u&&ex[u.type],u&&!o&&tx[u.type],u&&nx[u.type],R&&lx.inGroup,E),D,O),children:[l&&bc(l,{size:`sm`,color:`secondary`}),R&&(0,G.jsx)(kc,{id:F,children:t}),(0,G.jsx)(`input`,{...A,ref:Vn(k,L),id:P,name:o?void 0:S,type:e,value:re,onChange:z,onKeyDown:C||w?e=>{e.key===`Enter`&&!fn(e.nativeEvent)&&C?.(),w?.(e)}:void 0,placeholder:_,disabled:o&&!oe,"aria-disabled":oe?`true`:void 0,readOnly:s||oe||void 0,autoFocus:x,"data-autofocus":x||void 0,"aria-describedby":de,"aria-required":M?`true`:void 0,"aria-invalid":u?.type===`error`?`true`:void 0,"aria-busy":ae||void 0,"aria-labelledby":ue,...{0:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5`},1:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv`}}[!!o<<0]}),b&&g!==``&&!o&&!s&&(0,G.jsx)(ax,{label:j(`@astryx.textInput.clearLabel`,{label:t}),onClick:B}),ae&&(0,G.jsx)(hg,{size:`sm`}),ce]});return R?(0,G.jsxs)(G.Fragment,{children:[me,oe&&se.renderTooltip(c)]}):(0,G.jsxs)(Qb,{label:t,isLabelHidden:n,description:r,inputID:P,descriptionID:r?I:void 0,isOptional:i,isRequired:a,isDisabled:o,status:u?{type:u.type,message:u.message,messageID:u.message?ee:void 0}:void 0,statusVariant:d,labelTooltip:v,width:T,children:[me,oe&&se.renderTooltip(c)]})}sw.displayName=`TextInput`;function cw({label:e,name:t,initialValue:n=``,type:r=`text`,required:i=!1,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u}){let[d,f]=(0,y.useState)(n);return(0,y.useEffect)(()=>f(n),[n]),(0,G.jsx)(sw,{label:e,htmlName:t,value:d,onChange:f,type:r,isRequired:i,required:i,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u})}function lw({label:e,name:t,initialValue:n=``,required:r=!1,placeholder:i,rows:a=3,width:o}){let[s,c]=(0,y.useState)(n);return(0,y.useEffect)(()=>c(n),[n]),(0,G.jsx)(aw,{label:e,htmlName:t,value:s,onChange:c,isRequired:r,required:r,placeholder:i,rows:a,width:o})}function uw({label:e,name:t,options:n,initialValue:r,width:i,hasSearch:a=!1}){let[o,s]=(0,y.useState)(r);return(0,y.useEffect)(()=>s(r),[r]),(0,G.jsx)(tw,{label:e,htmlName:t,options:n,value:o,onChange:s,width:i,hasSearch:a})}function dw({label:e,name:t,submitValue:n,initialValue:r=!1}){let[i,a]=(0,y.useState)(r);return(0,y.useEffect)(()=>a(r),[r]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Yb,{label:e,value:i,onChange:a}),i&&(0,G.jsx)(`input`,{type:`hidden`,name:t,value:n})]})}function fw({label:e,name:t,width:n}){let[r,i]=(0,y.useState)(null);return(0,G.jsx)(Rx,{label:e,htmlName:t,value:r,onChange:i,min:1,isIntegerOnly:!0,hasClear:!0,width:n})}var pw=`/admin/config/auth`;function mw({configuration:e,revision:t,callbackUrl:n}){return Y(`form`,{method:`post`,action:`${pw}/connections/${encodeURIComponent(e.id)}/configure`,style:`display: grid; gap: 12px; max-width: 700px`,children:[J(`input`,{type:`hidden`,name:`id`,value:e.id}),J(`input`,{type:`hidden`,name:`kind`,value:e.kind}),J(`input`,{type:`hidden`,name:`revision`,value:t??``}),J(`p`,{children:`Register this callback URL with the provider:`}),J(`pre`,{children:n}),J(cw,{label:`Connection ID`,name:`connectionId`,initialValue:e.id,isReadOnly:t!==null||e.kind===`github`||e.kind===`google`,required:!0}),J(cw,{label:`Login button label`,name:`label`,initialValue:e.label??``,maxLength:100,required:!0}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&J(cw,{label:`Issuer URL`,name:`issuer`,type:`url`,initialValue:e.issuer??``,required:!0}),J(cw,{label:`Client ID`,name:`clientId`,initialValue:e.clientId??``,required:!0}),J(cw,{label:`Client secret`,name:`clientSecret`,type:`password`,autoComplete:`new-password`,required:t===null}),t!==null&&J(`p`,{children:`Leave the secret blank to retain its saved value.`}),e.kind===`google`&&J(cw,{label:`Allowed Workspace domains`,name:`domains`,initialValue:e.allowedDomains?.join(`, `)??``,placeholder:`example.com, example.org`,description:`Leave blank to allow any Google account to authenticate. Signup remains controlled separately.`}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&J(cw,{label:`Allowed groups`,name:`groups`,initialValue:e.requiredGroups?.join(`, `)??``,description:`Comma-separated; leave blank to use the provider's access policy.`}),J(`p`,{children:`Save a pending configuration, then test it before enabling it.`}),J(Mg,{type:`submit`,label:`Save configuration`})]})}var hw=(0,y.createContext)(null);hw.displayName=`LayoutAreaContext`;var gw=(0,y.createContext)({hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1});gw.displayName=`LayoutSlotsContext`;var _w=(0,y.createContext)(null);_w.displayName=`LayoutDividerContext`;var vw={center:{kGNEyG:`x6s0dn4`,$$css:!0},end:{kGNEyG:`xuk3077`,$$css:!0},start:{kGNEyG:`x1cy8zhl`,$$css:!0},stretch:{kGNEyG:`x1qjc9v5`,$$css:!0}},yw={start:{kjj79g:`x1nhvcw1`,$$css:!0},center:{kjj79g:`xl56j7k`,$$css:!0},end:{kjj79g:`x13a6bvl`,$$css:!0},between:{kjj79g:`x1qughib`,$$css:!0},around:{kjj79g:`x1l1ennw`,$$css:!0},evenly:{kjj79g:`xaw8158`,$$css:!0}},bw={horizontal:{kXwgrk:`x1q0g3np`,$$css:!0},vertical:{kXwgrk:`xdt5ytf`,$$css:!0}},xw={nowrap:{kwnvtZ:`xozqiw3`,$$css:!0},wrap:{kwnvtZ:`x1a02dak`,$$css:!0},"wrap-reverse":{kwnvtZ:`x8hhl5t`,$$css:!0}},Sw={stack:{k1xSpc:`x78zum5`,$$css:!0}},Cw={0:{k1C7PZ:`x1o57wo1`,khm7nJ:`x6yxi7o`,$$css:!0},1:{k1C7PZ:`x1lfs0n9`,khm7nJ:`x1ngg2t4`,$$css:!0},2:{k1C7PZ:`xak3so`,khm7nJ:`x1x7z4sm`,$$css:!0},3:{k1C7PZ:`xewh9hi`,khm7nJ:`x4olc9o`,$$css:!0},4:{k1C7PZ:`xty4p9g`,khm7nJ:`xtx9w7w`,$$css:!0},5:{k1C7PZ:`x1eqhezk`,khm7nJ:`x1iu6piu`,$$css:!0},6:{k1C7PZ:`x3qlgwd`,khm7nJ:`xczp1bk`,$$css:!0},8:{k1C7PZ:`xicv188`,khm7nJ:`xgx0vcf`,$$css:!0},10:{k1C7PZ:`x1p37tyl`,khm7nJ:`x1xpicb7`,$$css:!0},"0.5":{k1C7PZ:`x1kihgfc`,khm7nJ:`x1tw44j4`,$$css:!0},"1.5":{k1C7PZ:`x1thn6ci`,khm7nJ:`xhq53yo`,$$css:!0}};function ww({crossAlign:e,direction:t,gap:n,mainAlign:r,wrap:i}){return[Sw.stack,bw[t],n!=null&&Cw[n],e!=null&&vw[e],r!=null&&yw[r],i!=null&&xw[i]]}var Tw={reset:{kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0}},Ew={center:{kSGwAc:`xamitd3`,$$css:!0},end:{kSGwAc:`xpvyfi4`,$$css:!0},start:{kSGwAc:`xqcrz7y`,$$css:!0},stretch:{kSGwAc:`xkh2ocl`,$$css:!0}},Dw={fill:{kzQI83:`x1iyjqo2`,$$css:!0},static:{kzQI83:`x1c4vz4f`,kmuXW:`x2lah0s`,$$css:!0}};function Ow({crossAlignSelf:e,size:t}={}){return[Tw.reset,Dw[t??`static`],e!=null&&Ew[e]]}H(),hn(),ut(),Dr();function kw(e){if(e==null||typeof e==`number`)return!0;let t=e.trim().toLowerCase();return t.includes(`%`)?!1:t===`0`||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}var Aw={layoutOuter:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,$$css:!0},layoutInner:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-content-width":`x15lplax`,"--layout-alignment-width":`x19kr0ht`,$$css:!0},fill:{kZKoxP:`x12qplqi`,kskxy:`xenllk4`,$$css:!0},auto:{kAzted:`x1us19tq`,$$css:!0},middle:{kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,$$css:!0},middleQuery:{k9g6sI:`xsw3flo`,$$css:!0},singleColumnContent:{kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xpgkkid`,kUOVxO:`xvueqy4`,$$css:!0},singlePanelMiddle:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xnpzo02`,kUOVxO:`xvueqy4 xb0m1lw`,$$css:!0},singleStartPanel:{kZCmMZ:`x1vvd0s7`,$$css:!0},singleEndPanel:{kwRFfy:`xxdn8bs`,$$css:!0},fullBleed:{"--layout-padding-outer-x":`x1wbjvqu`,"--layout-padding-outer-y":`xzxxx64`,$$css:!0}},jw={kzqmXN:`xh8yej3`,kUOVxO:`xvueqy4`,$$css:!0},Mw={contentWidthVar:e=>[{"--layout-content-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x4906uf`,$$css:!0},{"--x---layout-content-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x1b1nz06`,$$css:!0},{"--x---layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentWidth:e=>[jw,{ks0D6T:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xf68679`,$$css:!0},{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}]};function Nw({area:e,children:t}){return t==null?null:(0,G.jsx)(hw,{value:e,children:t})}var Pw={"x-default-marker":`x-default-marker`,$$css:!0};function Fw({children:e,content:t,contentWidth:n,defaultHasDividers:r,end:i,footer:a,header:o,height:s=`fill`,padding:c,ref:l,start:u,xstyle:d,className:f,style:p}){let m=s===`fill`,h=t??e,g=(0,y.useMemo)(()=>r==null?null:{defaultHasDividers:r},[r]),_=o!=null,v=a!=null,b=u!=null,x=i!=null,S=b&&x,C=b!==x,w=n!=null&&kw(n),T=(0,y.useMemo)(()=>({hasHeader:_,hasFooter:v,hasStart:b,hasEnd:x}),[_,v,b,x]),E=(0,G.jsx)(gw,{value:T,children:(0,G.jsx)(`div`,{ref:l,...W(U(`layout`,{height:s}),V(Aw.layoutOuter,m?Aw.fill:Aw.auto,d),f,p),children:(0,G.jsxs)(`div`,{...V(Pw,Aw.layoutInner,...ww({direction:`vertical`}),m?Aw.fill:Aw.auto,c===0&&Aw.fullBleed,c!=null&&hr[c],c!=null&&gr[c],n!=null&&Mw.contentWidthVar(n),w&&Mw.contentAlignmentWidthVar(n)),children:[(0,G.jsx)(Nw,{area:`header`,children:o}),(0,G.jsxs)(`div`,{...V(...ww({direction:`horizontal`}),Aw.middle,n!=null&&(!w||S)&&Mw.contentWidth(n),w&&!S&&Aw.middleQuery,w&&C&&Aw.singlePanelMiddle,w&&b&&!x&&Aw.singleStartPanel,w&&!b&&x&&Aw.singleEndPanel),children:[(0,G.jsx)(Nw,{area:`start`,children:u}),(0,G.jsx)(`div`,{...V(...Ow({size:`fill`}),w&&!b&&!x&&Aw.singleColumnContent),children:(0,G.jsx)(Nw,{area:`content`,children:h})}),(0,G.jsx)(Nw,{area:`end`,children:i})]}),(0,G.jsx)(Nw,{area:`footer`,children:a})]})})});return g==null?E:(0,G.jsx)(_w,{value:g,children:E})}Fw.displayName=`Layout`,H(),hn(),ut(),Dr();var Iw={header:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`x81pis9`,kGO01o:`xg476vw`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xzz8v79`,"--container-padding-block-end":`xi9ns85`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0},divider:{kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},Lw={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function Rw({children:e,hasDivider:t,height:n,label:r,padding:i,paddingBlockEnd:a,role:o,xstyle:s,className:c,style:l,ref:u,...d}){let f=(0,y.use)(_w),p=t??f?.defaultHasDividers??!1,m=i===0;return(0,G.jsx)(`div`,{ref:u,role:o,"aria-label":r,"data-divider":p||void 0,...W(U(`layout-header`),V(Iw.header,Lw.sizing(n??null),p&&Iw.divider,s),c,l),...d,children:(0,G.jsx)(`div`,{...V(Iw.inner,m&&Iw.fullBleed,i!=null&&dr[i],i!=null&&fr[i],i!=null&&pr[i],i!=null&&mr[i],a!=null&&wr[a],a!=null&&mr[a]),children:e})})}Rw.displayName=`LayoutHeader`,H(),hn(),ut(),Dr();var zw={panel:{kB7OPa:`x9f619`,kmuXW:`x2lah0s`,kVQacm:`x7giv3`,kZCmMZ:`xwjyata`,kwRFfy:`x1peupej`,kLKAdn:`xqty4a`,kGO01o:`xg476vw`,"--container-padding-inline-start":`x408pgh`,"--container-padding-inline-end":`xikqloz`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`xi9ns85`,$$css:!0},startPanel:{kZCmMZ:`x139j0dd`,$$css:!0},endPanel:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0},scrollable:{kVQacm:`xysyzu8`,$$css:!0},dividerEnd:{ke9TFa:`x1lun4ml`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0},dividerStart:{k2ei4v:`xpilrb4`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,$$css:!0},collapseStart:{keTefX:`x1wim8z0`,$$css:!0},collapseEnd:{k71WvV:`x1kpg4um`,$$css:!0}},Bw={sizing:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function Vw({children:e,hasDivider:t=!1,isScrollable:n=!0,label:r,padding:i,role:a,width:o,resizable:s,xstyle:c,className:l,style:u,ref:d,...f}){let p=(0,y.use)(hw),{hasHeader:m,hasFooter:h}=(0,y.use)(gw),g=s?s._size:o,_=p===`start`,v=p===`end`,b=i===0,x=!t&&!b&&i==null,S=_?zw.dividerEnd:v?zw.dividerStart:null,C=_?zw.collapseEnd:v?zw.collapseStart:null;return(0,G.jsx)(`div`,{ref:d,role:a,"aria-label":r,...W(U(`layout-panel`),V(zw.panel,Bw.sizing(g??null),_&&!b&&i==null&&zw.startPanel,v&&!b&&i==null&&zw.endPanel,!m&&!b&&i==null&&zw.noHeader,!h&&!b&&i==null&&zw.noFooter,n&&zw.scrollable,b&&zw.fullBleed,i!=null&&dr[i],i!=null&&fr[i],i!=null&&pr[i],i!=null&&mr[i],t&&S,x&&C,c),l,u),...f,children:e})}Vw.displayName=`LayoutPanel`,H(),hn(),ut(),Dr();var Hw={content:{kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kVQacm:`x7giv3`,kZCmMZ:`xwjyata`,kwRFfy:`x1peupej`,kLKAdn:`xqty4a x1ioh5az`,kGO01o:`xg476vw xsg11nj`,"--container-padding-inline-start":`x408pgh`,"--container-padding-inline-end":`xikqloz`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`xi9ns85`,$$css:!0},noStart:{kZCmMZ:`x139j0dd`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,$$css:!0},noEnd:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,"--container-padding-block-start":`xzz8v79`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,"--container-padding-block-end":`x1xjq73n`,$$css:!0},scrollable:{kVQacm:`xysyzu8`,$$css:!0},constrainedNoPanelsStart:{kZCmMZ:`xhlv5e7`,$$css:!0},constrainedNoPanelsEnd:{kwRFfy:`x1ahicqp`,$$css:!0},constrainedSingleStartPanel:{kwRFfy:`xy07wb4`,$$css:!0},constrainedSingleEndPanel:{kZCmMZ:`xxjme2g`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0}};function Uw({children:e,isScrollable:t=!0,padding:n,label:r,role:i,xstyle:a,className:o,style:s,ref:c,...l}){let{hasHeader:u,hasFooter:d,hasStart:f,hasEnd:p}=(0,y.use)(gw),m=n===0;return(0,G.jsx)(`div`,{ref:c,role:i,"aria-label":r,...W(U(`layout-content`),V(Hw.content,!f&&!m&&n==null&&Hw.noStart,!p&&!m&&n==null&&Hw.noEnd,!u&&!m&&n==null&&Hw.noHeader,!d&&!m&&n==null&&Hw.noFooter,t&&Hw.scrollable,m&&Hw.fullBleed,n!=null&&dr[n],n!=null&&fr[n],n!=null&&pr[n],n!=null&&mr[n],!f&&!p&&!m&&Hw.constrainedNoPanelsStart,!f&&!p&&!m&&Hw.constrainedNoPanelsEnd,f&&!p&&!m&&Hw.constrainedSingleStartPanel,!f&&p&&!m&&Hw.constrainedSingleEndPanel,a),o,s),...l,children:e})}Uw.displayName=`LayoutContent`;var Ww=(0,y.createContext)({isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0});Ww.displayName=`AppShellMobileContext`;function Gw(){return(0,y.use)(Ww)}Dc(),Au();function Kw({ref:e,children:t,label:n,"data-testid":r,xstyle:i,className:a,style:o}){let s=wu(),c=n??s(`@astryx.mobileNav.toggle.open`),{isMobile:l,isMobileNavEnabled:u,isMobileNavOpen:d,mobileNavId:f,toggleMobileNav:p}=Gw();return!l||!u?null:(0,G.jsx)(Mg,{ref:e,variant:`ghost`,label:c,icon:t??(0,G.jsx)(vc,{icon:`menu`,color:`inherit`}),onClick:p,"aria-expanded":d,"aria-controls":f||void 0,"data-testid":r??`mobile-nav-toggle`,xstyle:i,className:a,style:o,isIconOnly:!0})}Kw.displayName=`MobileNavToggle`;var qw=(0,y.createContext)(`default`);qw.displayName=`SideNavRenderContext`;function Jw(){return(0,y.use)(qw)}var Yw=(0,y.createContext)(`default`);Yw.displayName=`TopNavRenderContext`;function Xw(){return(0,y.use)(Yw)}var Zw=(0,y.createContext)(null);Zw.displayName=`TopNavMobileContentContext`;function Qw(){return(0,y.use)(Zw)}H(),hn(),dn(),Js(),Ft(),ut(),Au(),cc(),ts(),Un();var $w=y.Activity===void 0?({children:e})=>(0,G.jsx)(G.Fragment,{children:e}):({mode:e,children:t})=>(0,G.jsx)(y.Activity,{mode:e,children:t}),eT=`astryx-app-shell-main`,tT={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kVAEAm:`x1n2onr6`,kVQacm:`x7giv3`,$$css:!0},variantWash:{kWkggS:`x1eiddq6`,$$css:!0},variantSurface:{kWkggS:`x10xzikg`,$$css:!0},variantSection:{kWkggS:`x10xzikg`,$$css:!0},variantElevated:{kWkggS:`x1eiddq6`,$$css:!0},rootFill:{kZKoxP:`xtdtrs8`,$$css:!0},rootAuto:{kAzted:`x1ov3xa9`,$$css:!0},skipLink:{kVAEAm:`x10l6tqk x1xrnuwo`,kzqmXN:`x1i1rx1s x1jqxupm`,kZKoxP:`xjm9jq1 x15cytp8`,k8WAf4:`xt970qd xh2mrf5`,kg3NbH:`xnjsko4 x1cf3d6k`,kogj98:`xkdpibf x1y5lnwp`,kVQacm:`xb3r6kr xomzh7y`,kz4h6p:`x1hyvwdk x1rsz1da`,khDVqt:`xuxw1ft x1hbpcn8`,kMzoRj:`xc342km`,k87sOh:`x13vifvy x1rw3289`,kLqNvP:`x1o0tod xodanix`,kWkggS:`x10xzikg`,kMwMTN:`xjse4m1`,kY2c9j:`x1q2oy4v`,kybGjl:`x1hl2dhg`,k63SB2:`x2mo6ok`,kGuDYH:`xjm74w1`,$$css:!0},mainFocusTarget:{kI3sdo:`x1uvtmcs`,$$css:!0},contentBgSurface:{kWkggS:`x10xzikg`,$$css:!0},contentBgWash:{kWkggS:`x1eiddq6`,$$css:!0},contentBgTransparent:{kWkggS:`xjbqb8w`,kHBbk8:`xc8icb0`,$$css:!0},navAreaWash:{kWkggS:`x1eiddq6`,$$css:!0},navAreaSurface:{kWkggS:`x10xzikg`,$$css:!0},banner:{kmuXW:`x2lah0s`,$$css:!0},headerSticky:{kVAEAm:`x7wzq59`,k87sOh:`x13vifvy`,kY2c9j:`x1vjfegm`,$$css:!0},panelAutoFill:{kUk6DE:`x98rzlu`,kVQacm:`xysyzu8`,$$css:!0}};function nT({variant:e=`elevated`,banner:t,children:n,contentPadding:r,"data-testid":i,height:a=`fill`,mobileNav:o,sideNav:s,topNav:c,xstyle:l,className:u,style:d,ref:f,...p}){let m=wu(),h=rc(),g=o===!1,_=o!=null&&o!==!1&&typeof o==`object`&&!(0,y.isValidElement)(o)?o:null,v=_?.breakpoint??`md`,b=o!=null&&o!==!1&&((0,y.isValidElement)(o)||typeof o==`string`)?o:null,x=_?.content??null,S=_?.hasToggle!==!1,C=_?.isOpen!==void 0,w=h?.__adaptations?.widthBreakpoints,T=Ks(v===`none`?`(width < 0px)`:`(width < ${w?.[v]??qo[v]}px)`,v!==`none`&&_?.defaultIsMobile),[E,D]=(0,y.useState)(!1),O=_?.isOpen??E,k=_?.onOpenChange,A=(0,y.useCallback)(e=>{C||D(e),k?.(e)},[C,k]),j=(0,y.useCallback)(()=>{document.getElementById(eT)?.focus()},[]),M=a===`fill`,N=a===`auto`,P=It(t),F=It(c),I=It(s),ee=!g&&(F||I)&&b==null,L=e===`section`,te=e===`elevated`,R=e===`wash`||e===`elevated`?tT.navAreaWash:e===`surface`?tT.navAreaSurface:void 0,ne=R??(N&&e===`section`?tT.navAreaSurface:void 0),re=e===`wash`?tT.contentBgWash:e===`elevated`&&F&&I&&!T?tT.contentBgTransparent:e===`surface`||e===`elevated`?tT.contentBgSurface:void 0,ie=R??tT.navAreaSurface,ae=(0,y.useRef)(null),oe=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!N||!ae.current||!oe.current)return;let e=ae.current,t=oe.current,n=()=>{let n=e.getBoundingClientRect().height;t.style.setProperty(`--_app-shell-header-height`,`${n}px`)};return jt(e,()=>n())},[N]);let se=I&&!T,ce=b!=null,le=ee&&x!=null&&T,ue=(0,y.useId)(),de=(0,y.useMemo)(()=>({isMobile:T,isMobileNavOpen:O,mobileNavId:ue,toggleMobileNav:()=>ee&&A(!O),openMobileNav:()=>ee&&A(!0),closeMobileNav:()=>A(!1),isMobileNavEnabled:ee,hasAutoToggle:S}),[T,O,ue,A,ee,S]),z=I&&S?(0,G.jsx)(qw,{value:`drawer-content`,children:s}):null,B=I?(0,G.jsx)(qw,{value:`drawer-content`,children:s}):null,fe=F?T&&!g&&b==null?(0,G.jsx)(Zw,{value:z,children:(0,G.jsx)(Yw,{value:`mobile-bar`,children:c})}):c:null,pe=F||P?(0,G.jsxs)(Rw,{padding:0,hasDivider:L&&F,children:[P&&(0,G.jsx)(`div`,{...V(tT.banner,R),children:t}),F&&fe]}):void 0,me=It(pe)?(0,G.jsx)(`div`,{ref:ae,role:`banner`,...W(U(`app-shell-header`,{variant:e}),V(ne,N&&tT.headerSticky)),children:pe}):void 0,he=se?(0,G.jsx)(Vw,{padding:0,hasDivider:L,isScrollable:M,...U(`app-shell-sidenav`,{variant:e}),xstyle:[R,N&&ie,N&&tT.panelAutoFill],children:s}):void 0,ge=he!=null&&N?(0,G.jsx)(`div`,{className:`x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf`,children:he}):he,_e=te&&F&&se,ve=(0,G.jsx)(Uw,{padding:r??0,role:`main`,id:eT,tabIndex:-1,isScrollable:M,xstyle:[re,tT.mainFocusTarget],children:n}),ye=_e?(0,G.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d`,children:[(0,G.jsx)(`div`,{className:`x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl`}),ve]}):ve,be=!g&&S&&T&&!F&&I?(0,G.jsx)(`div`,{role:me==null?`banner`:void 0,...W(U(`app-shell-header`,{variant:e}),V(ne,N&&tT.headerSticky)),children:(0,G.jsx)(Rw,{padding:0,hasDivider:L,children:(0,G.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1k15mir xf314gf`,role:`navigation`,"aria-label":m(`@astryx.appShell.mobileNavigation`),children:[(0,G.jsx)(qw,{value:`topbar`,children:s}),(0,G.jsx)(Kw,{})]})})}):void 0;return(0,G.jsx)(Ww,{value:de,children:(0,G.jsxs)(`div`,{...p,ref:Vn(f,oe),"data-testid":i,...W(U(`app-shell`,{variant:e}),V(tT.root,e===`wash`?tT.variantWash:e===`surface`?tT.variantSurface:e===`section`?tT.variantSection:tT.variantElevated,M?tT.rootFill:tT.rootAuto,l),u,d),children:[(0,G.jsx)(`a`,{href:`#${eT}`,onClick:j,...un.focusVisible(tT.skipLink),"data-testid":`skip-to-content`,children:m(`@astryx.appShell.skipToContent`)}),(0,G.jsx)(Fw,{height:a,padding:0,header:(0,G.jsxs)(G.Fragment,{children:[me,be]}),start:ge,content:ye}),ce&&b,le&&x,T&&!g&&b==null&&!x&&(0,G.jsxs)($w,{mode:O?`visible`:`hidden`,children:[I&&!F&&(0,G.jsx)(qw,{value:`drawer`,children:s}),F&&(0,G.jsx)(Zw,{value:B,children:(0,G.jsx)(Yw,{value:`drawer`,children:c})})]})]})})}nT.displayName=`AppShell`;var rT=(0,y.createContext)(null);rT.displayName=`DropdownMenuContext`;function iT(){return(0,y.use)(rT)}var aT=(0,y.createContext)(null);aT.displayName=`DropdownMenuRadioGroupContext`;function oT(e,t){if(t||e.pointerType!==`mouse`)return;let n=e.currentTarget;n!==n.ownerDocument.activeElement&&n.focus({preventScroll:!0})}Dc(),hn(),ut();var sT={root:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xf314gf`,kaIpWk:`x1ws5lxm`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w x1c52tdz x1anq1lc`,kkrTdU:`x1ypdohk x16khyan`,k9WMMc:`x1yc453h`,kI3sdo:`x1a2a7pz`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`xt0e3qv`,$$css:!0},destructive:{kMwMTN:`xjt36v0`,"--_item-label-color":`xufyqxy`,"--_item-description-color":`xqlix59`,$$css:!0}},cT={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}};function lT({icon:e,label:t,description:n,onClick:r,isDisabled:i=!1,endContent:a,hasCloseOnSelect:o=!0,variant:s=`default`,xstyle:c,className:l,style:u}){let d=iT(),f=d?.menuSize??`md`,p=(0,y.useCallback)(()=>{i||(r?.(),o&&d?.closeMenu())},[i,r,o,d]),m=(0,y.useCallback)(e=>oT(e,i),[i]),h=s===`destructive`;return(0,G.jsx)(oS,{role:`menuitem`,tabIndex:i?void 0:-1,onPointerMove:m,startContent:e?bc(e,{size:`sm`,color:h?`error`:`secondary`}):void 0,label:t,description:n,endContent:a,onClick:p,isDisabled:i,xstyle:[sT.root,cT[f],h&&sT.destructive,i&&sT.disabled,c],...W(U(`dropdown-menu-item`,{size:f,variant:h?`destructive`:null}),{className:l,style:u})})}lT.displayName=`DropdownMenuItem`,ut();var uT={divider:{kqGvvJ:`xsq74q5`,$$css:!0}},dT=U(`dropdown-menu-divider`).className;function fT({xstyle:e,className:t,style:n,ref:r}){return(0,G.jsx)(Hx,{ref:r,xstyle:[uT.divider,e],className:t?`${dT} ${t}`:dT,style:n})}fT.displayName=`DropdownMenuDivider`,Kn(),Gv(),Js();var pT=500,mT=300;function hT(e){let{show:t,hide:n,isOpen:r,isEnabled:i,showDelay:a=150,hideDelay:o=200,clickGuardMs:s=pT,itemSelector:c,popoverId:l,ownsFocus:u=!0}=e,d=Ks(`(hover: hover)`),f=(0,y.useRef)(null),p=(0,y.useRef)(null),m=(0,y.useRef)(null),h=(0,y.useRef)(!1),g=(0,y.useRef)(0),_=(0,y.useRef)(0),v=(0,y.useRef)(r);Gn(()=>{let e=v.current;v.current=r,e&&!r&&(h.current=!1,_.current=0,g.current=Date.now())},[r]);let b=(0,y.useCallback)(()=>{f.current&&=(clearTimeout(f.current),null),p.current&&=(clearTimeout(p.current),null)},[]),x=(0,y.useRef)(()=>{}),{listRef:S,handleKeyDown:C,focusFirst:w}=Hv({itemSelector:c,onEscape:()=>x.current()}),T=(0,y.useCallback)(()=>{let e=S.current?.contains(document.activeElement)??!1;n(),e&&m.current?.focus()},[n,S]);(0,y.useEffect)(()=>{x.current=()=>{b(),T()}},[b,T]),(0,y.useEffect)(()=>()=>b(),[b]);let E=(0,y.useCallback)(()=>{w()||S.current?.focus()},[w,S]),D=(0,y.useCallback)(()=>{if(!u){t();return}t({skipAutoFocus:!0}),E()},[u,t,E]),O=(0,y.useCallback)(()=>s>0&&_.current>0&&Date.now()-_.current<s&&(h.current=!1,_.current=0,!0),[s]),k=(0,y.useCallback)(e=>{if(l&&e?.preventDefault(),b(),e!=null&&e.detail===0){g.current=0,h.current=!1,_.current=0,r?u&&E():D();return}if(!r){g.current=0,h.current=!1,_.current=0,D();return}if(O()){u&&E();return}T()},[l,b,r,u,O,D,E,T]),A=(0,y.useCallback)(()=>{if(!d||g.current>0&&Date.now()-g.current<mT)return;if(r){b();return}h.current=!0,b();let e=()=>{_.current=Date.now(),t({skipAutoFocus:!0})};a>0?f.current=setTimeout(e,a):e()},[d,r,b,t,a]),j=(0,y.useCallback)(()=>{g.current=0,h.current&&(b(),p.current=setTimeout(()=>{n()},o))},[b,n,o]),M=(0,y.useCallback)(()=>{b()},[b]),N=(0,y.useCallback)(e=>{m.current=e},[]),P=(0,y.useCallback)(()=>{},[]),F=(0,y.useCallback)(e=>{},[]),I=(0,y.useCallback)(e=>{},[]);return i?{triggerProps:{onClick:k,onMouseEnter:A,onMouseLeave:j,...l?{popoverTarget:l}:null},contentProps:{onMouseEnter:M,onMouseLeave:j,onKeyDown:C},menuRef:S,focusFirst:w,focusMenu:E,confirmHoverOpen:O,close:T,setTriggerEl:N}:{triggerProps:{onClick:P,onMouseEnter:P,onMouseLeave:P},contentProps:{onMouseEnter:P,onMouseLeave:P,onKeyDown:I},menuRef:S,focusFirst:w,focusMenu:E,confirmHoverOpen:O,close:T,setTriggerEl:F}}Kn();function gT(e,t,n){let[r,i]=(0,y.useState)(!1),a=(0,y.useCallback)(()=>{let t=e.current;if(!t)return;let n=t.scrollHeight>t.clientHeight+1;i(e=>e===n?e:n)},[e]);return Gn(()=>{if(!n)return;let t=e.current;if(!t)return;a();let r=typeof ResizeObserver>`u`?null:new ResizeObserver(a),i=typeof MutationObserver>`u`?null:new MutationObserver(a);return r?.observe(t),i?.observe(t,{childList:!0,characterData:!0,subtree:!0}),t.addEventListener(`load`,a,!0),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),()=>{r?.disconnect(),i?.disconnect(),t.removeEventListener(`load`,a,!0),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a)}},[n,a,e]),Gn(()=>{n&&a()},[t,n,a]),r}var _T=new Set([`auto`,`contain`,`fit-content`,`inherit`,`initial`,`max-content`,`min-content`,`revert`,`revert-layer`,`stretch`,`unset`]);function vT(e,t){if(typeof e==`number`)return{property:`minWidth`,value:`min(${e}px, ${t})`};let n=e.trim(),r=n.toLowerCase();return _T.has(r)||r.startsWith(`fit-content(`)?{property:`inlineSize`,value:n}:{property:`minWidth`,value:`min(${n}, ${t})`}}var yT=new Set([`menuitem`,`menuitemradio`,`menuitemcheckbox`]),bT=[...yT].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(`,`),xT=`[role="menu"]`;Dc(),Br(),ni(),Gv(),Yv(),Ze(),hn(),ut();var ST=qe[`--spacing-4`];`${ST}${ST}`;var CT=`calc(100vw - ${ST} - ${ST})`;`${ST}${ST}`,`${ST}${ST}`;var wT={root:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xf314gf`,kaIpWk:`x1ws5lxm`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w x1c52tdz`,kkrTdU:`x1ypdohk x16khyan`,k9WMMc:`x1yc453h`,kI3sdo:`x1a2a7pz`,$$css:!0},open:{kWkggS:`x1lmrjuc`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`xt0e3qv`,$$css:!0}},TT={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},ET={kzqmXN:`x1uyokj7`,$$css:!0},DT={popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popover:{k7Eaqz:`x12knhqr`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[ET,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function OT(e){let{icon:t,label:n,description:r,isDisabled:i=!1,hasSpinner:a=!1,menuWidth:o,onOpenChange:s,children:c,xstyle:l,className:u,style:d,"data-testid":f,menuDataTestId:p}=e,m=iT(),h=m?.menuSize??`md`,g=!i,_=(0,y.useId)(),v=(0,y.useId)(),b=(0,y.useRef)(null),[x,S]=(0,y.useState)(!1),C=Pr({mode:`context`,lightDismiss:!1,onShow:(0,y.useCallback)(()=>{S(!0),s?.(!0)},[s]),onHide:(0,y.useCallback)(()=>{S(!1),s?.(!1)},[s])}),w=(0,y.useCallback)(()=>{g&&C.show()},[g,C]),T=(0,y.useCallback)(()=>{C.hide()},[C]),{listRef:E,handleKeyDown:D,focusFirst:O,focusItem:k,ownsEvent:A,getItems:j}=Hv({itemSelector:bT,boundarySelector:xT,wrap:!1,onEscape:()=>L({focusTrigger:!0})}),M=gT(E,c,x),N=qv({getItemLabels:()=>j().map(e=>e.textContent),onMatch:k,getCurrentIndex:()=>j().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),{triggerProps:P,contentProps:F,confirmHoverOpen:I}=hT({show:w,hide:T,isOpen:x,isEnabled:g}),ee=(0,y.useCallback)(e=>{g&&(C.show(),e?.focusFirst&&(O()||E.current?.focus()))},[g,C,O,E]),L=(0,y.useCallback)(e=>{C.hide(),e?.focusTrigger!==!1&&b.current?.focus()},[C]),te=(0,y.useCallback)(e=>{b.current=e,C.ref(e)},[C]),R=(0,y.useCallback)(()=>{if(!i){if(x){if(I()){O()||E.current?.focus();return}L({focusTrigger:!0})}else ee({focusFirst:!0})}},[i,x,ee,L,I,O,E]),ne=(0,y.useCallback)(e=>{if(i)return;let t=typeof window<`u`&&b.current&&window.getComputedStyle(b.current).direction===`rtl`?`ArrowLeft`:`ArrowRight`;(e.key===t||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),ee({focusFirst:!0}))},[i,ee]),re=(0,y.useCallback)(e=>oT(e,i),[i]),ie=(0,y.useCallback)(e=>{if(!A(e))return;if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),L({focusTrigger:!0});return}if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&yT.has(t.getAttribute(`role`)??``)&&t.click();return}let t=typeof window<`u`&&E.current&&window.getComputedStyle(E.current).direction===`rtl`?`ArrowRight`:`ArrowLeft`;if(e.key===t){e.preventDefault(),L({focusTrigger:!0});return}if(N.onKeyDown(e)){e.preventDefault();return}D(e)},[A,L,D,N,E]),ae=(0,y.useMemo)(()=>({menuSize:h,closeMenu:()=>{L({focusTrigger:!1}),m?.closeMenu()}}),[h,L,m]),oe=a?(0,G.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,G.jsx)(hg,{size:`sm`})}):(0,G.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,G.jsx)(vc,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:$t.mirror,...U(`dropdown-menu-indicator-icon`)})}),se=o?vT(o,CT):null,ce=se?se.property===`inlineSize`?DT.popoverCustomIntrinsicWidth(se.value):DT.popoverCustomWidth(se.value):DT.popover;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(oS,{ref:e=>te(e),id:v,role:`menuitem`,tabIndex:i?void 0:-1,"aria-haspopup":`menu`,"aria-expanded":x,"aria-controls":x?_:void 0,"aria-disabled":i||void 0,"data-testid":f,onMouseEnter:P.onMouseEnter,onMouseLeave:P.onMouseLeave,onPointerMove:re,startContent:t?bc(t,{size:`sm`,color:`secondary`}):void 0,label:n,description:r,endContent:oe,onClick:R,onKeyDown:ne,isDisabled:i,xstyle:[wT.root,TT[h],x&&wT.open,i&&wT.disabled,l],...W(U(`dropdown-menu-item`,{size:h}),{className:u,style:d})}),C.render((0,G.jsx)(`div`,{ref:E,id:_,role:`menu`,tabIndex:M?0:-1,"aria-labelledby":v,onKeyDown:ie,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave,"data-testid":p,...W(U(`dropdown-menu`),{0:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92`},1:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 x1odjw0f x6ikm8r xish69e`}}[!!M<<0]),children:(0,G.jsx)(rT,{value:ae,children:c})}),{placement:`end`,alignment:`start`,offset:qe[`--spacing-1`],xstyle:[DT.popoverViewport,ce,ti.end]})]})}OT.displayName=`DropdownMenuSubMenu`,hn();function kT(e,t){return`item-${e.id??t}`}function AT(e,t){return`section-${e.id??t}`}function jT(e,t){let{items:n,id:r,...i}=e;return(0,G.jsx)(lT,{...i},kT(e,t))}function MT(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];`type`in r&&r.type===`divider`?t.push((0,G.jsx)(fT,{},`divider-${n}`)):`type`in r&&r.type===`section`?t.push((0,G.jsxs)(`div`,{role:`group`,"aria-label":r.title,children:[r.title&&(0,G.jsx)(`div`,{"aria-hidden":`true`,...W(U(`dropdown-menu-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:r.title}),r.items.map(jT)]},AT(r,n))):`type`in r||(r.items&&r.items.length>0?t.push((0,G.jsx)(OT,{icon:r.icon,label:r.label,isDisabled:r.isDisabled,children:MT(r.items)},kT(r,n))):t.push(jT(r,n)))}return t}var NT=c({MenuBottomSheet:()=>PT});function PT({finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,children:i}){return(0,FT.jsx)(DC,{finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,height:`hug`,purpose:`info`,children:(0,FT.jsx)(dS,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:i})})}var FT,IT=o((()=>{AC(),_S(),FT=_n(),PT.displayName=`MenuBottomSheet`})),LT=(0,y.createContext)(null);LT.displayName=`ListContext`,H(),hn(),ut();var RT={list:{kogj98:`x1ghz6dp`,kZCmMZ:`x1c1uobl`,kH6xsr:`x3ct3a4`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,$$css:!0},withDividers:{kOIVth:`xxhr3t`,$$css:!0},withCounter:{kt6KFK:`xif0320`,$$css:!0}},zT={kt6KFK:`x1khind5`,$$css:!0},BT={counterStart:e=>[zT,{"--x-counterReset":`astryx-list ${e}`==null?void 0:`astryx-list ${e}`}]};function VT({children:e,density:t=`balanced`,hasDividers:n=!1,header:r,listStyle:i=`none`,start:a,xstyle:o,className:s,style:c,"data-testid":l,ref:u,...d}){let f=(0,y.useId)(),p=i===`decimal`,m=p?`ol`:`ul`,h=(0,y.useMemo)(()=>({density:t,hasDividers:n,listStyle:i}),[t,n,i]),g=(0,G.jsx)(m,{ref:u,...d,"data-testid":l,...r==null?null:{"aria-labelledby":f},...p&&a!=null&&a!==1?{start:a}:{},role:`list`,...W(U(`list`,{density:t,listStyle:i}),V(RT.list,n&&RT.withDividers,i!==`none`&&(a!=null&&a!==1?BT.counterStart(a-1):RT.withCounter),o),s,c),children:e});return r==null?(0,G.jsx)(LT,{value:h,children:g}):(0,G.jsx)(LT,{value:h,children:(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf`,children:[(0,G.jsx)(`div`,{id:f,className:`x1p37lm5`,children:r}),g]})})}VT.displayName=`List`,hn(),ut();var HT={withCounter:{kAmcRD:`xfrknyr`,$$css:!0},withDivider:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},UT={noRadius:{kaIpWk:`x2u8bby`,$$css:!0}};function WT({label:e,description:t,startContent:n,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l=!1,isSelected:u=!1,xstyle:d,className:f,style:p,ref:m,...h}){let g=(0,y.use)(LT),_=g?.density??`balanced`,v=g?.hasDividers??!1,b=g?.listStyle??`none`;return(0,G.jsx)(oS,{as:`li`,ref:m,marker:b===`disc`?(0,G.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,G.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct x19aspcf`})}):b===`circle`?(0,G.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,G.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct xmkeg23 x1y0btm7 xqcx1ss xjbqb8w`})}):b===`decimal`?(0,G.jsx)(`span`,{className:`xoi2r2e x2lah0s x1tgivj0 xjm74w1 xw6l6zx x12xnipv xc2ndz5`}):null,startContent:n,label:e,description:t,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l,isSelected:u,density:_,xstyle:[b!==`none`&&HT.withCounter,v&&HT.withDivider,v&&UT.noRadius,d],...W(U(`list-item`),{className:f,style:p}),...h})}WT.displayName=`ListItem`,Dc(),hn(),qr();var GT={destructiveAction:{"--_item-label-color":`xufyqxy`,"--_item-description-color":`xqlix59`,kMwMTN:`xjt36v0`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0}};function KT(e,t){return`item-${e.id??t}`}function qT({items:e,onSelect:t,onOpenSubmenu:n}){let r=(e,r)=>{let i=e.items!=null&&e.items.length>0,a=e.variant===`destructive`;return(0,G.jsx)(WT,{label:e.label,description:e.description,startContent:e.icon?bc(e.icon,{size:`sm`,color:a?`error`:`secondary`}):void 0,endContent:i?(0,G.jsx)(vc,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:$t.mirror}):e.endContent,isDisabled:e.isDisabled,onClick:r=>{Wr()===`pointer`&&r.currentTarget.blur(),i?n(e):t(e)},xstyle:a&&GT.destructiveAction},KT(e,r))};return(0,G.jsx)(VT,{density:`spacious`,children:e.map((e,t)=>`type`in e&&e.type===`divider`?(0,G.jsx)(`li`,{role:`presentation`,className:`x3ct3a4`,children:(0,G.jsx)(Hx,{xstyle:GT.divider})},`divider-${t}`):`type`in e&&e.type===`section`?(0,G.jsx)(`li`,{role:`presentation`,className:`x3ct3a4`,children:(0,G.jsxs)(`div`,{role:`group`,"aria-label":e.title,className:`x78zum5 xdt5ytf xzye2dw`,children:[e.title&&(0,G.jsx)($i,{level:4,children:e.title}),(0,G.jsx)(VT,{density:`spacious`,children:e.items.map(r)})]})},`section-${e.id??t}`):r(e,t))})}qT.displayName=`MenuBottomSheetActionList`,H(),Dc(),Kn(),Gv(),Yv(),IT(),ni(),Ze(),hn(),ut(),qr(),Au(),dn();var JT=qe[`--spacing-4`];`${JT}${JT}`;var YT=`calc(100vw - ${JT} - ${JT})`;`${JT}${JT}`,`${JT}${JT}`,`${JT}`;var XT=`calc(100% - ${JT})`;`${JT}`,`${Ke[`--color-overlay-pressed`]}${Ke[`--color-overlay-pressed`]}`;var ZT={kzqmXN:`x1uyokj7`,$$css:!0},QT={triggerOpen:{kKwaWg:`xpl5ynk`,$$css:!0},dropdown:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kI3sdo:`x1a2a7pz`,ks0D6T:`xs2v1xk`,kskxy:`x1hkkhfe`,"--_dropdown-menu-radius":`x1fcsqxe`,"--_dropdown-menu-padding":`xgory14`,kmVPX3:`x9epnlk`,kaIpWk:`x1n97fys`,kSiTet:`x1hc1fzr`,k1ekBW:`x19991ni`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},scrollable:{kORKVm:`x1odjw0f`,kXHlph:`x6ikm8r`,kZeWKH:`xish69e`,$$css:!0},popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popoverViewportAligned:{ks0D6T:`xbd96yr`,$$css:!0},popoverViewportStart:{k71WvV:`xxeicf8`,$$css:!0},popoverViewportEnd:{keTefX:`x47fqr9`,$$css:!0},popoverViewportBlockStart:{k1K539:`x1kps3mo`,$$css:!0},popoverViewportBlockEnd:{keoZOQ:`xsoubt3`,$$css:!0},popoverViewportCentered:{keTefX:`x47fqr9`,k71WvV:`xxeicf8`,ks0D6T:`xs2v1xk`,$$css:!0},popoverViewportBlockCentered:{keoZOQ:`xsoubt3`,k1K539:`x1kps3mo`,ks0D6T:`xs2v1xk`,$$css:!0},popoverAligned:{k7Eaqz:`x1ks9poc`,$$css:!0},popoverCentered:{k7Eaqz:`xagy28z`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[ZT,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},$T={content:{kzqmXN:`xh8yej3`,$$css:!0},rootHeading:{keTefX:`x6i7dpz`,$$css:!0},viewHeading:{kI3sdo:`x1a2a7pz`,$$css:!0}},eE=`@astryx.dropdownMenu.label`;function tE({button:e,isMenuOpen:t,onOpenChange:n,onClick:r,hasChevron:i=!0,items:a,presentation:o,menuWidth:s,placement:c,alignment:l,className:u,style:d,xstyle:f,"data-testid":p,...m}){let h=wu(),g=e??{label:h(eE)},_=h(`@astryx.dropdownMenu.back`),v=(0,y.useRef)(null),b=(0,y.useRef)(null),x=(0,y.useRef)(`pointer`),{isFocusRingSuppressed:S,onFocusReturnTargetFocus:C,prepareFocusReturn:w,resetFocusReturn:T}=UC(),E=(0,y.useRef)(null),D=(0,y.useRef)(0),[O,k]=(0,y.useState)(!1),[A,j]=(0,y.useState)([]),M=t!==void 0,N=M?t:O,[P,F]=(0,y.useState)(N);P!==N&&(F(N),!N&&A.length>0&&j([]));let I=A.at(-1),ee=I?.items??a,L=I?.label??g.label,te=typeof L==`string`?L:g.label,R=(0,y.useCallback)(e=>{e?T():(j([]),w()),n?.(e),M||k(e)},[M,n,w,T]),ne=(0,y.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&R(!1))},[R]),re=g.isIconOnly===!0,ie=g.endContent??(i&&!re?(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0);return(0,y.useEffect)(()=>{if(!N||x.current!==`keyboard`)return;let e=requestAnimationFrame(()=>{b.current?.querySelector(`button:not(:disabled), a[href]`)?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[ee,N]),(0,y.useEffect)(()=>{if(!N){D.current=0;return}if(A.length===D.current)return;D.current=A.length;let e=requestAnimationFrame(()=>{E.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[N,A.length]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Mg,{...g,ref:v,xstyle:[N&&QT.triggerOpen,g.xstyle,S&&ln.suppressed],tooltip:N?void 0:g.tooltip,endContent:ie,onPointerDown:e=>{g.onPointerDown?.(e),x.current=`pointer`},onKeyDown:e=>{g.onKeyDown?.(e),(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(x.current=`keyboard`)},onFocus:e=>{g.onFocus?.(e),C()},onClick:()=>{r?.(),R(!N)},"aria-haspopup":`dialog`,"aria-expanded":N,"data-testid":p}),(0,G.jsx)(PT,{isOpen:N,onOpenChange:R,finalFocusRef:v,label:te,children:(0,G.jsxs)(`div`,{ref:b,...m,...W(U(`dropdown-menu`,{presentation:`bottom-sheet`}),V($T.content,f),u,d),children:[(0,G.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[A.length>0&&(0,G.jsx)(Mg,{label:_,variant:`ghost`,size:`sm`,icon:(0,G.jsx)(vc,{icon:`chevronLeft`,size:`sm`,xstyle:$t.mirror}),isIconOnly:!0,onClick:()=>j(e=>e.slice(0,-1))}),(0,G.jsx)($i,{ref:E,level:3,tabIndex:-1,xstyle:[$T.viewHeading,A.length===0&&$T.rootHeading],children:L})]}),(0,G.jsx)(qT,{items:ee,onSelect:ne,onOpenSubmenu:e=>j(t=>[...t,e])})]})})]})}function nE({button:e,isMenuOpen:t,onOpenChange:n,menuWidth:r,onClick:i,hasChevron:a=!0,placement:o=`below`,alignment:s=`start`,presentation:c,className:l,style:u,xstyle:d,"data-testid":f,...p}){let m=wu(),h=e??{label:m(eE)},g=(`items`in p?p.items:void 0)??[],_=p.children,{items:v,children:b,...x}=p,S=(0,y.useId)(),C=h.size??`md`,w=(0,y.useRef)(null),[T,E]=(0,y.useState)(!1),D=t!==void 0,O=D?t:T,k=(0,y.useRef)(!1),A=(0,y.useRef)(!1),j=(0,y.useRef)(!1),M=(0,y.useRef)(!1);Ur();let N=(0,y.useCallback)(()=>{if(M.current){M.current=!1;return}j.current=!1,n?.(!1),D||E(!1);let e=w.current;Wr()===`keyboard`?e?.focus():document.activeElement===e&&e?.blur()},[D,n]),P=(0,y.useRef)(!1),F=(0,y.useRef)(`keyboard`),I=BC({onHide:N,onShow:(0,y.useCallback)(()=>{k.current=!0,A.current&&(A.current=!1,i?.()),n?.(!0),D||E(!0)},[D,i,n]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),ee=(0,y.useCallback)(()=>{I.hide()},[I]),{listRef:L,handleKeyDown:te,focusFirst:R,focusItem:ne,ownsEvent:re,getItems:ie}=Hv({itemSelector:bT,boundarySelector:xT,wrap:!1,onEscape:ee}),ae=qv({getItemLabels:()=>ie().map(e=>e.textContent),onMatch:ne,getCurrentIndex:()=>ie().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),oe=(0,y.useRef)(D&&t===!0);Gn(()=>{D&&(t?(j.current=!1,I.isOpen||(P.current=!oe.current,I.show())):(oe.current=!1,I.isOpen&&(M.current=j.current,j.current=!1,I.hide())))},[t,D,I]),(0,y.useEffect)(()=>{I.isOpen&&P.current&&(P.current=!1,requestAnimationFrame(()=>{(F.current===`pointer`||!R())&&L.current?.focus(),F.current=`keyboard`}))},[I.isOpen,R,L]);let se=(0,y.useCallback)(e=>{if(re(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&yT.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){ee();return}if(ae.onKeyDown(e)){e.preventDefault();return}te(e)}},[te,ee,ae,re]),ce=(0,y.useCallback)((e=`keyboard`,t=!1)=>(k.current=!1,A.current=t,j.current=D,F.current=e,P.current=!0,I.show(),k.current?!0:(A.current=!1,j.current=!1,F.current=`keyboard`,P.current=!1,!1)),[D,I]),le=(0,y.useCallback)(e=>{let r=e.detail===0?`keyboard`:`pointer`;D?t?(i?.(),n?.(!1)):ce(r,!0):I.isOpen?(i?.(),I.hide()):ce(r,!0)},[i,D,n,t,I,ce]),ue=(0,y.useCallback)(e=>{if(!I.isOpen){(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ce());return}e.key===`ArrowDown`&&(e.preventDefault(),R()||L.current?.focus())},[I.isOpen,ce,R,L]),de=h.isIconOnly===!0,z=h.endContent??(a&&!de?(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0),B=r?vT(r,s===`center`?YT:XT):null,fe=B?B.property===`inlineSize`?QT.popoverCustomIntrinsicWidth(B.value):QT.popoverCustomWidth(B.value):s===`center`?QT.popoverCentered:QT.popoverAligned,pe=o===`start`||o===`end`,me=(0,y.useMemo)(()=>({closeMenu:ee,menuSize:C}),[ee,C]),he=p.items===void 0?_:MT(g),ge=gT(L,he,I.isOpen);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Mg,{...h,ref:e=>{w.current=e,I.triggerRef(e);let t=h.ref;typeof t==`function`?t(e):t&&(t.current=e)},xstyle:[O&&QT.triggerOpen,h.xstyle],tooltip:O?void 0:h.tooltip,endContent:z,onClick:le,onKeyDown:ue,"aria-haspopup":`menu`,"aria-expanded":O,"aria-controls":S,"data-testid":f}),I.render((0,G.jsx)(`div`,{...x,ref:L,id:S,role:`menu`,tabIndex:ge?0:-1,"aria-label":h.label,onKeyDown:se,...W(U(`dropdown-menu`),V(QT.dropdown,ge&&QT.scrollable,d),l,u),children:(0,G.jsx)(rT,{value:me,children:he})}),{placement:o,alignment:s,offset:qe[`--spacing-1`],xstyle:[QT.popoverViewport,s===`center`?pe?QT.popoverViewportBlockCentered:QT.popoverViewportCentered:[QT.popoverViewportAligned,pe?s===`start`?QT.popoverViewportBlockStart:QT.popoverViewportBlockEnd:s===`start`?QT.popoverViewportStart:QT.popoverViewportEnd],fe,ti[o]]})]})}function rE(e){let{onOpenChange:t}=e,n=HC(`items`in e?e.presentation??`popover`:`popover`),r=e.isMenuOpen!==void 0,[i,a]=(0,y.useState)(!1),o=r?e.isMenuOpen:i,s=(0,y.useCallback)(e=>{t?.(e),r||a(e)},[r,t]),c={...e,isMenuOpen:o,onOpenChange:s};return n===`bottom-sheet`&&`items`in e&&e.items!==void 0?(0,G.jsx)(tE,{...c,presentation:`bottom-sheet`}):(0,G.jsx)(nE,{...c,presentation:`popover`})}rE.displayName=`DropdownMenu`;var iE=(0,y.createContext)({isCollapsed:!1,toggle:()=>{},isCollapsible:!1});iE.displayName=`SideNavCollapseContext`;function aE(){return(0,y.use)(iE)}H(),Dc(),hn(),Au();var oE={chevronMirror:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},chevronCollapsed:{k3aq6I:`x19jd1h0`,$$css:!0}};function sE({ref:e,collapsible:t,handleRef:n,label:r,size:i,children:a,onClick:o,...s}){let c=wu(),{isCollapsed:l,toggle:u,isCollapsible:d}=cE(t,n),{isMobile:f}=Gw();return!d||f?null:(0,G.jsx)(Mg,{ref:e,label:r??c(l?`@astryx.sideNavCollapseButton.expandSidebar`:`@astryx.sideNavCollapseButton.collapseSidebar`),variant:`ghost`,size:i,...s,onClick:Tt(o,u),icon:a??(0,G.jsx)(`span`,{...V(oE.chevronMirror,$t.mirror),children:(0,G.jsx)(vc,{icon:`chevronLeft`,size:`sm`,color:`inherit`,xstyle:[oE.chevron,l&&oE.chevronCollapsed]})}),isIconOnly:!0})}sE.displayName=`SideNavCollapseButton`;function cE(e,t){let n=aE(),{isCollapsed:r,onCollapsedChange:i}=e??{},a=(0,y.useCallback)(()=>i?.(!r),[r,i]),o=(0,y.useCallback)(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:r??!1,toggle:a,isCollapsible:!0};if(t==null)return n;let s=t.current?.getCollapseState()??null;return{isCollapsed:s?.isCollapsed??!1,toggle:o,isCollapsible:s?.isCollapsible??!0}}H(),Dc(),Ny(),hn(),Dr(),ci(),Ai(),ut(),Au(),Un();var lE={dialog:{kVAEAm:`xixxii4`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,ks0D6T:`x1x1rfll`,kskxy:`x7ab17h`,kpwlN0:`x10a8y8t`,kzqmXN:`xn9wirt`,kZKoxP:`xtdtrs8`,kWkggS:`xjbqb8w`,kVQacm:`x7giv3`,kZeWKH:`xish69e`,kFalU9:`x5ve5x3`,kI3sdo:`x1a2a7pz`,k1xSpc:`x1s85apg`,k1ekBW:`xrgi2yo`,kIyJzY:`x80gvsz`,kzIqYQ:`xd00j3c`,$$css:!0},open:{k1xSpc:`x78zum5`,$$css:!0},backdrop:{kGyWv1:`xnixb3f`,kba3nw:`x1abwkk1`,k5sjJv:`xph5o2a`,kND0Po:`x167zut7`,k9an0g:`xft5bk6`,kb4ib:`x15h3t91`,kA5Tbj:`x1viac0w`,$$css:!0},backdropOpen:{k5sjJv:`xb3n6bw xxiuuzi`,$$css:!0},drawer:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,krVfgx:`x1ey2m1c`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kWkggS:`x10xzikg`,kB7OPa:`x9f619`,kVQacm:`xb3r6kr`,k1ekBW:`x11xpdln`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,kI3sdo:`x1a2a7pz`,k6CgDc:`xzg1mie`,$$css:!0},drawerStart:{kLqNvP:`x1o0tod`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,k3aq6I:`x5i6ehr xttggg`,$$css:!0},drawerStartOpen:{k3aq6I:`xbryuvx x6mt36l x14gflnl`,$$css:!0},drawerEnd:{kt4wiu:`xtijo5x`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,k3aq6I:`xumwmo6 x1df3fe5`,$$css:!0},drawerEndOpen:{k3aq6I:`xbryuvx x1yqmsfc x1lymnkk`,$$css:!0},headerText:{keTefX:`x11g1kdw`,$$css:!0}},uE={kzqmXN:`xn9wirt`,ks0D6T:`xf68679`,$$css:!0},dE={width:e=>[uE,{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}]},fE=250,pE=.6;function mE(e){let t=e.split(`,`).map(e=>{let t=e.trim(),n=Number.parseFloat(t);return Number.isFinite(n)?t.endsWith(`ms`)?n:t.endsWith(`s`)?n*1e3:null:null}).filter(e=>e!==null);return t.length?Math.min(...t):null}function hE(e){let t=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?0:fE,n=mE(window.getComputedStyle(e).transitionDuration);return n===null?t:n<=0?0:Math.min(t,n*pE)}function gE({isOpen:e,onOpenChange:t,children:n,header:r,width:i=320,side:a=`auto`,label:o,"data-testid":s,xstyle:c,className:l,style:u,onClick:d,ref:f,...p}){let m=wu(),h=Gw(),g=e??h.isMobileNavOpen,_=(0,y.useId)(),v=h.mobileNavId||_,b=(0,y.useMemo)(()=>t??(e=>{e?h.openMobileNav():h.closeMobileNav()}),[t,h]),x=(0,y.useRef)(null),S=(0,y.useRef)(null),C=(0,y.useRef)(null),w=(0,y.useCallback)(()=>{C.current&&=(C.current.release(),null)},[]),[T,E]=(0,y.useState)(a===`auto`?`end`:a);(0,y.useEffect)(()=>{if(g){if(a===`auto`){let e=document.activeElement;if(e&&e!==document.body){let t=e.getBoundingClientRect(),n=t.left+t.width/2;E(n<window.innerWidth/2?`start`:`end`)}}else E(a)}},[g,a]),(0,y.useEffect)(()=>{let e=x.current;if(e)return g?(C.current??=jy(document.documentElement),e.open||e.showModal(),document.documentElement.style.overflow=`clip`,C.current.settle()):e.open&&(document.documentElement.style.overflow=``,w(),S.current=setTimeout(()=>{e.close()},hE(e))),()=>{S.current&&=(clearTimeout(S.current),null),document.documentElement.style.overflow=``,w()}},[g,w]),(0,y.useEffect)(()=>{let e=x.current;return()=>{e?.open&&e.close()}},[]);let{shouldDismissOnCloseRequest:D}=Oi({isActive:g,onDismiss:()=>b(!1)}),O=(0,y.useCallback)(e=>{e.preventDefault(),D()&&b(!1)},[b,D]),k=(0,y.useCallback)(e=>{e.target===e.currentTarget&&b(!1)},[b]),A=T===`start`;return(0,G.jsx)(`dialog`,{ref:Vn(f,x),id:v,...W(U(`mobile-nav`,{side:T}),V(lE.dialog,Er.reset,g&&lE.open,lE.backdrop,g&&lE.backdropOpen,c),l,u),...p,"data-testid":s,"aria-label":o??(typeof r==`string`?r:m(`@astryx.mobileNav.navigation`)),onClick:Tt(d,k),onCancel:O,children:(0,G.jsx)(ii,{children:(0,G.jsxs)(`div`,{tabIndex:-1,...V(lE.drawer,dE.width(i),A&&lE.drawerStart,A&&g&&lE.drawerStartOpen,!A&&lE.drawerEnd,!A&&g&&lE.drawerEndOpen),children:[(0,G.jsxs)(`div`,{...{0:{className:`x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh`},1:{className:`x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl`}}[!r<<0],children:[typeof r==`string`?(0,G.jsx)($i,{level:2,xstyle:lE.headerText,children:r}):r??null,(0,G.jsx)(Mg,{variant:`ghost`,label:m(`@astryx.mobileNav.closeNavigation`),icon:(0,G.jsx)(vc,{icon:`close`,color:`inherit`}),onClick:()=>b(!1),isIconOnly:!0})]}),(0,G.jsx)(`div`,{className:`x98rzlu x1odjw0f x6ikm8r xish69e xx69xxh xf314gf xce4md1`,children:n})]})})})}gE.displayName=`MobileNav`,Ft(),Kn(),Zt();var _E=50,vE=40,yE=`astryx-resizable:`;function bE(e,t,n,r){let i=Math.min(n,Math.max(t,e));if(r.length>0){let e=r[0],a=Math.abs(i-e);for(let t=1;t<r.length;t++){let n=Math.abs(i-r[t]);n<a&&(e=r[t],a=n)}return Math.min(n,Math.max(t,e))}return i}function xE(e){if(typeof window>`u`)return null;try{let t=localStorage.getItem(yE+e);if(t==null)return null;let n=JSON.parse(t);if(typeof n==`number`)return Number.isFinite(n)?n===0?{size:null,isCollapsed:!0}:{size:n,isCollapsed:null}:null;if(typeof n==`object`&&n){let{size:e,isCollapsed:t}=n,r=typeof e==`number`&&Number.isFinite(e)&&e>0;if(r||t===!0)return{size:r?e:null,isCollapsed:t===!0}}}catch{}return null}function SE(e,t){if(!(typeof window>`u`))try{localStorage.setItem(yE+e,JSON.stringify(t))}catch{}}var CE=1200,wE=250,TE=`Use a non-negative number of pixels, an exact "Npx" string, an exact "N%" string from 0% to 100%, pixel(value), or percent(value, {min: pixel(value)}) / percent(value, {max: pixel(value)}).`,EE=/^(\d+(?:\.\d+)?)px$/,DE=/^(\d+(?:\.\d+)?)%$/;function OE(e){let t=EE.exec(e);if(t){let e=Number(t[1]);return Number.isFinite(e)?{kind:`px`,value:e}:null}let n=DE.exec(e);if(n){let e=Number(n[1]);return Number.isFinite(e)&&e<=100?{kind:`percent`,value:e}:null}return null}function kE(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=e;return t.type===`pixel`&&typeof t.value==`number`&&Number.isFinite(t.value)&&t.value>=0?t.value:null}function AE(e){if(Array.isArray(e))return null;let t=e;if(t.type!==`percent`||typeof t.value!=`number`||!Number.isFinite(t.value)||t.value<0||t.value>100)return null;let n=t.min!==void 0;if(n===(t.max!==void 0))return null;if(n){let e=kE(t.min);return e==null?null:{kind:`percent`,value:t.value,min:e}}let r=kE(t.max);return r==null?null:{kind:`percent`,value:t.value,max:r}}function jE(e){if(typeof e==`number`)return Number.isFinite(e)&&e>=0?{kind:`px`,value:e}:null;if(typeof e==`string`)return OE(e);if(typeof e==`object`&&e){let t=kE(e);return t==null?AE(e):{kind:`px`,value:t}}return null}function ME(e){return e?.kind===`percent`}function NE(e,t){if(e.kind===`px`)return e.value;if(t==null)return null;let n=Math.round(e.value/100*t);return e.min===void 0?e.max===void 0?n:Math.min(n,e.max):Math.max(n,e.min)}function PE(e){if(typeof e==`number`&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function FE(e){if(typeof e!=`object`||!e||Array.isArray(e))return PE(e);let t=e;return t.type===`pixel`?`{"type":"pixel","value":${PE(t.value)}}`:PE(e)}function IE(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;if(t.type===`pixel`)return FE(e);if(t.type===`percent`){let e=[`"type":"percent"`,`"value":${PE(t.value)}`];return t.min!==void 0&&e.push(`"min":${FE(t.min)}`),t.max!==void 0&&e.push(`"max":${FE(t.max)}`),`{${e.join(`,`)}}`}}return PE(e)}function LE(e,t,n,r,i,a,o){return e===void 0?r:e===1/0&&r===1/0?1/0:t==null?(o.current||(o.current=!0,`${i}${IE(e)}${a}${r}`),r):NE(t,n)??r}function RE(e,t,n){let r=n?.contentBoxSize?.[0];if(r)return t===`vertical`?r.blockSize:r.inlineSize;let i=typeof window>`u`?null:window.getComputedStyle(e);if(i==null)return null;let a=t===`vertical`?e.clientHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom):e.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);return Number.isFinite(a)?a:null}function zE(e){let{defaultSize:t,minSize:n,maxSize:r,containerRef:i,direction:a=`horizontal`,collapsible:o=!1,collapsedSize:s=vE,snaps:c,autoSaveId:l,defaultIsCollapsed:u,isCollapsed:d,onSizeChange:f,onCollapseChange:p}=e,m=(0,y.useRef)([]),h=c??m.current,g=n,_=r,v=jE(t),b=jE(n),x=jE(r),S=i!=null,C=l?xE(l):null,w=(0,y.useRef)(null),[,T]=(0,y.useState)(0),E=ME(v),D=ME(b)||ME(x),O=C?.size==null&&E&&w.current?.isFinal!==!0,k=S&&(D||O),A=!S&&D,j=(0,y.useRef)(null),[,M]=(0,y.useState)(0),N=(0,y.useRef)(null),P=k?j.current:null;Gn(()=>{if(!k){j.current=null,N.current=null;return}let e=i?.current??null;e!==j.current&&(N.current=null,j.current=e,M(e=>e+1))});let F=(0,y.useCallback)(e=>!k||P==null||P!==i?.current?()=>{}:jt(P,t=>{N.current=RE(P,a,t),e()}),[P,k,a,i]),I=(0,y.useCallback)(()=>!k||P==null?(N.current=null,null):(N.current??=RE(P,a),N.current),[P,k,a]),ee=(0,y.useSyncExternalStore)(F,I,()=>null),L=(0,y.useCallback)(e=>S||!A||typeof window>`u`?()=>{}:(window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)),[S,A]),te=(0,y.useSyncExternalStore)(L,()=>typeof window>`u`?CE:window.innerWidth,()=>CE),R=k,ne=ee!=null&&ee>0,re=S?ne?ee:CE:te,ie=!R||ne,ae=(0,y.useRef)(null),[oe,se]=(0,y.useState)(0),ce=ae.current??re,le=(0,y.useRef)(!1),ue=(0,y.useRef)(!1),de=(0,y.useRef)(!1),z=(0,y.useRef)(!1),B=LE(g,b,ce,_E,`minSize`,TE,le),fe=LE(_,x,ce,1/0,`maxSize`,TE,ue);(w.current==null||!w.current.isFinal)&&(w.current={px:LE(t,v,ce,wE,`defaultSize`,TE,de),isFinal:ie});let pe=w.current.px,[me,he]=(0,y.useState)(()=>C?.size==null?ie?bE(pe,B,fe,h):null:C.size);S&&!D&&ie&&O&&me!=null&&T(e=>e+1),ie&&me==null&&he(bE(pe,B,fe,h));let[ge,_e]=(0,y.useState)({min:B,max:fe});ie&&ae.current==null&&(ge.min!==B||ge.max!==fe)&&(_e({min:B,max:fe}),he(e=>e==null?null:bE(e,B,fe,h)));let ve=bE(me??pe,B,fe,h),[ye,be]=(0,y.useState)(()=>C?.isCollapsed??u??!1),xe=d!==void 0,Se=o&&(xe?d:ye),Ce=(0,y.useRef)(ve),we=(0,y.useRef)(Se);we.current=Se;let Te=(0,y.useCallback)(e=>{xe||(we.current=e,be(e))},[xe]);(0,y.useEffect)(()=>{B>fe&&!z.current&&(z.current=!0,`${B}${fe}`)},[B,fe]),(0,y.useEffect)(()=>{l&&ie&&SE(l,{size:ve,isCollapsed:Se})},[ve,Se,l,ie]);let Ee=(0,y.useCallback)(()=>{o&&!we.current&&(Te(!0),p?.(!0),f?.(0))},[o,Te,p,f]),De=(0,y.useCallback)(()=>{let e=we.current;Te(!1),e&&p?.(!1),f?.(ve)},[Te,ve,p,f]),Oe=(0,y.useCallback)(e=>{if(!Number.isFinite(e)||e<0){`${String(e)}`;return}let t=bE(e,B,fe,h),n=we.current;he(t),Te(!1),n&&p?.(!1),f?.(t)},[B,fe,h,Te,p,f]),ke=(0,y.useCallback)(()=>{ae.current=re,Ce.current=we.current?0:ve},[ve,re]),Ae=(0,y.useCallback)(e=>{let t=Ce.current+e;if(o&&t<s){we.current||(Te(!0),p?.(!0),f?.(0));return}we.current&&t>=s&&(Te(!1),p?.(!1));let n=bE(t,B,fe,h);he(n),f?.(n)},[o,s,Te,B,fe,h,f,p]),je=(0,y.useCallback)(()=>{ae.current!=null&&(ae.current=null,se(e=>e+1))},[]),Me=(0,y.useCallback)(()=>{je()},[je]);return{size:Se?0:ve,isCollapsed:Se,collapse:Ee,expand:De,resize:Oe,props:{_size:Se?0:ve,_isCollapsed:Se,_onResizeStart:ke,_onResizeMove:Ae,_onResizeEnd:Me,_onResizeCancel:je,_minSizePx:B,_maxSizePx:fe,_snaps:h,_collapsedSize:s,_collapsible:o,_direction:a,_isResizableProps:!0}}}function BE(e){let{regions:t,autoSaveId:n,containerRef:r,direction:i}=e,a=Object.entries(t),o=a.map(([e,t])=>zE({...t,containerRef:r,direction:i,autoSaveId:n?`${n}:${e}`:void 0})),s={};return a.forEach(([e],t)=>{s[e]=o[t]}),s}function VE(e){return`regions`in e?BE(e):zE(e)}H(),Zt(),Ze(),dn(),hn(),ut(),Au(),Un();var HE=10,UE=50;function WE(e,t,n){if(e!==`auto`)return e;let r=t?`end`:`start`;return n?r===`start`?`end`:`start`:r}function GE(e){return e===`center`?null:e===`start`?-1:1}function KE(e){document.body.style.cursor=e?`col-resize`:`row-resize`,document.body.style.userSelect=`none`}function qE(){document.body.style.cursor=``,document.body.style.userSelect=``}var JE={handle:{kVAEAm:`x1n2onr6`,kmuXW:`x2lah0s`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`x1m4xfpy`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},overlay:{kVAEAm:`x10l6tqk`,kY2c9j:`xhtitgo`,kWkggS:`xjbqb8w`,$$css:!0},overlayHorizontal:{kt4wiu:`xtijo5x`,k87sOh:`x13vifvy`,krVfgx:`x1ey2m1c`,kzqmXN:`xkhob8h`,$$css:!0},overlayVertical:{krVfgx:`x1ey2m1c`,kLqNvP:`x1o0tod`,kt4wiu:`xtijo5x`,kZKoxP:`x5kfih4`,$$css:!0},horizontal:{kzqmXN:`x1i1rx1s`,kZKoxP:`x5yr21d`,kkrTdU:`xicojor x16khyan`,$$css:!0},vertical:{kZKoxP:`xjm9jq1`,kzqmXN:`xh8yej3`,kkrTdU:`xyozgr7 x16khyan`,$$css:!0},noDividerHorizontal:{kWkggS:`xjbqb8w`,kzqmXN:`xnalus7`,$$css:!0},noDividerVertical:{kWkggS:`xjbqb8w`,kZKoxP:`xqtp20y`,$$css:!0},handleHover:{kWkggS:`x1m4xfpy`,$$css:!0},handleActive:{kWkggS:`x7njt3n`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kfzvcC:`x47corl`,$$css:!0},hitArea:{kVAEAm:`x10l6tqk`,kY2c9j:`x1vjfegm`,kFalU9:`x5ve5x3`,kfSwDN:`x87ps6o`,$$css:!0},hitAreaHorizontal:{kzqmXN:`x12xnipv`,k87sOh:`x13vifvy`,krVfgx:`x1ey2m1c`,kkrTdU:`xicojor x16khyan`,$$css:!0},hitAreaVertical:{kZKoxP:`x6b6gus`,kLqNvP:`x1o0tod`,kt4wiu:`xtijo5x`,kkrTdU:`xyozgr7 x16khyan`,$$css:!0},hitAreaCenteredY:{k87sOh:`xwa60dl`,k3aq6I:`x1cb1t30`,$$css:!0},pill:{kVAEAm:`x10l6tqk`,kY2c9j:`xhtitgo`,kfzvcC:`x47corl`,kaIpWk:`xjspbzw`,kWkggS:`x1m4xfpy`,k1ekBW:`x1wbls7o`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,k87sOh:`xwa60dl`,$$css:!0},pillHorizontal:{kzqmXN:`x1g8rjiy`,kZKoxP:`x18to7ep`,$$css:!0},pillVertical:{kzqmXN:`xgc8j7m`,kZKoxP:`xuoj239`,$$css:!0},pillHidden:{kSiTet:`xg01cxk`,$$css:!0},pillVisible:{kSiTet:`x1hc1fzr`,$$css:!0},pillHover:{kSiTet:`x1hc1fzr`,kWkggS:`x1m4xfpy`,$$css:!0},pillActive:{kSiTet:`x1hc1fzr`,kWkggS:`x7njt3n`,$$css:!0}},YE={kLqNvP:`x1o0tod`,k3aq6I:`x11wx31z x75qhwu`,$$css:!0},XE={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},ZE={kLqNvP:`x1o0tod`,k3aq6I:`xsqj5wx`,$$css:!0},QE={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},$E={hitAreaOffsetX:e=>[YE,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${qe[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${qe[`--spacing-1`]}) - 6.5px))`,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${qe[`--spacing-1`]}) + 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${qe[`--spacing-1`]}) + 6.5px))`}],hitAreaOffsetY:e=>[XE,{"--x-transform":`translateY(calc(${e} * (3px + ${qe[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateY(calc(${e} * (3px + ${qe[`--spacing-1`]}) - 6.5px))`}],pillOffsetX:e=>[ZE,{"--x-transform":`translate(calc(${e} * (100% + ${qe[`--spacing-1`]})), -50%)`==null?void 0:`translate(calc(${e} * (100% + ${qe[`--spacing-1`]})), -50%)`}],pillOffsetY:e=>[QE,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${qe[`--spacing-1`]})))`==null?void 0:`translate(-50%, calc(${e} * (100% + ${qe[`--spacing-1`]})))`}]};function eD({direction:e=`horizontal`,position:t=`inline`,isReversed:n=!1,isDisabled:r=!1,hasDivider:i=!1,isAlwaysVisible:a=!0,pillPlacement:o=`auto`,label:s,resizable:c,children:l,xstyle:u,className:d,ref:f,...p}){let m=wu(),h=s??m(`@astryx.resizable.handle.label`),g=(0,y.useRef)(null),_=(0,y.useRef)(null),[v,b]=(0,y.useState)(!1),[x,S]=(0,y.useState)(!1),[C,w]=(0,y.useState)(!1),T=e===`horizontal`,E=t===`overlay`,D=n?-1:1,O=WE(o,n,c?._isCollapsed??!1),k=GE(O),A=(0,y.useCallback)(()=>{let e=g.current;return e&&getComputedStyle(e).direction===`rtl`?-1:1},[]),j=x||C,M=(0,y.useRef)(!1);(0,y.useEffect)(()=>{let t=c?._direction;t!=null&&t!==e&&!M.current&&(M.current=!0,`${e}${t}`)},[e,c]);let N=(0,y.useCallback)(()=>{_.current=null,b(!1),qE()},[]),P=(0,y.useCallback)(e=>{r||!c||_.current||(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),_.current={pointerId:e.pointerId,startPos:T?e.clientX:e.clientY,rtl:T?A():1},b(!0),c._onResizeStart(),KE(T))},[r,c,T,A]),F=(0,y.useCallback)(e=>{let t=_.current;if(!t||t.pointerId!==e.pointerId||!c)return;let n=T?e.clientX:e.clientY;c._onResizeMove((n-t.startPos)*t.rtl*D)},[c,T,D]),I=(0,y.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(N(),c?._onResizeEnd())},[N,c]),ee=(0,y.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(N(),c?._onResizeCancel?.())},[N,c]),L=(0,y.useCallback)(e=>{if(r||!c)return;let t=e.shiftKey?UE:HE,n=T?A():1;switch(e.key){case`ArrowRight`:case`ArrowDown`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(t*(T?n:1)*D),c._onResizeEnd();break;case`ArrowLeft`:case`ArrowUp`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(-t*(T?n:1)*D),c._onResizeEnd();break;case`Home`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(c._minSizePx-c._size),c._onResizeEnd();break;case`End`:e.preventDefault(),c._maxSizePx!==1/0&&(c._onResizeStart(),c._onResizeMove(c._maxSizePx-c._size),c._onResizeEnd());break;case`Enter`:e.preventDefault(),c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())}},[r,c,T,A,D]),te=(0,y.useCallback)(()=>{!r&&c&&c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())},[r,c]),R=(0,y.useRef)(void 0);R.current=c?._onResizeCancel,(0,y.useEffect)(()=>()=>{_.current&&(_.current=null,qE(),R.current?.())},[]);let ne=c?._isCollapsed??!1,re=c?ne?Math.max(c._size,c._minSizePx):c._size:void 0,ie=c?c._minSizePx:void 0,ae=c&&c._maxSizePx!==1/0?c._maxSizePx:void 0,oe=c&&ne?m(`@astryx.resizable.collapsed`):void 0;return(0,G.jsxs)(`div`,{ref:Vn(f,g),role:`separator`,"aria-orientation":T?`vertical`:`horizontal`,"aria-valuenow":re,"aria-valuemin":ie,"aria-valuemax":ae,"aria-valuetext":oe,"aria-label":h,"aria-disabled":r||void 0,tabIndex:r?-1:0,onDoubleClick:te,onFocus:()=>w(!0),onBlur:()=>w(!1),"data-resizing":v||void 0,...W(U(`resize-handle`),un.focusVisible(JE.handle,E&&JE.overlay,E&&(T?JE.overlayHorizontal:JE.overlayVertical),!E&&(T?JE.horizontal:JE.vertical),!E&&!i&&(T?JE.noDividerHorizontal:JE.noDividerVertical),!E&&i&&j&&!v&&JE.handleHover,!E&&i&&v&&JE.handleActive,r&&JE.disabled,u),d),...p,onKeyDown:e=>{p.onKeyDown?.(e),L(e)},children:[(0,G.jsx)(`div`,{...V(JE.hitArea,T?JE.hitAreaHorizontal:JE.hitAreaVertical,k==null?T?$t.centerInline(`0px`):JE.hitAreaCenteredY:T?$E.hitAreaOffsetX(k):$E.hitAreaOffsetY(k),r&&JE.disabled),onPointerDown:P,onPointerMove:F,onPointerUp:I,onPointerCancel:ee,onLostPointerCapture:ee,onPointerEnter:()=>S(!0),onPointerLeave:()=>{v||S(!1)}}),l??(0,G.jsx)(`div`,{...W(U(`resize-handle-pill`),V(JE.pill,T?JE.pillHorizontal:JE.pillVertical,O===`center`?$t.centerInline(`-50%`):T?$E.pillOffsetX(O===`start`?-1:1):$E.pillOffsetY(O===`start`?-1:1),a?JE.pillVisible:JE.pillHidden,j&&!v&&JE.pillHover,v&&JE.pillActive))})]})}eD.displayName=`ResizeHandle`,H(),hn(),ut(),Qv(),Au(),Un();var tD=160;function nD(e,t){let n=typeof e==`object`?e:{},r=typeof t==`object`?t:{},i=r.defaultIsCollapsed!==void 0||r.isCollapsed!==void 0||r.onCollapseChange!==void 0;return{isCollapsible:!!e||i,defaultIsCollapsed:(i?r.defaultIsCollapsed:n.defaultIsCollapsed)??!1,isCollapsed:i?r.isCollapsed:n.isCollapsed,onCollapsedChange:i?r.onCollapseChange:n.onCollapsedChange,conflict:rD(n,r)}}function rD(e,t){let n=[e.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,e.isCollapsed!==void 0&&`isCollapsed`,e.onCollapsedChange!==void 0&&`onCollapsedChange`].filter(e=>e!==!1),r=[t.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,t.isCollapsed!==void 0&&`isCollapsed`,t.onCollapseChange!==void 0&&`onCollapseChange`].filter(e=>e!==!1);return n.length===0||r.length===0?null:`${n.map(e=>`collapsible.${e}`).join(`, `)} and ${r.map(e=>`resizable.${e}`).join(`, `)} address the same collapse state. resizable wins; the collapsible ${n.length===1?`value is`:`values are`} ignored.`}var iD={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kZKoxP:`x5yr21d`,kzqmXN:`x1hfn5x7`,kWkggS:`xgcd1z6`,kB7OPa:`x9f619`,kVQacm:`xb3r6kr`,$$css:!0},rootCollapsed:{kzqmXN:`xhgvbfk`,$$css:!0},resizableHandle:{kInvED:`x1wfwxd8 x1l5jwag`,$$css:!0},topbar:{k1xSpc:`x78zum5`,kXwgrk:`x1q0g3np`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kZKoxP:`xsdox4t`,kzqmXN:`xh8yej3`,kWkggS:`xgcd1z6`,kB7OPa:`x9f619`,kVQacm:`xb3r6kr`,$$css:!0}},aD=`sm`;function oD({header:e,topContent:t,children:n,footer:r,footerIcons:i,collapsible:a=!1,resizable:o=!1,xstyle:s,className:c,style:l,"data-testid":u,ref:d,handleRef:f,...p}){let m=wu(),h=(typeof a==`object`?a:{}).hasButton??!0,g=typeof o==`object`?o:{},_=!!o,v=nD(a,o),{isCollapsible:b,onCollapsedChange:x}=v;Xv(`SideNav`,v.conflict??``,v.conflict!=null);let S=Vn(d,(0,y.useRef)(null)),C=(0,y.useRef)({isCollapsed:!1,toggle:()=>{},isCollapsible:b}),w=VE({defaultSize:g.defaultWidth??260,minSize:g.minWidth??180,maxSize:g.maxWidth??480,collapsible:b,collapsedSize:tD,autoSaveId:g.autoSaveId,defaultIsCollapsed:v.defaultIsCollapsed,isCollapsed:v.isCollapsed,onSizeChange:g.onWidthChange,onCollapseChange:x}),T=w.isCollapsed,E=(0,y.useCallback)(()=>{let e=!T;C.current={...C.current,isCollapsed:e},e?w.collapse():w.expand()},[T,w]),D=_&&!T;C.current={isCollapsed:T,toggle:E,isCollapsible:b};let O={isCollapsed:T,toggle:E,isCollapsible:b};(0,y.useImperativeHandle)(f,()=>({getCollapseState:()=>C.current}),[]);let k=Jw();if(k===`topbar`)return(0,G.jsxs)(`div`,{"data-testid":u,...W(U(`side-nav`,{mode:`topbar`}),V(iD.topbar,s),c,l),children:[e,(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:(0,G.jsx)(xg,{value:aD,children:i})})]});let A=!!(r||i);if(k===`drawer`)return(0,G.jsxs)(gE,{header:e,"data-testid":u,xstyle:s,className:c,style:l,...p,children:[t,n,A&&(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,G.jsx)(xg,{value:aD,children:i})})]})]});if(k===`drawer-content`)return(0,G.jsxs)(G.Fragment,{children:[t,n,A&&(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,G.jsx)(xg,{value:aD,children:i})})]})]});let j=!!(e||t),M=!!(r||i),N=b&&h,P=_?{...l??{},width:T?void 0:w.size}:l,F=(0,G.jsxs)(`nav`,{ref:S,role:`navigation`,"aria-label":m(`@astryx.sideNav.label`),"data-testid":u,...W(U(`side-nav`),V(iD.root,T&&iD.rootCollapsed,s),c,P),...p,children:[j&&(0,G.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj`},1:{className:`x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj x6s0dn4`}}[!!T<<0],children:[e,t&&(0,G.jsx)(`div`,{children:t})]}),(0,G.jsx)(`div`,{...{0:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es x1wesfrj`},4:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es x1wesfrj`},2:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q x1wesfrj`},6:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q x1wesfrj`},1:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es xy143xn`},5:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es xy143xn`},3:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q xy143xn`},7:{className:`x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q xy143xn`}}[!!T<<2|!!j<<1|!!M<<0],children:n}),(M||N)&&(0,G.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf xfsso4q x1wesfrj`},1:{className:`x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf x1wesfrj xexx8yu x6s0dn4`}}[!!T<<0],children:[r,(0,G.jsx)(`div`,{...{0:{className:`x78zum5 x6s0dn4 xzye2dw`},1:{className:`x78zum5 x6s0dn4 xzye2dw x3ieub6`}}[!!T<<0],children:(0,G.jsxs)(xg,{value:aD,children:[N&&(0,G.jsx)(sE,{}),i]})})]})]}),I=D?(0,G.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3`,children:[F,(0,G.jsx)(eD,{"data-testid":`astryx-sidenav-resize-handle`,direction:`horizontal`,position:`overlay`,pillPlacement:`end`,isAlwaysVisible:!1,xstyle:iD.resizableHandle,resizable:w.props,label:m(`@astryx.sideNav.resizeSidebar`)})]}):F;return b?(0,G.jsx)(iE,{value:O,children:I}):I}oD.displayName=`SideNav`;var sD={item:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kzqmXN:`xh8yej3`,kZKoxP:`x1ueg155`,kg3NbH:`xf314gf`,k8WAf4:`xt970qd`,kaIpWk:`xh6dtrn`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMwMTN:`x1tgivj0`,kybGjl:`x1hl2dhg`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`xjb2p0i`,kGuDYH:`xcr08ib`,k63SB2:`x1sodnla`,kLWn49:`x1kq96og`,k9WMMc:`x1yc453h`,kB7OPa:`x9f619`,$$css:!0},selected:{kWkggS:`x17x4s8c x1jzqe4`,kMwMTN:`x1k5gbb1`,k63SB2:`x1e4wzip`,kRL5z6:`xcu6dpe x1d42zcn`,kSReZ0:`xjtnuge x1vo6n7o`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,kkrTdU:`xt0e3qv`,kfzvcC:`x47corl`,$$css:!0},sm:{kZKoxP:`x6k0iem`,kg3NbH:`x7a5moj`,$$css:!0},md:{kZKoxP:`x1ueg155`,kg3NbH:`xf314gf`,$$css:!0},lg:{kZKoxP:`xssyfek`,kg3NbH:`xf314gf`,$$css:!0}},cD=(0,y.createContext)(null);cD.displayName=`NavHeadingCloseContext`;var lD=(0,y.createContext)(null);lD.displayName=`NavHeadingMenuContext`,H(),Dc(),hn(),Oc(),dn(),ut(),Au(),Un();var uD={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kzqmXN:`xh8yej3`,$$css:!0},itemCollapsed:{kjj79g:`xl56j7k`,kzqmXN:`x805d0l`,kg3NbH:`xnjsko4`,$$css:!0},itemCollapsedSm:{kzqmXN:`x1fvqzum`,$$css:!0},itemCollapsedLg:{kzqmXN:`x1m747yf`,$$css:!0},expandChevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kzqmXN:`x1mtvzj0`,kZKoxP:`xvpftlf`,kGuDYH:`x1qlqyl8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,kmuXW:`x2lah0s`,$$css:!0},expandChevronExpanded:{k3aq6I:`x19jd1h0`,$$css:!0},expandToggle:{kzqmXN:`x1fvqzum`,kZKoxP:`x6k0iem`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,$$css:!0},splitAction:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kSGwAc:`xkh2ocl`,kOIVth:`x1txdalj`,kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kMwMTN:`x1heor9g`,kybGjl:`x1hl2dhg`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,k63SB2:`x1pd3egz`,kLWn49:`x15bjb6t`,k9WMMc:`x1yc453h`,kkrTdU:`x1ypdohk x16khyan`,$$css:!0},popoverGap:{keTefX:`x11g1kdw`,k71WvV:`xnur1sd`,$$css:!0}},dD=`sm`,fD={isCollapsed:!1,toggle:()=>{},isCollapsible:!1};function pD({href:e,as:t,isDisabled:n,onClick:r,ref:i,children:a,...o}){let s=Mc(t);return e&&!n?(0,G.jsx)(s,{ref:i,href:e,onClick:r,...o,children:a}):(0,G.jsx)(`button`,{ref:i,type:`button`,onClick:r,disabled:n,...o,children:a})}function mD({as:e,label:t,icon:n,selectedIcon:r,isSelected:i=!1,isDisabled:a=!1,href:o,onClick:s,endContent:c,actions:l,children:u,collapsible:d,size:f=`md`,"data-testid":p,ref:m,xstyle:h,...g}){let _=wu(),{isCollapsed:v}=aE(),b=Jw(),{closeMobileNav:x}=Gw(),S=b===`drawer`||b===`drawer-content`,C=(0,y.useId)(),w=!!u,T=(0,y.useRef)(null),E=BC({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:_(`@astryx.sideNavItem.submenuLabel`,{label:t})}),D=Vn(m,E.triggerRef),O=(0,y.useMemo)(()=>typeof d==`object`?d:{},[d]),k=w&&d!==!1,A=O.isCollapsed,j=A!==void 0,[M,N]=(0,y.useState)(O.defaultIsCollapsed??!1),P=j?A:M,F=(0,y.useCallback)(()=>{let e=!P;j||N(e),O.onCollapsedChange?.(e)},[P,j,O]),I=i&&r?r:n,ee=k&&(!!o||!!s)&&!v,L=!!l,te=e=>{if(a){e.preventDefault();return}if(k&&!ee&&!v){e.preventDefault(),F();return}s?.(e),S&&x()},R=e=>{e.preventDefault(),e.stopPropagation(),F()},{triggerProps:ne,contentProps:re}=hT({show:E.show,hide:E.hide,isOpen:E.isOpen,isEnabled:v&&w,clickGuardMs:0,ownsFocus:!1});if(v&&!n)return null;if(v){let n=I&&bc(I,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),r=W(U(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),un.focusVisible(sD.item,Vc.backgroundColor,sD[f],uD.itemCollapsed,f===`sm`&&uD.itemCollapsedSm,f===`lg`&&uD.itemCollapsedLg,i&&sD.selected,a&&sD.disabled)),s=g[`aria-label`]!=null&&g[`aria-label`].trim()!==``?g[`aria-label`]:t;if(w)return(0,G.jsxs)(`div`,{...V(uD.root,h),children:[(0,G.jsx)(`button`,{ref:D,type:`button`,...g,...ne,"aria-label":s,"data-testid":p,...E.triggerProps,...r,children:n}),E.render((0,G.jsxs)(`div`,{className:`x1hviunn xu0wf1k x7a5moj xfb3i0g`,onMouseEnter:re.onMouseEnter,onMouseLeave:re.onMouseLeave,onClick:()=>E.hide(),children:[(0,G.jsx)(`div`,{className:`xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j`,children:t}),(0,G.jsx)(iE,{value:fD,children:u})]}),{placement:`end`,alignment:`start`,xstyle:uD.popoverGap})]});let c={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-label":s,"data-testid":p},l=(0,G.jsx)(pD,{ref:m,href:o,as:e,isDisabled:a,onClick:te,...g,...c,...r,children:n});return(0,G.jsxs)(`div`,{ref:T,...V(uD.root,h),children:[l,(0,G.jsx)(Vi,{content:t,placement:`end`,anchorRef:T})]})}let ie=(0,G.jsxs)(G.Fragment,{children:[I&&bc(I,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),!v&&(0,G.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft`,children:t}),!v&&c&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:c}),!v&&k&&!ee&&(0,G.jsx)(vc,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[uD.expandChevron,!P&&uD.expandChevronExpanded]})]}),ae=U(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),oe=[sD.item,Vc.backgroundColor,sD[f],i&&sD.selected,a&&sD.disabled],se=W(ae,V(...oe)),ce=W(ae,un.focusVisible(...oe)),le=W(ae,un.focusWithinFirstChild(...oe)),ue=ee||L,de;if(ue){let n=ee?{"aria-current":i?`page`:void 0}:{"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":k?!P:void 0,"aria-controls":k?`${C}-children`:void 0};de=(0,G.jsxs)(`div`,{"data-testid":p,...L?le:se,children:[(0,G.jsx)(pD,{ref:m,href:o,as:e,isDisabled:a,onClick:te,...g,...n,...L?un.suppressed(uD.splitAction):un.focusVisible(uD.splitAction),children:ie}),ee&&(0,G.jsx)(`button`,{type:`button`,onClick:R,"aria-label":_(P?`@astryx.sideNavItem.expand`:`@astryx.sideNavItem.collapse`,{label:t}),"aria-expanded":!P,"aria-controls":`${C}-children`,...un.focusVisible(uD.expandToggle,Vc.backgroundColor),children:(0,G.jsx)(vc,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[uD.expandChevron,!P&&uD.expandChevronExpanded]})}),L&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w`,children:(0,G.jsx)(xg,{value:dD,children:l})})]})}else{let t={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":k?!P:void 0,"aria-controls":k?`${C}-children`:void 0,"data-testid":p};de=(0,G.jsx)(pD,{ref:m,href:o,as:e,isDisabled:a,onClick:te,...g,...t,...ce,children:ie})}return(0,G.jsxs)(`div`,{ref:T,...V(uD.root,h),children:[de,w&&!v&&(0,G.jsx)(`div`,{id:`${C}-children`,role:`group`,"aria-labelledby":`${C}-label`,"aria-hidden":P,inert:P?!0:void 0,...{0:{className:`xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92`},1:{className:`xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y`}}[!!P<<0],children:(0,G.jsxs)(`div`,{className:`xb3r6kr x2lwn1j x31w388`,children:[(0,G.jsx)(`span`,{id:`${C}-label`,hidden:!0,children:t}),u]})})]})}mD.displayName=`SideNavItem`,H(),hn(),ut();var hD={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k8WAf4:`xu0wf1k`,$$css:!0}};function gD({ref:e,title:t,subtitle:n,children:r,endContent:i,isHeaderHidden:a=!1,xstyle:o,className:s,style:c,"data-testid":l,...u}){let{isCollapsed:d}=aE(),f=`${(0,y.useId)()}-title`,p=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,G.jsx)(`span`,{id:f,className:`x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:t}),n&&(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:n})]}),i&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:i})]}),m=a||d;return(0,G.jsxs)(`div`,{ref:e,...W(U(`side-nav-section`),V(hD.root,o),s,c),...u,role:`group`,"aria-labelledby":f,"data-testid":l,children:[m?(0,G.jsx)(kc,{as:`div`,children:p}):(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o`,children:p}),(0,G.jsx)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:r})]})}gD.displayName=`SideNavSection`;var _D=(0,y.createContext)(`start`);_D.displayName=`TopNavSlotContext`,H(),hn(),Au(),ut();var vD={base:{kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},baseFlex:{k1xSpc:`x78zum5`,$$css:!0},baseGrid:{k1xSpc:`xrvj5dj`,kumcoG:`x134kloy`,$$css:!0},mobileBar:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},drawerDivider:{kqGvvJ:`x1g06x3t`,$$css:!0}};function yD({heading:e,startContent:t,children:n,centerContent:r,endContent:i,label:a,xstyle:o,className:s,style:c,ref:l,...u}){let d=wu(),f=a??d(`@astryx.topNav.landmarkLabel`),p=Xw(),m=Qw(),{hasAutoToggle:h}=Gw(),g=t??n,_=r!=null,v=g!=null||r!=null,y=v||m!=null;return p===`mobile-bar`?(0,G.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...W(U(`top-nav`,{mode:`mobile-bar`}),V(vD.mobileBar,o),s,c),...u,children:[e&&(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),(0,G.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[i,y&&h&&(0,G.jsx)(Kw,{})]})]}):p===`drawer`?!v&&!m?null:(0,G.jsxs)(gE,{header:e,children:[v&&(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:[g,r]}),v&&m&&(0,G.jsx)(Hx,{xstyle:vD.drawerDivider}),m&&(0,G.jsx)(`div`,{children:m})]}):(0,G.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...W(U(`top-nav`),V(vD.base,_?vD.baseGrid:vD.baseFlex,o),s,c),...u,children:[(0,G.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x18g69wz x845mor xeuugli`,children:[e&&(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),g&&(0,G.jsx)(_D,{value:`start`,children:(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:g})})]}),_&&(0,G.jsx)(_D,{value:`center`,children:(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xzye2dw`,children:r})}),_?(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 x13a6bvl xzye2dw`,children:(0,G.jsx)(_D,{value:`end`,children:i})}):i&&(0,G.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw x2lah0s xvc5jky`,children:(0,G.jsx)(_D,{value:`end`,children:i})})]})}yD.displayName=`TopNav`,H(),Dc(),hn(),Un(),ut(),Au();var bD={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`xkoleio`,kZCmMZ:`x12gdq22 xmnmr5y`,kwRFfy:`x1djylfy`,k8WAf4:`xt970qd`,kB7OPa:`x9f619`,kybGjl:`x1hl2dhg`,kMwMTN:`x1tgivj0`,kkrTdU:`xt0e3qv`,$$css:!0},menuTrigger:{kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,k63SB2:`x1sodnla`,k9WMMc:`x1yc453h`,$$css:!0},chevron:{kmuXW:`x2lah0s`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k7Eaqz:`xy8csz5`,kAzted:`ximsjs8`,kMwMTN:`xv9yike`,$$css:!0},chevronGlyph:{kzqmXN:`x15vhz18`,kZKoxP:`xlzyvqe`,kGuDYH:`x1qlqyl8`,$$css:!0},popoverChevron:{k3aq6I:`x19jd1h0`,$$css:!0},popoverOverlap:{k7Eaqz:`x8wyhu6`,keoZOQ:`xvyqdj1`,keTefX:`x1qfufaz`,$$css:!0}};function xD({as:e,logo:t,logoLabel:n,heading:r,headingHref:i,superheading:a,superheadingHref:o,subheading:s,subheadingHref:c,headerEndContent:l,menu:u,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=wu(),v=Mc(e),b=n??r,x=(0,y.useRef)(null),S=BC({dialogLabel:_(`@astryx.topNav.heading.dialogLabel`),role:`none`,hasCloseButton:!1}),{triggerProps:C,contentProps:w,menuRef:T,setTriggerEl:E,close:D}=hT({show:S.show,hide:S.hide,isOpen:S.isOpen,isEnabled:!!u,showDelay:0}),O=(0,y.useMemo)(()=>({closeMenu:D}),[D]),k=Vn(x,h,u?S.triggerRef:void 0),A=!!u,j=!!(i||o||c),M=!!u&&!j,N=!!i&&!u&&!o&&!c,P=e=>(0,G.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(j&&o&&u?(0,G.jsx)(Pu,{href:o,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:a}):(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),(0,G.jsxs)(`span`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:[j&&i&&u?(0,G.jsx)(v,{href:i,onClick:e=>e.stopPropagation(),className:`x18juvz8 x2mo6ok xf74fhv x1hl2dhg x1heor9g xb3r6kr xlyipyv xuxw1ft`,children:r}):(0,G.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),e]}),s&&(j&&c&&u?(0,G.jsx)(Pu,{href:c,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:s}):(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),F=A&&(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[bD.chevron,bD.chevronGlyph]}),I=l&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xvc5jky`,children:l}),ee=(0,G.jsxs)(`button`,{type:`button`,className:`x78zum5 x6s0dn4 x1txdalj xh8yej3 xjbqb8w xjb2p0i x1qlqyl8 x1heor9g x1yc453h xkoleio x12gdq22 xmnmr5y x1djylfy xt970qd xcsaf9d x1p37lm5 xhrcg97 x1ypdohk x16khyan`,onClick:D,children:[t&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),P((0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[bD.chevron,bD.chevronGlyph,bD.popoverChevron]}))]});return!r&&!u?(0,G.jsx)(i?v:`div`,{ref:h,href:i,"aria-label":i?n:void 0,"data-testid":m,...W(U(`top-nav-heading`),V(bD.root,!!i&&bD.menuTrigger,d),f,p),...g,children:t&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})}):N&&i?(0,G.jsxs)(v,{ref:h,href:i,"data-testid":m,...W(U(`top-nav-heading`),V(bD.root,bD.menuTrigger,d),f,p),...g,children:[t&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),P(),I,F]}):M?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:k,"data-testid":m,...C,...W(U(`top-nav-heading`),V(bD.root,bD.menuTrigger,d),f,p),children:[t&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),P((0,G.jsx)(`button`,{ref:E,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),C.onClick()},...S.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:bD.chevronGlyph})})),I]}),S.render((0,G.jsxs)(`div`,{ref:T,className:`x9epnlk xb3r6kr`,...w,children:[ee,(0,G.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,G.jsx)(cD,{value:O,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:bD.popoverOverlap})]}):u&&j?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:k,"data-testid":m,...C,...W(U(`top-nav-heading`),V(bD.root,d),f,p),children:[t&&(i?(0,G.jsx)(v,{href:i,"aria-label":b,onClick:e=>e.stopPropagation(),className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),P(A?(0,G.jsx)(`button`,{ref:E,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),C.onClick()},...S.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,G.jsx)(vc,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:bD.chevronGlyph})}):void 0),I]}),S.render((0,G.jsxs)(`div`,{ref:T,className:`x9epnlk xb3r6kr`,...w,children:[ee,(0,G.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,G.jsx)(cD,{value:O,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:bD.popoverOverlap})]}):j&&!N?(0,G.jsxs)(`div`,{ref:h,"data-testid":m,...W(U(`top-nav-heading`),V(bD.root,d),f,p),...g,children:[t&&(i?(0,G.jsx)(v,{href:i,"aria-label":b,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),(0,G.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(o?(0,G.jsx)(Pu,{href:o,color:`secondary`,size:`xsm`,children:a}):(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),i?(0,G.jsx)(Pu,{href:i,color:`primary`,weight:`semibold`,children:r}):(0,G.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),s&&(c?(0,G.jsx)(Pu,{href:c,color:`secondary`,size:`xsm`,children:s}):(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),I,F]}):(0,G.jsxs)(`div`,{ref:h,"data-testid":m,...W(U(`top-nav-heading`),V(bD.root,d),f,p),...g,children:[t&&(0,G.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),P(),I,F]})}xD.displayName=`TopNavHeading`;function SD(e,t){return`${e} · ${t}${/\bvoid\b/i.test(t)?``:` · Void`}`}var CD=!1;function wD({title:e,platformName:t,username:n,children:r}){let i=aa().path,a=sa().location?.pathname??i,[o,s]=(0,y.useState)(CD);return(0,y.useEffect)(()=>{document.title=SD(e,t)},[e,t]),(0,y.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t instanceof HTMLFormElement))return;let n=t.dataset.confirm;n&&!window.confirm(n)&&e.preventDefault()};return document.addEventListener(`submit`,e,!0),()=>document.removeEventListener(`submit`,e,!0)},[]),J(nT,{className:`void-admin-shell`,height:`auto`,contentPadding:6,mobileNav:{breakpoint:`lg`},topNav:J(yD,{label:`Platform administration`,heading:J(xD,{heading:t,subheading:`Admin`}),endContent:J(rE,{button:{label:n??`Account`,variant:`ghost`},alignment:`end`,items:[{label:`Log out`,icon:Zd,onClick:()=>window.location.assign(`/admin/logout`)}]})}),sideNav:Y(oD,{label:`Admin sections`,collapsible:{isCollapsed:o,onCollapsedChange:e=>{CD=e,s(e)}},children:[J(gD,{title:`Overview`,children:J(mD,{label:`Dashboard`,icon:qd,href:`/admin/`,isSelected:a===`/admin/`})}),Y(gD,{title:`Applications`,children:[J(mD,{label:`Projects`,icon:Vd,href:`/admin/projects`,isSelected:a.startsWith(`/admin/projects`)}),J(mD,{label:`Deployments`,icon:of,href:`/admin/deployments`,isSelected:a.startsWith(`/admin/deployments`)})]}),Y(gD,{title:`People`,children:[J(mD,{label:`Users`,icon:vf,href:`/admin/users`,isSelected:a.startsWith(`/admin/users`)}),J(mD,{label:`Access`,icon:Yd,href:`/admin/signup-control`,isSelected:a.startsWith(`/admin/signup-control`)||a.startsWith(`/admin/invitations`)})]}),Y(gD,{title:`Platform`,children:[J(mD,{label:`Authentication`,icon:uf,href:`/admin/config/auth`,isSelected:a.startsWith(`/admin/config/auth`)}),J(mD,{label:`Email`,icon:$d,href:`/admin/email`,isSelected:a.startsWith(`/admin/email`)}),J(mD,{label:`CLI Versions`,icon:mf,href:`/admin/cli-versions`,isSelected:a===`/admin/cli-versions`})]})]}),children:J(`div`,{className:`void-admin-content`,children:r})})}function TD({path:e,platformName:t,username:n}){let{authEdit:r}=Zh(sv(e),{mode:`stale-while-revalidate`}),i=Kh(iv,r);if(!i)throw Error(`Login method is unavailable.`);let{configuration:a,revision:o,callbackUrl:s,label:c}=i;return Y(wD,{platformName:t,title:`Edit login method`,username:n,children:[Y(`h1`,{children:[`Edit `,c]}),J(mw,{configuration:a,revision:o,callbackUrl:s})]})}function ED({message:e,platformName:t,username:n}){return Y(wD,{platformName:t,title:`Authentication settings`,username:n,children:[J(`h1`,{children:`Authentication settings`}),J(`p`,{children:e}),Y(`p`,{children:[J(`a`,{href:`/admin/config/auth`,children:`Return to settings`}),` |`,` `,J(`a`,{href:`/admin/logout`,children:`Sign in again`})]})]})}function DD({path:e,platformName:t,username:n}){let{authNew:r}=Zh(ov(e),{mode:`stale-while-revalidate`}),i=Kh(rv,r);if(!i)throw Error(`Login method is unavailable.`);let{kind:a,connectionId:o,callbackUrl:s}=i;return Y(wD,{platformName:t,title:`Add login method`,username:n,children:[J(`h1`,{children:`Add login method`}),J(mw,{configuration:{id:o,kind:a,label:a===`oidc`?`Company SSO`:a===`cloudflare-access`?`Cloudflare Access`:a===`github`?`GitHub`:`Google`},revision:null,callbackUrl:s})]})}H(),hn(),ut();var OD={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`xzye2dw`,kZKoxP:`x1grt7ep`,k8WAf4:`xt970qd`,kg3NbH:`xf314gf`,kaIpWk:`xjspbzw`,kMv6JI:`xjb2p0i`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,k63SB2:`x1e4wzip`,khDVqt:`xuxw1ft`,ks0D6T:`x193iq5w`,k7Eaqz:`xeuugli`,$$css:!0}},kD={neutral:{kWkggS:`x17x4s8c`,kMwMTN:`x1tgivj0`,$$css:!0},info:{kWkggS:`x1ewilqj`,kMwMTN:`x17wrial`,$$css:!0},success:{kWkggS:`xdsz4j9`,kMwMTN:`xri61p4`,$$css:!0},warning:{kWkggS:`x1q8g9m5`,kMwMTN:`xrebv38`,$$css:!0},error:{kWkggS:`x1pjz0fi`,kMwMTN:`x1m024r3`,$$css:!0},blue:{kWkggS:`x1o0wnni`,kMwMTN:`x1vvqiwl`,$$css:!0},cyan:{kWkggS:`x1rgj867`,kMwMTN:`x1txnczv`,$$css:!0},green:{kWkggS:`x1sqjeoo`,kMwMTN:`xltfdvo`,$$css:!0},orange:{kWkggS:`x1e9xt6e`,kMwMTN:`xm47u9q`,$$css:!0},pink:{kWkggS:`xnpoty2`,kMwMTN:`xiuofww`,$$css:!0},purple:{kWkggS:`x16i6n6f`,kMwMTN:`x1m9wyeb`,$$css:!0},red:{kWkggS:`x1cibrc5`,kMwMTN:`x1joocv1`,$$css:!0},teal:{kWkggS:`x1jtji5o`,kMwMTN:`x9x0lbs`,$$css:!0},yellow:{kWkggS:`x1bo7t0x`,kMwMTN:`xdhq94a`,$$css:!0}};function AD({variant:e=`neutral`,label:t,icon:n,xstyle:r,className:i,style:a,ref:o,...s}){let c=typeof t==`number`?String(t):typeof t==`string`&&t.length>0?t:void 0;return(0,G.jsxs)(`span`,{ref:o,...W(U(`badge`,{variant:e}),V(OD.base,kD[e],r),i,a),title:c,...s,children:[n,(0,G.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:t})]})}AD.displayName=`Badge`;var jD=`/admin/config/auth`,MD=[{kind:`github`,label:`GitHub`},{kind:`google`,label:`Google`},{kind:`oidc`,label:`Generic OIDC`},{kind:`cloudflare-access`,label:`Cloudflare Access`}];function ND({path:e,platformName:t,username:n}){let{authSettings:r}=Zh(av(e),{mode:`stale-while-revalidate`}),i=Kh(nv,r);if(!i)throw Error(`Authentication settings are unavailable.`);let{data:a,tested:o}=i;return J(wD,{platformName:t,title:`Authentication settings`,username:n,children:Y(`div`,{className:`void-admin-auth-settings`,children:[Y(`header`,{className:`void-admin-auth-intro`,children:[J($i,{level:1,children:`Authentication`}),J(`p`,{children:`Manage how people reach the platform and sign in.`})]}),J(`section`,{"aria-labelledby":`platform-protection-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-auth-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`platform-protection-heading`,children:`Platform protection`}),J(`p`,{children:`Control access to the platform before visitors reach a login page.`})]}),J(AD,{label:a.protection?`Cloudflare Access enabled`:`Cloudflare Access not enabled`,variant:a.protection?`success`:`neutral`})]}),Y(`div`,{className:`void-admin-auth-protection-details`,children:[Y(`div`,{className:`void-admin-auth-protection-steps`,children:[Y(`div`,{children:[J(`h3`,{children:`Enable Cloudflare Access`}),J(`p`,{children:`Create or connect an Access application and verify every platform origin. The installing CLI needs the installation's recovery credentials and Access setup permission.`}),J(`pre`,{children:`void platform config auth protection enable --installation <id>`})]}),Y(`div`,{children:[J(`h3`,{children:`Disable Cloudflare Access`}),J(`p`,{children:`First change any signup policy that relies on Access.`}),J(`pre`,{children:`void platform config auth protection disable --installation <id>`})]})]}),J(`p`,{className:`void-admin-auth-note`,children:`Either change revokes human sessions. Access applications remain for deliberate cleanup; login methods and deployed applications keep their own settings.`})]})]})}),a.initialized?Y(G.Fragment,{children:[o&&J(`section`,{"aria-labelledby":`verified-login-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-auth-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`verified-login-heading`,children:`Login verified`}),J(`p`,{children:`Review this identity before linking or enabling the tested method.`})]}),J(AD,{label:`Ready to review`,variant:`success`})]}),Y(`dl`,{className:`void-admin-auth-identity`,children:[Y(`div`,{children:[J(`dt`,{children:`Account`}),J(`dd`,{children:o.login||o.subject})]}),Y(`div`,{children:[J(`dt`,{children:`Provider`}),J(`dd`,{children:o.issuer})]}),Y(`div`,{children:[J(`dt`,{children:`Identity`}),J(`dd`,{children:o.subject})]})]}),J(`div`,{className:`void-admin-auth-actions`,children:[`link`,`enable`].map(e=>Y(`form`,{method:`post`,action:`${jD}/connections/${encodeURIComponent(o.connection_id)}/${e}`,children:[J(`input`,{type:`hidden`,name:`revision`,value:o.revision}),J(`input`,{type:`hidden`,name:`testId`,value:o.id}),J(Mg,{type:`submit`,label:e===`link`?`Link to my account`:`Enable tested configuration`,variant:e===`link`?`secondary`:`primary`})]},e))})]})}),J(`section`,{"aria-labelledby":`login-methods-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-auth-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`login-methods-heading`,children:`Login methods`}),J(`p`,{children:`Choose the identity providers people can use to sign in.`})]}),J(AD,{label:`${a.methods.filter(e=>e.enabled).length} active`,variant:`neutral`})]}),a.methods.length?J(`div`,{className:`void-admin-auth-method-list`,children:a.methods.map(e=>Y(`div`,{className:`void-admin-auth-method`,children:[Y(`div`,{className:`void-admin-auth-method-info`,children:[Y(`div`,{className:`void-admin-auth-method-title`,children:[J(`strong`,{children:e.label}),J(AD,{label:e.enabled?`Enabled`:`Disabled`,variant:e.enabled?`success`:`neutral`}),`activeRevision`in e&&e.activeRevision!==e.revision&&J(AD,{label:`Pending configuration`,variant:`warning`})]}),J(`span`,{className:`void-admin-auth-method-type`,children:MD.find(({kind:t})=>t===e.kind)?.label??e.kind})]}),Y(`div`,{className:`void-admin-auth-actions`,children:[J(Mg,{as:`a`,href:`${jD}/connections/${encodeURIComponent(e.id)}`,label:`Edit`,variant:`secondary`,size:`sm`}),J(`form`,{method:`post`,action:`${jD}/connections/${encodeURIComponent(e.id)}/test`,children:J(Mg,{type:`submit`,label:`Test login`,variant:`secondary`,size:`sm`})}),e.enabled&&`revision`in e&&Y(`form`,{method:`post`,action:`${jD}/connections/${encodeURIComponent(e.id)}/disable`,children:[J(`input`,{type:`hidden`,name:`revision`,value:e.revision}),J(Mg,{type:`submit`,label:`Disable and revoke sessions`,variant:`destructive`,size:`sm`})]})]})]},e.id))}):J(`p`,{className:`void-admin-auth-empty`,children:`No login methods configured yet.`}),Y(`div`,{className:`void-admin-auth-add-methods`,children:[J(`h3`,{children:`Add a login method`}),J(`div`,{className:`void-admin-auth-actions`,children:MD.map(({kind:e,label:t})=>J(Mg,{as:`a`,href:`${jD}/new?kind=${e}`,label:t,variant:`secondary`,size:`sm`},e))})]})]})})]}):Y(C_,{children:[J($i,{level:2,children:`Set up authentication settings`}),J(`p`,{children:`Initialize settings to manage your existing login methods here. Their configuration is preserved; you will sign in again.`}),J(`form`,{method:`post`,action:`${jD}/initialize`,children:J(Mg,{type:`submit`,label:`Initialize settings`})})]}),J(`section`,{"aria-labelledby":`account-access-heading`,children:J(C_,{children:Y(`div`,{className:`void-admin-auth-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`account-access-heading`,children:`Who can join?`}),J(`p`,{children:`Set the signup policy, invite people, and manage individual grants on Access.`})]}),J(Mg,{as:`a`,href:`/admin/signup-control`,label:`Manage access`,variant:`secondary`})]})})})]})})}bt();function PD(e){let t=0,n=0,r=[];for(let i of e){let e=i.width;if(e?.type===`pixel`)n+=e.value;else{let n=e?.value??1,a=e==null?0:e.minWidth??120;t+=n,r.push({key:i.key,proportion:n,minWidth:a})}}let i=0;if(t>0)for(let e of r){let n=e.minWidth*t/e.proportion;n>i&&(i=n)}let a=n+i,o=new Map;for(let n of e){let e=n.width,r={};if(e?.type===`pixel`)r.width=`${e.value}px`,r.minWidth=`${e.value}px`;else{let n=e?.value??1;t>0&&(r.width=`${n/t*100}%`),e!=null&&(r.minWidth=`${e.minWidth??120}px`)}o.set(n.key,{style:r})}return{columns:o,tableMinWidth:a}}function FD(e=1,t){return{type:`proportional`,value:e,minWidth:t?.minWidth??120}}function ID(e){if(e.length===0)return e;let t=vt(e);return t.toUpperCase()+e.slice(t.length)}function LD(e,t){let n=e[t];return n==null?``:n instanceof Date?n.toISOString():typeof n==`string`||typeof n==`number`||typeof n==`boolean`||typeof n==`bigint`?String(n):``}function RD(e){return e==null?0:typeof e==`string`?e.length:typeof e==`number`||typeof e==`boolean`?String(e).length:0}function zD(e){if(e==null||typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return 0;let t=String(e),n=0,r=0;for(let e=0;e<=t.length;e++)e===t.length||t[e]===` `||t[e]===` `||t[e]===`
61
61
  `?(r>n&&(n=r),r=0):r++;return n}var BD=60,VD=8;function HD(e){if(e.length===0)return[];let t=e[0],n=Object.keys(t),r=e.slice(0,Math.min(5,e.length));return n.map(e=>{let t=ID(e).length,n=t,i=t;for(let t of r){let r=RD(t[e]);r>n&&(n=r);let a=zD(t[e]);a>i&&(i=a)}return{key:e,headerLen:t,maxContentLen:n,maxWordLen:i}}).map(e=>{let t=e.maxContentLen<=6?1:e.maxContentLen<=15?2:3,n=Math.max(Math.max(e.headerLen,e.maxWordLen)*VD,BD);return{key:e.key,header:ID(e.key),width:FD(t,{minWidth:n})}})}var UD={x139im0d:`x139im0d`,$$css:!0},WD={cell:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,ks0D6T:`x1m189uc`,$$css:!0}},GD={cell:{kVQacm:`xb3r6kr`,kHjlTd:`x1mzt3pk`,kTgw9:`x13faqbe`,ks0D6T:`x1m189uc`,$$css:!0}},KD={compact:{kZCmMZ:`x5uh4xs`,kwRFfy:`xbg7gas`,$$css:!0},balanced:{kZCmMZ:`x9bi00s`,kwRFfy:`xpilulx`,$$css:!0},spacious:{kZCmMZ:`x18c6q21`,kwRFfy:`x1wzlfcn`,$$css:!0}},qD=(0,y.createContext)(null);qD.displayName=`TableContext`,H(),hn(),ut();var JD={row:{kWkggS:`x1dnou9g`,"--table-row-overlay":`x1rht92`,$$css:!0}},YD={row:{kWkggS:`xoevpu5`,"--table-row-overlay":`xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}},XD={row:{kWkggS:`x1dnou9g xoevpu5`,"--table-row-overlay":`x1rht92 xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}};function Z({children:e,xstyle:t,ref:n,isHeaderRow:r=!1,className:i,style:a,...o}){let s=(0,y.use)(qD);if(!s)return(0,G.jsx)(`tr`,{ref:n,...o,...W(U(`table-row`),V(UD,t),i,a),children:e});let c=[];return r||(s.isStriped&&s.hasHover?c.push(XD.row):s.isStriped?c.push(JD.row):s.hasHover&&c.push(YD.row)),s.dividers===`rows`||s.dividers,t&&c.push(...t),(0,G.jsx)(`tr`,{ref:n,...o,...W(U(`table-row`),V(UD,...c),i,a),children:e})}Z.displayName=`TableRow`,H(),Dc(),Br(),Gv(),Yv(),mb(),ni(),hn(),ut(),Au(),Un();var ZD=(0,y.lazy)(async()=>Promise.resolve().then(()=>(IT(),NT)).then(e=>({default:e.MenuBottomSheet}))),QD={trigger:{kVAEAm:`x1n2onr6`,k7VYTy:`xpdipgo`,kO7zv1:`x1winvzj`,kfSwDN:`x87ps6o`,$$css:!0},menu:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kskxy:`xuyqlj2`,kORKVm:`x1odjw0f`,"--_dropdown-menu-radius":`x1fcsqxe`,"--_dropdown-menu-padding":`xgory14`,kmVPX3:`x9epnlk`,kaIpWk:`x1n97fys`,kWkggS:`x1prclbq`,kGVxlE:`x1i5ehqx`,kSiTet:`x1hc1fzr`,k1ekBW:`x19991ni`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,kfSwDN:`x87ps6o`,$$css:!0},popover:{k7Eaqz:`x5w4yej`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}],sheetMenu:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kzqmXN:`xh8yej3`,"--_dropdown-menu-radius":`x1fcsqxe`,"--_dropdown-menu-padding":`xgory14`,kmVPX3:`x9epnlk`,kaIpWk:`x1n97fys`,kWkggS:`x10xzikg`,kI3sdo:`x1a2a7pz`,kfSwDN:`x87ps6o`,$$css:!0},sheetRootHeading:{keTefX:`x6i7dpz`,$$css:!0},sheetViewHeading:{kI3sdo:`x1a2a7pz`,$$css:!0}};function $D({children:e,menuWidth:t,size:n=`md`,label:r,isDisabled:i=!1,onOpenChange:a,presentation:o=`popover`,ref:s,className:c,style:l,xstyle:u,triggerXstyle:d,"data-testid":f,...p}){let m=wu(),h=r??m(`@astryx.contextMenu.label`),g=m(`@astryx.dropdownMenu.back`),_=HC(o)===`bottom-sheet`,{items:v,menuContent:b,...x}=p,S=v??[],C=b,w=(0,y.useId)(),T=(0,y.useRef)({x:0,y:0}),E=(0,y.useRef)(null),D=(0,y.useRef)(null),O=(0,y.useRef)(null),k=(0,y.useRef)(null),[A,j]=(0,y.useState)(!1),[M,N]=(0,y.useState)([]),P=M.at(-1),F=P?.items??S,I=P?.label??h,ee=typeof I==`string`?I:h,L=(0,y.useCallback)(e=>{e||N([]),j(e),a?.(e)},[a]),te=Pr({mode:`context`,onHide:(0,y.useCallback)(()=>{j(!1),a?.(!1);let e=O.current;O.current=null,e&&document.contains(e)&&e.focus()},[a]),onShow:(0,y.useCallback)(()=>{j(!0),a?.(!0)},[a]),lightDismiss:!1}),R=(0,y.useCallback)(()=>{_?L(!1):te.hide()},[te,L,_]),ne=(0,y.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&R())},[R]);(0,y.useEffect)(()=>{if(!A||M.length===0)return;let e=requestAnimationFrame(()=>{k.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[A,M.length]);let{listRef:re,handleKeyDown:ie,focusFirst:ae,focusItem:oe,ownsEvent:se,getItems:ce}=Hv({itemSelector:bT,boundarySelector:xT,wrap:!1,onEscape:R}),le=qv({getItemLabels:()=>ce().map(e=>e.textContent),onMatch:oe,getCurrentIndex:()=>ce().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))});(0,y.useEffect)(()=>{if(!A||_)return;let e=e=>{let t=re.current;t&&!t.contains(e.target)&&R()};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[A,R,re,_]),(0,y.useEffect)(()=>{if(!A||_)return;let e=e=>{e.key===`Escape`&&(fn(e)||(e.preventDefault(),R()))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[A,R,_]);let ue=(0,y.useCallback)(e=>{if(se(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&yT.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){R();return}if(le.onKeyDown(e)){e.preventDefault();return}ie(e)}},[ie,R,le,se]),de=(0,y.useCallback)((e,t,n)=>{T.current={x:e,y:t};let r=E.current;r&&(r.style.left=`${e}px`,r.style.top=`${t}px`),O.current=document.activeElement instanceof HTMLElement?document.activeElement:n,_?L(!0):(te.show(),requestAnimationFrame(()=>ae()))},[te,ae,L,_]),z=(0,y.useCallback)(e=>{if(i)return;e.preventDefault();let t=D.current?.getBoundingClientRect(),n=e.clientX===0&&e.clientY===0&&e.detail===0,r=n||!t?0:e.clientX-t.left,a=n||!t?t?.height??0:e.clientY-t.top;de(r,a,e.currentTarget)},[i,de]),B=ub({disabled:i,onLongPress:(0,y.useCallback)(e=>{let t=D.current?.getBoundingClientRect();de(t?e.x-t.left:e.x,t?e.y-t.top:e.y,D.current)},[de])}),fe=t?QD.popoverCustomWidth(t):QD.popover,pe=(0,y.useMemo)(()=>({closeMenu:R,menuSize:n}),[R,n]),me=v===void 0?C:MT(S),he=(0,G.jsx)(`div`,{ref:re,id:w,role:`menu`,"data-autofocus":_?``:void 0,tabIndex:_?0:-1,"aria-label":h,onKeyDown:ue,onContextMenu:e=>e.preventDefault(),...W(U(`context-menu`),V(_?QD.sheetMenu:QD.menu,u),c,l),children:(0,G.jsx)(rT,{value:pe,children:me})}),ge=v===void 0?he:(0,G.jsxs)(`div`,{ref:re,"data-autofocus":``,tabIndex:0,...W(U(`context-menu`),V(QD.sheetMenu,u),c,l),children:[(0,G.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[M.length>0&&(0,G.jsx)(Mg,{label:g,variant:`ghost`,size:`sm`,icon:(0,G.jsx)(vc,{icon:`chevronLeft`,size:`sm`,xstyle:$t.mirror}),isIconOnly:!0,onClick:()=>N(e=>e.slice(0,-1))}),(0,G.jsx)($i,{ref:k,level:3,tabIndex:-1,xstyle:[QD.sheetViewHeading,M.length===0&&QD.sheetRootHeading],children:I})]}),(0,G.jsx)(qT,{items:F,onSelect:ne,onOpenSubmenu:e=>N(t=>[...t,e])})]});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:Vn(s,D),...x,onContextMenu:z,...B,"data-testid":f,...V(QD.trigger,...d?Array.isArray(d)?d:[d]:[]),children:[e,(0,G.jsx)(`span`,{ref:Vn(E,te.ref),"aria-hidden":`true`,...W({className:`x10l6tqk xnalus7 xqtp20y x47corl`},{style:{left:`${T.current.x}px`,top:`${T.current.y}px`}})})]}),_?(0,G.jsx)(y.Suspense,{fallback:null,children:(0,G.jsx)(ZD,{isOpen:A,onOpenChange:L,label:ee,children:ge})}):te.render(he,{placement:`below`,alignment:`start`,xstyle:[fe,ti.below]})]})}$D.displayName=`ContextMenu`,Dc();function eO(e){let t=[],n=new Map;for(let r of e){let e=r.group??`__ungrouped__`,i=n.get(e);i||(i=[],n.set(e,i),t.push(e)),i.push(r)}let r=[];return t.forEach((e,t)=>{t>0&&r.push({type:`divider`});for(let t of n.get(e)??[])r.push({label:typeof t.label==`string`?t.label:t.id,icon:t.checked?(0,G.jsx)(vc,{icon:`check`,size:`xsm`,"aria-hidden":!0}):t.icon,isDisabled:t.disabled,onClick:t.onSelect,variant:t.variant})}),r}function tO({element:e,getActions:t,triggerXstyle:n}){let[r,i]=(0,y.useState)(null);return(0,G.jsx)($D,{items:r??[],triggerXstyle:n,onOpenChange:e=>{i(e?eO(t()):null)},children:e})}function nO(e,t,n){return typeof t==`function`?(0,G.jsx)(tO,{element:e,getActions:t,triggerXstyle:n}):!t||t.length===0?e:(0,G.jsx)($D,{items:eO(t),triggerXstyle:n,children:e})}function rO(e,t,n){let r=[];return(e.dividers===`rows`||e.dividers===`grid`)&&r.push(t),(e.dividers===`columns`||e.dividers===`grid`)&&r.push(n),r}function iO(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function aO(){return(0,y.use)(qD)}H(),hn(),ut();var oO={compact:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},balanced:{k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0}},sO={compact:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},balanced:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},spacious:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0}},cO={compact:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},balanced:{k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0}},lO={fill:{k1xSpc:`x1lliihq`,kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kzqmXN:`xh8yej3`,$$css:!0}},uO={cell:{kZKoxP:`x5yr21d`,$$css:!0}},dO={cell:{kt9PQ7:`x92x3c3 x1wp2rvj`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},fO={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},pO={middle:{kXLuUW:`xxymvpz`,$$css:!0},top:{kXLuUW:`x16dsc37`,$$css:!0},bottom:{kXLuUW:`x3ajldb`,$$css:!0}};function Q({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=aO(),c=typeof a==`function`||Array.isArray(a)&&a.length>0,l=s?[c?sO[s.density]:oO[s.density],s.textOverflow===`truncate`?WD.cell:GD.cell,KD[s.density],pO[s.verticalAlign],...rO(s,dO.cell,fO.cell),...c?[uO.cell]:[]]:[],u=nO(e,a,c&&s?[lO.fill,cO[s.density]]:c?lO.fill:void 0);return(0,G.jsx)(`td`,{ref:n,...o,...W(U(`table-cell`,{density:s?.density}),V(...iO(l,t)),r,i),children:u})}Q.displayName=`TableCell`,H(),hn(),ut();var mO={compact:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,kGuDYH:`xcr08ib`,kB7OPa:`x9f619`,$$css:!0},balanced:{k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,kGuDYH:`xcr08ib`,kB7OPa:`x9f619`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,kGuDYH:`xcr08ib`,kB7OPa:`x9f619`,$$css:!0}},hO={cell:{k63SB2:`x2mo6ok`,kMwMTN:`xv1l7n4`,k9WMMc:`x1yc453h`,$$css:!0}},gO={cell:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},_O={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}};function $({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=aO(),c=[];s&&(c.push(hO.cell,mO[s.density],gO.cell,WD.cell,KD[s.density]),(s.dividers===`columns`||s.dividers===`grid`)&&c.push(_O.cell));let l=nO(e,a);return(0,G.jsx)(`th`,{ref:n,...o,...W(U(`table-header-cell`,{density:s?.density}),V(...iO(c,t)),r,i),children:l})}$.displayName=`TableHeaderCell`,H(),hn(),ut();function vO({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,G.jsx)(`thead`,{ref:e,...W(U(`table-header`),V(n),r,i),...a,children:t})}vO.displayName=`TableHeader`,H(),hn(),ut();function yO({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,G.jsx)(`tbody`,{ref:e,...W(U(`table-body`),V(n),r,i),...a,children:t})}yO.displayName=`TableBody`,H(),hn(),ut();var bO={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k9WMMc:`x2b8uid`,kOIVth:`x18g69wz`,k8WAf4:`xmfvnks`,kg3NbH:`xm7rs69`,$$css:!0},containerCompact:{kOIVth:`x1txdalj`,k8WAf4:`x1na6nto`,kg3NbH:`x1pzlopt`,$$css:!0}};function xO({title:e,description:t,icon:n,actions:r,headingLevel:i=3,isCompact:a=!1,xstyle:o,className:s,style:c,ref:l,...u}){let d=`h${i}`;return(0,G.jsxs)(`div`,{ref:l,...u,role:`status`,...W(U(`empty-state`,{variant:a?`compact`:null}),V(bO.container,a&&bO.containerCompact,o),s,c),children:[n!=null&&(0,G.jsx)(`div`,{"aria-hidden":`true`,children:n}),(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 xxc7z9f`,children:[(0,y.createElement)(d,W(U(`empty-state-title`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0`},1:{className:`x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib`}}[!!a<<0]),e),t!=null&&(0,G.jsx)(`div`,{...W(U(`empty-state-description`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4`},1:{className:`x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d`}}[!!a<<0]),children:t})]}),r!=null&&(0,G.jsx)(`div`,{...{0:{className:`x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d`},1:{className:`x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf`}}[!!a<<0],children:r})]})}xO.displayName=`EmptyState`,H(),hn(),Zt(),ut(),Au();var SO={table:{kzqmXN:`xh8yej3`,kLvRdT:`x1mwwwfo`,kheTzg:`x1gukg7c`,kPzzVL:`x140o2bo`,$$css:!0},tableAutoLayout:{kPzzVL:`x1drmoe9`,$$css:!0}};function CO(e,t,n,...r){return e.reduce((e,n,i)=>{let a=t(n);if(!a)return e;try{return a(e,...r)}catch(t){return Xt(`Table`,`Plugin at index ${i} threw in transform:`,t),e}},n)}var wO=[];function TO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function EO({item:e,rowIndex:t,rowKey:n,columns:r,plugins:i,textOverflow:a,RowComponent:o,CellComponent:s,ariaRowIndex:c}){let l=r.map((t,n)=>{let o={};t.align&&(o.style={textAlign:t.align});let c=CO(i,e=>e.transformBodyCell,{htmlProps:o,xstyle:[],columnIndex:n,columns:r},t,e,n,r),l=!t.renderCell,u=null;c.isContentSuppressed||(u=l?LD(e,t.key):t.renderCell?.(e)??null);let d;return d=l&&a===`truncate`&&typeof u==`string`&&u.length>0?(0,G.jsx)(Yi,{type:`body`,maxLines:1,children:u}):u,(0,G.jsx)(s,{...c.htmlProps,contextMenuActions:c.contextMenuActions,xstyle:c.xstyle,children:d},t.key)}),u=CO(i,e=>e.transformBodyRow,{htmlProps:c==null?{}:{"aria-rowindex":c},xstyle:[],children:(0,G.jsx)(G.Fragment,{children:l})},e,t),d=(0,G.jsx)(o,{ref:u.ref,...u.htmlProps,xstyle:u.xstyle,children:u.children},n);return u.afterRow?(0,G.jsxs)(G.Fragment,{children:[d,u.afterRow]}):d}function DO(e,t){if(e.rowKey!==t.rowKey||e.rowIndex!==t.rowIndex||e.ariaRowIndex!==t.ariaRowIndex||e.columns!==t.columns||e.plugins!==t.plugins||e.textOverflow!==t.textOverflow||e.RowComponent!==t.RowComponent||e.CellComponent!==t.CellComponent)return!1;if(e.item===t.item)return!0;let n=e.item,r=t.item,i=Object.keys(r);if(Object.keys(n).length!==i.length)return!1;for(let e of i)if(n[e]!==r[e])return!1;return!0}var OO=(0,y.memo)(EO,DO);function kO({data:e,columns:t,idKey:n,plugins:r,children:i,textOverflow:a=`wrap`,scrollWrapper:o,emptyState:s,rowIndexStart:c,rowCount:l,xstyle:u,className:d,style:f,ref:p,...m}){let h=wu(),g=r??wO,_=c!=null||l!=null,v=c??1,b=_?l??-1:void 0,x=Z,S=Q,C=$,w=CO(g,e=>e.transformColumns,t??(e?HD(e):[])),T=(0,y.useRef)(w);TO(T.current,w)||(T.current=w);let E=T.current,D=PD(E),O=CO(g,e=>e.transformTable,{htmlProps:{},xstyle:i?[SO.table,SO.tableAutoLayout]:[SO.table]}),k=E.map((e,t)=>{let n=e.header??e.key,r={"data-column-key":e.key,scope:`col`};e.align&&(r.style={textAlign:e.align});let i=CO(g,e=>e.transformHeaderCell,{htmlProps:r,xstyle:[],content:n,columnIndex:t,columns:E},e,t,E),a=D.columns.get(e.key)?.style??{},o=i.htmlProps.style,s={...i.htmlProps,style:o?{...a,...o}:a},c=i.content??n,l=typeof c==`string`&&c.length>0?{title:c}:{},{before:u,after:d,overlay:f,below:p}=i,m=u!=null||d!=null||f!=null||p!=null?(0,G.jsxs)(G.Fragment,{children:[u,d==null?c:(0,G.jsxs)(`div`,{className:`x3nfvp2 x6s0dn4 xzye2dw xeuugli`,children:[c,d]}),f,p]}):c;return(0,G.jsx)(C,{...s,...l,contextMenuActions:i.contextMenuActions,xstyle:i.xstyle,children:m},e.key)}),A=CO(g,e=>e.transformHeaderRow,{htmlProps:{},xstyle:[],children:(0,G.jsx)(G.Fragment,{children:k})}),j=e!=null&&e.length>0,M=E.length>0,N={...O.htmlProps.style,...f,...D.tableMinWidth>0?{minWidth:`${D.tableMinWidth}px`}:null},P=(0,G.jsx)(`table`,{ref:p,...b==null?null:{"aria-rowcount":b},...O.htmlProps,...W(U(`table`,void 0,{legacyNames:[`base-table`]}),V(...O.xstyle,u),[O.htmlProps.className,d].filter(Boolean).join(` `)||void 0,N),...m,children:i||(0,G.jsxs)(G.Fragment,{children:[M&&(0,G.jsx)(vO,{children:(0,G.jsx)(x,{...A.htmlProps,isHeaderRow:!0,xstyle:A.xstyle,children:A.children})}),(0,G.jsx)(yO,{children:j?e.map((e,t)=>{let r=n==null?t:typeof n==`function`?n(e):String(e[n]);return(0,G.jsx)(OO,{item:e,rowIndex:t,rowKey:r,columns:E,plugins:g,textOverflow:a,RowComponent:x,CellComponent:S,ariaRowIndex:_?v+t:void 0},r)}):e!=null&&s!==!1&&(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:E.length,children:s??(0,G.jsx)(xO,{title:h(`@astryx.table.noData`),isCompact:!0})})})})]})});if(o){let e=CO(g,e=>e.transformScrollWrapper,{htmlProps:{},xstyle:[]});P=(0,G.jsx)(o,{htmlProps:e.htmlProps,xstyle:e.xstyle,beforeTable:e.beforeTable,afterTable:e.afterTable,children:P})}for(let e=g.length-1;e>=0;e--){let t=g[e];if(t.transformTableContext)try{P=t.transformTableContext(P)}catch(e){Xt(`Table`,`Plugin threw in transformTableContext:`,e)}}return P}var AO=kO;AO.displayName=`BaseTable`,Zt();var jO=[`columnSettings`,`sort`,`tree`,`selection`,`pagination`],MO=new Map(jO.map((e,t)=>[e,t]));function NO(e){let t=jO.length;return e.sort(([e],[n])=>(MO.get(e)??t)-(MO.get(n)??t))}var PO=new Set([`transformColumns`,`transformTable`,`transformHeaderRow`,`transformHeaderCell`,`transformBodyRow`,`transformBodyCell`,`transformScrollWrapper`,`transformTableContext`]);function FO(e,t){let n=Object.keys(t);for(let t of n)PO.has(t)||`${e}${t}${[...PO].join(`, `)}`;for(let r of n)if(PO.has(r)){let n=t[r];n!=null&&typeof n!=`function`&&`${e}${r}`}n.some(e=>PO.has(e)&&typeof t[e]==`function`)||`${e}`}function IO(e,t){let n=(0,y.useRef)(null);if(n.current!=null){let r=n.current;if(r.basePlugins===e&&r.userPlugins===t)return r.result;if(r.basePlugins===e&&LO(r.userPlugins,t))return r.userPlugins=t,r.result}let r=t?NO(Object.entries(t)).map(([,e])=>e):[],i=[...e,...r];if(t)for(let[e,n]of Object.entries(t))FO(e,n);return n.current={basePlugins:e,userPlugins:t,result:i},i}function LO(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}H(),Ay(),hn(),ut(),Au();var RO={base:{kMv6JI:`xjb2p0i`,kMwMTN:`x1tgivj0`,$$css:!0}},zO={base:{kXHlph:`xw2csxc`,kuHK5b:`x5lxg6s`,$$css:!0},containerBleed:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,keoZOQ:`xkibk3`,k1K539:`xlayyun`,$$css:!0}};function BO({children:e,htmlProps:t,xstyle:n,beforeTable:r,afterTable:i}){let a=wu()(`@astryx.table.label`),{getViewportProps:o,getContentProps:s,state:c}=Cy({axis:`inline`,keyboardAccess:{owner:`content`},overscroll:`contain`}),{ref:l,...u}=t??{},d=o({role:`group`,"aria-label":a,...c.inline.isScrollable?{tabIndex:0}:{},...u,ref:l,...W(U(`table-scroll-wrapper`),V(zO.base,zO.containerBleed,...n??[]))});return(0,G.jsx)(`div`,{...d,children:(0,G.jsxs)(`div`,{...s(),children:[r,e,i]})})}function VO(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,RO.base]}}}}function HO({density:e=`balanced`,dividers:t=`rows`,isStriped:n=!1,hasHover:r=!1,verticalAlign:i=`middle`,textOverflow:a=`wrap`,plugins:o,columns:s,data:c,ref:l,...u}){let d=(0,y.useMemo)(()=>VO(),[]),f=IO((0,y.useMemo)(()=>[d],[d]),o),p=(0,y.useMemo)(()=>({density:e,dividers:t,isStriped:n,hasHover:r,verticalAlign:i,textOverflow:a}),[e,t,n,r,i,a]);return(0,G.jsx)(qD,{value:p,children:(0,G.jsx)(AO,{ref:l,data:c,columns:s,plugins:f,textOverflow:a,scrollWrapper:BO,...u})})}var UO=HO;UO.displayName=`Table`;function WO(){let e=!1,t=new Set;return{onBusyChange(n){if(e!==n){e=n;for(let e of t)e()}},subscribe(e){return t.add(e),()=>{t.delete(e)}},getIsBusy:()=>e}}function GO(e){return(0,y.useSyncExternalStore)(e.subscribe,e.getIsBusy,e.getIsBusy)}var KO=(0,y.createContext)(null);KO.displayName=`BusyIndicatorLaneContext`;var qO=KO.Provider;function JO(){return(0,y.use)(KO)}H(),hn(),ut();var YO={container:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`x2lwn1j`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0}};function XO({ref:e,item:t,icon:n,description:r,isDisabled:i=!1,group:a,xstyle:o,className:s,style:c,...l}){return t.element?(0,G.jsx)(G.Fragment,{children:t.element}):(0,G.jsxs)(`div`,{ref:e,...W(U(`typeahead-item`),V(YO.container,i&&YO.disabled,o),s,c),...l,children:[n,(0,G.jsxs)(`div`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,G.jsx)(`span`,{className:`xcr08ib x1kq96og x1sodnla x1tgivj0 xb3r6kr xlyipyv xuxw1ft`,children:t.label}),r&&(0,G.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:r})]})]})}XO.displayName=`TypeaheadItem`,H(),Lv(),Kn(),mn(),Dc(),Ze(),hn(),ut(),Au(),Un();var ZO=qe[`--spacing-4`];`${ZO}`,`${ZO}`;var QO={kzqmXN:`x5lhr3w`,$$css:!0},$O={input:{k1xSpc:`x1lliihq`,kUk6DE:`x98rzlu`,k7Eaqz:`xfvyar9`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kmVPX3:`x1717udv`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},popover:{kB7OPa:`x9f619`,k7Eaqz:`xrzjruh`,ks0D6T:`xbd96yr`,$$css:!0},popoverCustomWidth:e=>[QO,{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}],item:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kaIpWk:`xh6dtrn`,kkrTdU:`x1ypdohk x16khyan`,kI3sdo:`x1a2a7pz`,kWkggS:`xjbqb8w`,k9WMMc:`x1yc453h`,$$css:!0},itemHighlighted:{kWkggS:`x1lmrjuc`,kjBf7l:`x1x84bn5`,k3XXqK:`x815t2r`,kMeerF:`x1xvue0r`,$$css:!0},itemSelected:{k63SB2:`x1e4wzip`,$$css:!0},defaultItem:{k7Eaqz:`xeuugli`,kzqmXN:`xh8yej3`,$$css:!0}},ek={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}};function tk(e,t){let n=_t(e);return n>0&&n<t}var nk=function({searchSource:e,value:t,onChange:n,renderItem:r,placeholder:i,hasEntriesOnFocus:a=!1,maxMenuItems:o=10,menuWidth:s,minQueryLength:c=1,emptySearchResultsText:l,isDisabled:u=!1,isFocusableDisabled:d=!1,hasAutoFocus:f=!1,onChangeQuery:p,onOpenChange:m,__queryEntries:h,inputId:g,ariaDescribedBy:_,ariaLabelledBy:v,inputXStyle:b,inputTabIndex:x,anchorRef:S,onKeyDown:C,debounceMs:w=150,size:T=`md`,xstyle:E,className:D,style:O,onPointerDown:k,onFocus:A,onBlur:j,id:M,"aria-describedby":N,"aria-labelledby":P,tabIndex:F,ref:I,...ee}){let L=wu(),te=i??L(`@astryx.typeahead.searchPlaceholder`),R=l??L(`@astryx.typeahead.emptySearchResults`),ne=(0,y.useId)(),re=g??M??ne,ie=_??N,ae=v??P,oe=x??F,se=(0,y.useId)(),ce=(0,y.useRef)(null),le=(0,y.useRef)(null),ue=Av(),[de,z]=(0,y.useState)(``),[B,fe]=(0,y.useState)([]),[pe,me]=(0,y.useState)(-1),[he,ge]=(0,y.useState)(!1),[_e,ve]=(0,y.useState)(!1),ye=JO(),be=(0,y.useRef)(ye?.onBusyChange);Gn(()=>{be.current=ye?.onBusyChange},[ye]);let xe=(0,y.useRef)(!1),Se=(0,y.useCallback)(e=>{xe.current!==e&&(xe.current=e,ge(e),be.current?.(e))},[]),Ce=(0,y.useRef)(!1),we=(0,y.useRef)(null),Te=(0,y.useRef)(0),Ee=(0,y.useRef)(0),De=(0,y.useRef)(e);De.current!==e&&(De.current.cancel?.(),De.current=e,Te.current++);let Oe=BC({onShow:(0,y.useCallback)(()=>{m?.(!0)},[m]),onHide:(0,y.useCallback)(()=>{m?.(!1),me(-1),e.cancel?.()},[m,e]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),ke=(0,y.useCallback)(()=>{Ce.current?document.addEventListener(`click`,()=>requestAnimationFrame(()=>Oe.show()),{once:!0}):Oe.show()},[Oe]);(0,y.useEffect)(()=>{let e=S?.current??le.current;return e&&Oe.triggerRef(e),()=>{Oe.triggerRef(null)}},[Oe,S]);let Ae=(0,y.useCallback)(async t=>{e.cancel?.();let n=++Te.current;Se(!0),ve(!0);try{let r=await e.search(t);if(Te.current!==n)return;Ee.current=n;let i=r.slice(0,o),a=[...i,...h?.(t,i)??[]];fe(a),me(a.length>0?0:-1),(r.length>0||t.length>0)&&ke(),t.length>0&&ue(a.length===0?R:L(`@astryx.typeahead.resultCount`,{count:a.length}))}catch{if(Te.current!==n)return;fe([]),me(-1)}finally{Te.current===n&&Se(!1)}},[e,o,ke,ue,R,h,Se,L]),je=(0,y.useCallback)((e,t)=>{if(Te.current!==t)return;Ee.current=t;let n=e.slice(0,o),r=n.length>0?0:-1;(B.length!==0||n.length!==0||pe!==-1)&&(fe(n),me(r),e.length>0&&ke())},[pe,o,B.length,ke]),Me=(0,y.useCallback)(async()=>{let t=++Te.current,n;try{n=e.bootstrap()}catch{Te.current===t&&(fe([]),Se(!1));return}if(Array.isArray(n)){Se(!1),je(n,t);return}Se(!0);try{je(await n,t)}catch{Te.current===t&&fe([])}finally{Te.current===t&&Se(!1)}},[e,je,Se]),Ne=(0,y.useCallback)(t=>{if(z(t),p?.(t),we.current&&clearTimeout(we.current),t.length===0&&!a||tk(t,c)){Te.current++,e.cancel?.();let n=h?.(t,[])??[];fe(n),me(n.length>0?0:-1),ve(!1),Se(!1),ue(``),n.length>0?ke():Oe.hide();return}let n=()=>{t.length>0?Ae(t):a&&Me()};w<=0?n():we.current=setTimeout(n,w)},[p,a,c,h,ke,Ae,Me,Oe,w,e,ue,Se]),Pe=(0,y.useCallback)(e=>{Ne(e.target.value)},[Ne]),Fe=(0,y.useCallback)(t=>{Te.current++,we.current&&=(clearTimeout(we.current),null),e.cancel?.(),n(t),z(``),fe([]),ve(!1),Se(!1),Oe.hide(),ce.current?.focus()},[n,Oe,e,Se]),Ie=(0,y.useCallback)(()=>{u||(a&&B.length===0&&de.length===0?Me():B.length>0&&(de.length>0||a)&&Ee.current===Te.current&&ke())},[u,a,B.length,de.length,Me,ke]),Le=(0,y.useCallback)(e=>{if(!Oe.isOpen)return;let t=e.relatedTarget;if(t){let e=S?.current??le.current,n=document.getElementById(Oe.id);if(e?.contains(t)||n?.contains(t))return}Oe.hide()},[Oe,S]),Re=(0,y.useCallback)(e=>{if(C?.(e),!e.defaultPrevented&&!fn(e.nativeEvent)){if(!Oe.isOpen){e.key===`ArrowDown`&&(a||de.length>0)&&(e.preventDefault(),B.length>0?(Oe.show(),me(0)):a&&!tk(de,c)&&Me());return}switch(e.key){case`ArrowDown`:e.preventDefault(),B.length>0&&me(e=>e<B.length-1?e+1:0);break;case`ArrowUp`:e.preventDefault(),B.length>0&&me(e=>e>0?e-1:B.length-1);break;case`Enter`:e.preventDefault(),pe>=0&&pe<B.length&&Fe(B[pe]);break;case`Escape`:e.preventDefault(),Oe.hide();break;case`Tab`:Oe.hide();break;case`Home`:Oe.isOpen&&(e.preventDefault(),B.length>0&&me(0));break;case`End`:Oe.isOpen&&(e.preventDefault(),B.length>0&&me(B.length-1))}}},[Oe,B,pe,Fe,a,de,c,Me,C]),ze=(0,y.useCallback)(e=>`${se}-option-${e}`,[se]),Be=Xx({isOpen:Oe.isOpen,highlightedIndex:pe,setHighlightedIndex:me,getOptionId:ze,itemCount:B.length}),Ve=t==null?null:mt(t.id,()=>B.indexOf(t));return(0,y.useEffect)(()=>()=>{we.current&&clearTimeout(we.current),De.current.cancel?.()},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`input`,{...ee,ref:Vn(I,ce,le),id:re,type:`text`,role:`combobox`,"aria-expanded":Oe.isOpen,"aria-controls":se,"aria-activedescendant":Oe.isOpen&&pe>=0&&pe<B.length?ze(pe):void 0,"aria-autocomplete":`list`,"aria-busy":he||void 0,"aria-describedby":ie,"aria-labelledby":ae,"aria-disabled":d?`true`:void 0,tabIndex:oe,value:de,onChange:Pe,onPointerDown:Tt(()=>{Ce.current=!0,document.addEventListener(`click`,()=>{Ce.current=!1},{once:!0})},k),onFocus:Tt(Ie,A),onBlur:Tt(Le,j),onKeyDown:Re,placeholder:te,disabled:u&&!d,readOnly:d||void 0,autoFocus:f,"data-autofocus":f||void 0,autoComplete:`off`,...W(V($O.input,u&&$O.inputDisabled,b,E),D,O)}),he&&ye==null&&(0,G.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9epnlk`,children:(0,G.jsx)(hg,{size:`sm`,"aria-label":L(`@astryx.typeahead.loading`)})}),Oe.render((0,G.jsx)(`div`,{id:se,role:`listbox`,"aria-label":L(`@astryx.typeahead.searchResults`),...W(U(`typeahead-dropdown`),{className:`x9f619 xuyqlj2 x1odjw0f x9epnlk`}),children:B.length===0&&_e?(0,G.jsx)(`div`,{role:`option`,"aria-disabled":`true`,...W(U(`typeahead-empty-state`),{className:`x1b2ylru x2b8uid x141an7d xv1l7n4`}),children:R}):(()=>{let e=0,t=t=>{let n=e++,i=mt(t.id,n),a=i===Ve;return(0,G.jsxs)(`div`,{id:ze(n),role:`option`,"aria-selected":a,tabIndex:-1,onClick:()=>Fe(t),onMouseEnter:()=>Be(n),...V($O.item,ek[T],n===pe&&$O.itemHighlighted,a&&$O.itemSelected),children:[(0,G.jsx)(`span`,{className:`x78zum5 x98rzlu xeuugli xb3r6kr`,children:r?r(t):(0,G.jsx)(XO,{item:t,xstyle:$O.defaultItem})}),a&&(0,G.jsx)(vc,{icon:`check`,size:`sm`,color:`primary`})]},i)};return Ot(B,{ungroupedFirst:!0}).map(e=>{let n=e.items.map(t);return e.heading==null?n:(0,G.jsxs)(`div`,{role:`group`,"aria-label":e.heading,children:[(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`xf314gf x1xye8es xy143xn x141an7d x1ltkj2j xv1l7n4 x87ps6o`,children:e.heading}),n]},`group-${e.heading}`)})})()}),{placement:`below`,alignment:`start`,offset:qe[`--spacing-1`],xstyle:[$O.popover,s!=null&&$O.popoverCustomWidth(s)]})]})};nk.displayName=`BaseTypeahead`,Xy(),hn(),Un();function rk({ref:e,href:t,isDisabled:n,LinkComponent:r,linkStyleProps:i,labelContent:a,icon:o,endContent:s,removeButton:c,onClick:l,onMouseUp:u,...d}){let f=(0,y.useRef)(null),p=(0,y.useRef)(null),{onClick:m,onMouseUp:h}=Ky({containerRef:f,interactiveRef:p,href:t,disabled:n});return(0,G.jsxs)(`span`,{ref:Vn(e,f),...d,onClick:n?l:Tt(l,m),onMouseUp:n?u:Tt(u,h),children:[o,(0,G.jsx)(r,{ref:p,href:t,"aria-disabled":n||void 0,...i,children:a}),s,c]})}rk.displayName=`TokenLink`,H(),Dc(),hn(),Bc(),ut(),dn(),Au();var ik={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,k8WAf4:`xt970qd`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kaIpWk:`xx3sua9`,kMv6JI:`xjb2p0i`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,k63SB2:`x1e4wzip`,khDVqt:`xuxw1ft`,kybGjl:`x1hl2dhg`,ks0D6T:`x193iq5w`,kVQacm:`xb3r6kr`,$$css:!0},interactive:{kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`x12qzo2w`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kfzvcC:`x47corl`,$$css:!0},removeButton:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kVAEAm:`x1n2onr6`,kmVPX3:`x1717udv`,k71WvV:`xkd40ry`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xjspbzw`,kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kMwMTN:`x1heor9g`,k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`x1xsm0q9`,$$css:!0}},ak={sm:{kZKoxP:`xzydfjl`,kGuDYH:`x141an7d`,kg3NbH:`xf314gf`,$$css:!0},md:{kZKoxP:`xrmxcn7`,kg3NbH:`xf314gf`,$$css:!0},lg:{kZKoxP:`x102lyln`,kg3NbH:`xf314gf`,$$css:!0}},ok={default:{kWkggS:`x17x4s8c`,kMwMTN:`x1tgivj0`,$$css:!0},red:{kWkggS:`x1cibrc5`,kMwMTN:`x1joocv1`,$$css:!0},orange:{kWkggS:`x1e9xt6e`,kMwMTN:`xm47u9q`,$$css:!0},yellow:{kWkggS:`x1bo7t0x`,kMwMTN:`xdhq94a`,$$css:!0},green:{kWkggS:`x1sqjeoo`,kMwMTN:`xltfdvo`,$$css:!0},teal:{kWkggS:`x1jtji5o`,kMwMTN:`x9x0lbs`,$$css:!0},cyan:{kWkggS:`x1rgj867`,kMwMTN:`x1txnczv`,$$css:!0},blue:{kWkggS:`x1o0wnni`,kMwMTN:`x1vvqiwl`,$$css:!0},purple:{kWkggS:`x16i6n6f`,kMwMTN:`x1m9wyeb`,$$css:!0},pink:{kWkggS:`xnpoty2`,kMwMTN:`xiuofww`,$$css:!0},gray:{kWkggS:`xspzpui`,kMwMTN:`xru1t7f`,$$css:!0}};function sk({label:e,size:t=`md`,color:n=`default`,icon:r,isDisabled:i=!1,onRemove:a,onClick:o,href:s,description:c,endContent:l,isLabelHidden:u=!1,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=wu(),v=Mc(),y=zc({href:s,onClick:o,isDisabled:i}),b=o??(y===`button`?()=>{}:null),x=a!=null&&(0,G.jsx)(`button`,{type:`button`,"aria-label":_(`@astryx.token.remove`,{label:e}),onClick:e=>{e.stopPropagation(),a(e)},disabled:i,...un.focusVisible(ik.removeButton),children:(0,G.jsx)(vc,{icon:`close`,size:`xsm`,color:`inherit`})}),S=(0,G.jsxs)(G.Fragment,{children:[r,(0,G.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),l,x]}),C={"data-testid":m,...u?{"aria-label":e}:{},...c==null?{}:{"aria-description":c}};return y===`link`?a==null?(0,G.jsx)(v,{ref:h,href:s,...W(U(`token`,{color:n,size:t}),un.focusVisible(ik.base,ak[t],ok[n],ik.interactive,Vc.backgroundImage,i&&ik.disabled,d),f,p),...g,...i?{"aria-disabled":!0}:{},...C,children:S}):(0,G.jsx)(rk,{ref:h,href:s,isDisabled:i,LinkComponent:v,icon:r,endContent:l,removeButton:x,linkStyleProps:{className:`xmper1u x16khyan xln7xf2 x1heor9g x1a2a7pz xb3r6kr xeuugli`},labelContent:(0,G.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),...W(U(`token`,{color:n,size:t}),un.focusWithin(ik.base,ak[t],ok[n],ik.interactive,Vc.backgroundImage,i&&ik.disabled,d),f,p),...g,...C}):b==null?(0,G.jsx)(`span`,{ref:h,...W(U(`token`,{color:n,size:t}),V(ik.base,ak[t],ok[n],i&&ik.disabled,d),f,p),...g,...C,children:S}):(0,G.jsxs)(`span`,{ref:h,onClick:i?void 0:e=>{e.target.closest(`button, a`)||b(e)},...W(U(`token`,{color:n,size:t}),un.focusWithin(ik.base,ak[t],ok[n],ik.interactive,Vc.backgroundImage,i&&ik.disabled,d),f,p),...g,...C,children:[r,(0,G.jsx)(`button`,{type:`button`,onClick:b,disabled:i,className:`xmper1u x16khyan xln7xf2 x1heor9g x1a2a7pz xb3r6kr xeuugli`,children:(0,G.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e})}),l,x]})}sk.displayName=`Token`;function ck(e,t){(0,y.useEffect)(()=>{document.title=SD(e,t)},[e,t])}var lk=[`starting`,`building`,`deploying`],uk=[`complete`,`failed`,`cancelled`];function dk(e){return uk.includes(e)}function fk({build:e}){let t=Hh(),[n,r]=(0,y.useState)(null),i=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let n=!0,i=0,a=!1,o;r(null);let s=async()=>{if(!a){a=!0;try{let{buildLogs:a}=await t.request(N_(e.id,i),{mode:`network-only`});if(!a)return;let{data:o}=await t.readView(A_,a);if(!n)return;i=Math.max(i,o.lastSeq),r(e=>[...e??[],...o.lines])}catch{}finally{a=!1}}},c=async()=>{await s();try{let{buildStatus:n}=await t.request(P_(e.id),{mode:`network-only`});(n?await t.readView(j_,n):null)?.data.terminal&&(clearInterval(o),await s())}catch{}};return s(),dk(e.status)||(o=setInterval(()=>void c(),2e3)),()=>{n=!1,clearInterval(o)}},[e.id,e.status,t]),(0,y.useEffect)(()=>{let e=i.current;e&&e.scrollHeight-e.scrollTop-e.clientHeight<40&&(e.scrollTop=e.scrollHeight)},[n]),Y(G.Fragment,{children:[J(`h2`,{children:`Build Logs`}),J(`pre`,{ref:i,id:`build-log`,style:`min-height: 120px; max-height: 480px; overflow-y: auto; font-size: 0.78rem`,children:n===null?`Loading logs...`:n.length===0?`No logs yet.`:n.map((e,t)=>Y(`span`,{style:{color:e.stream===`stderr`?`#dc2626`:`inherit`},children:[t>0&&`
62
- `,e.line]},e.seq))})]})}function pk(e){let t=e.replace(` `,`T`);return new Date(/(?:Z|[+-]\d{2}:?\d{2})$/i.test(t)?t:`${t}Z`)}function mk(e){return pk(e).toLocaleDateString(`en-US`,{timeZone:`UTC`,month:`short`,day:`numeric`,year:`numeric`})}function hk(e,t){let n=pk(e);if(isNaN(n.getTime()))return(0,y.createElement)(`span`,{suppressHydrationWarning:!0},e);let r=n.toLocaleString(`en-US`,{timeZone:t||`UTC`,month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}),i=Math.floor((Date.now()-n.getTime())/1e3),a;return a=i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`,(0,y.createElement)(`span`,{suppressHydrationWarning:!0},`${r} (${a})`)}function gk(e){if(e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.floor(Math.log(e)/Math.log(1024)),r=e/1024**n;return`${r%1==0?r:r.toFixed(1)} ${t[n]}`}function _k(e){return e.toLocaleString(`en-US`)}function vk(e,t){return e===0?`Unlimited`:t===`bytes`?gk(e):_k(e)}var yk={success:`#16a34a`,failed:`#dc2626`,pending:`#d97706`,skipped:`#6b7280`};function bk({path:e,platformName:t,username:n}){let{buildDetail:r}=Zh(Y_(e),{mode:`stale-while-revalidate`}),i=Kh(G_,r);if(!i)throw Error(`Build data is unavailable.`);let{build:a,tz:o}=i;return ck(`Build ${i.build.id}`,t),Y(wD,{platformName:t,title:`Build ${a.id}`,username:n,children:[Y(`h1`,{children:[`Build `,a.id]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:a.status})]}),Y(Z,{children:[J($,{children:`Project`}),J(Q,{children:J(`a`,{href:`/admin/projects/${a.project_id}`,children:a.project_id})})]}),Y(Z,{children:[J($,{children:`Executor`}),J(Q,{children:a.executor})]}),Y(Z,{children:[J($,{children:`Instance Type`}),J(Q,{children:a.instance_type??`-`})]}),Y(Z,{children:[J($,{children:`Commit`}),J(Q,{children:a.commit_sha?a.commit_sha.slice(0,7):`-`})]}),Y(Z,{children:[J($,{children:`Branch`}),J(Q,{children:a.branch??`-`})]}),Y(Z,{children:[J($,{children:`Deployment`}),J(Q,{children:a.deployment_id?J(`a`,{href:`/admin/deployments/${a.deployment_id}`,children:a.deployment_id}):`-`})]}),a.error?Y(Z,{children:[J($,{children:`Error`}),J(Q,{children:J(`span`,{style:`color: red; max-width: 600px; display: inline-block; word-break: break-word`,children:a.error})})]}):null,Y(Z,{children:[J($,{children:`Exit Code`}),J(Q,{children:a.exit_code??`-`})]}),Y(Z,{children:[J($,{children:`Started`}),J(Q,{children:a.started_at?hk(a.started_at,o):`-`})]}),Y(Z,{children:[J($,{children:`Completed`}),J(Q,{children:a.completed_at?hk(a.completed_at,o):`-`})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,o)})]})]})}),a.executor===`container`?J(fk,{build:a}):Y(G.Fragment,{children:[J(`h2`,{children:`Build Logs`}),a.logs_url?J(`p`,{children:J(`a`,{href:a.logs_url,target:`_blank`,rel:`noopener noreferrer`,children:`View logs on GitHub ↗`})}):J(`p`,{children:J(`em`,{children:`No external logs available.`})})]})]})}function xk({rows:e,title:t,tz:n}){return Y(G.Fragment,{children:[J($i,{level:2,children:t}),e.length===0?J(`p`,{children:J(`em`,{children:`No deployments found.`})}):Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Version`}),J($,{children:`Deploys`}),J($,{children:`Projects`}),J($,{children:`Users`}),J($,{children:`First Seen`}),J($,{children:`Last Seen`})]})}),J(yO,{children:e.map(e=>Y(Z,{children:[J(Q,{children:e.cli_version??`unknown`}),J(Q,{children:_k(e.deployments)}),J(Q,{children:_k(e.projects)}),J(Q,{children:_k(e.users)}),J(Q,{children:hk(e.first_seen,n)}),J(Q,{children:hk(e.last_seen,n)})]},e.cli_version??`unknown`))})]})]})}function Sk({path:e,platformName:t,username:n}){let{cliVersions:r}=Zh($_(e),{mode:`stale-while-revalidate`}),i=Kh(X_,r);if(!i)throw Error(`CLI version data is unavailable.`);let{allTime:a,last30Days:o,tz:s}=i;return Y(wD,{platformName:t,title:`CLI Versions`,username:n,children:[J($i,{level:1,children:`CLI Versions`}),J(xk,{rows:o,title:`Last 30 Days`,tz:s}),J(xk,{rows:a,title:`All Time`,tz:s})]})}function Ck({text:e,label:t=`Copy`}){let[n,r]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),1500);return()=>clearTimeout(e)},[n]),(0,G.jsx)(Mg,{type:`button`,size:`sm`,label:n?`Copied!`:t,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}function wk(e,t){return e.status===`failed`?`failed`:e.status===`live`?e.id===t?`live`:e.retained?`retained`:`evicted`:e.status}function Tk(e){switch(e){case`live`:return`color: #16a34a; font-weight: 600`;case`retained`:return`color: #16a34a`;case`evicted`:return`color: #888`;case`failed`:case`canceled`:return`color: #dc2626`;case`canceling`:return`color: #ca8a04`;default:return}}function Ek({deployments:e,activeDeploymentId:t,showProject:n,tz:r}){return e.length===0?J(`p`,{children:J(`em`,{children:`No deployments found.`})}):Y(UO,{className:`void-admin-deployments-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`ID`}),n&&J($,{children:`Project`}),J($,{children:`Status`}),J($,{children:`Source`}),J($,{children:`CLI`}),J($,{children:`Commit`}),J($,{children:`Error`}),J($,{children:`Created`})]})}),J(yO,{children:e.map(e=>{let i=wk(e,t??e.active_deployment_id);return Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/deployments/${e.id}`,children:e.id})}),n&&J(Q,{children:e.project_slug?J(`a`,{href:`/admin/projects/${e.project_id}`,children:e.project_slug}):`-`}),J(Q,{children:J(`span`,{style:Tk(i),children:i})}),J(Q,{children:e.source??`-`}),J(Q,{children:e.cli_version??`-`}),J(Q,{children:e.commit?e.commit.slice(0,7):`-`}),J(Q,{children:e.error_message?Y(G.Fragment,{children:[J(`span`,{style:`color: red; max-width: 400px; display: inline-block; word-break: break-word`,children:e.error_message}),J(`br`,{}),J(`span`,{style:`float: right; margin-top: 5px`,children:J(Ck,{text:e.error_message})})]}):`-`}),J(Q,{children:hk(e.created_at,r)})]},e.id)})})]})}function Dk({url:e}){return J(Pu,{as:`a`,className:`void-admin-url`,href:e,isExternalLink:!0,hasUnderline:!0,title:e,children:e.replace(/^https:\/\//,``)})}function Ok({projects:e,siteDomain:t,tz:n}){return Y(G.Fragment,{children:[Y(UO,{className:`void-admin-projects-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Slug`}),J($,{children:`URL`}),J($,{children:`Owner`}),J($,{children:`Type`}),J($,{children:`Created`}),J($,{children:`Last Deploy`})]})}),J(yO,{children:e.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),J(Q,{children:J(Dk,{url:e.url??`https://${e.slug}.${t}`})}),J(Q,{children:e.owner_login?J(`a`,{href:`/admin/users/${e.user_id}`,children:e.owner_login}):`-`}),J(Q,{children:e.type}),J(Q,{children:hk(e.created_at,n)}),J(Q,{children:e.last_deploy?Y(G.Fragment,{children:[J(`span`,{style:`display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:middle;background:${e.last_deploy_status===`failed`?`#dc2626`:`#16a34a`}`}),e.last_deploy_id?J(`a`,{href:`/admin/deployments/${e.last_deploy_id}`,children:hk(e.last_deploy,n)}):hk(e.last_deploy,n)]}):`-`})]},e.id))})]}),e.length===0&&J(`p`,{children:J(`em`,{children:`No projects found.`})})]})}var kk=y.Suspense,Ak=()=>()=>{},jk=()=>!0,Mk=()=>!1;function Nk(e){return new Intl.NumberFormat(`en-US`).format(e)}function Pk(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=-1;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function Fk({checkNames:e}){let t=Hh(),[n,r]=(0,y.useState)(null),[i,a]=(0,y.useState)(`loading`),o=Kh(O_,n);(0,y.useEffect)(()=>{let e=!0,n=t.retain(k_),i=async n=>{try{let{health:i}=await t.request(k_,{mode:n});if(!i)throw Error(`Health data is unavailable.`);e&&(r(i),a(`ready`))}catch{e&&a(`unavailable`)}};i(`stale-while-revalidate`);let o=setInterval(()=>void i(`network-only`),3e4);return()=>{e=!1,clearInterval(o),n.dispose()}},[t]);let s=o?.checks.filter(e=>!e.ok).length??0,c=new Map(o?.checks.map(e=>[e.name,e])),l=i===`loading`?``:i===`unavailable`||!o?`Unable to check system status`:o.allOk?`All health checks passed`:`${s} health check${s===1?``:`s`} failed`;return J(`div`,{id:`health-status`,children:J(Wg,{status:i===`unavailable`?`error`:i===`loading`?`info`:o?.allOk?`success`:`error`,title:`System Status`,description:J(`span`,{id:`health-summary`,className:`void-admin-health-summary`,children:l}),collapsible:!1,children:J(`div`,{id:`health-checks`,className:`void-admin-health-checks`,children:e.map(e=>{let t=i===`ready`?c.get(e):void 0,n=i===`loading`?``:t?t.ok?t.latencyMs>0?`${t.latencyMs}ms`:`Healthy`:t.error??`Health check failed.`:`Unavailable`;return Y(`span`,{className:`void-admin-health-check`,children:[J(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:t?t.ok?`✓`:`✗`:null}),J(`span`,{children:e}),J(`span`,{className:`void-admin-health-detail`,title:n||void 0,children:n})]},e)})})})})}function Ik({topProjects:e,siteDomain:t,tz:n}){let[r]=Xh({items:{node:T_}},e);return J(C_,{children:Y(`div`,{className:`void-admin-top-projects`,children:[J(Lk,{}),r.length>0?Y(UO,{className:`void-admin-top-projects-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`#`}),J($,{children:`Project`}),J($,{children:`Owner`}),J($,{children:`Requests`}),J($,{children:`Bandwidth`}),J($,{children:`Last Seen`})]})}),J(yO,{children:r.map(({node:e},r)=>J(Rk,{projectRef:e,index:r,siteDomain:t,tz:n},e.id))})]}):J(Yi,{type:`supporting`,children:`No recent project traffic in the last hour.`})]})})}function Lk(){return Y(`div`,{className:`void-admin-top-projects-header`,children:[J($i,{level:2,children:`Top 10 Projects`}),J(Yi,{type:`supporting`,children:`Last hour, site traffic only (static / ssr / isr)`})]})}function Rk({projectRef:e,index:t,siteDomain:n,tz:r}){let i=Kh(T_,e);return Y(Z,{children:[J(Q,{children:t+1}),J(Q,{children:Y(`div`,{className:`void-admin-top-project`,children:[Y(`div`,{className:`void-admin-top-project-heading`,children:[J(`a`,{className:`void-admin-top-project-name`,href:`/admin/projects/${i.id}`,title:i.slug,children:i.slug}),J(`span`,{className:`void-admin-top-project-type`,children:i.type})]}),J(`div`,{className:`void-admin-top-project-meta`,children:J(Dk,{url:i.url??`https://${i.slug}.${n}`})})]})}),J(Q,{children:i.owner_login?J(`a`,{href:`/admin/users/${i.user_id}`,children:i.owner_login}):`-`}),J(Q,{children:Nk(i.requests)}),J(Q,{children:Pk(i.bandwidthBytes)}),J(Q,{children:hk(i.lastSeen,r)})]})}function zk({topProjects:e,siteDomain:t,tz:n}){let r=(0,y.useSyncExternalStore)(Ak,jk,Mk),i=J(C_,{children:Y(`div`,{className:`void-admin-top-projects`,children:[J(Lk,{}),J(wn,{width:`100%`,height:48}),J(wn,{width:`100%`,height:48,index:1})]})});return r?J(kk,{fallback:i,children:J(Ik,{topProjects:e,siteDomain:t,tz:n})}):i}function Bk({platformName:e,username:t,healthCheckNames:n}){let{dashboard:r}=Zh(D_,{mode:`stale-while-revalidate`}),i=Kh(E_,r);if(!i)throw Error(`Dashboard data is unavailable.`);return Y(wD,{platformName:e,title:`Dashboard`,username:t,children:[J($i,{level:1,children:`Dashboard`}),J(Fk,{checkNames:n}),Y(`div`,{className:`void-admin-metrics`,children:[J(`a`,{href:`/admin/users`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Users`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.userCount)})]})}),J(`a`,{href:`/admin/projects`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Projects`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.projectCount)})]})}),J(`a`,{href:`/admin/deployments`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Deployments`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.deploymentCount)})]})})]}),J(zk,{topProjects:i.topProjects,siteDomain:i.siteDomain,tz:i.tz}),J($i,{level:2,children:`Latest Projects`}),J(Ok,{projects:i.projects,siteDomain:i.siteDomain,tz:i.tz}),J($i,{level:2,children:`Latest Deployments`}),J(Ek,{deployments:i.deployments,showProject:!0,tz:i.tz})]})}H(),Dc(),hn(),ut(),dn();var Vk={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},Hk={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},Uk={compact:Hk.triggerCompact,balanced:Hk.triggerBalanced,spacious:Hk.triggerSpacious},Wk={compact:Hk.contentCompact,balanced:Hk.contentBalanced,spacious:Hk.contentSpacious};function Gk({trigger:e,children:t,defaultIsOpen:n,isOpen:r,isDisabled:i=!1,onOpenChange:a,chevronPosition:o,value:s,ref:c,xstyle:l,className:u,style:d,...f}){let{isOpen:p,toggle:m}=Fg({isCollapsible:r===void 0?{defaultIsOpen:n??!0,onOpenChange:a}:{isOpen:r,onOpenChange:a},value:s}),h=()=>{i||m()},g=(0,y.use)(Pg),_=g?.hasDividers??!1,v=g?.density??null,b=(o??g?.chevronPosition??`end`)===`start`,x=(0,y.useId)(),S=(0,G.jsx)(vc,{icon:b?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[Vk.chevron,b&&Vk.chevronStart,b?p?Vk.chevronStartOpen:Vk.chevronStartClosed:p?Vk.chevronOpen:Vk.chevronClosed]});return(0,G.jsxs)(`div`,{ref:c,...W(U(`collapsible`,{density:v??void 0}),V(Vk.root,_&&Vk.divided,l),u,d),...f,children:[(0,G.jsxs)(`button`,{type:`button`,onClick:h,"aria-disabled":i||void 0,"aria-expanded":p,"aria-controls":x,tabIndex:i?-1:void 0,...W(U(`collapsible-trigger`,{density:v??void 0}),un.focusVisible(Vk.trigger,v!=null&&Uk[v],!i&&Vc.pressedBackgroundColor,i&&Vk.triggerDisabled)),children:[b&&S,(0,G.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!b&&S]}),(0,G.jsx)(`div`,{id:x,...W(U(`collapsible-content`,{density:v??void 0}),V(Vk.content,v!=null&&Wk[v],!p&&Vk.contentHidden)),children:g==null?t:(0,G.jsx)(Pg,{value:null,children:t})})]})}Gk.displayName=`Collapsible`;function Kk(e,t){let n=t?.keywords;return{search(t){let r=t.toLowerCase().trim();return r===``?e:e.filter(e=>e.label.toLowerCase().includes(r)?!0:n?n(e).some(e=>e.toLowerCase().includes(r)):!1)},bootstrap(){return e}}}H(),Oc(),Dc(),hn(),ut(),Au(),Un();var qk={wrapper:{kVAEAm:`x1n2onr6`,kOIVth:`xzye2dw`,k8WAf4:`x1x7cmac`,kkrTdU:`x1ed109x x16khyan`,$$css:!0},inputHidden:{kSiTet:`xg01cxk`,kfzvcC:`x47corl`,$$css:!0},tokenOverlay:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kLqNvP:`xmt1zuk`,kt4wiu:`xtijo5x`,kzqmXN:`xeq5yr9`,kqGvvJ:`x10im51j`,keTefX:`x1lziwak`,k71WvV:`x11t971q`,$$css:!0}},Jk={sm:{kAzted:`x1gdqauq`,$$css:!0},md:{kAzted:`x1uogy3y`,$$css:!0},lg:{kAzted:`x1xf4nls`,$$css:!0}};function Yk({lane:e,loadingLabel:t,clear:n}){let r=GO(e);return!r&&n==null?null:(0,G.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[r&&(0,G.jsx)(hg,{size:`sm`,"aria-label":t}),n]})}function Xk({ref:e,label:t,isLabelHidden:n=!1,description:r,isRequired:i=!1,isOptional:a=!1,status:o,statusVariant:s=`attached`,startIcon:c,labelTooltip:l,searchSource:u,value:d,onChange:f,renderItem:p,placeholder:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:b=!1,disabledMessage:x,hasClear:S=!0,hasAutoFocus:C,size:w,debounceMs:T,onChangeQuery:E,onOpenChange:D,width:O,xstyle:k,className:A,style:j,"data-testid":M}){let N=wu(),P=bg(w,`md`),F=(0,y.useId)(),I=(0,y.useId)(),ee=(0,y.useId)(),L=(0,y.useId)(),te=cx(),R=(0,y.useRef)(null),ne=(0,y.useRef)(null),re=(0,y.useRef)(null),ie=b&&!!x,ae=Mi({placement:`above`,focusTrigger:`always`,isEnabled:ie}),oe=(0,y.useMemo)(()=>WO(),[]),[se,ce]=(0,y.useState)(!1),[le,ue]=(0,y.useState)(null),de=d!=null&&!se,z=(0,y.useCallback)(()=>{!b&&d&&(ue(d),ce(!0),E?.(d.label),requestAnimationFrame(()=>{let e=ne.current;e&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(e,d.label),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),e.setSelectionRange(0,e.value.length))}))},[b,d,E]),B=(0,y.useCallback)(e=>{R.current?.contains(e.relatedTarget)||le&&se&&(ce(!1),ue(null))},[le,se]),fe=(0,y.useCallback)(e=>{ce(!1),ue(null),f(e),e&&requestAnimationFrame(()=>{let e=re.current;e&&(e.querySelector(`button`)??e).focus()})},[f]),pe=(0,y.useCallback)(()=>{ce(!1),ue(null),f(null),ne.current?.focus()},[f]),me=(0,y.useCallback)(e=>{fn(e.nativeEvent)||e.key===`Escape`&&le&&(e.preventDefault(),ce(!1),ue(null),ne.current?.blur())},[le]),he=(0,y.useCallback)(()=>{b||(de?z():ne.current?.focus())},[b,de,z]),{ariaLabelledBy:ge,ariaDescribedBy:_e}=zt(I,[r?ee:null,o?.message?L:null,ie?ae.describedBy:null],te),ve=Jk[P],ye=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:Vn(R,ae.ref,te?e:void 0),"data-testid":M,onClick:he,onBlur:B,...W(U(`typeahead`,{size:P,status:o?.type}),V($b.base,qk.wrapper,ve,o&&ex[o.type],o&&!b&&tx[o.type],o&&nx[o.type],b&&$b.disabled,te&&lx.inGroup,te&&k),te?A:void 0,te?j:void 0),children:[c&&bc(c,{size:`sm`,color:`secondary`}),te&&(0,G.jsx)(kc,{id:I,children:t}),(0,G.jsx)(qO,{value:oe,children:(0,G.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x6s0dn4 xkh2ocl x98rzlu xeuugli`,children:[de&&(0,G.jsx)(sk,{ref:re,label:d.label,size:P,onClick:z,isDisabled:b,xstyle:qk.tokenOverlay}),(0,G.jsx)(nk,{ref:ne,searchSource:u,value:d,onChange:fe,renderItem:p,placeholder:de?void 0:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:b,hasAutoFocus:C,isFocusableDisabled:ie,inputId:F,ariaDescribedBy:_e,ariaLabelledBy:ge,onChangeQuery:E,onOpenChange:D,debounceMs:T,anchorRef:R,onKeyDown:me,inputXStyle:de?qk.inputHidden:void 0,inputTabIndex:de?-1:void 0,size:P})]})}),(0,G.jsx)(Yk,{lane:oe,loadingLabel:N(`@astryx.typeahead.loading`),clear:S&&d&&!b?(0,G.jsx)(ax,{label:N(`@astryx.typeahead.clearSelection`),onClick:e=>{e.stopPropagation(),pe()}}):null})]}),ie&&ae.renderTooltip(x)]});return te?ye:(0,G.jsx)(Qb,{ref:e,label:t,isLabelHidden:n,description:r,inputID:F,descriptionID:r?ee:void 0,isOptional:a,isRequired:i,isDisabled:b,status:o?{type:o.type,message:o.message,messageID:o.message?L:void 0}:void 0,statusVariant:s,labelTooltip:l,width:O,xstyle:k,className:A,style:j,children:ye})}Xk.displayName=`Typeahead`;function Zk({label:e,onChange:t,suggestions:n,initialValue:r=``,width:i=320}){let a=(0,y.useMemo)(()=>{let e=new Map;for(let t of n){if(!t)continue;let n=typeof t==`string`?{id:t,label:t,auxiliaryData:{keywords:[]}}:{id:t.id,label:t.label,auxiliaryData:{keywords:t.keywords?.filter(e=>!!e)??[],description:t.description}};n.id&&n.label&&e.set(n.id,n)}return[...e.values()]},[n]),o=(0,y.useMemo)(()=>Kk(a,{keywords:e=>e.auxiliaryData?.keywords??[]}),[a]),[s,c]=(0,y.useState)(()=>r?a.find(e=>e.id===r)??{id:r,label:r}:null);return(0,G.jsx)(Xk,{label:e,isLabelHidden:!0,placeholder:e,searchSource:o,value:s,renderItem:e=>(0,G.jsx)(XO,{item:e,description:e.auxiliaryData?.description}),onChange:e=>{c(e),t(e?.id??``)},onChangeQuery:e=>{c(null),t(e)},hasEntriesOnFocus:!0,debounceMs:0,width:i,emptySearchResultsText:`No suggestions. Search for any text.`})}var Qk={error:`#dc2626`,warn:`#d97706`,info:`#6b7280`,log:`#6b7280`,debug:`#9ca3af`};function $k(e){return typeof e==`string`?e.slice(0,500):Array.isArray(e)?e.join(` `).slice(0,500):JSON.stringify(e??null).slice(0,500)}function eA({entry:e}){let t=[...(e.logs??[]).map(e=>({level:e.level??`log`,text:$k(e.message)})),...(e.exceptions??[]).map(e=>({level:`error`,text:`${e.name}: ${e.message}`}))],n=Number.parseInt(e.status??``,10),r=n>=500?`#dc2626`:n>=400?`#d97706`:`#16a34a`;return Y(`div`,{style:`padding: 4px 0; border-bottom: 1px solid #eee; font-size: 0.8rem`,children:[J(`span`,{style:`color: #999; margin-right: 8px`,children:new Date(e.timestamp).toLocaleTimeString()}),e.method&&e.url&&Y(G.Fragment,{children:[J(`span`,{style:`margin-right: 8px; font-weight: 600`,children:e.method}),J(`span`,{style:`margin-right: 8px`,children:e.url})]}),e.status&&J(`span`,{style:{color:r,fontWeight:600,marginRight:8},children:e.status}),J(`span`,{style:{color:e.outcome===`ok`?`#16a34a`:`#dc2626`},children:e.outcome}),t.length>0&&Y(`div`,{style:`position: relative; margin-top: 4px; margin-left: 24px`,children:[J(`div`,{style:`position: absolute; top: 4px; right: 4px`,children:J(Ck,{text:t.map(e=>e.text).join(`
63
- `)})}),J(`pre`,{style:`margin: 0; padding: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius-inner); font-size: 0.78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all`,children:t.map((e,t)=>Y(`div`,{children:[J(`span`,{style:{color:Qk[e.level]??`#6b7280`,fontWeight:600,textTransform:`uppercase`,width:50,display:`inline-block`},children:e.level}),J(`span`,{children:e.text})]},t))})]})]})}function tA({deploymentId:e}){let t=Hh(),[n,r]=(0,y.useState)(`1h`),[i,a]=(0,y.useState)(100),[o,s]=(0,y.useState)(``),[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(null),[f,p]=(0,y.useState)(!1),m=(0,y.useCallback)(async()=>{l(null),d(null);try{let{deploymentLogs:r}=await t.request(F_(e,n,i),{mode:`network-only`});if(!r)throw Error(`Deployment logs are unavailable.`);let{data:a}=await t.readView(M_,r);l(a.data)}catch(e){d(e instanceof Error?e.message:String(e))}},[e,n,i,t]);(0,y.useEffect)(()=>{m()},[m]),(0,y.useEffect)(()=>{if(!f)return;let n=!0,r=new Set,i=async()=>{try{let{deploymentLogs:i}=await t.request(F_(e,`1m`,50),{mode:`network-only`});if(!i)return;let{data:a}=await t.readView(M_,i);if(!n)return;let o=a.data.filter(e=>{let t=`${e.timestamp}:${e.url}:${e.status}`;return!r.has(t)&&(r.add(t),!0)});o.length>0&&l(e=>[...o,...e??[]])}catch{}};i();let a=setInterval(()=>void i(),3e3);return()=>{n=!1,clearInterval(a)}},[e,f,t]);let h=o.toLowerCase().trim(),g=(c??[]).filter(e=>!h||[e.outcome,e.method,e.url,e.status,...(e.logs??[]).map(e=>$k(e.message)),...(e.exceptions??[]).flatMap(e=>[e.name,e.message])].join(` `).toLowerCase().includes(h));return Y(G.Fragment,{children:[J(`h2`,{children:`Runtime Logs`}),Y(`div`,{style:`margin-bottom: 15px; display: flex; gap: 10px; align-items: center`,children:[J(tw,{id:`log-since`,label:`Time`,value:n,onChange:r,options:[`1h`,`6h`,`24h`,`7d`],width:100}),J(Mg,{type:`button`,id:`load-logs-btn`,label:`Load`,onClick:()=>void m()}),J(tw,{id:`log-count`,label:`Count`,value:String(i),onChange:e=>a(Number(e)),options:[100,200,300,400,500].map(String),width:110}),J(Zk,{label:`Filter logs`,onChange:s,suggestions:(c??[]).flatMap(e=>[e.outcome,e.method,e.url,e.status]),width:240}),J(Mg,{type:`button`,id:`live-tail-btn`,"data-base-path":`/admin/deployments/${e}`,style:{marginLeft:`auto`},label:f?`Stop Tail`:`Live Tail`,variant:f?`destructive`:`secondary`,onClick:()=>{f||l([]),p(!f)}})]}),J(`div`,{id:`log-entries`,children:u?Y(`p`,{style:`color: red; font-size: 0.8rem`,children:[`Failed to load logs: `,u]}):f&&g.length===0?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Polling for new events... New logs may take up to 2 minutes to appear.`}):c===null?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Loading logs...`}):g.length===0?Y(`p`,{style:`color: #999; font-size: 0.8rem`,children:[`No logs found`,h?` matching filter`:` for this time range`,`. New logs may take up to 2 minutes to appear.`]}):g.map((e,t)=>J(eA,{entry:e},`${e.timestamp}:${e.url}:${e.status}:${t}`))})]})}function nA({path:e,platformName:t,username:n}){let{deploymentDetail:r}=Zh(J_(e),{mode:`stale-while-revalidate`}),i=Kh(W_,r);if(!i)throw Error(`Deployment data is unavailable.`);let{deployment:a,project:o,canCancel:s,tz:c}=i,l=i.manifest;ck(`Deployment ${i.deployment.id}`,t);let u=wk(a,o?.active_deployment_id),d=u===`live`?{color:`#16a34a`,fontWeight:600}:u===`retained`?{color:`#16a34a`}:u===`evicted`?{color:`#888`}:u===`failed`?{color:`#dc2626`}:void 0;return Y(wD,{platformName:t,title:`Deployment ${a.id}`,username:n,children:[Y(`h1`,{children:[`Deployment `,a.id]}),s&&Y(G.Fragment,{children:[J(`h2`,{children:`Deploy Control`}),J(`form`,{method:`post`,action:`/admin/deployments/${a.id}/cancel`,"data-confirm":`Cancel deployment "${a.id}"?`,"data-deployment":a.id,children:J(Mg,{type:`submit`,label:`Cancel Deploy`,variant:`destructive`})})]}),(a.status===`failed`||a.status===`canceled`)&&a.error_message&&Y(G.Fragment,{children:[J(`h2`,{children:`Error`}),J(`pre`,{children:a.error_message}),J(`p`,{children:J(Ck,{text:a.error_message,label:`Copy error`})})]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id}),J($,{children:`Project`}),J(Q,{children:o?J(`a`,{href:`/admin/projects/${o.id}`,children:o.slug}):a.project_id})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{style:d,children:u}),J($,{children:`Source`}),J(Q,{children:a.source??`-`})]}),Y(Z,{children:[J($,{children:`Commit`}),J(Q,{children:a.commit??`-`}),J($,{children:`Created`}),J(Q,{children:hk(a.created_at,c)})]}),Y(Z,{children:[J($,{children:`Deployed`}),J(Q,{children:a.deployed_at?hk(a.deployed_at,c):`-`}),J($,{children:`Type`}),J(Q,{children:o?.type??`-`})]}),Y(Z,{children:[J($,{children:`CLI Version`}),J(Q,{children:a.cli_version??`-`}),J($,{}),J(Q,{})]}),l&&J(Z,{children:J(Q,{colSpan:4,style:{padding:0},children:J(Gk,{trigger:`Manifest`,children:Y(`div`,{style:`padding: 0 8px 8px`,children:[J(UO,{style:{margin:0},children:Y(yO,{children:[l.bindings&&Object.entries(l.bindings).map(([e,t])=>Array.isArray(t)&&t.length>0?Y(Z,{children:[J($,{children:e.toUpperCase()}),J(Q,{children:t.map((e,t)=>Y(`span`,{children:[t>0&&`, `,J(`code`,{children:e})]},e))})]},e):t===!0?Y(Z,{children:[J($,{children:e.toUpperCase()}),J(Q,{children:`enabled`})]},e):null),l.migrations&&Y(Z,{children:[J($,{children:`Migrations`}),Y(Q,{children:[l.migrations.dialect,` — `,l.migrations.pending,` pending`]})]}),l.schedules&&l.schedules.length>0&&Y(Z,{children:[J($,{children:`Schedules`}),J(Q,{children:l.schedules.map((e,t)=>Y(`span`,{children:[t>0&&`, `,e.name,`: `,e.cron]},e.name))})]})]})}),a.manifest&&J(Gk,{trigger:`Raw JSON`,children:J(`pre`,{style:`margin-top: 8px; font-size: 0.8rem`,children:JSON.stringify(JSON.parse(a.manifest),null,2)})})]})})})})]})}),a.status===`live`&&o&&J(tA,{deploymentId:a.id})]})}function rA({page:e,totalPages:t,baseUrl:n}){return t<=1?J(G.Fragment,{}):Y(`nav`,{"aria-label":`Pagination`,className:`void-admin-pagination`,children:[e>1?J(Mg,{as:`a`,href:`${n}?page=${e-1}`,label:`Previous`,variant:`secondary`}):J(Mg,{label:`Previous`,variant:`secondary`,isDisabled:!0}),Y(`span`,{children:[e,` / `,t]}),e<t?J(Mg,{as:`a`,href:`${n}?page=${e+1}`,label:`Next`,variant:`secondary`}):J(Mg,{label:`Next`,variant:`secondary`,isDisabled:!0})]})}function iA({action:e,label:t,value:n,onChange:r,suggestions:i,initialValue:a,showClear:o}){return(0,G.jsxs)(`form`,{method:`get`,action:e,className:`void-admin-search`,children:[(0,G.jsx)(`input`,{type:`hidden`,name:`search`,value:n}),(0,G.jsx)(Zk,{label:t,onChange:r,suggestions:i,initialValue:a},a??``),(0,G.jsx)(Mg,{type:`submit`,label:`Search`}),o&&(0,G.jsx)(Pu,{href:e,children:`Clear`})]})}function aA({path:e,platformName:t,username:n}){let{deploymentsPage:r}=Zh(V_(e),{mode:`stale-while-revalidate`}),i=Kh(R_,r);if(!i)throw Error(`Deployments page data is unavailable.`);let{deployments:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,y.useState)(o??``);(0,y.useEffect)(()=>d(o??``),[o]);let f=a.filter(e=>[e.id,e.project_slug,e.status,e.source,e.cli_version,e.commit,e.error_message].some(e=>e?.toLowerCase().includes(u.toLowerCase()))),p=(0,y.useMemo)(()=>a.map(e=>({id:e.id,label:e.id,keywords:[e.project_slug,e.status,e.source,e.cli_version,e.commit,e.error_message],description:[e.project_slug,e.status].filter(Boolean).join(` · `)})),[a]);return Y(wD,{platformName:t,title:`Deployments`,username:n,children:[J(`h1`,{children:`Deployments`}),J(iA,{action:`/admin/deployments`,label:`Search deployments`,value:u,onChange:d,suggestions:p,initialValue:o,showClear:!!o}),J(Ek,{deployments:f,showProject:!0,tz:l}),s!=null&&c!=null&&J(rA,{page:s,totalPages:c,baseUrl:`/admin/deployments`})]})}function oA({label:e,status:t,error:n,operationId:r,projectId:i,platformName:a,username:o}){return Y(wD,{platformName:a,title:e,username:o,children:[Y(`h1`,{children:[e,` `,t]}),J(`p`,{children:n??`The operation has not completed. Check its status before retrying.`}),Y(`p`,{children:[`Operation ID: `,J(`code`,{children:r??`unavailable`})]}),J(`a`,{href:`/admin/email/${i}`,children:`Back to email settings`})]})}var sA=`font-size: 0.8rem; color: #666`;function cA(e){return e===`ready`||e===`healthy`?yk.success:e===`pending`||e===`verified_only`||e===`probe_failed`?yk.pending:yk.failed}function lA({path:e,platformName:t,username:n}){let{emailProject:r}=Zh(dv(e),{mode:`stale-while-revalidate`}),i=Kh(lv,r);if(!i)throw Error(`Project email data is unavailable.`);let{projectId:a,project:o,month:s,attempts:c,received:l,monthlyLimit:u,burstLimit:d,isSuspended:f,domains:p,destinations:m,senderDomain:h,tz:g}=i;return ck(`Email - ${i.project.slug}`,t),Y(wD,{platformName:t,title:`Email - ${o.slug}`,username:n,children:[Y(`h1`,{children:[`Email — `,J(`a`,{href:`/admin/projects/${a}`,children:o.slug})]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Project ID`}),J(Q,{children:a})]}),Y(Z,{children:[J($,{children:`Sender`}),J(Q,{children:h?J(`code`,{children:`${o.slug}+noreply@${h}`}):J(`em`,{children:`EMAIL_SENDER_DOMAIN is not configured for this environment`})})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:f?J(`strong`,{style:`color: red`,children:`SUSPENDED`}):J(`span`,{style:`color: #16a34a`,children:`active`})})]})]})}),Y(`h2`,{children:[`Usage (`,s,`)`]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Outbound recipient attempts`}),Y(Q,{children:[c,` / `,u??200,` `,Y(`span`,{style:sA,children:[`(`,u===void 0?`default`:`override`,`)`]})]})]}),Y(Z,{children:[J($,{children:`Inbound (received)`}),J(Q,{children:l})]}),Y(Z,{children:[J($,{children:`Burst cap`}),Y(Q,{children:[d??10,` / minute`,` `,Y(`span`,{style:sA,children:[`(`,d===void 0?`default`:`override`,`)`]})]})]})]})}),J(`p`,{style:sA,children:`Recipient submission attempts and inbound receipts are recorded in the platform database.`}),J(`h2`,{children:`Controls`}),Y(`form`,{method:`post`,action:`/admin/email/${a}/suspend`,children:[J(`input`,{type:`hidden`,name:`state`,value:f?`active`:`suspended`}),J(Mg,{type:`submit`,label:f?`Unsuspend email`:`Suspend email`,variant:f?`secondary`:`destructive`}),` `,J(`span`,{style:sA,children:`Suspending stops new outbound attempts and rejects new inbound messages with a permanent SMTP error. Outbound submissions that already started may still finish. There is no per-direction switch.`})]}),Y(`form`,{method:`post`,action:`/admin/email/${a}/limit`,style:`margin-top: 12px`,children:[J(fw,{label:`Monthly limit`,name:`limit`,width:200}),J(Mg,{type:`submit`,label:`Set monthly limit`}),` `,J(`span`,{style:sA,children:`Submit blank to drop the override back to the platform default.`})]}),Y(`form`,{method:`post`,action:`/admin/email/${a}/burst-limit`,style:`margin-top: 12px`,children:[J(fw,{label:`Burst limit`,name:`burstLimit`,width:200}),J(Mg,{type:`submit`,label:`Set burst limit`}),` `,J(`span`,{style:sA,children:`Per-minute cap. Submit blank to drop the override.`})]}),Y(`h2`,{children:[`Verified destinations (`,m.length,`)`]}),Y(`p`,{style:sA,children:[`Recipient addresses this project is allowed to send to. A `,J(`code`,{children:`pending`}),` row is waiting on the recipient clicking their verification link. Removing a row revokes it for this project only; the Cloudflare account-level address is deleted just when no other project still references it.`]}),m.length===0?J(`p`,{children:J(`em`,{children:`No destinations yet.`})}):Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Address`}),J($,{children:`Status`}),J($,{children:`Source`}),J($,{children:`Verified`}),J($,{})]})}),J(yO,{children:m.map(e=>Y(Z,{children:[J(Q,{children:e.address}),J(Q,{children:e.status===`verified`?J(`span`,{style:`color: #16a34a`,children:`verified`}):J(`span`,{style:`color: #d97706`,children:`pending`})}),J(Q,{children:e.verification_source}),J(Q,{children:e.verified_at?hk(e.verified_at,g):`-`}),J(Q,{children:J(`form`,{method:`post`,action:`/admin/email/${a}/destinations/${e.id}/delete`,"data-confirm":`Remove "${e.address}" from this project?`,"data-address":e.address,children:J(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),Y(`p`,{style:sA,children:[`Destinations are added by the project owner through`,` `,J(`code`,{children:`POST /projects/:id/email/destinations`}),`, which emails the recipient for consent. There is deliberately no operator-side "add" here: an admin cannot consent on a recipient's behalf.`]}),Y(`h2`,{children:[`Custom domains (`,p.length,`)`]}),J(`p`,{style:sA,children:`Exact sender and recipient domains on a Cloudflare zone. One connection owns the ingress Worker and catch-all; removing an assignment keeps shared resources while sibling domains use them. The platform stores connection credentials and never shows them here.`}),Y(`form`,{method:`post`,action:`/admin/email/${a}/domains/add`,style:`margin-bottom: 12px; display: flex; gap: 8px; align-items: center`,children:[J(cw,{label:`Domain`,name:`domain`,placeholder:`mail.example.com`,autoComplete:`off`,required:!0,width:240}),J(cw,{label:`API token`,name:`token`,type:`password`,placeholder:`Blank = platform credential`,autoComplete:`off`,width:300}),J(Mg,{type:`submit`,label:`Add domain`})]}),p.length===0?J(`p`,{children:J(`em`,{children:`No custom domains.`})}):Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Domain`}),J($,{children:`Inbound`}),J($,{children:`Outbound`}),J($,{children:`Management`}),J($,{children:`Managed by`}),J($,{children:`Ingress worker`}),J($,{children:`v`}),J($,{children:`Latest operation`}),J($,{})]})}),J(yO,{children:p.map(e=>Y(Z,{children:[J(Q,{children:e.domain}),Y(Q,{children:[J(`span`,{style:`color: ${cA(e.inbound)}`,children:e.inbound}),e.inboundReason&&Y(`small`,{children:[` — `,e.inboundReason]})]}),Y(Q,{children:[J(`span`,{style:`color: ${cA(e.outbound)}`,children:e.outbound}),e.outboundReason&&Y(`small`,{children:[` — `,e.outboundReason]})]}),Y(Q,{children:[J(`span`,{style:`color: ${cA(e.management)}`,children:e.management}),e.managementReason&&Y(`small`,{children:[` — `,e.managementReason]})]}),J(Q,{children:e.managed_by}),J(Q,{children:e.relay_worker_name??`-`}),J(Q,{children:e.relay_version??`-`}),J(Q,{children:e.operation?Y(G.Fragment,{children:[J(`code`,{children:e.operation.id}),` (`,e.operation.status,`)`]}):`-`}),Y(Q,{children:[J(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/rotate-secret`,children:J(Mg,{type:`submit`,label:`Rotate secret`,size:`sm`})}),Y(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/revoke`,"data-confirm":`Remove "${e.domain}"? This disables its exact assignment. Shared ingress stays while another domain uses it.`,"data-domain":e.domain,children:[J(cw,{label:`Confirm project slug`,name:`confirm`,placeholder:o.slug,autoComplete:`off`,required:!0,width:190}),` `,J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})]})}Oc(),hn(),ut();var uA=(0,y.createContext)(null);uA.displayName=`RadioListContext`;function dA({ref:e,label:t,isLabelHidden:n=!1,description:r,value:i,onChange:a,orientation:o=`vertical`,isDisabled:s=!1,disabledMessage:c,isRequired:l=!1,isOptional:u=!1,size:d=`md`,status:f,labelTooltip:p,width:m,xstyle:h,className:g,style:_,"data-testid":v,htmlName:b,children:x}){let S=(0,y.useId)(),C=b??S,w=(0,y.useId)(),T=(0,y.useId)(),E=(0,y.useId)(),D=(0,y.useId)(),O=(0,y.useRef)(null),k=Db({isRequired:l,isOptional:u}),A=s&&!!c,j=Mi({placement:`above`,focusTrigger:`always`,isEnabled:A}),M=(0,y.useMemo)(()=>({name:C,value:i,onChange:a,isDisabled:s,hasDisabledMessage:A,isRequired:l,size:d,status:f}),[C,i,a,s,A,l,d,f]),N=(0,y.useCallback)(e=>{if(i!==``)return;let t=O.current;if(!t)return;let n=e.relatedTarget;if(n){if(t.contains(n))return}else if(document.activeElement&&document.activeElement!==e.target&&t.contains(document.activeElement))return;let r=Array.from(t.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let a=e.target,o=r.findIndex(e=>e===a);if(o===-1)return;let s=o===r.length-1?r[r.length-1]:r[0];a!==s&&s.focus()},[i]);return(0,G.jsxs)(Qb,{ref:e,"data-testid":v,label:t,isLabelHidden:n,description:r,inputID:w,labelID:T,isGroupLabel:!0,descriptionID:r?E:void 0,isOptional:u,isRequired:l,isDisabled:s,status:f?{type:f.type,message:f.message,messageID:f.message?D:void 0}:void 0,labelTooltip:p,statusVariant:`detached`,width:m,xstyle:h,className:g,style:_,children:[(0,G.jsx)(`div`,{ref:e=>{O.current=e,j.ref(e)},role:`radiogroup`,"aria-labelledby":T,onFocus:N,"aria-describedby":[r?E:null,f?.message?D:null,A?j.describedBy:null].filter(Boolean).join(` `)||void 0,"aria-invalid":f?.type===`error`||void 0,"aria-required":k||void 0,...W(U(`radio-list`,{orientation:o,size:d}),{0:{className:`x78zum5 x1q0g3np x9mgr7n`},1:{className:`x78zum5 xdt5ytf x1txdalj`}}[(o===`vertical`)<<0]),children:(0,G.jsx)(uA,{value:M,children:x})}),A&&j.renderTooltip(c)]})}dA.displayName=`RadioList`,H(),hn(),_b(),ut();var fA={radioWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xq94oqs`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 x2kv6q6`,$$css:!0},input:{kVAEAm:`x10l6tqk`,k87sOh:`xwa60dl`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kSiTet:`xg01cxk`,kkrTdU:`x1ypdohk x16khyan`,kY2c9j:`x1vjfegm`,$$css:!0},inputCoarse:{kjFi6P:`xkagaj0`,kHzOjL:`x80b3aj`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0}},pA={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},mA={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,k7Eaqz:`xeuugli`,kWkggS:`xjbqb8w`,$$css:!0}};function hA({ref:e,label:t,"aria-label":n,value:r,description:i,isDisabled:a=!1,startContent:o,endContent:s,xstyle:c,className:l,style:u,onClick:d,...f}){let p=(0,y.use)(uA);if(!p)throw Error(`RadioListItem must be used within an RadioList`);let m=(0,y.useId)(),h=(0,y.useId)(),g=(0,y.useId)(),_=p.isDisabled||a,v=p.hasDisabledMessage&&!a,b=p.value===r,x=It(i),S=p.size,C=Wb(`radio`),w=(0,y.useRef)(null),{focusProps:T}=hb(w,_),E=(0,y.useRef)(null),D=(0,G.jsxs)(`div`,{...V(fA.radioWrapper,pA[S],!_&&fA.indicatorPressOverlay),...T,children:[(0,G.jsx)(`input`,{ref:E,id:m,type:`radio`,name:p.name,value:r,checked:b,disabled:_&&!v,"aria-disabled":v?`true`:void 0,form:v?``:void 0,required:p.isRequired,onChange:()=>{_||p.onChange(r)},onClick:d,"aria-label":n,"aria-labelledby":n==null?h:void 0,"aria-describedby":x?g:void 0,...V(fA.input,$t.centerInline(`-50%`),fA.inputCoarse,pA[S],_&&fA.inputDisabled)}),(0,G.jsx)(`span`,{ref:w,className:`xjp7ctv`,children:(0,G.jsx)(C,{state:b?`checked`:`unchecked`,size:S,isDisabled:_})})]}),O=It(o)?(0,G.jsxs)(G.Fragment,{children:[D,o]}):D;return(0,G.jsx)(oS,{ref:e,startContent:O,interactiveRef:E,isDisabled:_,label:(0,G.jsx)(`span`,{id:h,children:t}),description:x?(0,G.jsx)(`span`,{id:g,children:i}):void 0,endContent:s,xstyle:[!_&&Eb,mA.root,c],...W(U(`radio-list-item`,{size:S,selected:b?`selected`:null,disabled:_?`disabled`:null}),{className:l,style:u}),...f})}hA.displayName=`RadioListItem`;var gA=`font-size: 0.8rem; color: #666`,_A=`https://void.cloud/guide/platform/installation/credentials#enable-email`;function vA({path:e,platformName:t,username:n,emailEnabled:r}){return r===!1?Y(wD,{platformName:t,title:`Email`,username:n,children:[J(`h1`,{children:`Email`}),Y(`div`,{className:`void-admin-email-disabled-content`,children:[J(`p`,{children:`Email is not enabled on this platform.`}),J(`p`,{children:`Set up a shared sender domain and Cloudflare zone, then upgrade the platform.`}),J(Mg,{as:`a`,href:_A,label:`How to enable email`,variant:`secondary`})]})]}):J(yA,{path:e,platformName:t,username:n})}function yA({path:e,platformName:t,username:n}){let{emailSettings:r}=Zh(uv(e),{mode:`stale-while-revalidate`}),i=Kh(cv,r);if(!i)throw Error(`Email settings are unavailable.`);let{policy:a,management:o,senderDomain:s}=i,[c,l]=(0,y.useState)(a.mode),[u,d]=(0,y.useState)(o);return Y(wD,{platformName:t,title:`Email`,username:n,children:[J(`h1`,{children:`Email`}),J(`p`,{style:gA,children:`Installation-wide settings. Per-project usage, caps and domains live on each project's email page (Projects → project → Email).`}),J(`h2`,{children:`Recipient policy`}),Y(`p`,{children:[`Who mail from the shared sender`,s?Y(G.Fragment,{children:[` `,`(`,J(`code`,{children:`<slug>+tag@${s}`}),`)`]}):null,` `,`may reach. Custom-domain sends are not affected.`]}),Y(`form`,{method:`post`,action:`/admin/email/policy`,style:`margin-bottom: 8px`,children:[Y(dA,{label:`Recipient policy`,isLabelHidden:!0,htmlName:`mode`,value:c,onChange:e=>l(e),children:[J(hA,{value:`verified`,label:`verified`,description:`Only each project's verified destinations (default)`}),J(hA,{value:`domains`,label:`domains`,description:`Verified destinations, plus any address on these domains. Addresses on the platform's own mail domain stay verified-destination-only.`}),J(hA,{value:`any`,label:`any`,description:`Every recipient; addresses on the platform's own mail domain stay verified-destination-only, so no project reaches another project's inbox without its consent.`})]}),J(lw,{label:`Allowed domains`,name:`domains`,initialValue:a.domains.join(`
64
- `),rows:3,width:360,placeholder:`example.com, corp.example.net`}),J(Mg,{type:`submit`,label:`Save policy`})]}),Y(`p`,{style:gA,children:[`With `,J(`code`,{children:`domains`}),` or `,J(`code`,{children:`any`}),`, Cloudflare still refuses a destination it has not verified unless the platform mail domain is onboarded for Email Sending (Workers Paid). Those refusals arrive as per-recipient `,J(`code`,{children:`UNVERIFIED_DESTINATION`}),` results.`]}),J(`h2`,{children:`Domain management`}),J(`p`,{children:`Who registers custom email domains for projects.`}),Y(`form`,{method:`post`,action:`/admin/email/settings`,children:[Y(dA,{label:`Domain management`,isLabelHidden:!0,htmlName:`domains`,value:u,onChange:e=>d(e),children:[J(hA,{value:`self-serve`,label:`self-serve`,description:`Project owners grant a Cloudflare credential from void email domain add.`}),J(hA,{value:`admin`,label:`admin`,description:`Administrators add domains; void email domain add prints the administrator's command instead.`})]}),J(Mg,{type:`submit`,label:`Save`})]})]})}function bA({status:e}){return J(AD,{label:e,variant:e===`pending`?`warning`:e===`revoked`?`error`:`neutral`})}function xA({path:e,platformName:t,username:n}){let{invitations:r}=Zh(tv(e),{mode:`stale-while-revalidate`}),i=Kh(Q_,r);if(!i)throw Error(`Invitations are unavailable.`);let{invitations:a,page:o,totalPages:s,tz:c}=i;return Y(wD,{platformName:t,title:`Invitations`,username:n,children:[J($i,{level:1,children:`Invitations`}),Y(`form`,{method:`post`,action:`/admin/invitations/send`,style:`margin-bottom: 20px; display: flex; gap: 8px; align-items: flex-start`,children:[J(lw,{label:`Email addresses`,name:`email`,placeholder:`user@example.com, teammate@example.com`,required:!0,rows:3,width:360}),J(Mg,{type:`submit`,label:`Send Invites`})]}),Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Email`}),J($,{children:`Status`}),J($,{children:`Invited By`}),J($,{children:`Sent`}),J($,{children:`Accepted At`}),J($,{children:`Revoked`}),J($,{children:`Actions`})]})}),J(yO,{children:a.map(e=>Y(Z,{children:[J(Q,{children:e.email}),J(Q,{children:J(bA,{status:e.status})}),J(Q,{children:e.invited_by_login??e.invited_by}),J(Q,{children:e.created_at?hk(e.created_at,c):`-`}),J(Q,{children:e.accepted_at?hk(e.accepted_at,c):`-`}),J(Q,{children:e.revoked_at?Y(G.Fragment,{children:[hk(e.revoked_at,c),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`-`}),J(Q,{children:e.status===`pending`&&Y(`form`,{method:`post`,action:`/admin/invitations/revoke`,style:`display:inline`,children:[J(`input`,{type:`hidden`,name:`id`,value:e.id}),J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})})]},e.id))})]}),a.length===0&&J(`p`,{children:J(`em`,{children:`No invitations yet.`})}),J(rA,{page:o,totalPages:s,baseUrl:`/admin/invitations`})]})}function SA({message:e}){return J(`main`,{className:`void-admin-auth`,children:J(Wg,{status:`error`,title:`Login failed`,description:e})})}var CA={queued:`○ queued`,starting:`● starting`,building:`● building`,deploying:`● deploying`,complete:`✓ complete`,failed:`✗ failed`,cancelled:`⊘ cancelled`};function wA(e){return lk.includes(e)}function TA(e){switch(e){case`complete`:return`color: #16a34a; font-weight: 600`;case`failed`:case`cancelled`:return`color: #dc2626`;case`starting`:case`building`:case`deploying`:return`color: #ca8a04; font-weight: 600`;default:return}}function EA(e){if(!e.started_at)return`-`;let t=new Date(e.started_at.endsWith(`Z`)?e.started_at:e.started_at+`Z`).getTime(),n=e.completed_at?new Date(e.completed_at.endsWith(`Z`)?e.completed_at:e.completed_at+`Z`).getTime():Date.now();if(isNaN(t)||isNaN(n)||n<t)return`-`;let r=Math.floor((n-t)/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function DA({builds:e,tz:t}){return e.length===0?J(`p`,{children:J(`em`,{children:`No builds.`})}):Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`ID`}),J($,{children:`Status`}),J($,{children:`Executor`}),J($,{children:`Instance`}),J($,{children:`Commit`}),J($,{children:`Branch`}),J($,{children:`Started`}),J($,{children:`Duration`})]})}),J(yO,{children:e.map(e=>Y(Z,{className:wA(e.status)?`build-active`:void 0,children:[J(Q,{children:J(`a`,{href:`/admin/builds/${e.id}`,children:e.id})}),J(Q,{children:J(`span`,{style:TA(e.status),children:CA[e.status]??e.status})}),J(Q,{children:e.executor}),J(Q,{children:e.instance_type??`-`}),J(Q,{children:e.commit_sha?e.commit_sha.slice(0,7):`-`}),J(Q,{children:e.branch??`-`}),J(Q,{children:e.started_at?hk(e.started_at,t):`-`}),J(Q,{children:J(`span`,{suppressHydrationWarning:!0,children:EA(e)})})]},e.id))})]})}var OA=new Set;function kA({label:e,selected:t,onChange:n,excludedUserIds:r=OA}){let i=Hh(),a=(0,y.useMemo)(()=>({bootstrap:()=>[],search:async e=>{let{usersPage:t}=await i.request(z_(`/admin/users?search=${encodeURIComponent(e)}`),{mode:`network-only`});if(!t)return[];let{data:n}=await i.readView(I_,t);return n.users.filter(e=>!r.has(e.id)).map(e=>({id:e.id,label:e.login,auxiliaryData:{email:e.email}}))}}),[i,r]);return(0,G.jsx)(Xk,{label:e,placeholder:`Search by login, email, or ID`,searchSource:a,value:t,onChange:n,onChangeQuery:()=>n(null),renderItem:e=>(0,G.jsx)(XO,{item:e,description:[e.auxiliaryData?.email,e.id].filter(Boolean).join(` · `)}),minQueryLength:2,width:`min(100%, 320px)`,emptySearchResultsText:`No eligible users found.`})}function AA({projectId:e}){let[t,n]=(0,y.useState)(null);return(0,G.jsxs)(`section`,{id:`owner-transfer`,className:`void-admin-owner-transfer`,children:[(0,G.jsx)(`h2`,{children:`Transfer Ownership`}),(0,G.jsx)(`p`,{children:`Transfer this project to an existing Void Platform user. You will review the ownership, plan, suspension, active-work, routing, and usage-counter changes before applying them.`}),(0,G.jsxs)(`form`,{className:`void-admin-owner-transfer-form`,method:`post`,action:`/admin/projects/${e}/owner/preview`,children:[(0,G.jsx)(kA,{label:`New owner`,selected:t,onChange:n}),(0,G.jsx)(`input`,{type:`hidden`,name:`userId`,value:t?.id??``}),(0,G.jsx)(Mg,{type:`submit`,label:`Preview Transfer`,isDisabled:!t})]})]})}var jA=[{value:`reader`,label:`Reader`},{value:`collaborator`,label:`Collaborator`},{value:`admin`,label:`Admin`}];function MA({projectId:e,owner:t,members:n,invitations:r,tz:i}){let[a,o]=(0,y.useState)(null),s=(0,y.useMemo)(()=>new Set([...t?[t.id]:[],...n.map(({user:e})=>e.id)]),[t,n]);return(0,G.jsxs)(`section`,{id:`team`,className:`void-admin-project-team`,children:[(0,G.jsxs)(`h2`,{children:[`Team members (`,n.length+1,`)`]}),(0,G.jsx)(`p`,{children:`Add an existing platform user to this project with the selected role.`}),(0,G.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,G.jsxs)(UO,{children:[(0,G.jsx)(vO,{children:(0,G.jsxs)(Z,{children:[(0,G.jsx)($,{children:`User`}),(0,G.jsx)($,{children:`Role`}),(0,G.jsx)($,{children:`Joined`}),(0,G.jsx)($,{children:`Actions`})]})}),(0,G.jsxs)(yO,{children:[(0,G.jsxs)(Z,{children:[(0,G.jsx)(Q,{children:t?(0,G.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}):`Owner account unavailable`}),(0,G.jsx)(Q,{children:`Owner`}),(0,G.jsx)(Q,{children:`—`}),(0,G.jsx)(Q,{children:(0,G.jsx)(`a`,{href:`#owner-transfer`,children:`Transfer ownership to change the owner`})})]}),n.map(({user:t,role:n,createdAt:r})=>(0,G.jsxs)(Z,{children:[(0,G.jsxs)(Q,{children:[(0,G.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}),t.email&&(0,G.jsx)(`span`,{className:`void-admin-team-email`,children:t.email})]}),(0,G.jsx)(Q,{children:n}),(0,G.jsx)(Q,{children:hk(r,i)}),(0,G.jsx)(Q,{children:(0,G.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,G.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/role`,children:[(0,G.jsx)(uw,{label:`Role for ${t.login}`,name:`role`,options:jA,initialValue:n,width:160}),(0,G.jsx)(Mg,{type:`submit`,label:`Save role`,size:`sm`})]}),(0,G.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/remove`,"data-confirm":`Remove ${t.login} from this project?`,children:(0,G.jsx)(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})]})})]},t.id))]})]})}),(0,G.jsx)(`h3`,{children:`Add team member`}),(0,G.jsxs)(`form`,{className:`void-admin-team-add`,method:`post`,action:`/admin/projects/${e}/team/add`,children:[(0,G.jsx)(kA,{label:`Search registered users`,selected:a,onChange:o,excludedUserIds:s}),(0,G.jsx)(`input`,{type:`hidden`,name:`userId`,value:a?.id??``}),(0,G.jsx)(uw,{label:`Project role`,name:`role`,options:jA,initialValue:`reader`,width:180}),(0,G.jsx)(Mg,{type:`submit`,label:`Add member`,isDisabled:!a})]}),r.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`h3`,{children:[`Pending invitations (`,r.length,`)`]}),(0,G.jsxs)(`p`,{children:[`If email delivery is unavailable, share the invitation ID and ask the user to run`,` `,(0,G.jsx)(`code`,{children:`void project team accept <invitation-id>`}),`.`]}),(0,G.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,G.jsxs)(UO,{children:[(0,G.jsx)(vO,{children:(0,G.jsxs)(Z,{children:[(0,G.jsx)($,{children:`Email`}),(0,G.jsx)($,{children:`Role`}),(0,G.jsx)($,{children:`Invitation ID`}),(0,G.jsx)($,{children:`Expires`}),(0,G.jsx)($,{children:`Action`})]})}),(0,G.jsx)(yO,{children:r.map(t=>(0,G.jsxs)(Z,{children:[(0,G.jsx)(Q,{children:t.email}),(0,G.jsx)(Q,{children:t.role}),(0,G.jsx)(Q,{children:(0,G.jsx)(`code`,{children:t.id})}),(0,G.jsx)(Q,{children:hk(t.expiresAt,i)}),(0,G.jsx)(Q,{children:(0,G.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/invitations/${t.id}/revoke`,"data-confirm":`Revoke the invitation for ${t.email}?`,children:(0,G.jsx)(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})})})]},t.id))})]})})]})]})}function NA({path:e,platformName:t,username:n}){let{projectDetail:r}=Zh(q_(e),{mode:`stale-while-revalidate`}),i=Kh(U_,r);if(!i)throw Error(`Project data is unavailable.`);let{project:a,deployments:o,resources:s,owner:c,teamMembers:l,pendingTeamInvitations:u,domains:d,builds:f,cfAccountId:p,deployUrl:m,tz:h}=i;return ck(i.project.slug,t),Y(wD,{platformName:t,title:a.slug,username:n,children:[J(`h1`,{children:a.slug}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id})]}),Y(Z,{children:[J($,{children:`Slug`}),J(Q,{children:a.slug})]}),Y(Z,{children:[J($,{children:`URL`}),J(Q,{children:J(`a`,{href:m,target:`_blank`,rel:`noopener noreferrer`,children:m})})]}),Y(Z,{children:[J($,{children:`Custom Domain`}),J(Q,{children:d.length>0?d.map(e=>Y(`span`,{children:[J(`a`,{href:`https://${e.hostname}`,target:`_blank`,rel:`noopener noreferrer`,children:e.hostname}),` `,`(`,e.status,`)`,` `]},e.id)):J(G.Fragment,{children:`None`})})]}),Y(Z,{children:[J($,{children:`Owner`}),J(Q,{children:c?J(`a`,{href:`/admin/users/${c.id}`,children:c.login}):a.user_id})]}),Y(Z,{children:[J($,{children:`Type`}),J(Q,{children:a.type})]}),Y(Z,{children:[J($,{children:`Email`}),J(Q,{children:J(`a`,{href:`/admin/email/${a.id}`,children:`usage, limits, destinations`})})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,h)})]})]})}),Y(`h2`,{children:[`Resources (`,s.length,`)`]}),s.length>0?Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Type`}),J($,{children:`Binding`}),J($,{children:`CF ID`})]})}),J(yO,{children:s.map(e=>Y(Z,{children:[J(Q,{children:e.type}),J(Q,{children:e.binding_name}),J(Q,{children:p&&(e.type===`d1`||e.type===`kv`||e.type===`r2`)?J(`a`,{href:e.type===`d1`?`https://dash.cloudflare.com/${p}/workers/d1/databases/${e.cf_id}/metrics`:e.type===`kv`?`https://dash.cloudflare.com/${p}/workers/kv/namespaces/${e.cf_id}/metrics`:`https://dash.cloudflare.com/${p}/r2/default/buckets/${e.cf_id}`,target:`_blank`,rel:`noopener noreferrer`,children:e.cf_id}):e.cf_id})]},e.id))})]}):J(`p`,{children:J(`em`,{children:`No resources provisioned.`})}),Y(`h2`,{children:[`Recent Deployments (`,o.length,`)`]}),J(Ek,{deployments:o,activeDeploymentId:a.active_deployment_id,tz:h}),Y(`h2`,{children:[`Builds (`,f.length,`)`]}),J(DA,{builds:f,tz:h}),J(MA,{projectId:a.id,owner:c,members:l,invitations:u,tz:h}),J(AA,{projectId:a.id}),J(`h2`,{children:`Danger Zone`}),J(`form`,{method:`post`,action:`/admin/projects/${a.id}/delete`,"data-confirm":`Permanently delete project "${a.slug}" and all its resources? This cannot be undone.`,"data-slug":a.slug,children:J(Mg,{type:`submit`,label:`Delete Project`,variant:`destructive`})})]})}function PA(e){return e.suspended?`Suspended (${e.suspendedReason??`unknown reason`})`:`Active`}function FA({result:e,convergenceOnly:t,operationBlocked:n,projectId:r,userId:i,platformName:a,username:o}){return Y(wD,{platformName:a,title:`${t?`Converge`:`Transfer`} ${e.target.slug}`,username:o,children:[Y(`h1`,{children:[t?`Converge Ownership State`:`Transfer Ownership`,`: `,e.target.slug]}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Account`}),J($,{children:`User`}),J($,{children:`Plan`}),J($,{children:`Status`})]})}),Y(yO,{children:[Y(Z,{children:[J($,{children:`Current owner`}),Y(Q,{children:[e.currentOwner.login,` (`,J(`code`,{children:e.currentOwner.id}),`)`]}),J(Q,{children:e.currentOwner.plan}),J(Q,{children:PA(e.currentOwner)})]}),Y(Z,{children:[J($,{children:`New owner`}),Y(Q,{children:[e.newOwner.login,` (`,J(`code`,{children:e.newOwner.id}),`)`]}),J(Q,{children:e.newOwner.plan}),J(Q,{children:PA(e.newOwner)})]})]})]}),t?Y(`p`,{children:[`This project is already owned by the target. This is a convergence-only operation: applying it repairs membership, usage-counter, routing, and account metadata without changing ownership. The owner's stored project role is`,` `,J(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is`,` `,e.usageTransfer,`.`]}):Y(`p`,{children:[`The former owner will become a `,J(`strong`,{children:e.formerOwnerRole}),`. The target's current project role is `,J(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is `,e.usageTransfer,`.`]}),J(`h2`,{children:`Operation blockers`}),e.blockers.length>0?Y(G.Fragment,{children:[J(`ul`,{children:e.blockers.map(e=>Y(`li`,{children:[e.kind,`: `,e.id,` (`,e.status,`)`]},`${e.kind}:${e.id}`))}),t&&!n?J(`p`,{children:`Active work does not block convergence.`}):null]}):J(`p`,{children:`None.`}),J(`h2`,{children:`Convergence`}),J(`p`,{children:e.counterUpdates.detachUserId?Y(G.Fragment,{children:[`Usage counters: detach from `,J(`code`,{children:e.counterUpdates.detachUserId}),`, attach to`,` `,J(`code`,{children:e.counterUpdates.attachUserId}),`.`]}):Y(G.Fragment,{children:[`Usage counters: attach or reconcile with`,` `,J(`code`,{children:e.counterUpdates.attachUserId}),`; no former-owner detachment is needed.`]})}),Y(`p`,{children:[`Routing and account entries: `,e.routingUpdates.join(`, `)]}),J(`h2`,{children:`GitHub authorization provenance`}),e.github?Y(`p`,{children:[e.github.repository,` installation `,e.github.installationId,`, authorized by`,` `,e.github.authorizedByUserId??`unknown`,` (`,e.github.executor,`).`]}):J(`p`,{children:`No GitHub connection.`}),n?J(`p`,{children:t?`Project deletion blocks convergence.`:`Resolve or cancel all active work before applying this transfer.`}):Y(`form`,{method:`post`,action:`/admin/projects/${r}/owner`,children:[J(`input`,{type:`hidden`,name:`userId`,value:i}),J(Mg,{type:`submit`,label:t?`Apply Convergence`:`Apply Ownership Transfer`,variant:`destructive`})]}),J(`p`,{children:J(`a`,{href:`/admin/projects/${r}`,children:`Back to project`})})]})}function IA({path:e,platformName:t,username:n}){let{projectsPage:r}=Zh(B_(e),{mode:`stale-while-revalidate`}),i=Kh(L_,r);if(!i)throw Error(`Projects page data is unavailable.`);let{projects:a,search:o,page:s,totalPages:c,siteDomain:l,tz:u}=i,[d,f]=(0,y.useState)(o??``);(0,y.useEffect)(()=>f(o??``),[o]);let p=a.filter(e=>[e.slug,e.owner_login,e.type,e.last_deploy_status].some(e=>e?.toLowerCase().includes(d.toLowerCase()))),m=(0,y.useMemo)(()=>a.map(e=>({id:e.id,label:e.slug,keywords:[e.owner_login,e.id,e.type,e.last_deploy_status],description:e.owner_login??void 0})),[a]);return Y(wD,{platformName:t,title:`Projects`,username:n,children:[J(`h1`,{children:`Projects`}),J(iA,{action:`/admin/projects`,label:`Search projects`,value:d,onChange:f,suggestions:m,initialValue:o,showClear:!!o}),J(Ok,{projects:p,siteDomain:l,tz:u}),s!=null&&c!=null&&J(rA,{page:s,totalPages:c,baseUrl:`/admin/projects`})]})}function LA({value:e}){return J(AD,{label:e?`Yes`:`No`,variant:e?`success`:`neutral`})}function RA({label:e,value:t}){let[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(!1);return Y(`div`,{className:`void-admin-access-copy-value`,children:[Y(`label`,{children:[J(`span`,{children:e}),J(`input`,{"aria-label":e,readOnly:!0,value:t,onFocus:e=>e.currentTarget.select()})]}),J(Mg,{type:`button`,label:n?`Copied`:`Copy`,variant:`secondary`,size:`sm`,onClick:async()=>{try{await navigator.clipboard.writeText(t),r(!0),a(!1)}catch{a(!0)}}}),i&&J(`span`,{role:`status`,children:`Select the value to copy it manually.`})]})}function zA({status:e}){return e===`sent`?J(AD,{label:`Sent`,variant:`success`}):e===`failed`?J(AD,{label:`Failed`,variant:`error`}):e===`unavailable`?J(AD,{label:`Email off`,variant:`neutral`}):J(AD,{label:`Not recorded`,variant:`neutral`})}function BA({path:e,platformName:t,username:n}){let{signupControl:r}=Zh(ev(e),{mode:`stale-while-revalidate`}),i=Kh(Z_,r);if(!i)throw Error(`Access settings are unavailable.`);let{enabled:a,admission:o,initialized:s,revision:c,methods:l,protection:u,connections:d,directEntries:f,invitations:p,page:m,totalPages:h,emailEnabled:g,connectCommand:_,inviteUrl:v,result:y,tz:b}=i,x=o?.mode??(a?`restricted`:`public`),S=l.filter(e=>e.enabled&&e.kind!==`github`);return J(wD,{platformName:t,title:`Access`,username:n,children:Y(`div`,{className:`void-admin-access-page`,children:[Y(`header`,{className:`void-admin-access-intro`,children:[J($i,{level:1,children:`Access`}),J(`p`,{children:`Decide who can join this platform and manage invitations and individual grants.`})]}),J(`section`,{"aria-labelledby":`access-policy-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-access-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`access-policy-heading`,children:`Who can join?`}),J(`p`,{children:`These rules apply when someone creates a platform account.`})]}),J(AD,{label:x===`public`?`Public`:x===`company`?`Company or approved`:`Approved only`,variant:x===`public`?`warning`:`neutral`})]}),s?Y(`form`,{method:`post`,action:`/admin/signup-control/policy`,className:`void-admin-access-form`,children:[J(`input`,{type:`hidden`,name:`revision`,value:c??0}),J(uw,{label:`Signup policy`,name:`mode`,initialValue:x,options:[{value:`restricted`,label:`Only individually approved people`},{value:`company`,label:`Company-approved or individually approved people`},{value:`public`,label:`Anyone with an enabled login method`}],width:420}),J(`p`,{className:`void-admin-access-muted`,children:x===`restricted`?`An invitation or direct grant is required before someone can create an account.`:x===`company`?`People who meet a selected company policy or have an individual grant can join.`:`Anyone with an enabled login method can join. Individual invitations are unnecessary.`}),Y(`div`,{className:`void-admin-access-company-policy`,children:[J(`h3`,{children:`Company-approved methods`}),J(`p`,{children:`Select which existing login checks qualify someone when company signup is chosen.`}),Y(`div`,{className:`void-admin-access-checkboxes`,children:[S.map(e=>J(dw,{label:e.label,name:`connections`,submitValue:e.id,initialValue:o?.mode===`company`&&o.connections.includes(e.id)},e.id)),u&&J(dw,{label:`Anyone who passes Cloudflare Access protection`,name:`access`,submitValue:`true`,initialValue:o?.mode===`company`&&o.access}),S.length===0&&!u&&Y(`p`,{children:[`No company-approved methods are available. Configure one in`,` `,J(`a`,{href:`/admin/config/auth`,children:`Authentication`}),` before selecting this policy.`]})]})]}),J(`p`,{className:`void-admin-access-muted`,children:`New accounts are ordinary users. Changing this policy does not change Cloudflare Access protection.`}),J(Mg,{type:`submit`,label:`Save signup policy`})]}):Y(`div`,{className:`void-admin-access-form`,children:[Y(`p`,{children:[`To use company-approved signup, first set up`,` `,J(`a`,{href:`/admin/config/auth`,children:`Authentication settings`}),`.`]}),Y(`form`,{method:`post`,action:`/admin/signup-control/toggle`,className:`void-admin-access-inline-form`,children:[Y(`span`,{children:[`Signup is`,` `,a?`restricted to approved people`:`open to anyone with an enabled login`,`.`]}),J(Mg,{type:`submit`,label:a?`Open signup`:`Restrict signup`,variant:`secondary`})]})]})]})}),J(`section`,{"aria-labelledby":`access-invite-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-access-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`access-invite-heading`,children:`Invite people`}),J(`p`,{children:x===`public`?`Signup is public. Share the platform address with anyone you want to join.`:g?`Create an invitation for each email address. We'll email them connection instructions.`:`Create an invitation for each email address. Since email is off, share the platform link below yourself.`})]}),J(AD,{label:g?`Email enabled`:`Email not enabled`,variant:g?`success`:`neutral`})]}),y===`invited`&&J(`p`,{role:`status`,className:`void-admin-access-notice`,children:g?`Invitations created. Check the history below to see whether email was sent.`:`Invitations created. Share the platform link below with each person.`}),x!==`public`&&Y(`form`,{method:`post`,action:`/admin/invitations/send`,className:`void-admin-access-form`,children:[J(lw,{label:`Email addresses`,name:`email`,placeholder:`person@example.com, teammate@example.com`,required:!0,rows:3,width:440}),J(`p`,{className:`void-admin-access-muted`,children:`Each person must sign in with a login method that supplies the same verified email address.`}),J(Mg,{type:`submit`,label:g?`Invite and email`:`Create invitations`})]}),Y(`div`,{className:`void-admin-access-share`,children:[J(`h3`,{children:g?`Share connection details`:`Share these details manually`}),J(RA,{label:`Platform invitation page`,value:v}),J(RA,{label:`Void CLI connection command`,value:_})]})]})}),J(`section`,{"aria-labelledby":`access-grants-heading`,children:Y(C_,{children:[J(`div`,{className:`void-admin-access-section-header`,children:Y(`div`,{children:[J($i,{level:2,id:`access-grants-heading`,children:`Direct grants`}),Y(`p`,{children:[`Allow a GitHub username, email address or domain, or login identity to sign up. These rules do not create invitations or send email.`,x===`public`&&` While signup is public, grants do not limit who can join.`]})]})}),Y(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[J(uw,{label:`Grant type`,name:`type`,initialValue:`github`,options:[{value:`github`,label:`GitHub username`},{value:`email`,label:`Email or domain pattern`}],width:210}),J(lw,{label:`Pattern`,name:`pattern`,placeholder:`username, person@example.com, *@company.com`,required:!0,rows:3,width:360}),J(cw,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),J(Mg,{type:`submit`,label:`Add grant`})]}),d.length>0&&Y(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[J(`input`,{type:`hidden`,name:`type`,value:`identity`}),J(uw,{label:`Login connection`,name:`connectionId`,initialValue:d[0]?.id??``,options:d.map(e=>({value:e.id,label:`${e.label} (${e.id})`})),width:250,hasSearch:!0}),J(cw,{label:`Provider subject`,name:`subject`,placeholder:`Exact provider subject`,required:!0,maxLength:255,width:340}),J(cw,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),J(Mg,{type:`submit`,label:`Add identity`})]}),J(`p`,{className:`void-admin-access-muted`,children:`Identity grants match the selected login connection and provider subject exactly, including case. Email is not inferred or linked.`}),J(`div`,{className:`void-admin-access-table`,children:Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Type`}),J($,{children:`Grant`}),J($,{children:`Note`}),J($,{children:`Accepted`}),J($,{children:`Deployed`}),J($,{children:`Actions`})]})}),J(yO,{children:f.map(e=>Y(Z,{children:[J(Q,{children:e.type}),J(Q,{children:e.type===`identity`?`${e.connectionId}: ${e.subject}`:e.pattern}),J(Q,{children:e.note||`—`}),J(Q,{children:J(LA,{value:e.accepted})}),J(Q,{children:J(LA,{value:e.deployed})}),J(Q,{children:Y(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[J(`input`,{type:`hidden`,name:`index`,value:e.index}),J(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})]})})]},e.type===`identity`?`${e.type}-${e.connectionId}-${e.subject}`:`${e.type}-${e.pattern}`))})]})}),f.length===0&&J(`p`,{className:`void-admin-access-muted`,children:`No direct grants yet.`})]})}),J(`section`,{"aria-labelledby":`access-history-heading`,children:Y(C_,{children:[J(`div`,{className:`void-admin-access-section-header`,children:Y(`div`,{children:[J($i,{level:2,id:`access-history-heading`,children:`Invitation history`}),J(`p`,{children:`Invitation status and email delivery are tracked separately. Invitations do not expire.`})]})}),J(`div`,{className:`void-admin-access-table`,children:Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Email`}),J($,{children:`Access`}),J($,{children:`Email delivery`}),J($,{children:`Invited by`}),J($,{children:`Created`}),J($,{children:`Accepted`}),J($,{children:`Revoked`}),J($,{children:`Actions`})]})}),J(yO,{children:p.map(e=>Y(Z,{children:[J(Q,{children:e.email}),J(Q,{children:J(AD,{label:e.status,variant:e.status===`pending`?`warning`:e.status===`revoked`?`error`:`success`})}),J(Q,{children:J(zA,{status:e.email_delivery_status})}),J(Q,{children:e.invited_by_login??e.invited_by}),J(Q,{children:e.created_at?hk(e.created_at,b):`—`}),J(Q,{children:e.accepted_at?hk(e.accepted_at,b):`—`}),J(Q,{children:e.revoked_at?Y(G.Fragment,{children:[hk(e.revoked_at,b),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`—`}),Y(Q,{children:[e.status===`pending`&&Y(`form`,{method:`post`,action:`/admin/invitations/revoke`,children:[J(`input`,{type:`hidden`,name:`id`,value:e.id}),J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]}),e.status===`accepted`&&e.grantIndex!==null&&Y(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[J(`input`,{type:`hidden`,name:`index`,value:e.grantIndex}),J(Mg,{type:`submit`,label:`Remove signup grant`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})}),p.length===0&&J(`p`,{className:`void-admin-access-muted`,children:`No invitations yet.`}),J(rA,{page:m,totalPages:h,baseUrl:`/admin/signup-control`})]})})]})})}var VA=1073741824,HA={free:{requestsPerMonth:3e6,cpuMsPerRequest:10,maxCpuMsPerRequest:10,subRequestsPerInvocation:50,deploysPerDay:100,d1StorageBytes:1*VA,r2StorageBytes:5*VA,kvStorageBytes:1*VA,aiNeuronsPerMonth:1e5,retainedDeployments:1,sandboxRuntimeSecondsPerMonth:1,sandboxMaxConcurrentInstances:1,concurrentBuilds:1,buildTimeoutMinutes:10},solo:{requestsPerMonth:1e7,cpuMsPerRequest:30,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:50,deploysPerDay:500,d1StorageBytes:5*VA,r2StorageBytes:25*VA,kvStorageBytes:5*VA,aiNeuronsPerMonth:3e5,retainedDeployments:5,sandboxRuntimeSecondsPerMonth:108e3,sandboxMaxConcurrentInstances:2,concurrentBuilds:2,buildTimeoutMinutes:15},pro:{requestsPerMonth:1e8,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:3e3,d1StorageBytes:10*VA,r2StorageBytes:100*VA,kvStorageBytes:25*VA,aiNeuronsPerMonth:5e5,retainedDeployments:25,sandboxRuntimeSecondsPerMonth:72e4,sandboxMaxConcurrentInstances:10,concurrentBuilds:3,buildTimeoutMinutes:15},sponsored:{requestsPerMonth:0,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:6,buildTimeoutMinutes:20},custom:{requestsPerMonth:0,cpuMsPerRequest:0,maxCpuMsPerRequest:0,subRequestsPerInvocation:0,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:0,buildTimeoutMinutes:0}};function UA(e){return HA[e]??HA.free}function WA({path:e,platformName:t,username:n}){let{userDetail:r}=Zh(K_(e),{mode:`stale-while-revalidate`}),i=Kh(H_,r);if(!i)throw Error(`User data is unavailable.`);let{user:a,projects:o,deploysToday:s,usage:c,tz:l}=i;ck(i.user.login,t);let u=Object.keys(HA),d=UA(a.plan);return Y(wD,{platformName:t,title:a.login,username:n,children:[J(`h1`,{children:a.login}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id})]}),Y(Z,{children:[J($,{children:`Provider`}),J(Q,{children:a.provider})]}),Y(Z,{children:[J($,{children:`Email`}),J(Q,{children:a.email??`-`})]}),Y(Z,{children:[J($,{children:`Role`}),J(Q,{children:a.role})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:a.suspended_reason?`suspended: ${a.suspended_reason}`:`active`})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,l)})]})]})}),J(`h2`,{children:`Plan`}),Y(`form`,{method:`post`,action:`/admin/users/${a.id}/plan`,style:`margin-bottom: 10px`,children:[J(uw,{label:`Plan`,name:`plan`,initialValue:a.plan,options:u.map(e=>({value:e,label:e}))}),J(Mg,{type:`submit`,label:`Update`})]}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Limit`}),J($,{children:`Value`})]})}),Y(yO,{children:[Y(Z,{children:[J(Q,{children:`Requests / month`}),J(Q,{children:vk(d.requestsPerMonth)})]}),Y(Z,{children:[J(Q,{children:`CPU ms / request`}),J(Q,{children:vk(d.cpuMsPerRequest)})]}),Y(Z,{children:[J(Q,{children:`Sub-requests / invocation`}),J(Q,{children:vk(d.subRequestsPerInvocation)})]}),Y(Z,{children:[J(Q,{children:`Deploys / day`}),Y(Q,{children:[s,` / `,vk(d.deploysPerDay)]})]}),Y(Z,{children:[J(Q,{children:`D1 storage`}),J(Q,{children:vk(d.d1StorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`R2 storage`}),J(Q,{children:vk(d.r2StorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`KV storage`}),J(Q,{children:vk(d.kvStorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`AI neurons / month`}),J(Q,{children:vk(d.aiNeuronsPerMonth)})]}),Y(Z,{children:[J(Q,{children:`Retained deployments`}),J(Q,{children:vk(d.retainedDeployments)})]})]})]}),Y(`h2`,{children:[`Current Usage (since `,mk(c.billingPeriodStart),`)`]}),Y(`p`,{children:[`Requests: `,_k(c.totalRequests),` / `,vk(d.requestsPerMonth)]}),Y(`p`,{children:[`Deploys today: `,_k(s),` / `,vk(d.deploysPerDay)]}),Y(`p`,{children:[`Bandwidth: `,gk(c.totalBandwidth)]}),c.projects.length>1&&Y(G.Fragment,{children:[J(`h3`,{children:`Per Project`}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Project`}),J($,{children:`Requests`}),J($,{children:`Bandwidth`})]})}),J(yO,{children:c.projects.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.projectId}`,children:e.slug})}),J(Q,{children:_k(e.requests)}),J(Q,{children:gk(e.bandwidthBytes)})]},e.projectId))})]})]}),J(`h2`,{children:`Suspension`}),a.suspended_reason?J(`form`,{method:`post`,action:`/admin/users/${a.id}/unsuspend`,children:J(Mg,{type:`submit`,label:`Unsuspend`})}):Y(`form`,{method:`post`,action:`/admin/users/${a.id}/suspend`,children:[J(cw,{label:`Reason`,name:`reason`,initialValue:`admin_suspended`,placeholder:`Reason...`}),J(Mg,{type:`submit`,label:`Suspend`,variant:`destructive`})]}),Y(`h2`,{children:[`Projects (`,o.length,`)`]}),o.length>0?Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Slug`}),J($,{children:`Type`}),J($,{children:`Created`})]})}),J(yO,{children:o.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),J(Q,{children:e.type}),J(Q,{children:hk(e.created_at,l)})]},e.id))})]}):J(`p`,{children:J(`em`,{children:`No projects.`})}),J(`h2`,{children:`Danger Zone`}),J(`form`,{method:`post`,action:`/admin/users/${a.id}/delete`,"data-confirm":`Permanently delete user "${a.login}" and all ${o.length} project(s)? This cannot be undone.`,children:J(Mg,{type:`submit`,label:`Delete User`,variant:`destructive`})})]})}function GA({path:e,platformName:t,username:n}){let{usersPage:r}=Zh(z_(e),{mode:`stale-while-revalidate`}),i=Kh(I_,r);if(!i)throw Error(`Users page data is unavailable.`);let{users:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,y.useState)(o??``);(0,y.useEffect)(()=>d(o??``),[o]);let f=a.filter(e=>[e.login,e.email,e.id].some(e=>e?.toLowerCase().includes(u.toLowerCase()))),p=(0,y.useMemo)(()=>a.map(e=>({id:e.id,label:e.login,keywords:[e.email,e.id],description:[e.email,e.id].filter(Boolean).join(` · `)})),[a]);return Y(wD,{platformName:t,title:`Users`,username:n,children:[J(`h1`,{children:`Users`}),J(iA,{action:`/admin/users`,label:`Search users`,value:u,onChange:d,suggestions:p,initialValue:o,showClear:!!o}),Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Login`}),J($,{children:`Provider`}),J($,{children:`Email`}),J($,{children:`Plan`}),J($,{children:`Role`}),J($,{children:`Status`}),J($,{children:`Created`}),J($,{children:`Actions`})]})}),J(yO,{children:f.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/users/${e.id}`,children:e.login})}),J(Q,{children:e.provider}),J(Q,{children:e.email??`-`}),J(Q,{children:e.plan}),J(Q,{children:e.role}),J(Q,{children:e.suspended_reason?`suspended`:`active`}),J(Q,{children:hk(e.created_at,l)}),J(Q,{children:J(`form`,{method:`post`,action:`/admin/users/${e.id}/delete`,style:`display: inline`,"data-confirm":`Delete user "${e.login}" and all their projects?`,children:J(Mg,{type:`submit`,label:`Delete`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),f.length===0&&J(`p`,{children:J(`em`,{children:`No users found.`})}),s!=null&&c!=null&&J(rA,{page:s,totalPages:c,baseUrl:`/admin/users`})]})}var KA={adminLayout:async()=>({default:Qg}),dashboard:async()=>({default:Bk}),adminLogin:async()=>({default:w_}),loginError:async()=>({default:SA}),authSettings:async()=>({default:ND}),authNew:async()=>({default:DD}),authEdit:async()=>({default:TD}),authError:async()=>({default:ED}),buildDetail:async()=>({default:bk}),deploymentDetail:async()=>({default:nA}),users:async()=>({default:GA}),userDetail:async()=>({default:WA}),projects:async()=>({default:IA}),projectDetail:async()=>({default:NA}),projectOwnerPreview:async()=>({default:FA}),deployments:async()=>({default:aA}),cliVersions:async()=>({default:Sk}),signupControl:async()=>({default:BA}),email:async()=>({default:vA}),emailProject:async()=>({default:lA}),emailOperation:async()=>({default:oA}),adminError:async()=>({default:Jg}),invitations:async()=>({default:xA})},qA=Object.fromEntries(Object.keys(KA).filter(e=>e!==`adminLayout`).map(e=>[e,[`adminLayout`]]));function JA(e){let t=new URL(e,`https://void.invalid`).pathname;return t===`/admin/`?`dashboard`:t===`/admin/login`?`adminLogin`:t===`/admin/users`?`users`:/^\/admin\/builds\/[^/]+$/.test(t)?`buildDetail`:/^\/admin\/users\/[^/]+$/.test(t)?`userDetail`:t===`/admin/projects`?`projects`:/^\/admin\/projects\/[^/]+$/.test(t)?`projectDetail`:/^\/admin\/projects\/[^/]+\/owner\/preview$/.test(t)?`projectOwnerPreview`:t===`/admin/deployments`?`deployments`:/^\/admin\/deployments\/[^/]+$/.test(t)?`deploymentDetail`:t===`/admin/cli-versions`?`cliVersions`:t===`/admin/signup-control`?`signupControl`:t===`/admin/config/auth`?`authSettings`:t===`/admin/config/auth/new`?`authNew`:/^\/admin\/config\/auth\/connections\/[^/]+$/.test(t)?`authEdit`:t===`/admin/email`?`email`:/^\/admin\/email\/[^/]+$/.test(t)?`emailProject`:t===`/admin/invitations`?`invitations`:null}var YA={dashboard:`Dashboard`,users:`Users`,userDetail:`User`,projects:`Projects`,projectDetail:`Project`,projectOwnerPreview:`Transfer owner`,deployments:`Deployments`,deploymentDetail:`Deployment`,buildDetail:`Build`,cliVersions:`CLI Versions`,signupControl:`Access`,authSettings:`Authentication`,authNew:`Add login method`,authEdit:`Edit login method`,email:`Email`,emailProject:`Project email`,emailOperation:`Email operation`,invitations:`Invitations`};function XA({initialPageData:e}){let t=YA[JA(sa().location?.pathname??e.url)??`adminError`]??`Admin`;return J(Zg,{children:J(wD,{title:t,platformName:String(e.props.platformName??`Void`),username:typeof e.props.username==`string`?e.props.username:void 0,children:Y(`div`,{className:`void-admin-loading`,role:`status`,"aria-live":`polite`,children:[J($i,{level:1,children:t}),Y(`span`,{className:`void-admin-sr-only`,children:[`Loading `,t.toLowerCase(),`…`]}),Y(`div`,{className:`void-admin-loading-lines`,"aria-hidden":`true`,children:[J(wn,{width:`32%`,height:24}),J(wn,{width:`100%`,height:48,index:1}),J(wn,{width:`100%`,height:48,index:2}),J(wn,{width:`78%`,height:48,index:3})]})]})})})}Ve({components:KA,layoutTree:qA,routeMeta:{},matchRoute:JA,staticPageData:!1,staticPageDataFastPath:!1,viewTransitions:!1,prefetchHoverDelay:75,prefetchDefaultCacheFor:{stale:0,expires:3e5},cacheVisitedPageData:!0,navigationFallback:XA})})();
62
+ `,e.line]},e.seq))})]})}function pk(e){let t=e.replace(` `,`T`);return new Date(/(?:Z|[+-]\d{2}:?\d{2})$/i.test(t)?t:`${t}Z`)}function mk(e){return pk(e).toLocaleDateString(`en-US`,{timeZone:`UTC`,month:`short`,day:`numeric`,year:`numeric`})}function hk(e,t){let n=pk(e);if(isNaN(n.getTime()))return(0,y.createElement)(`span`,{suppressHydrationWarning:!0},e);let r=n.toLocaleString(`en-US`,{timeZone:t||`UTC`,month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`}),i=Math.floor((Date.now()-n.getTime())/1e3),a;return a=i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`,(0,y.createElement)(`span`,{suppressHydrationWarning:!0},`${r} (${a})`)}function gk(e){if(e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.floor(Math.log(e)/Math.log(1024)),r=e/1024**n;return`${r%1==0?r:r.toFixed(1)} ${t[n]}`}function _k(e){return e.toLocaleString(`en-US`)}function vk(e,t){return e===0?`Unlimited`:t===`bytes`?gk(e):_k(e)}var yk={success:`#16a34a`,failed:`#dc2626`,pending:`#d97706`,skipped:`#6b7280`};function bk({path:e,platformName:t,username:n}){let{buildDetail:r}=Zh(Y_(e),{mode:`stale-while-revalidate`}),i=Kh(G_,r);if(!i)throw Error(`Build data is unavailable.`);let{build:a,tz:o}=i;return ck(`Build ${i.build.id}`,t),Y(wD,{platformName:t,title:`Build ${a.id}`,username:n,children:[Y(`h1`,{children:[`Build `,a.id]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:a.status})]}),Y(Z,{children:[J($,{children:`Project`}),J(Q,{children:J(`a`,{href:`/admin/projects/${a.project_id}`,children:a.project_id})})]}),Y(Z,{children:[J($,{children:`Executor`}),J(Q,{children:a.executor})]}),Y(Z,{children:[J($,{children:`Instance Type`}),J(Q,{children:a.instance_type??`-`})]}),Y(Z,{children:[J($,{children:`Commit`}),J(Q,{children:a.commit_sha?a.commit_sha.slice(0,7):`-`})]}),Y(Z,{children:[J($,{children:`Branch`}),J(Q,{children:a.branch??`-`})]}),Y(Z,{children:[J($,{children:`Deployment`}),J(Q,{children:a.deployment_id?J(`a`,{href:`/admin/deployments/${a.deployment_id}`,children:a.deployment_id}):`-`})]}),a.error?Y(Z,{children:[J($,{children:`Error`}),J(Q,{children:J(`span`,{style:`color: red; max-width: 600px; display: inline-block; word-break: break-word`,children:a.error})})]}):null,Y(Z,{children:[J($,{children:`Exit Code`}),J(Q,{children:a.exit_code??`-`})]}),Y(Z,{children:[J($,{children:`Started`}),J(Q,{children:a.started_at?hk(a.started_at,o):`-`})]}),Y(Z,{children:[J($,{children:`Completed`}),J(Q,{children:a.completed_at?hk(a.completed_at,o):`-`})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,o)})]})]})}),a.executor===`container`?J(fk,{build:a}):Y(G.Fragment,{children:[J(`h2`,{children:`Build Logs`}),a.logs_url?J(`p`,{children:J(`a`,{href:a.logs_url,target:`_blank`,rel:`noopener noreferrer`,children:`View logs on GitHub ↗`})}):J(`p`,{children:J(`em`,{children:`No external logs available.`})})]})]})}function xk({rows:e,title:t,tz:n}){return Y(G.Fragment,{children:[J($i,{level:2,children:t}),e.length===0?J(`p`,{children:J(`em`,{children:`No deployments found.`})}):Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Version`}),J($,{children:`Deploys`}),J($,{children:`Projects`}),J($,{children:`Users`}),J($,{children:`First Seen`}),J($,{children:`Last Seen`})]})}),J(yO,{children:e.map(e=>Y(Z,{children:[J(Q,{children:e.cli_version??`unknown`}),J(Q,{children:_k(e.deployments)}),J(Q,{children:_k(e.projects)}),J(Q,{children:_k(e.users)}),J(Q,{children:hk(e.first_seen,n)}),J(Q,{children:hk(e.last_seen,n)})]},e.cli_version??`unknown`))})]})]})}function Sk({path:e,platformName:t,username:n}){let{cliVersions:r}=Zh($_(e),{mode:`stale-while-revalidate`}),i=Kh(X_,r);if(!i)throw Error(`CLI version data is unavailable.`);let{allTime:a,last30Days:o,tz:s}=i;return Y(wD,{platformName:t,title:`CLI Versions`,username:n,children:[J($i,{level:1,children:`CLI Versions`}),J(xk,{rows:o,title:`Last 30 Days`,tz:s}),J(xk,{rows:a,title:`All Time`,tz:s})]})}function Ck({text:e,label:t=`Copy`}){let[n,r]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),1500);return()=>clearTimeout(e)},[n]),(0,G.jsx)(Mg,{type:`button`,size:`sm`,label:n?`Copied!`:t,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}function wk(e,t){return e.status===`failed`?`failed`:e.status===`live`?e.id===t?`live`:e.retained?`retained`:`evicted`:e.status}function Tk(e){switch(e){case`live`:return`color: #16a34a; font-weight: 600`;case`retained`:return`color: #16a34a`;case`evicted`:return`color: #888`;case`failed`:case`canceled`:return`color: #dc2626`;case`canceling`:return`color: #ca8a04`;default:return}}function Ek({deployments:e,activeDeploymentId:t,showProject:n,tz:r}){return e.length===0?J(`p`,{children:J(`em`,{children:`No deployments found.`})}):Y(UO,{className:`void-admin-deployments-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`ID`}),n&&J($,{children:`Project`}),J($,{children:`Status`}),J($,{children:`Source`}),J($,{children:`CLI`}),J($,{children:`Commit`}),J($,{children:`Error`}),J($,{children:`Created`})]})}),J(yO,{children:e.map(e=>{let i=wk(e,t??e.active_deployment_id);return Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/deployments/${e.id}`,children:e.id})}),n&&J(Q,{children:e.project_slug?J(`a`,{href:`/admin/projects/${e.project_id}`,children:e.project_slug}):`-`}),J(Q,{children:J(`span`,{style:Tk(i),children:i})}),J(Q,{children:e.source??`-`}),J(Q,{children:e.cli_version??`-`}),J(Q,{children:e.commit?e.commit.slice(0,7):`-`}),J(Q,{children:e.error_message?Y(G.Fragment,{children:[J(`span`,{style:`color: red; max-width: 400px; display: inline-block; word-break: break-word`,children:e.error_message}),J(`br`,{}),J(`span`,{style:`float: right; margin-top: 5px`,children:J(Ck,{text:e.error_message})})]}):`-`}),J(Q,{children:hk(e.created_at,r)})]},e.id)})})]})}function Dk({url:e}){return J(Pu,{as:`a`,className:`void-admin-url`,href:e,isExternalLink:!0,hasUnderline:!0,title:e,children:e.replace(/^https:\/\//,``)})}function Ok({projects:e,siteDomain:t,tz:n}){return Y(G.Fragment,{children:[Y(UO,{className:`void-admin-projects-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Slug`}),J($,{children:`URL`}),J($,{children:`Owner`}),J($,{children:`Type`}),J($,{children:`Created`}),J($,{children:`Last Deploy`})]})}),J(yO,{children:e.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),J(Q,{children:J(Dk,{url:e.url??`https://${e.slug}.${t}`})}),J(Q,{children:e.owner_login?J(`a`,{href:`/admin/users/${e.user_id}`,children:e.owner_login}):`-`}),J(Q,{children:e.type}),J(Q,{children:hk(e.created_at,n)}),J(Q,{children:e.last_deploy?Y(G.Fragment,{children:[J(`span`,{style:`display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:middle;background:${e.last_deploy_status===`failed`?`#dc2626`:`#16a34a`}`}),e.last_deploy_id?J(`a`,{href:`/admin/deployments/${e.last_deploy_id}`,children:hk(e.last_deploy,n)}):hk(e.last_deploy,n)]}):`-`})]},e.id))})]}),e.length===0&&J(`p`,{children:J(`em`,{children:`No projects found.`})})]})}var kk=y.Suspense,Ak=()=>()=>{},jk=()=>!0,Mk=()=>!1;function Nk(e){return new Intl.NumberFormat(`en-US`).format(e)}function Pk(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=-1;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function Fk({checkNames:e}){let t=Hh(),[n,r]=(0,y.useState)(null),[i,a]=(0,y.useState)(`loading`),o=Kh(O_,n);(0,y.useEffect)(()=>{let e=!0,n=t.retain(k_),i=async n=>{try{let{health:i}=await t.request(k_,{mode:n});if(!i)throw Error(`Health data is unavailable.`);e&&(r(i),a(`ready`))}catch{e&&a(`unavailable`)}};i(`stale-while-revalidate`);let o=setInterval(()=>void i(`network-only`),3e4);return()=>{e=!1,clearInterval(o),n.dispose()}},[t]);let s=o?.checks.filter(e=>!e.ok).length??0,c=new Map(o?.checks.map(e=>[e.name,e])),l=i===`loading`?``:i===`unavailable`||!o?`Unable to check system status`:o.allOk?`All health checks passed`:`${s} health check${s===1?``:`s`} failed`;return J(`div`,{id:`health-status`,children:J(Wg,{status:i===`unavailable`?`error`:i===`loading`?`info`:o?.allOk?`success`:`error`,title:`System Status`,description:J(`span`,{id:`health-summary`,className:`void-admin-health-summary`,children:l}),collapsible:!1,children:J(`div`,{id:`health-checks`,className:`void-admin-health-checks`,children:e.map(e=>{let t=i===`ready`?c.get(e):void 0,n=i===`loading`?``:t?t.ok?t.latencyMs>0?`${t.latencyMs}ms`:`Healthy`:t.error??`Health check failed.`:`Unavailable`;return Y(`span`,{className:`void-admin-health-check`,children:[J(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:t?t.ok?`✓`:`✗`:null}),J(`span`,{children:e}),J(`span`,{className:`void-admin-health-detail`,title:n||void 0,children:n})]},e)})})})})}function Ik({topProjects:e,siteDomain:t,tz:n}){let[r]=Xh({items:{node:T_}},e);return J(C_,{children:Y(`div`,{className:`void-admin-top-projects`,children:[J(Lk,{}),r.length>0?Y(UO,{className:`void-admin-top-projects-table`,hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`#`}),J($,{children:`Project`}),J($,{children:`Owner`}),J($,{children:`Requests`}),J($,{children:`Bandwidth`}),J($,{children:`Last Seen`})]})}),J(yO,{children:r.map(({node:e},r)=>J(Rk,{projectRef:e,index:r,siteDomain:t,tz:n},e.id))})]}):J(Yi,{type:`supporting`,children:`No recent project traffic in the last hour.`})]})})}function Lk(){return Y(`div`,{className:`void-admin-top-projects-header`,children:[J($i,{level:2,children:`Top 10 Projects`}),J(Yi,{type:`supporting`,children:`Last hour, site traffic only (static / ssr / isr)`})]})}function Rk({projectRef:e,index:t,siteDomain:n,tz:r}){let i=Kh(T_,e);return Y(Z,{children:[J(Q,{children:t+1}),J(Q,{children:Y(`div`,{className:`void-admin-top-project`,children:[Y(`div`,{className:`void-admin-top-project-heading`,children:[J(`a`,{className:`void-admin-top-project-name`,href:`/admin/projects/${i.id}`,title:i.slug,children:i.slug}),J(`span`,{className:`void-admin-top-project-type`,children:i.type})]}),J(`div`,{className:`void-admin-top-project-meta`,children:J(Dk,{url:i.url??`https://${i.slug}.${n}`})})]})}),J(Q,{children:i.owner_login?J(`a`,{href:`/admin/users/${i.user_id}`,children:i.owner_login}):`-`}),J(Q,{children:Nk(i.requests)}),J(Q,{children:Pk(i.bandwidthBytes)}),J(Q,{children:hk(i.lastSeen,r)})]})}function zk({topProjects:e,siteDomain:t,tz:n}){let r=(0,y.useSyncExternalStore)(Ak,jk,Mk),i=J(C_,{children:Y(`div`,{className:`void-admin-top-projects`,children:[J(Lk,{}),J(wn,{width:`100%`,height:48}),J(wn,{width:`100%`,height:48,index:1})]})});return r?J(kk,{fallback:i,children:J(Ik,{topProjects:e,siteDomain:t,tz:n})}):i}function Bk({platformName:e,username:t,healthCheckNames:n}){let{dashboard:r}=Zh(D_,{mode:`stale-while-revalidate`}),i=Kh(E_,r);if(!i)throw Error(`Dashboard data is unavailable.`);return Y(wD,{platformName:e,title:`Dashboard`,username:t,children:[J($i,{level:1,children:`Dashboard`}),J(Fk,{checkNames:n}),Y(`div`,{className:`void-admin-metrics`,children:[J(`a`,{href:`/admin/users`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Users`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.userCount)})]})}),J(`a`,{href:`/admin/projects`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Projects`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.projectCount)})]})}),J(`a`,{href:`/admin/deployments`,children:Y(C_,{children:[J(Yi,{type:`supporting`,display:`block`,children:`Deployments`}),J(Yi,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Nk(i.deploymentCount)})]})})]}),J(zk,{topProjects:i.topProjects,siteDomain:i.siteDomain,tz:i.tz}),J($i,{level:2,children:`Latest Projects`}),J(Ok,{projects:i.projects,siteDomain:i.siteDomain,tz:i.tz}),J($i,{level:2,children:`Latest Deployments`}),J(Ek,{deployments:i.deployments,showProject:!0,tz:i.tz})]})}H(),Dc(),hn(),ut(),dn();var Vk={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},Hk={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},Uk={compact:Hk.triggerCompact,balanced:Hk.triggerBalanced,spacious:Hk.triggerSpacious},Wk={compact:Hk.contentCompact,balanced:Hk.contentBalanced,spacious:Hk.contentSpacious};function Gk({trigger:e,children:t,defaultIsOpen:n,isOpen:r,isDisabled:i=!1,onOpenChange:a,chevronPosition:o,value:s,ref:c,xstyle:l,className:u,style:d,...f}){let{isOpen:p,toggle:m}=Fg({isCollapsible:r===void 0?{defaultIsOpen:n??!0,onOpenChange:a}:{isOpen:r,onOpenChange:a},value:s}),h=()=>{i||m()},g=(0,y.use)(Pg),_=g?.hasDividers??!1,v=g?.density??null,b=(o??g?.chevronPosition??`end`)===`start`,x=(0,y.useId)(),S=(0,G.jsx)(vc,{icon:b?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[Vk.chevron,b&&Vk.chevronStart,b?p?Vk.chevronStartOpen:Vk.chevronStartClosed:p?Vk.chevronOpen:Vk.chevronClosed]});return(0,G.jsxs)(`div`,{ref:c,...W(U(`collapsible`,{density:v??void 0}),V(Vk.root,_&&Vk.divided,l),u,d),...f,children:[(0,G.jsxs)(`button`,{type:`button`,onClick:h,"aria-disabled":i||void 0,"aria-expanded":p,"aria-controls":x,tabIndex:i?-1:void 0,...W(U(`collapsible-trigger`,{density:v??void 0}),un.focusVisible(Vk.trigger,v!=null&&Uk[v],!i&&Vc.pressedBackgroundColor,i&&Vk.triggerDisabled)),children:[b&&S,(0,G.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!b&&S]}),(0,G.jsx)(`div`,{id:x,...W(U(`collapsible-content`,{density:v??void 0}),V(Vk.content,v!=null&&Wk[v],!p&&Vk.contentHidden)),children:g==null?t:(0,G.jsx)(Pg,{value:null,children:t})})]})}Gk.displayName=`Collapsible`;function Kk(e,t){let n=t?.keywords;return{search(t){let r=t.toLowerCase().trim();return r===``?e:e.filter(e=>e.label.toLowerCase().includes(r)?!0:n?n(e).some(e=>e.toLowerCase().includes(r)):!1)},bootstrap(){return e}}}H(),Oc(),Dc(),hn(),ut(),Au(),Un();var qk={wrapper:{kVAEAm:`x1n2onr6`,kOIVth:`xzye2dw`,k8WAf4:`x1x7cmac`,kkrTdU:`x1ed109x x16khyan`,$$css:!0},inputHidden:{kSiTet:`xg01cxk`,kfzvcC:`x47corl`,$$css:!0},tokenOverlay:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kLqNvP:`xmt1zuk`,kt4wiu:`xtijo5x`,kzqmXN:`xeq5yr9`,kqGvvJ:`x10im51j`,keTefX:`x1lziwak`,k71WvV:`x11t971q`,$$css:!0}},Jk={sm:{kAzted:`x1gdqauq`,$$css:!0},md:{kAzted:`x1uogy3y`,$$css:!0},lg:{kAzted:`x1xf4nls`,$$css:!0}};function Yk({lane:e,loadingLabel:t,clear:n}){let r=GO(e);return!r&&n==null?null:(0,G.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[r&&(0,G.jsx)(hg,{size:`sm`,"aria-label":t}),n]})}function Xk({ref:e,label:t,isLabelHidden:n=!1,description:r,isRequired:i=!1,isOptional:a=!1,status:o,statusVariant:s=`attached`,startIcon:c,labelTooltip:l,searchSource:u,value:d,onChange:f,renderItem:p,placeholder:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:b=!1,disabledMessage:x,hasClear:S=!0,hasAutoFocus:C,size:w,debounceMs:T,onChangeQuery:E,onOpenChange:D,width:O,xstyle:k,className:A,style:j,"data-testid":M}){let N=wu(),P=bg(w,`md`),F=(0,y.useId)(),I=(0,y.useId)(),ee=(0,y.useId)(),L=(0,y.useId)(),te=cx(),R=(0,y.useRef)(null),ne=(0,y.useRef)(null),re=(0,y.useRef)(null),ie=b&&!!x,ae=Mi({placement:`above`,focusTrigger:`always`,isEnabled:ie}),oe=(0,y.useMemo)(()=>WO(),[]),[se,ce]=(0,y.useState)(!1),[le,ue]=(0,y.useState)(null),de=d!=null&&!se,z=(0,y.useCallback)(()=>{!b&&d&&(ue(d),ce(!0),E?.(d.label),requestAnimationFrame(()=>{let e=ne.current;e&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(e,d.label),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),e.setSelectionRange(0,e.value.length))}))},[b,d,E]),B=(0,y.useCallback)(e=>{R.current?.contains(e.relatedTarget)||le&&se&&(ce(!1),ue(null))},[le,se]),fe=(0,y.useCallback)(e=>{ce(!1),ue(null),f(e),e&&requestAnimationFrame(()=>{let e=re.current;e&&(e.querySelector(`button`)??e).focus()})},[f]),pe=(0,y.useCallback)(()=>{ce(!1),ue(null),f(null),ne.current?.focus()},[f]),me=(0,y.useCallback)(e=>{fn(e.nativeEvent)||e.key===`Escape`&&le&&(e.preventDefault(),ce(!1),ue(null),ne.current?.blur())},[le]),he=(0,y.useCallback)(()=>{b||(de?z():ne.current?.focus())},[b,de,z]),{ariaLabelledBy:ge,ariaDescribedBy:_e}=zt(I,[r?ee:null,o?.message?L:null,ie?ae.describedBy:null],te),ve=Jk[P],ye=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{ref:Vn(R,ae.ref,te?e:void 0),"data-testid":M,onClick:he,onBlur:B,...W(U(`typeahead`,{size:P,status:o?.type}),V($b.base,qk.wrapper,ve,o&&ex[o.type],o&&!b&&tx[o.type],o&&nx[o.type],b&&$b.disabled,te&&lx.inGroup,te&&k),te?A:void 0,te?j:void 0),children:[c&&bc(c,{size:`sm`,color:`secondary`}),te&&(0,G.jsx)(kc,{id:I,children:t}),(0,G.jsx)(qO,{value:oe,children:(0,G.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x6s0dn4 xkh2ocl x98rzlu xeuugli`,children:[de&&(0,G.jsx)(sk,{ref:re,label:d.label,size:P,onClick:z,isDisabled:b,xstyle:qk.tokenOverlay}),(0,G.jsx)(nk,{ref:ne,searchSource:u,value:d,onChange:fe,renderItem:p,placeholder:de?void 0:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:b,hasAutoFocus:C,isFocusableDisabled:ie,inputId:F,ariaDescribedBy:_e,ariaLabelledBy:ge,onChangeQuery:E,onOpenChange:D,debounceMs:T,anchorRef:R,onKeyDown:me,inputXStyle:de?qk.inputHidden:void 0,inputTabIndex:de?-1:void 0,size:P})]})}),(0,G.jsx)(Yk,{lane:oe,loadingLabel:N(`@astryx.typeahead.loading`),clear:S&&d&&!b?(0,G.jsx)(ax,{label:N(`@astryx.typeahead.clearSelection`),onClick:e=>{e.stopPropagation(),pe()}}):null})]}),ie&&ae.renderTooltip(x)]});return te?ye:(0,G.jsx)(Qb,{ref:e,label:t,isLabelHidden:n,description:r,inputID:F,descriptionID:r?ee:void 0,isOptional:a,isRequired:i,isDisabled:b,status:o?{type:o.type,message:o.message,messageID:o.message?L:void 0}:void 0,statusVariant:s,labelTooltip:l,width:O,xstyle:k,className:A,style:j,children:ye})}Xk.displayName=`Typeahead`;var Zk=[];function Qk({label:e,onChange:t,onSelect:n,onClear:r,suggestions:i=Zk,remoteSearch:a,initialValue:o=``,initialSelection:s,width:c=320}){let l=(0,y.useMemo)(()=>$k(i),[i]),u=(0,y.useMemo)(()=>a?{bootstrap:()=>[],search:async e=>$k(await a(e))}:Kk(l,{keywords:e=>e.auxiliaryData?.keywords??[]}),[l,a]),[d,f]=(0,y.useState)(()=>o?l.find(e=>e.id===o)??(s?.id===o?$k([s])[0]:void 0)??{id:o,label:o}:null);return(0,G.jsx)(Xk,{label:e,isLabelHidden:!0,placeholder:e,searchSource:u,value:d,renderItem:e=>(0,G.jsx)(XO,{item:e,description:e.auxiliaryData?.description}),onChange:e=>{f(e),t(e?.id??``),e?n?.(e.id):r?.()},onChangeQuery:e=>{f(null),t(e)},hasEntriesOnFocus:!a,hasClear:!0,minQueryLength:a?2:1,debounceMs:a?200:0,width:c,emptySearchResultsText:a?`No matching results.`:`No suggestions. Search for any text.`})}function $k(e){let t=new Map;for(let n of e){if(!n)continue;let e=typeof n==`string`?{id:n,label:n,auxiliaryData:{keywords:[]}}:{id:n.id,label:n.label,auxiliaryData:{keywords:n.keywords?.filter(e=>!!e)??[],description:n.description}};e.id&&e.label&&t.set(e.id,e)}return[...t.values()]}var eA={error:`#dc2626`,warn:`#d97706`,info:`#6b7280`,log:`#6b7280`,debug:`#9ca3af`};function tA(e){return typeof e==`string`?e.slice(0,500):Array.isArray(e)?e.join(` `).slice(0,500):JSON.stringify(e??null).slice(0,500)}function nA({entry:e}){let t=[...(e.logs??[]).map(e=>({level:e.level??`log`,text:tA(e.message)})),...(e.exceptions??[]).map(e=>({level:`error`,text:`${e.name}: ${e.message}`}))],n=Number.parseInt(e.status??``,10),r=n>=500?`#dc2626`:n>=400?`#d97706`:`#16a34a`;return Y(`div`,{style:`padding: 4px 0; border-bottom: 1px solid #eee; font-size: 0.8rem`,children:[J(`span`,{style:`color: #999; margin-right: 8px`,children:new Date(e.timestamp).toLocaleTimeString()}),e.method&&e.url&&Y(G.Fragment,{children:[J(`span`,{style:`margin-right: 8px; font-weight: 600`,children:e.method}),J(`span`,{style:`margin-right: 8px`,children:e.url})]}),e.status&&J(`span`,{style:{color:r,fontWeight:600,marginRight:8},children:e.status}),J(`span`,{style:{color:e.outcome===`ok`?`#16a34a`:`#dc2626`},children:e.outcome}),t.length>0&&Y(`div`,{style:`position: relative; margin-top: 4px; margin-left: 24px`,children:[J(`div`,{style:`position: absolute; top: 4px; right: 4px`,children:J(Ck,{text:t.map(e=>e.text).join(`
63
+ `)})}),J(`pre`,{style:`margin: 0; padding: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius-inner); font-size: 0.78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all`,children:t.map((e,t)=>Y(`div`,{children:[J(`span`,{style:{color:eA[e.level]??`#6b7280`,fontWeight:600,textTransform:`uppercase`,width:50,display:`inline-block`},children:e.level}),J(`span`,{children:e.text})]},t))})]})]})}function rA({deploymentId:e}){let t=Hh(),[n,r]=(0,y.useState)(`1h`),[i,a]=(0,y.useState)(100),[o,s]=(0,y.useState)(``),[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(null),[f,p]=(0,y.useState)(!1),m=(0,y.useCallback)(async()=>{l(null),d(null);try{let{deploymentLogs:r}=await t.request(F_(e,n,i),{mode:`network-only`});if(!r)throw Error(`Deployment logs are unavailable.`);let{data:a}=await t.readView(M_,r);l(a.data)}catch(e){d(e instanceof Error?e.message:String(e))}},[e,n,i,t]);(0,y.useEffect)(()=>{m()},[m]),(0,y.useEffect)(()=>{if(!f)return;let n=!0,r=new Set,i=async()=>{try{let{deploymentLogs:i}=await t.request(F_(e,`1m`,50),{mode:`network-only`});if(!i)return;let{data:a}=await t.readView(M_,i);if(!n)return;let o=a.data.filter(e=>{let t=`${e.timestamp}:${e.url}:${e.status}`;return!r.has(t)&&(r.add(t),!0)});o.length>0&&l(e=>[...o,...e??[]])}catch{}};i();let a=setInterval(()=>void i(),3e3);return()=>{n=!1,clearInterval(a)}},[e,f,t]);let h=o.toLowerCase().trim(),g=(c??[]).filter(e=>!h||[e.outcome,e.method,e.url,e.status,...(e.logs??[]).map(e=>tA(e.message)),...(e.exceptions??[]).flatMap(e=>[e.name,e.message])].join(` `).toLowerCase().includes(h));return Y(G.Fragment,{children:[J(`h2`,{children:`Runtime Logs`}),Y(`div`,{style:`margin-bottom: 15px; display: flex; gap: 10px; align-items: center`,children:[J(tw,{id:`log-since`,label:`Time`,value:n,onChange:r,options:[`1h`,`6h`,`24h`,`7d`],width:100}),J(Mg,{type:`button`,id:`load-logs-btn`,label:`Load`,onClick:()=>void m()}),J(tw,{id:`log-count`,label:`Count`,value:String(i),onChange:e=>a(Number(e)),options:[100,200,300,400,500].map(String),width:110}),J(Qk,{label:`Filter logs`,onChange:s,suggestions:(c??[]).flatMap(e=>[e.outcome,e.method,e.url,e.status]),width:240}),J(Mg,{type:`button`,id:`live-tail-btn`,"data-base-path":`/admin/deployments/${e}`,style:{marginLeft:`auto`},label:f?`Stop Tail`:`Live Tail`,variant:f?`destructive`:`secondary`,onClick:()=>{f||l([]),p(!f)}})]}),J(`div`,{id:`log-entries`,children:u?Y(`p`,{style:`color: red; font-size: 0.8rem`,children:[`Failed to load logs: `,u]}):f&&g.length===0?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Polling for new events... New logs may take up to 2 minutes to appear.`}):c===null?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Loading logs...`}):g.length===0?Y(`p`,{style:`color: #999; font-size: 0.8rem`,children:[`No logs found`,h?` matching filter`:` for this time range`,`. New logs may take up to 2 minutes to appear.`]}):g.map((e,t)=>J(nA,{entry:e},`${e.timestamp}:${e.url}:${e.status}:${t}`))})]})}function iA({path:e,platformName:t,username:n}){let{deploymentDetail:r}=Zh(J_(e),{mode:`stale-while-revalidate`}),i=Kh(W_,r);if(!i)throw Error(`Deployment data is unavailable.`);let{deployment:a,project:o,canCancel:s,tz:c}=i,l=i.manifest;ck(`Deployment ${i.deployment.id}`,t);let u=wk(a,o?.active_deployment_id),d=u===`live`?{color:`#16a34a`,fontWeight:600}:u===`retained`?{color:`#16a34a`}:u===`evicted`?{color:`#888`}:u===`failed`?{color:`#dc2626`}:void 0;return Y(wD,{platformName:t,title:`Deployment ${a.id}`,username:n,children:[Y(`h1`,{children:[`Deployment `,a.id]}),s&&Y(G.Fragment,{children:[J(`h2`,{children:`Deploy Control`}),J(`form`,{method:`post`,action:`/admin/deployments/${a.id}/cancel`,"data-confirm":`Cancel deployment "${a.id}"?`,"data-deployment":a.id,children:J(Mg,{type:`submit`,label:`Cancel Deploy`,variant:`destructive`})})]}),(a.status===`failed`||a.status===`canceled`)&&a.error_message&&Y(G.Fragment,{children:[J(`h2`,{children:`Error`}),J(`pre`,{children:a.error_message}),J(`p`,{children:J(Ck,{text:a.error_message,label:`Copy error`})})]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id}),J($,{children:`Project`}),J(Q,{children:o?J(`a`,{href:`/admin/projects/${o.id}`,children:o.slug}):a.project_id})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{style:d,children:u}),J($,{children:`Source`}),J(Q,{children:a.source??`-`})]}),Y(Z,{children:[J($,{children:`Commit`}),J(Q,{children:a.commit??`-`}),J($,{children:`Created`}),J(Q,{children:hk(a.created_at,c)})]}),Y(Z,{children:[J($,{children:`Deployed`}),J(Q,{children:a.deployed_at?hk(a.deployed_at,c):`-`}),J($,{children:`Type`}),J(Q,{children:o?.type??`-`})]}),Y(Z,{children:[J($,{children:`CLI Version`}),J(Q,{children:a.cli_version??`-`}),J($,{}),J(Q,{})]}),l&&J(Z,{children:J(Q,{colSpan:4,style:{padding:0},children:J(Gk,{trigger:`Manifest`,children:Y(`div`,{style:`padding: 0 8px 8px`,children:[J(UO,{style:{margin:0},children:Y(yO,{children:[l.bindings&&Object.entries(l.bindings).map(([e,t])=>Array.isArray(t)&&t.length>0?Y(Z,{children:[J($,{children:e.toUpperCase()}),J(Q,{children:t.map((e,t)=>Y(`span`,{children:[t>0&&`, `,J(`code`,{children:e})]},e))})]},e):t===!0?Y(Z,{children:[J($,{children:e.toUpperCase()}),J(Q,{children:`enabled`})]},e):null),l.migrations&&Y(Z,{children:[J($,{children:`Migrations`}),Y(Q,{children:[l.migrations.dialect,` — `,l.migrations.pending,` pending`]})]}),l.schedules&&l.schedules.length>0&&Y(Z,{children:[J($,{children:`Schedules`}),J(Q,{children:l.schedules.map((e,t)=>Y(`span`,{children:[t>0&&`, `,e.name,`: `,e.cron]},e.name))})]})]})}),a.manifest&&J(Gk,{trigger:`Raw JSON`,children:J(`pre`,{style:`margin-top: 8px; font-size: 0.8rem`,children:JSON.stringify(JSON.parse(a.manifest),null,2)})})]})})})})]})}),a.status===`live`&&o&&J(rA,{deploymentId:a.id})]})}function aA({page:e,totalPages:t,baseUrl:n}){return t<=1?J(G.Fragment,{}):Y(`nav`,{"aria-label":`Pagination`,className:`void-admin-pagination`,children:[e>1?J(Mg,{as:`a`,href:`${n}?page=${e-1}`,label:`Previous`,variant:`secondary`}):J(Mg,{label:`Previous`,variant:`secondary`,isDisabled:!0}),Y(`span`,{children:[e,` / `,t]}),e<t?J(Mg,{as:`a`,href:`${n}?page=${e+1}`,label:`Next`,variant:`secondary`}):J(Mg,{label:`Next`,variant:`secondary`,isDisabled:!0})]})}function oA({action:e,kind:t,label:n,value:r,onChange:i,initialValue:a,initialSelection:o}){let s=Hh(),c=aa(),l=(0,y.useCallback)(async n=>{let r=`${e}?search=${encodeURIComponent(n)}`;if(t===`users`){let{usersPage:e}=await s.request(z_(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(I_,e);return t.users.map(e=>({id:e.id,label:e.login,description:[e.email,e.id].filter(Boolean).join(` · `)}))}if(t===`projects`){let{projectsPage:e}=await s.request(B_(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(L_,e);return t.projects.map(e=>({id:e.id,label:e.slug,description:e.owner_login??void 0}))}let{deploymentsPage:i}=await s.request(V_(r),{mode:`network-only`});if(!i)return[];let{data:a}=await s.readView(R_,i);return a.deployments.map(e=>({id:e.id,label:e.id,description:[e.project_slug,e.status].filter(Boolean).join(` · `)}))},[e,s,t]);return(0,G.jsxs)(`form`,{method:`get`,action:e,className:`void-admin-search`,children:[(0,G.jsx)(`input`,{type:`hidden`,name:`search`,value:r}),(0,G.jsx)(Qk,{label:n,onChange:i,onSelect:t=>void c.visit(`${e}/${encodeURIComponent(t)}`),onClear:()=>{a&&c.visit(e)},remoteSearch:l,initialValue:a,initialSelection:o},a??``),(0,G.jsx)(Mg,{type:`submit`,label:`Search`})]})}function sA({path:e,platformName:t,username:n}){let{deploymentsPage:r}=Zh(V_(e),{mode:`stale-while-revalidate`}),i=Kh(R_,r);if(!i)throw Error(`Deployments page data is unavailable.`);let{deployments:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,y.useState)(o??``);(0,y.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o);return Y(wD,{platformName:t,title:`Deployments`,username:n,children:[J(`h1`,{children:`Deployments`}),J(oA,{action:`/admin/deployments`,kind:`deployments`,label:`Search deployments`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.id,description:[f.project_slug,f.status].filter(Boolean).join(` · `)}:void 0}),J(Ek,{deployments:a,showProject:!0,tz:l}),s!=null&&c!=null&&J(aA,{page:s,totalPages:c,baseUrl:`/admin/deployments`})]})}function cA({label:e,status:t,error:n,operationId:r,projectId:i,platformName:a,username:o}){return Y(wD,{platformName:a,title:e,username:o,children:[Y(`h1`,{children:[e,` `,t]}),J(`p`,{children:n??`The operation has not completed. Check its status before retrying.`}),Y(`p`,{children:[`Operation ID: `,J(`code`,{children:r??`unavailable`})]}),J(`a`,{href:`/admin/email/${i}`,children:`Back to email settings`})]})}var lA=`font-size: 0.8rem; color: #666`;function uA(e){return e===`ready`||e===`healthy`?yk.success:e===`pending`||e===`verified_only`||e===`probe_failed`?yk.pending:yk.failed}function dA({path:e,platformName:t,username:n}){let{emailProject:r}=Zh(dv(e),{mode:`stale-while-revalidate`}),i=Kh(lv,r);if(!i)throw Error(`Project email data is unavailable.`);let{projectId:a,project:o,month:s,attempts:c,received:l,monthlyLimit:u,burstLimit:d,isSuspended:f,domains:p,destinations:m,senderDomain:h,tz:g}=i;return ck(`Email - ${i.project.slug}`,t),Y(wD,{platformName:t,title:`Email - ${o.slug}`,username:n,children:[Y(`h1`,{children:[`Email — `,J(`a`,{href:`/admin/projects/${a}`,children:o.slug})]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Project ID`}),J(Q,{children:a})]}),Y(Z,{children:[J($,{children:`Sender`}),J(Q,{children:h?J(`code`,{children:`${o.slug}+noreply@${h}`}):J(`em`,{children:`EMAIL_SENDER_DOMAIN is not configured for this environment`})})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:f?J(`strong`,{style:`color: red`,children:`SUSPENDED`}):J(`span`,{style:`color: #16a34a`,children:`active`})})]})]})}),Y(`h2`,{children:[`Usage (`,s,`)`]}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`Outbound recipient attempts`}),Y(Q,{children:[c,` / `,u??200,` `,Y(`span`,{style:lA,children:[`(`,u===void 0?`default`:`override`,`)`]})]})]}),Y(Z,{children:[J($,{children:`Inbound (received)`}),J(Q,{children:l})]}),Y(Z,{children:[J($,{children:`Burst cap`}),Y(Q,{children:[d??10,` / minute`,` `,Y(`span`,{style:lA,children:[`(`,d===void 0?`default`:`override`,`)`]})]})]})]})}),J(`p`,{style:lA,children:`Recipient submission attempts and inbound receipts are recorded in the platform database.`}),J(`h2`,{children:`Controls`}),Y(`form`,{method:`post`,action:`/admin/email/${a}/suspend`,children:[J(`input`,{type:`hidden`,name:`state`,value:f?`active`:`suspended`}),J(Mg,{type:`submit`,label:f?`Unsuspend email`:`Suspend email`,variant:f?`secondary`:`destructive`}),` `,J(`span`,{style:lA,children:`Suspending stops new outbound attempts and rejects new inbound messages with a permanent SMTP error. Outbound submissions that already started may still finish. There is no per-direction switch.`})]}),Y(`form`,{method:`post`,action:`/admin/email/${a}/limit`,style:`margin-top: 12px`,children:[J(fw,{label:`Monthly limit`,name:`limit`,width:200}),J(Mg,{type:`submit`,label:`Set monthly limit`}),` `,J(`span`,{style:lA,children:`Submit blank to drop the override back to the platform default.`})]}),Y(`form`,{method:`post`,action:`/admin/email/${a}/burst-limit`,style:`margin-top: 12px`,children:[J(fw,{label:`Burst limit`,name:`burstLimit`,width:200}),J(Mg,{type:`submit`,label:`Set burst limit`}),` `,J(`span`,{style:lA,children:`Per-minute cap. Submit blank to drop the override.`})]}),Y(`h2`,{children:[`Verified destinations (`,m.length,`)`]}),Y(`p`,{style:lA,children:[`Recipient addresses this project is allowed to send to. A `,J(`code`,{children:`pending`}),` row is waiting on the recipient clicking their verification link. Removing a row revokes it for this project only; the Cloudflare account-level address is deleted just when no other project still references it.`]}),m.length===0?J(`p`,{children:J(`em`,{children:`No destinations yet.`})}):Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Address`}),J($,{children:`Status`}),J($,{children:`Source`}),J($,{children:`Verified`}),J($,{})]})}),J(yO,{children:m.map(e=>Y(Z,{children:[J(Q,{children:e.address}),J(Q,{children:e.status===`verified`?J(`span`,{style:`color: #16a34a`,children:`verified`}):J(`span`,{style:`color: #d97706`,children:`pending`})}),J(Q,{children:e.verification_source}),J(Q,{children:e.verified_at?hk(e.verified_at,g):`-`}),J(Q,{children:J(`form`,{method:`post`,action:`/admin/email/${a}/destinations/${e.id}/delete`,"data-confirm":`Remove "${e.address}" from this project?`,"data-address":e.address,children:J(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),Y(`p`,{style:lA,children:[`Destinations are added by the project owner through`,` `,J(`code`,{children:`POST /projects/:id/email/destinations`}),`, which emails the recipient for consent. There is deliberately no operator-side "add" here: an admin cannot consent on a recipient's behalf.`]}),Y(`h2`,{children:[`Custom domains (`,p.length,`)`]}),J(`p`,{style:lA,children:`Exact sender and recipient domains on a Cloudflare zone. One connection owns the ingress Worker and catch-all; removing an assignment keeps shared resources while sibling domains use them. The platform stores connection credentials and never shows them here.`}),Y(`form`,{method:`post`,action:`/admin/email/${a}/domains/add`,style:`margin-bottom: 12px; display: flex; gap: 8px; align-items: center`,children:[J(cw,{label:`Domain`,name:`domain`,placeholder:`mail.example.com`,autoComplete:`off`,required:!0,width:240}),J(cw,{label:`API token`,name:`token`,type:`password`,placeholder:`Blank = platform credential`,autoComplete:`off`,width:300}),J(Mg,{type:`submit`,label:`Add domain`})]}),p.length===0?J(`p`,{children:J(`em`,{children:`No custom domains.`})}):Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Domain`}),J($,{children:`Inbound`}),J($,{children:`Outbound`}),J($,{children:`Management`}),J($,{children:`Managed by`}),J($,{children:`Ingress worker`}),J($,{children:`v`}),J($,{children:`Latest operation`}),J($,{})]})}),J(yO,{children:p.map(e=>Y(Z,{children:[J(Q,{children:e.domain}),Y(Q,{children:[J(`span`,{style:`color: ${uA(e.inbound)}`,children:e.inbound}),e.inboundReason&&Y(`small`,{children:[` — `,e.inboundReason]})]}),Y(Q,{children:[J(`span`,{style:`color: ${uA(e.outbound)}`,children:e.outbound}),e.outboundReason&&Y(`small`,{children:[` — `,e.outboundReason]})]}),Y(Q,{children:[J(`span`,{style:`color: ${uA(e.management)}`,children:e.management}),e.managementReason&&Y(`small`,{children:[` — `,e.managementReason]})]}),J(Q,{children:e.managed_by}),J(Q,{children:e.relay_worker_name??`-`}),J(Q,{children:e.relay_version??`-`}),J(Q,{children:e.operation?Y(G.Fragment,{children:[J(`code`,{children:e.operation.id}),` (`,e.operation.status,`)`]}):`-`}),Y(Q,{children:[J(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/rotate-secret`,children:J(Mg,{type:`submit`,label:`Rotate secret`,size:`sm`})}),Y(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/revoke`,"data-confirm":`Remove "${e.domain}"? This disables its exact assignment. Shared ingress stays while another domain uses it.`,"data-domain":e.domain,children:[J(cw,{label:`Confirm project slug`,name:`confirm`,placeholder:o.slug,autoComplete:`off`,required:!0,width:190}),` `,J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})]})}Oc(),hn(),ut();var fA=(0,y.createContext)(null);fA.displayName=`RadioListContext`;function pA({ref:e,label:t,isLabelHidden:n=!1,description:r,value:i,onChange:a,orientation:o=`vertical`,isDisabled:s=!1,disabledMessage:c,isRequired:l=!1,isOptional:u=!1,size:d=`md`,status:f,labelTooltip:p,width:m,xstyle:h,className:g,style:_,"data-testid":v,htmlName:b,children:x}){let S=(0,y.useId)(),C=b??S,w=(0,y.useId)(),T=(0,y.useId)(),E=(0,y.useId)(),D=(0,y.useId)(),O=(0,y.useRef)(null),k=Db({isRequired:l,isOptional:u}),A=s&&!!c,j=Mi({placement:`above`,focusTrigger:`always`,isEnabled:A}),M=(0,y.useMemo)(()=>({name:C,value:i,onChange:a,isDisabled:s,hasDisabledMessage:A,isRequired:l,size:d,status:f}),[C,i,a,s,A,l,d,f]),N=(0,y.useCallback)(e=>{if(i!==``)return;let t=O.current;if(!t)return;let n=e.relatedTarget;if(n){if(t.contains(n))return}else if(document.activeElement&&document.activeElement!==e.target&&t.contains(document.activeElement))return;let r=Array.from(t.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let a=e.target,o=r.findIndex(e=>e===a);if(o===-1)return;let s=o===r.length-1?r[r.length-1]:r[0];a!==s&&s.focus()},[i]);return(0,G.jsxs)(Qb,{ref:e,"data-testid":v,label:t,isLabelHidden:n,description:r,inputID:w,labelID:T,isGroupLabel:!0,descriptionID:r?E:void 0,isOptional:u,isRequired:l,isDisabled:s,status:f?{type:f.type,message:f.message,messageID:f.message?D:void 0}:void 0,labelTooltip:p,statusVariant:`detached`,width:m,xstyle:h,className:g,style:_,children:[(0,G.jsx)(`div`,{ref:e=>{O.current=e,j.ref(e)},role:`radiogroup`,"aria-labelledby":T,onFocus:N,"aria-describedby":[r?E:null,f?.message?D:null,A?j.describedBy:null].filter(Boolean).join(` `)||void 0,"aria-invalid":f?.type===`error`||void 0,"aria-required":k||void 0,...W(U(`radio-list`,{orientation:o,size:d}),{0:{className:`x78zum5 x1q0g3np x9mgr7n`},1:{className:`x78zum5 xdt5ytf x1txdalj`}}[(o===`vertical`)<<0]),children:(0,G.jsx)(fA,{value:M,children:x})}),A&&j.renderTooltip(c)]})}pA.displayName=`RadioList`,H(),hn(),_b(),ut();var mA={radioWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xq94oqs`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 x2kv6q6`,$$css:!0},input:{kVAEAm:`x10l6tqk`,k87sOh:`xwa60dl`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kSiTet:`xg01cxk`,kkrTdU:`x1ypdohk x16khyan`,kY2c9j:`x1vjfegm`,$$css:!0},inputCoarse:{kjFi6P:`xkagaj0`,kHzOjL:`x80b3aj`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0}},hA={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},gA={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,k7Eaqz:`xeuugli`,kWkggS:`xjbqb8w`,$$css:!0}};function _A({ref:e,label:t,"aria-label":n,value:r,description:i,isDisabled:a=!1,startContent:o,endContent:s,xstyle:c,className:l,style:u,onClick:d,...f}){let p=(0,y.use)(fA);if(!p)throw Error(`RadioListItem must be used within an RadioList`);let m=(0,y.useId)(),h=(0,y.useId)(),g=(0,y.useId)(),_=p.isDisabled||a,v=p.hasDisabledMessage&&!a,b=p.value===r,x=It(i),S=p.size,C=Wb(`radio`),w=(0,y.useRef)(null),{focusProps:T}=hb(w,_),E=(0,y.useRef)(null),D=(0,G.jsxs)(`div`,{...V(mA.radioWrapper,hA[S],!_&&mA.indicatorPressOverlay),...T,children:[(0,G.jsx)(`input`,{ref:E,id:m,type:`radio`,name:p.name,value:r,checked:b,disabled:_&&!v,"aria-disabled":v?`true`:void 0,form:v?``:void 0,required:p.isRequired,onChange:()=>{_||p.onChange(r)},onClick:d,"aria-label":n,"aria-labelledby":n==null?h:void 0,"aria-describedby":x?g:void 0,...V(mA.input,$t.centerInline(`-50%`),mA.inputCoarse,hA[S],_&&mA.inputDisabled)}),(0,G.jsx)(`span`,{ref:w,className:`xjp7ctv`,children:(0,G.jsx)(C,{state:b?`checked`:`unchecked`,size:S,isDisabled:_})})]}),O=It(o)?(0,G.jsxs)(G.Fragment,{children:[D,o]}):D;return(0,G.jsx)(oS,{ref:e,startContent:O,interactiveRef:E,isDisabled:_,label:(0,G.jsx)(`span`,{id:h,children:t}),description:x?(0,G.jsx)(`span`,{id:g,children:i}):void 0,endContent:s,xstyle:[!_&&Eb,gA.root,c],...W(U(`radio-list-item`,{size:S,selected:b?`selected`:null,disabled:_?`disabled`:null}),{className:l,style:u}),...f})}_A.displayName=`RadioListItem`;var vA=`font-size: 0.8rem; color: #666`,yA=`https://void.cloud/guide/platform/installation/credentials#enable-email`;function bA({path:e,platformName:t,username:n,emailEnabled:r}){return r===!1?Y(wD,{platformName:t,title:`Email`,username:n,children:[J(`h1`,{children:`Email`}),Y(`div`,{className:`void-admin-email-disabled-content`,children:[J(`p`,{children:`Email is not enabled on this platform.`}),J(`p`,{children:`Set up a shared sender domain and Cloudflare zone, then upgrade the platform.`}),J(Mg,{as:`a`,href:yA,label:`How to enable email`,variant:`secondary`})]})]}):J(xA,{path:e,platformName:t,username:n})}function xA({path:e,platformName:t,username:n}){let{emailSettings:r}=Zh(uv(e),{mode:`stale-while-revalidate`}),i=Kh(cv,r);if(!i)throw Error(`Email settings are unavailable.`);let{policy:a,management:o,senderDomain:s}=i,[c,l]=(0,y.useState)(a.mode),[u,d]=(0,y.useState)(o);return Y(wD,{platformName:t,title:`Email`,username:n,children:[J(`h1`,{children:`Email`}),J(`p`,{style:vA,children:`Installation-wide settings. Per-project usage, caps and domains live on each project's email page (Projects → project → Email).`}),J(`h2`,{children:`Recipient policy`}),Y(`p`,{children:[`Choose which recipients can receive email sent from the shared sender`,s?Y(G.Fragment,{children:[` `,`(`,J(`code`,{children:`<slug>+tag@${s}`}),`)`]}):null,`. This does not affect email sent from custom domains.`]}),Y(`form`,{method:`post`,action:`/admin/email/policy`,className:`void-admin-email-choice-form`,children:[Y(pA,{label:`Recipient policy`,isLabelHidden:!0,size:`sm`,htmlName:`mode`,value:c,onChange:e=>l(e),children:[J(_A,{value:`verified`,label:`verified`,description:`Only each project's verified destinations (default)`}),J(_A,{value:`domains`,label:`domains`,description:`Verified destinations, plus any address on these domains. Addresses on the platform's own mail domain stay verified-destination-only.`}),J(_A,{value:`any`,label:`any`,description:`Every recipient; addresses on the platform's own mail domain stay verified-destination-only, so no project reaches another project's inbox without its consent.`})]}),J(lw,{label:`Allowed domains`,name:`domains`,initialValue:a.domains.join(`
64
+ `),rows:3,width:360,placeholder:`example.com, corp.example.net`}),J(Mg,{type:`submit`,label:`Save policy`})]}),Y(`p`,{style:vA,children:[`With `,J(`code`,{children:`domains`}),` or `,J(`code`,{children:`any`}),`, Cloudflare still refuses a destination it has not verified unless the platform mail domain is onboarded for Email Sending (Workers Paid). Those refusals arrive as per-recipient `,J(`code`,{children:`UNVERIFIED_DESTINATION`}),` results.`]}),J(`h2`,{children:`Domain management`}),J(`p`,{children:`Who registers custom email domains for projects.`}),Y(`form`,{method:`post`,action:`/admin/email/settings`,className:`void-admin-email-choice-form`,children:[Y(pA,{label:`Domain management`,isLabelHidden:!0,size:`sm`,htmlName:`domains`,value:u,onChange:e=>d(e),children:[J(_A,{value:`self-serve`,label:`self-serve`,description:`Project owners grant a Cloudflare credential from void email domain add.`}),J(_A,{value:`admin`,label:`admin`,description:`Administrators add domains; void email domain add prints the administrator's command instead.`})]}),J(Mg,{type:`submit`,label:`Save`})]})]})}function SA({status:e}){return J(AD,{label:e,variant:e===`pending`?`warning`:e===`revoked`?`error`:`neutral`})}function CA({path:e,platformName:t,username:n}){let{invitations:r}=Zh(tv(e),{mode:`stale-while-revalidate`}),i=Kh(Q_,r);if(!i)throw Error(`Invitations are unavailable.`);let{invitations:a,page:o,totalPages:s,tz:c}=i;return Y(wD,{platformName:t,title:`Invitations`,username:n,children:[J($i,{level:1,children:`Invitations`}),Y(`form`,{method:`post`,action:`/admin/invitations/send`,style:`margin-bottom: 20px; display: flex; gap: 8px; align-items: flex-start`,children:[J(lw,{label:`Email addresses`,name:`email`,placeholder:`user@example.com, teammate@example.com`,required:!0,rows:3,width:360}),J(Mg,{type:`submit`,label:`Send Invites`})]}),Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Email`}),J($,{children:`Status`}),J($,{children:`Invited By`}),J($,{children:`Sent`}),J($,{children:`Accepted At`}),J($,{children:`Revoked`}),J($,{children:`Actions`})]})}),J(yO,{children:a.map(e=>Y(Z,{children:[J(Q,{children:e.email}),J(Q,{children:J(SA,{status:e.status})}),J(Q,{children:e.invited_by_login??e.invited_by}),J(Q,{children:e.created_at?hk(e.created_at,c):`-`}),J(Q,{children:e.accepted_at?hk(e.accepted_at,c):`-`}),J(Q,{children:e.revoked_at?Y(G.Fragment,{children:[hk(e.revoked_at,c),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`-`}),J(Q,{children:e.status===`pending`&&Y(`form`,{method:`post`,action:`/admin/invitations/revoke`,style:`display:inline`,children:[J(`input`,{type:`hidden`,name:`id`,value:e.id}),J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})})]},e.id))})]}),a.length===0&&J(`p`,{children:J(`em`,{children:`No invitations yet.`})}),J(aA,{page:o,totalPages:s,baseUrl:`/admin/invitations`})]})}function wA({message:e}){return J(`main`,{className:`void-admin-auth`,children:J(Wg,{status:`error`,title:`Login failed`,description:e})})}var TA={queued:`○ queued`,starting:`● starting`,building:`● building`,deploying:`● deploying`,complete:`✓ complete`,failed:`✗ failed`,cancelled:`⊘ cancelled`};function EA(e){return lk.includes(e)}function DA(e){switch(e){case`complete`:return`color: #16a34a; font-weight: 600`;case`failed`:case`cancelled`:return`color: #dc2626`;case`starting`:case`building`:case`deploying`:return`color: #ca8a04; font-weight: 600`;default:return}}function OA(e){if(!e.started_at)return`-`;let t=new Date(e.started_at.endsWith(`Z`)?e.started_at:e.started_at+`Z`).getTime(),n=e.completed_at?new Date(e.completed_at.endsWith(`Z`)?e.completed_at:e.completed_at+`Z`).getTime():Date.now();if(isNaN(t)||isNaN(n)||n<t)return`-`;let r=Math.floor((n-t)/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function kA({builds:e,tz:t}){return e.length===0?J(`p`,{children:J(`em`,{children:`No builds.`})}):Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`ID`}),J($,{children:`Status`}),J($,{children:`Executor`}),J($,{children:`Instance`}),J($,{children:`Commit`}),J($,{children:`Branch`}),J($,{children:`Started`}),J($,{children:`Duration`})]})}),J(yO,{children:e.map(e=>Y(Z,{className:EA(e.status)?`build-active`:void 0,children:[J(Q,{children:J(`a`,{href:`/admin/builds/${e.id}`,children:e.id})}),J(Q,{children:J(`span`,{style:DA(e.status),children:TA[e.status]??e.status})}),J(Q,{children:e.executor}),J(Q,{children:e.instance_type??`-`}),J(Q,{children:e.commit_sha?e.commit_sha.slice(0,7):`-`}),J(Q,{children:e.branch??`-`}),J(Q,{children:e.started_at?hk(e.started_at,t):`-`}),J(Q,{children:J(`span`,{suppressHydrationWarning:!0,children:OA(e)})})]},e.id))})]})}var AA=new Set;function jA({label:e,selected:t,onChange:n,excludedUserIds:r=AA}){let i=Hh(),a=(0,y.useMemo)(()=>({bootstrap:()=>[],search:async e=>{let{usersPage:t}=await i.request(z_(`/admin/users?search=${encodeURIComponent(e)}`),{mode:`network-only`});if(!t)return[];let{data:n}=await i.readView(I_,t);return n.users.filter(e=>!r.has(e.id)).map(e=>({id:e.id,label:e.login,auxiliaryData:{email:e.email}}))}}),[i,r]);return(0,G.jsx)(Xk,{label:e,placeholder:`Search by login, email, or ID`,searchSource:a,value:t,onChange:n,onChangeQuery:()=>n(null),renderItem:e=>(0,G.jsx)(XO,{item:e,description:[e.auxiliaryData?.email,e.id].filter(Boolean).join(` · `)}),minQueryLength:2,width:`min(100%, 320px)`,emptySearchResultsText:`No eligible users found.`})}function MA({projectId:e}){let[t,n]=(0,y.useState)(null);return(0,G.jsxs)(`section`,{id:`owner-transfer`,className:`void-admin-owner-transfer`,children:[(0,G.jsx)(`h2`,{children:`Transfer Ownership`}),(0,G.jsx)(`p`,{children:`Transfer this project to an existing Void Platform user. You will review the ownership, plan, suspension, active-work, routing, and usage-counter changes before applying them.`}),(0,G.jsxs)(`form`,{className:`void-admin-owner-transfer-form`,method:`post`,action:`/admin/projects/${e}/owner/preview`,children:[(0,G.jsx)(jA,{label:`New owner`,selected:t,onChange:n}),(0,G.jsx)(`input`,{type:`hidden`,name:`userId`,value:t?.id??``}),(0,G.jsx)(Mg,{type:`submit`,label:`Preview Transfer`,isDisabled:!t})]})]})}var NA=[{value:`reader`,label:`Reader`},{value:`collaborator`,label:`Collaborator`},{value:`admin`,label:`Admin`}];function PA({projectId:e,owner:t,members:n,invitations:r,tz:i}){let[a,o]=(0,y.useState)(null),s=(0,y.useMemo)(()=>new Set([...t?[t.id]:[],...n.map(({user:e})=>e.id)]),[t,n]);return(0,G.jsxs)(`section`,{id:`team`,className:`void-admin-project-team`,children:[(0,G.jsxs)(`h2`,{children:[`Team members (`,n.length+1,`)`]}),(0,G.jsx)(`p`,{children:`Add an existing platform user to this project with the selected role.`}),(0,G.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,G.jsxs)(UO,{children:[(0,G.jsx)(vO,{children:(0,G.jsxs)(Z,{children:[(0,G.jsx)($,{children:`User`}),(0,G.jsx)($,{children:`Role`}),(0,G.jsx)($,{children:`Joined`}),(0,G.jsx)($,{children:`Actions`})]})}),(0,G.jsxs)(yO,{children:[(0,G.jsxs)(Z,{children:[(0,G.jsx)(Q,{children:t?(0,G.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}):`Owner account unavailable`}),(0,G.jsx)(Q,{children:`Owner`}),(0,G.jsx)(Q,{children:`—`}),(0,G.jsx)(Q,{children:(0,G.jsx)(`a`,{href:`#owner-transfer`,children:`Transfer ownership to change the owner`})})]}),n.map(({user:t,role:n,createdAt:r})=>(0,G.jsxs)(Z,{children:[(0,G.jsxs)(Q,{children:[(0,G.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}),t.email&&(0,G.jsx)(`span`,{className:`void-admin-team-email`,children:t.email})]}),(0,G.jsx)(Q,{children:n}),(0,G.jsx)(Q,{children:hk(r,i)}),(0,G.jsx)(Q,{children:(0,G.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,G.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/role`,children:[(0,G.jsx)(uw,{label:`Role for ${t.login}`,name:`role`,options:NA,initialValue:n,width:160}),(0,G.jsx)(Mg,{type:`submit`,label:`Save role`,size:`sm`})]}),(0,G.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/remove`,"data-confirm":`Remove ${t.login} from this project?`,children:(0,G.jsx)(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})]})})]},t.id))]})]})}),(0,G.jsx)(`h3`,{children:`Add team member`}),(0,G.jsxs)(`form`,{className:`void-admin-team-add`,method:`post`,action:`/admin/projects/${e}/team/add`,children:[(0,G.jsx)(jA,{label:`Search registered users`,selected:a,onChange:o,excludedUserIds:s}),(0,G.jsx)(`input`,{type:`hidden`,name:`userId`,value:a?.id??``}),(0,G.jsx)(uw,{label:`Project role`,name:`role`,options:NA,initialValue:`reader`,width:180}),(0,G.jsx)(Mg,{type:`submit`,label:`Add member`,isDisabled:!a})]}),r.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`h3`,{children:[`Pending invitations (`,r.length,`)`]}),(0,G.jsxs)(`p`,{children:[`If email delivery is unavailable, share the invitation ID and ask the user to run`,` `,(0,G.jsx)(`code`,{children:`void project team accept <invitation-id>`}),`.`]}),(0,G.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,G.jsxs)(UO,{children:[(0,G.jsx)(vO,{children:(0,G.jsxs)(Z,{children:[(0,G.jsx)($,{children:`Email`}),(0,G.jsx)($,{children:`Role`}),(0,G.jsx)($,{children:`Invitation ID`}),(0,G.jsx)($,{children:`Expires`}),(0,G.jsx)($,{children:`Action`})]})}),(0,G.jsx)(yO,{children:r.map(t=>(0,G.jsxs)(Z,{children:[(0,G.jsx)(Q,{children:t.email}),(0,G.jsx)(Q,{children:t.role}),(0,G.jsx)(Q,{children:(0,G.jsx)(`code`,{children:t.id})}),(0,G.jsx)(Q,{children:hk(t.expiresAt,i)}),(0,G.jsx)(Q,{children:(0,G.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/invitations/${t.id}/revoke`,"data-confirm":`Revoke the invitation for ${t.email}?`,children:(0,G.jsx)(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})})})]},t.id))})]})})]})]})}function FA({path:e,platformName:t,username:n}){let{projectDetail:r}=Zh(q_(e),{mode:`stale-while-revalidate`}),i=Kh(U_,r);if(!i)throw Error(`Project data is unavailable.`);let{project:a,deployments:o,resources:s,owner:c,teamMembers:l,pendingTeamInvitations:u,domains:d,builds:f,cfAccountId:p,deployUrl:m,tz:h}=i;return ck(i.project.slug,t),Y(wD,{platformName:t,title:a.slug,username:n,children:[J(`h1`,{children:a.slug}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id})]}),Y(Z,{children:[J($,{children:`Slug`}),J(Q,{children:a.slug})]}),Y(Z,{children:[J($,{children:`URL`}),J(Q,{children:J(`a`,{href:m,target:`_blank`,rel:`noopener noreferrer`,children:m})})]}),Y(Z,{children:[J($,{children:`Custom Domain`}),J(Q,{children:d.length>0?d.map(e=>Y(`span`,{children:[J(`a`,{href:`https://${e.hostname}`,target:`_blank`,rel:`noopener noreferrer`,children:e.hostname}),` `,`(`,e.status,`)`,` `]},e.id)):J(G.Fragment,{children:`None`})})]}),Y(Z,{children:[J($,{children:`Owner`}),J(Q,{children:c?J(`a`,{href:`/admin/users/${c.id}`,children:c.login}):a.user_id})]}),Y(Z,{children:[J($,{children:`Type`}),J(Q,{children:a.type})]}),Y(Z,{children:[J($,{children:`Email`}),J(Q,{children:J(`a`,{href:`/admin/email/${a.id}`,children:`usage, limits, destinations`})})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,h)})]})]})}),Y(`h2`,{children:[`Resources (`,s.length,`)`]}),s.length>0?Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Type`}),J($,{children:`Binding`}),J($,{children:`CF ID`})]})}),J(yO,{children:s.map(e=>Y(Z,{children:[J(Q,{children:e.type}),J(Q,{children:e.binding_name}),J(Q,{children:p&&(e.type===`d1`||e.type===`kv`||e.type===`r2`)?J(`a`,{href:e.type===`d1`?`https://dash.cloudflare.com/${p}/workers/d1/databases/${e.cf_id}/metrics`:e.type===`kv`?`https://dash.cloudflare.com/${p}/workers/kv/namespaces/${e.cf_id}/metrics`:`https://dash.cloudflare.com/${p}/r2/default/buckets/${e.cf_id}`,target:`_blank`,rel:`noopener noreferrer`,children:e.cf_id}):e.cf_id})]},e.id))})]}):J(`p`,{children:J(`em`,{children:`No resources provisioned.`})}),Y(`h2`,{children:[`Recent Deployments (`,o.length,`)`]}),J(Ek,{deployments:o,activeDeploymentId:a.active_deployment_id,tz:h}),Y(`h2`,{children:[`Builds (`,f.length,`)`]}),J(kA,{builds:f,tz:h}),J(PA,{projectId:a.id,owner:c,members:l,invitations:u,tz:h}),J(MA,{projectId:a.id}),J(`h2`,{children:`Danger Zone`}),J(`form`,{method:`post`,action:`/admin/projects/${a.id}/delete`,"data-confirm":`Permanently delete project "${a.slug}" and all its resources? This cannot be undone.`,"data-slug":a.slug,children:J(Mg,{type:`submit`,label:`Delete Project`,variant:`destructive`})})]})}function IA(e){return e.suspended?`Suspended (${e.suspendedReason??`unknown reason`})`:`Active`}function LA({result:e,convergenceOnly:t,operationBlocked:n,projectId:r,userId:i,platformName:a,username:o}){return Y(wD,{platformName:a,title:`${t?`Converge`:`Transfer`} ${e.target.slug}`,username:o,children:[Y(`h1`,{children:[t?`Converge Ownership State`:`Transfer Ownership`,`: `,e.target.slug]}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Account`}),J($,{children:`User`}),J($,{children:`Plan`}),J($,{children:`Status`})]})}),Y(yO,{children:[Y(Z,{children:[J($,{children:`Current owner`}),Y(Q,{children:[e.currentOwner.login,` (`,J(`code`,{children:e.currentOwner.id}),`)`]}),J(Q,{children:e.currentOwner.plan}),J(Q,{children:IA(e.currentOwner)})]}),Y(Z,{children:[J($,{children:`New owner`}),Y(Q,{children:[e.newOwner.login,` (`,J(`code`,{children:e.newOwner.id}),`)`]}),J(Q,{children:e.newOwner.plan}),J(Q,{children:IA(e.newOwner)})]})]})]}),t?Y(`p`,{children:[`This project is already owned by the target. This is a convergence-only operation: applying it repairs membership, usage-counter, routing, and account metadata without changing ownership. The owner's stored project role is`,` `,J(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is`,` `,e.usageTransfer,`.`]}):Y(`p`,{children:[`The former owner will become a `,J(`strong`,{children:e.formerOwnerRole}),`. The target's current project role is `,J(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is `,e.usageTransfer,`.`]}),J(`h2`,{children:`Operation blockers`}),e.blockers.length>0?Y(G.Fragment,{children:[J(`ul`,{children:e.blockers.map(e=>Y(`li`,{children:[e.kind,`: `,e.id,` (`,e.status,`)`]},`${e.kind}:${e.id}`))}),t&&!n?J(`p`,{children:`Active work does not block convergence.`}):null]}):J(`p`,{children:`None.`}),J(`h2`,{children:`Convergence`}),J(`p`,{children:e.counterUpdates.detachUserId?Y(G.Fragment,{children:[`Usage counters: detach from `,J(`code`,{children:e.counterUpdates.detachUserId}),`, attach to`,` `,J(`code`,{children:e.counterUpdates.attachUserId}),`.`]}):Y(G.Fragment,{children:[`Usage counters: attach or reconcile with`,` `,J(`code`,{children:e.counterUpdates.attachUserId}),`; no former-owner detachment is needed.`]})}),Y(`p`,{children:[`Routing and account entries: `,e.routingUpdates.join(`, `)]}),J(`h2`,{children:`GitHub authorization provenance`}),e.github?Y(`p`,{children:[e.github.repository,` installation `,e.github.installationId,`, authorized by`,` `,e.github.authorizedByUserId??`unknown`,` (`,e.github.executor,`).`]}):J(`p`,{children:`No GitHub connection.`}),n?J(`p`,{children:t?`Project deletion blocks convergence.`:`Resolve or cancel all active work before applying this transfer.`}):Y(`form`,{method:`post`,action:`/admin/projects/${r}/owner`,children:[J(`input`,{type:`hidden`,name:`userId`,value:i}),J(Mg,{type:`submit`,label:t?`Apply Convergence`:`Apply Ownership Transfer`,variant:`destructive`})]}),J(`p`,{children:J(`a`,{href:`/admin/projects/${r}`,children:`Back to project`})})]})}function RA({path:e,platformName:t,username:n}){let{projectsPage:r}=Zh(B_(e),{mode:`stale-while-revalidate`}),i=Kh(L_,r);if(!i)throw Error(`Projects page data is unavailable.`);let{projects:a,search:o,page:s,totalPages:c,siteDomain:l,tz:u}=i,[d,f]=(0,y.useState)(o??``);(0,y.useEffect)(()=>f(o??``),[o]);let p=a.find(e=>e.id===o);return Y(wD,{platformName:t,title:`Projects`,username:n,children:[J(`h1`,{children:`Projects`}),J(oA,{action:`/admin/projects`,kind:`projects`,label:`Search projects`,value:d,onChange:f,initialValue:o,initialSelection:p?{id:p.id,label:p.slug,description:p.owner_login??void 0}:void 0}),J(Ok,{projects:a,siteDomain:l,tz:u}),s!=null&&c!=null&&J(aA,{page:s,totalPages:c,baseUrl:`/admin/projects`})]})}function zA({value:e}){return J(AD,{label:e?`Yes`:`No`,variant:e?`success`:`neutral`})}function BA({label:e,value:t}){let[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(!1);return Y(`div`,{className:`void-admin-access-copy-value`,children:[Y(`label`,{children:[J(`span`,{children:e}),J(`input`,{"aria-label":e,readOnly:!0,value:t,onFocus:e=>e.currentTarget.select()})]}),J(Mg,{type:`button`,label:n?`Copied`:`Copy`,variant:`secondary`,size:`sm`,onClick:async()=>{try{await navigator.clipboard.writeText(t),r(!0),a(!1)}catch{a(!0)}}}),i&&J(`span`,{role:`status`,children:`Select the value to copy it manually.`})]})}function VA({status:e}){return e===`sent`?J(AD,{label:`Sent`,variant:`success`}):e===`failed`?J(AD,{label:`Failed`,variant:`error`}):e===`unavailable`?J(AD,{label:`Email off`,variant:`neutral`}):J(AD,{label:`Not recorded`,variant:`neutral`})}function HA({path:e,platformName:t,username:n}){let{signupControl:r}=Zh(ev(e),{mode:`stale-while-revalidate`}),i=Kh(Z_,r);if(!i)throw Error(`Access settings are unavailable.`);let{enabled:a,admission:o,initialized:s,revision:c,methods:l,protection:u,connections:d,directEntries:f,invitations:p,page:m,totalPages:h,emailEnabled:g,connectCommand:_,inviteUrl:v,result:y,tz:b}=i,x=o?.mode??(a?`restricted`:`public`),S=l.filter(e=>e.enabled&&e.kind!==`github`);return J(wD,{platformName:t,title:`Access`,username:n,children:Y(`div`,{className:`void-admin-access-page`,children:[Y(`header`,{className:`void-admin-access-intro`,children:[J($i,{level:1,children:`Access`}),J(`p`,{children:`Decide who can join this platform and manage invitations and individual grants.`})]}),J(`section`,{"aria-labelledby":`access-policy-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-access-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`access-policy-heading`,children:`Who can join?`}),J(`p`,{children:`These rules apply when someone creates a platform account.`})]}),J(AD,{label:x===`public`?`Public`:x===`company`?`Company or approved`:`Approved only`,variant:x===`public`?`warning`:`neutral`})]}),s?Y(`form`,{method:`post`,action:`/admin/signup-control/policy`,className:`void-admin-access-form`,children:[J(`input`,{type:`hidden`,name:`revision`,value:c??0}),J(uw,{label:`Signup policy`,name:`mode`,initialValue:x,options:[{value:`restricted`,label:`Only individually approved people`},{value:`company`,label:`Company-approved or individually approved people`},{value:`public`,label:`Anyone with an enabled login method`}],width:420}),J(`p`,{className:`void-admin-access-muted`,children:x===`restricted`?`An invitation or direct grant is required before someone can create an account.`:x===`company`?`People who meet a selected company policy or have an individual grant can join.`:`Anyone with an enabled login method can join. Individual invitations are unnecessary.`}),Y(`div`,{className:`void-admin-access-company-policy`,children:[J(`h3`,{children:`Company-approved methods`}),J(`p`,{children:`Select which existing login checks qualify someone when company signup is chosen.`}),Y(`div`,{className:`void-admin-access-checkboxes`,children:[S.map(e=>J(dw,{label:e.label,name:`connections`,submitValue:e.id,initialValue:o?.mode===`company`&&o.connections.includes(e.id)},e.id)),u&&J(dw,{label:`Anyone who passes Cloudflare Access protection`,name:`access`,submitValue:`true`,initialValue:o?.mode===`company`&&o.access}),S.length===0&&!u&&Y(`p`,{children:[`No company-approved methods are available. Configure one in`,` `,J(`a`,{href:`/admin/config/auth`,children:`Authentication`}),` before selecting this policy.`]})]})]}),J(`p`,{className:`void-admin-access-muted`,children:`New accounts are ordinary users. Changing this policy does not change Cloudflare Access protection.`}),J(Mg,{type:`submit`,label:`Save signup policy`})]}):Y(`div`,{className:`void-admin-access-form`,children:[Y(`p`,{children:[`To use company-approved signup, first set up`,` `,J(`a`,{href:`/admin/config/auth`,children:`Authentication settings`}),`.`]}),Y(`form`,{method:`post`,action:`/admin/signup-control/toggle`,className:`void-admin-access-inline-form`,children:[Y(`span`,{children:[`Signup is`,` `,a?`restricted to approved people`:`open to anyone with an enabled login`,`.`]}),J(Mg,{type:`submit`,label:a?`Open signup`:`Restrict signup`,variant:`secondary`})]})]})]})}),J(`section`,{"aria-labelledby":`access-invite-heading`,children:Y(C_,{children:[Y(`div`,{className:`void-admin-access-section-header`,children:[Y(`div`,{children:[J($i,{level:2,id:`access-invite-heading`,children:`Invite people`}),J(`p`,{children:x===`public`?`Signup is public. Share the platform address with anyone you want to join.`:g?`Create an invitation for each email address. We'll email them connection instructions.`:`Create an invitation for each email address. Since email is off, share the platform link below yourself.`})]}),J(AD,{label:g?`Email enabled`:`Email not enabled`,variant:g?`success`:`neutral`})]}),y===`invited`&&J(`p`,{role:`status`,className:`void-admin-access-notice`,children:g?`Invitations created. Check the history below to see whether email was sent.`:`Invitations created. Share the platform link below with each person.`}),x!==`public`&&Y(`form`,{method:`post`,action:`/admin/invitations/send`,className:`void-admin-access-form`,children:[J(lw,{label:`Email addresses`,name:`email`,placeholder:`person@example.com, teammate@example.com`,required:!0,rows:3,width:440}),J(`p`,{className:`void-admin-access-muted`,children:`Each person must sign in with a login method that supplies the same verified email address.`}),J(Mg,{type:`submit`,label:g?`Invite and email`:`Create invitations`})]}),Y(`div`,{className:`void-admin-access-share`,children:[J(`h3`,{children:g?`Share connection details`:`Share these details manually`}),J(BA,{label:`Platform invitation page`,value:v}),J(BA,{label:`Void CLI connection command`,value:_})]})]})}),J(`section`,{"aria-labelledby":`access-grants-heading`,children:Y(C_,{children:[J(`div`,{className:`void-admin-access-section-header`,children:Y(`div`,{children:[J($i,{level:2,id:`access-grants-heading`,children:`Direct grants`}),Y(`p`,{children:[`Allow a GitHub username, email address or domain, or login identity to sign up. These rules do not create invitations or send email.`,x===`public`&&` While signup is public, grants do not limit who can join.`]})]})}),Y(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[J(uw,{label:`Grant type`,name:`type`,initialValue:`github`,options:[{value:`github`,label:`GitHub username`},{value:`email`,label:`Email or domain pattern`}],width:210}),J(lw,{label:`Pattern`,name:`pattern`,placeholder:`username, person@example.com, *@company.com`,required:!0,rows:3,width:360}),J(cw,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),J(Mg,{type:`submit`,label:`Add grant`})]}),d.length>0&&Y(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[J(`input`,{type:`hidden`,name:`type`,value:`identity`}),J(uw,{label:`Login connection`,name:`connectionId`,initialValue:d[0]?.id??``,options:d.map(e=>({value:e.id,label:`${e.label} (${e.id})`})),width:250,hasSearch:!0}),J(cw,{label:`Provider subject`,name:`subject`,placeholder:`Exact provider subject`,required:!0,maxLength:255,width:340}),J(cw,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),J(Mg,{type:`submit`,label:`Add identity`})]}),J(`p`,{className:`void-admin-access-muted`,children:`Identity grants match the selected login connection and provider subject exactly, including case. Email is not inferred or linked.`}),J(`div`,{className:`void-admin-access-table`,children:Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Type`}),J($,{children:`Grant`}),J($,{children:`Note`}),J($,{children:`Accepted`}),J($,{children:`Deployed`}),J($,{children:`Actions`})]})}),J(yO,{children:f.map(e=>Y(Z,{children:[J(Q,{children:e.type}),J(Q,{children:e.type===`identity`?`${e.connectionId}: ${e.subject}`:e.pattern}),J(Q,{children:e.note||`—`}),J(Q,{children:J(zA,{value:e.accepted})}),J(Q,{children:J(zA,{value:e.deployed})}),J(Q,{children:Y(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[J(`input`,{type:`hidden`,name:`index`,value:e.index}),J(Mg,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})]})})]},e.type===`identity`?`${e.type}-${e.connectionId}-${e.subject}`:`${e.type}-${e.pattern}`))})]})}),f.length===0&&J(`p`,{className:`void-admin-access-muted`,children:`No direct grants yet.`})]})}),J(`section`,{"aria-labelledby":`access-history-heading`,children:Y(C_,{children:[J(`div`,{className:`void-admin-access-section-header`,children:Y(`div`,{children:[J($i,{level:2,id:`access-history-heading`,children:`Invitation history`}),J(`p`,{children:`Invitation status and email delivery are tracked separately. Invitations do not expire.`})]})}),J(`div`,{className:`void-admin-access-table`,children:Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Email`}),J($,{children:`Access`}),J($,{children:`Email delivery`}),J($,{children:`Invited by`}),J($,{children:`Created`}),J($,{children:`Accepted`}),J($,{children:`Revoked`}),J($,{children:`Actions`})]})}),J(yO,{children:p.map(e=>Y(Z,{children:[J(Q,{children:e.email}),J(Q,{children:J(AD,{label:e.status,variant:e.status===`pending`?`warning`:e.status===`revoked`?`error`:`success`})}),J(Q,{children:J(VA,{status:e.email_delivery_status})}),J(Q,{children:e.invited_by_login??e.invited_by}),J(Q,{children:e.created_at?hk(e.created_at,b):`—`}),J(Q,{children:e.accepted_at?hk(e.accepted_at,b):`—`}),J(Q,{children:e.revoked_at?Y(G.Fragment,{children:[hk(e.revoked_at,b),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`—`}),Y(Q,{children:[e.status===`pending`&&Y(`form`,{method:`post`,action:`/admin/invitations/revoke`,children:[J(`input`,{type:`hidden`,name:`id`,value:e.id}),J(Mg,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]}),e.status===`accepted`&&e.grantIndex!==null&&Y(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[J(`input`,{type:`hidden`,name:`index`,value:e.grantIndex}),J(Mg,{type:`submit`,label:`Remove signup grant`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})}),p.length===0&&J(`p`,{className:`void-admin-access-muted`,children:`No invitations yet.`}),J(aA,{page:m,totalPages:h,baseUrl:`/admin/signup-control`})]})})]})})}var UA=1073741824,WA={free:{requestsPerMonth:3e6,cpuMsPerRequest:10,maxCpuMsPerRequest:10,subRequestsPerInvocation:50,deploysPerDay:100,d1StorageBytes:1*UA,r2StorageBytes:5*UA,kvStorageBytes:1*UA,aiNeuronsPerMonth:1e5,retainedDeployments:1,sandboxRuntimeSecondsPerMonth:1,sandboxMaxConcurrentInstances:1,concurrentBuilds:1,buildTimeoutMinutes:10},solo:{requestsPerMonth:1e7,cpuMsPerRequest:30,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:50,deploysPerDay:500,d1StorageBytes:5*UA,r2StorageBytes:25*UA,kvStorageBytes:5*UA,aiNeuronsPerMonth:3e5,retainedDeployments:5,sandboxRuntimeSecondsPerMonth:108e3,sandboxMaxConcurrentInstances:2,concurrentBuilds:2,buildTimeoutMinutes:15},pro:{requestsPerMonth:1e8,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:3e3,d1StorageBytes:10*UA,r2StorageBytes:100*UA,kvStorageBytes:25*UA,aiNeuronsPerMonth:5e5,retainedDeployments:25,sandboxRuntimeSecondsPerMonth:72e4,sandboxMaxConcurrentInstances:10,concurrentBuilds:3,buildTimeoutMinutes:15},sponsored:{requestsPerMonth:0,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:6,buildTimeoutMinutes:20},custom:{requestsPerMonth:0,cpuMsPerRequest:0,maxCpuMsPerRequest:0,subRequestsPerInvocation:0,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:0,buildTimeoutMinutes:0}};function GA(e){return WA[e]??WA.free}function KA({path:e,platformName:t,username:n}){let{userDetail:r}=Zh(K_(e),{mode:`stale-while-revalidate`}),i=Kh(H_,r);if(!i)throw Error(`User data is unavailable.`);let{user:a,projects:o,deploysToday:s,usage:c,tz:l}=i;ck(i.user.login,t);let u=Object.keys(WA),d=GA(a.plan);return Y(wD,{platformName:t,title:a.login,username:n,children:[J(`h1`,{children:a.login}),J(UO,{children:Y(yO,{children:[Y(Z,{children:[J($,{children:`ID`}),J(Q,{children:a.id})]}),Y(Z,{children:[J($,{children:`Provider`}),J(Q,{children:a.provider})]}),Y(Z,{children:[J($,{children:`Email`}),J(Q,{children:a.email??`-`})]}),Y(Z,{children:[J($,{children:`Role`}),J(Q,{children:a.role})]}),Y(Z,{children:[J($,{children:`Status`}),J(Q,{children:a.suspended_reason?`suspended: ${a.suspended_reason}`:`active`})]}),Y(Z,{children:[J($,{children:`Created`}),J(Q,{children:hk(a.created_at,l)})]})]})}),J(`h2`,{children:`Plan`}),Y(`form`,{method:`post`,action:`/admin/users/${a.id}/plan`,style:`margin-bottom: 10px`,children:[J(uw,{label:`Plan`,name:`plan`,initialValue:a.plan,options:u.map(e=>({value:e,label:e}))}),J(Mg,{type:`submit`,label:`Update`})]}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Limit`}),J($,{children:`Value`})]})}),Y(yO,{children:[Y(Z,{children:[J(Q,{children:`Requests / month`}),J(Q,{children:vk(d.requestsPerMonth)})]}),Y(Z,{children:[J(Q,{children:`CPU ms / request`}),J(Q,{children:vk(d.cpuMsPerRequest)})]}),Y(Z,{children:[J(Q,{children:`Sub-requests / invocation`}),J(Q,{children:vk(d.subRequestsPerInvocation)})]}),Y(Z,{children:[J(Q,{children:`Deploys / day`}),Y(Q,{children:[s,` / `,vk(d.deploysPerDay)]})]}),Y(Z,{children:[J(Q,{children:`D1 storage`}),J(Q,{children:vk(d.d1StorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`R2 storage`}),J(Q,{children:vk(d.r2StorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`KV storage`}),J(Q,{children:vk(d.kvStorageBytes,`bytes`)})]}),Y(Z,{children:[J(Q,{children:`AI neurons / month`}),J(Q,{children:vk(d.aiNeuronsPerMonth)})]}),Y(Z,{children:[J(Q,{children:`Retained deployments`}),J(Q,{children:vk(d.retainedDeployments)})]})]})]}),Y(`h2`,{children:[`Current Usage (since `,mk(c.billingPeriodStart),`)`]}),Y(`p`,{children:[`Requests: `,_k(c.totalRequests),` / `,vk(d.requestsPerMonth)]}),Y(`p`,{children:[`Deploys today: `,_k(s),` / `,vk(d.deploysPerDay)]}),Y(`p`,{children:[`Bandwidth: `,gk(c.totalBandwidth)]}),c.projects.length>1&&Y(G.Fragment,{children:[J(`h3`,{children:`Per Project`}),Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Project`}),J($,{children:`Requests`}),J($,{children:`Bandwidth`})]})}),J(yO,{children:c.projects.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.projectId}`,children:e.slug})}),J(Q,{children:_k(e.requests)}),J(Q,{children:gk(e.bandwidthBytes)})]},e.projectId))})]})]}),J(`h2`,{children:`Suspension`}),a.suspended_reason?J(`form`,{method:`post`,action:`/admin/users/${a.id}/unsuspend`,children:J(Mg,{type:`submit`,label:`Unsuspend`})}):Y(`form`,{method:`post`,action:`/admin/users/${a.id}/suspend`,children:[J(cw,{label:`Reason`,name:`reason`,initialValue:`admin_suspended`,placeholder:`Reason...`}),J(Mg,{type:`submit`,label:`Suspend`,variant:`destructive`})]}),Y(`h2`,{children:[`Projects (`,o.length,`)`]}),o.length>0?Y(UO,{children:[J(vO,{children:Y(Z,{children:[J($,{children:`Slug`}),J($,{children:`Type`}),J($,{children:`Created`})]})}),J(yO,{children:o.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),J(Q,{children:e.type}),J(Q,{children:hk(e.created_at,l)})]},e.id))})]}):J(`p`,{children:J(`em`,{children:`No projects.`})}),J(`h2`,{children:`Danger Zone`}),J(`form`,{method:`post`,action:`/admin/users/${a.id}/delete`,"data-confirm":`Permanently delete user "${a.login}" and all ${o.length} project(s)? This cannot be undone.`,children:J(Mg,{type:`submit`,label:`Delete User`,variant:`destructive`})})]})}function qA({path:e,platformName:t,username:n}){let{usersPage:r}=Zh(z_(e),{mode:`stale-while-revalidate`}),i=Kh(I_,r);if(!i)throw Error(`Users page data is unavailable.`);let{users:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,y.useState)(o??``);(0,y.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o);return Y(wD,{platformName:t,title:`Users`,username:n,children:[J(`h1`,{children:`Users`}),J(oA,{action:`/admin/users`,kind:`users`,label:`Search users`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.login,description:[f.email,f.id].filter(Boolean).join(` · `)}:void 0}),Y(UO,{hasHover:!0,children:[J(vO,{children:Y(Z,{children:[J($,{children:`Login`}),J($,{children:`Provider`}),J($,{children:`Email`}),J($,{children:`Plan`}),J($,{children:`Role`}),J($,{children:`Status`}),J($,{children:`Created`}),J($,{children:`Actions`})]})}),J(yO,{children:a.map(e=>Y(Z,{children:[J(Q,{children:J(`a`,{href:`/admin/users/${e.id}`,children:e.login})}),J(Q,{children:e.provider}),J(Q,{children:e.email??`-`}),J(Q,{children:e.plan}),J(Q,{children:e.role}),J(Q,{children:e.suspended_reason?`suspended`:`active`}),J(Q,{children:hk(e.created_at,l)}),J(Q,{children:J(`form`,{method:`post`,action:`/admin/users/${e.id}/delete`,style:`display: inline`,"data-confirm":`Delete user "${e.login}" and all their projects?`,children:J(Mg,{type:`submit`,label:`Delete`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),a.length===0&&J(`p`,{children:J(`em`,{children:`No users found.`})}),s!=null&&c!=null&&J(aA,{page:s,totalPages:c,baseUrl:`/admin/users`})]})}var JA={adminLayout:async()=>({default:Qg}),dashboard:async()=>({default:Bk}),adminLogin:async()=>({default:w_}),loginError:async()=>({default:wA}),authSettings:async()=>({default:ND}),authNew:async()=>({default:DD}),authEdit:async()=>({default:TD}),authError:async()=>({default:ED}),buildDetail:async()=>({default:bk}),deploymentDetail:async()=>({default:iA}),users:async()=>({default:qA}),userDetail:async()=>({default:KA}),projects:async()=>({default:RA}),projectDetail:async()=>({default:FA}),projectOwnerPreview:async()=>({default:LA}),deployments:async()=>({default:sA}),cliVersions:async()=>({default:Sk}),signupControl:async()=>({default:HA}),email:async()=>({default:bA}),emailProject:async()=>({default:dA}),emailOperation:async()=>({default:cA}),adminError:async()=>({default:Jg}),invitations:async()=>({default:CA})},YA=Object.fromEntries(Object.keys(JA).filter(e=>e!==`adminLayout`).map(e=>[e,[`adminLayout`]]));function XA(e){let t=new URL(e,`https://void.invalid`).pathname;return t===`/admin/`?`dashboard`:t===`/admin/login`?`adminLogin`:t===`/admin/users`?`users`:/^\/admin\/builds\/[^/]+$/.test(t)?`buildDetail`:/^\/admin\/users\/[^/]+$/.test(t)?`userDetail`:t===`/admin/projects`?`projects`:/^\/admin\/projects\/[^/]+$/.test(t)?`projectDetail`:/^\/admin\/projects\/[^/]+\/owner\/preview$/.test(t)?`projectOwnerPreview`:t===`/admin/deployments`?`deployments`:/^\/admin\/deployments\/[^/]+$/.test(t)?`deploymentDetail`:t===`/admin/cli-versions`?`cliVersions`:t===`/admin/signup-control`?`signupControl`:t===`/admin/config/auth`?`authSettings`:t===`/admin/config/auth/new`?`authNew`:/^\/admin\/config\/auth\/connections\/[^/]+$/.test(t)?`authEdit`:t===`/admin/email`?`email`:/^\/admin\/email\/[^/]+$/.test(t)?`emailProject`:t===`/admin/invitations`?`invitations`:null}var ZA={dashboard:`Dashboard`,users:`Users`,userDetail:`User`,projects:`Projects`,projectDetail:`Project`,projectOwnerPreview:`Transfer owner`,deployments:`Deployments`,deploymentDetail:`Deployment`,buildDetail:`Build`,cliVersions:`CLI Versions`,signupControl:`Access`,authSettings:`Authentication`,authNew:`Add login method`,authEdit:`Edit login method`,email:`Email`,emailProject:`Project email`,emailOperation:`Email operation`,invitations:`Invitations`};function QA({initialPageData:e}){let t=ZA[XA(sa().location?.pathname??e.url)??`adminError`]??`Admin`;return J(Zg,{children:J(wD,{title:t,platformName:String(e.props.platformName??`Void`),username:typeof e.props.username==`string`?e.props.username:void 0,children:Y(`div`,{className:`void-admin-loading`,role:`status`,"aria-live":`polite`,children:[J($i,{level:1,children:t}),Y(`span`,{className:`void-admin-sr-only`,children:[`Loading `,t.toLowerCase(),`…`]}),Y(`div`,{className:`void-admin-loading-lines`,"aria-hidden":`true`,children:[J(wn,{width:`32%`,height:24}),J(wn,{width:`100%`,height:48,index:1}),J(wn,{width:`100%`,height:48,index:2}),J(wn,{width:`78%`,height:48,index:3})]})]})})})}Ve({components:JA,layoutTree:YA,routeMeta:{},matchRoute:XA,staticPageData:!1,staticPageDataFastPath:!1,viewTransitions:!1,prefetchHoverDelay:75,prefetchDefaultCacheFor:{stale:0,expires:3e5},cacheVisitedPageData:!0,navigationFallback:QA})})();