@cerefox/memory 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENT_GUIDE.md +13 -4
- package/AGENT_QUICK_REFERENCE.md +14 -3
- package/README.md +3 -2
- package/dist/bin/cerefox.js +318 -136
- package/dist/frontend/assets/{index-D9z5yV9u.js → index-DcWOeGAh.js} +2 -2
- package/dist/frontend/assets/index-DcWOeGAh.js.map +1 -0
- package/dist/frontend/assets/{index-C1JXZA9m.css → index-DiDeaiM6.css} +1 -1
- package/dist/frontend/index.html +2 -2
- package/dist/server-assets/_shared/ef-meta/index.ts +3 -3
- package/dist/server-assets/_shared/mcp-tools/get-help-content.ts +4 -4
- package/dist/server-assets/_shared/mcp-tools/get-help.ts +15 -1
- package/dist/server-assets/_shared/mcp-tools/index.ts +3 -0
- package/dist/server-assets/_shared/mcp-tools/set-document-metadata.ts +133 -0
- package/dist/server-assets/db/migrations/0023_set_document_metadata.sql +16 -0
- package/dist/server-assets/db/rpcs.sql +116 -1
- package/dist/server-assets/db/schema.sql +1 -1
- package/docs/guides/cli.md +54 -1
- package/docs/guides/connect-agents.md +11 -8
- package/docs/guides/operational-cost.md +1 -1
- package/package.json +1 -1
- package/dist/frontend/assets/index-D9z5yV9u.js.map +0 -1
|
@@ -56,7 +56,7 @@ Error generating stack: `+e.message+`
|
|
|
56
56
|
`+e.stack}}var fe=Object.prototype.hasOwnProperty,pe=t.unstable_scheduleCallback,me=t.unstable_cancelCallback,he=t.unstable_shouldYield,ge=t.unstable_requestPaint,_e=t.unstable_now,ve=t.unstable_getCurrentPriorityLevel,ye=t.unstable_ImmediatePriority,be=t.unstable_UserBlockingPriority,xe=t.unstable_NormalPriority,Se=t.unstable_LowPriority,Ce=t.unstable_IdlePriority,we=t.log,Te=t.unstable_setDisableYieldValue,Ee=null,De=null;function Oe(e){if(typeof we==`function`&&Te(e),De&&typeof De.setStrictMode==`function`)try{De.setStrictMode(Ee,e)}catch{}}var ke=Math.clz32?Math.clz32:Me,Ae=Math.log,je=Math.LN2;function Me(e){return e>>>=0,e===0?32:31-(Ae(e)/je|0)|0}var Ne=256,Pe=262144,Fe=4194304;function Ie(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Le(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=Ie(n))):i=Ie(o):i=Ie(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ie(n))):i=Ie(o)):i=Ie(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 Re(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ze(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 Be(){var e=Fe;return Fe<<=1,!(Fe&62914560)&&(Fe=4194304),e}function Ve(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function He(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ue(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-ke(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&&We(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function We(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ge(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ke(e,t){var n=t&-t;return n=n&42?1:qe(n),(n&(e.suspendedLanes|t))===0?n:0}function qe(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 Ye(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Xe(){var e=F.p;return e===0?(e=window.event,e===void 0?32:_p(e.type)):e}function Ze(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Qe=Math.random().toString(36).slice(2),$e=`__reactFiber$`+Qe,et=`__reactProps$`+Qe,tt=`__reactContainer$`+Qe,nt=`__reactEvents$`+Qe,rt=`__reactListeners$`+Qe,it=`__reactHandles$`+Qe,at=`__reactResources$`+Qe,ot=`__reactMarker$`+Qe;function st(e){delete e[$e],delete e[et],delete e[nt],delete e[rt],delete e[it]}function ct(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mf(e);e!==null;){if(n=e[$e])return n;e=mf(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[$e]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function dt(e){var t=e[at];return t||=e[at]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ft(e){e[ot]=!0}var pt=new Set,mt={};function ht(e,t){gt(e,t),gt(e+`Capture`,t)}function gt(e,t){for(mt[e]=t,e=0;e<t.length;e++)pt.add(t[e])}var _t=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]*$`),vt={},yt={};function bt(e){return fe.call(yt,e)?!0:fe.call(vt,e)?!1:_t.test(e)?yt[e]=!0:(vt[e]=!0,!1)}function xt(e,t,n){if(bt(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 St(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 Ct(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 wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Tt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Et(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 Dt(e){if(!e._valueTracker){var t=Tt(e)?`checked`:`value`;e._valueTracker=Et(e,t,``+e[t])}}function Ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Tt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function kt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var At=/[\n"\\]/g;function jt(e){return e.replace(At,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Mt(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=``+wt(t)):e.value!==``+wt(t)&&(e.value=``+wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Pt(e,o,wt(n)):Pt(e,o,wt(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=``+wt(s):e.removeAttribute(`name`)}function Nt(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)){Dt(e);return}n=n==null?``:``+wt(n),t=t==null?n:``+wt(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),Dt(e)}function Pt(e,t,n){t===`number`&&kt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ft(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=``+wt(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 It(e,t,n){if(t!=null&&(t=``+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+wt(n)}function Lt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(N(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Dt(e)}function Rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zt=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 Bt(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||zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Vt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Bt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Bt(e,o,t[o])}function Ht(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 Ut=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Wt=/^[\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 Gt(e){return Wt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Kt(){}var qt=null;function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yt=null,Xt=null;function Zt(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Mt(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="`+jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[et]||null;if(!a)throw Error(i(90));Mt(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&&Ot(r)}break a;case`textarea`:It(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ft(e,!!n.multiple,t,!1)}}}var Qt=!1;function $t(e,t,n){if(Qt)return e(t,n);Qt=!0;try{return e(t)}finally{if(Qt=!1,(Yt!==null||Xt!==null)&&(xu(),Yt&&(t=Yt,e=Xt,Xt=Yt=null,Zt(t),e)))for(t=0;t<e.length;t++)Zt(e[t])}}function en(e,t){var n=e.stateNode;if(n===null)return null;var r=n[et]||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 tn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),nn=!1;if(tn)try{var rn={};Object.defineProperty(rn,"passive",{get:function(){nn=!0}}),window.addEventListener(`test`,rn,rn),window.removeEventListener(`test`,rn,rn)}catch{nn=!1}var an=null,on=null,sn=null;function cn(){if(sn)return sn;var e,t=on,n=t.length,r,i=`value`in an?an.value:an.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 sn=i.slice(e,1<r?1-r:void 0)}function ln(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 un(){return!0}function dn(){return!1}function fn(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)?un:dn,this.isPropagationStopped=dn,this}return f(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=un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=un)},persist:function(){},isPersistent:un}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mn=fn(pn),hn=f({},pn,{view:0,detail:0}),G=fn(hn),gn,_n,vn,yn=f({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,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!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=fn(yn),xn=fn(f({},yn,{dataTransfer:0})),Sn=fn(f({},hn,{relatedTarget:0})),Cn=fn(f({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=fn(f({},pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=fn(f({},pn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={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`},On={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=On[e])?!!t[e]:!1}function An(){return kn}var jn=fn(f({},hn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=ln(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type===`keypress`?ln(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?ln(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Mn=fn(f({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),K=fn(f({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Nn=fn(f({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=fn(f({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Fn=fn(f({},pn,{newState:0,oldState:0})),In=[9,13,27,32],Ln=tn&&`CompositionEvent`in window,Rn=null;tn&&`documentMode`in document&&(Rn=document.documentMode);var zn=tn&&`TextEvent`in window&&!Rn,Bn=tn&&(!Ln||Rn&&8<Rn&&11>=Rn),Vn=` `,Hn=!1;function Un(e,t){switch(e){case`keyup`:return In.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Wn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Gn=!1;function Kn(e,t){switch(e){case`compositionend`:return Wn(t);case`keypress`:return t.which===32?(Hn=!0,Vn):null;case`textInput`:return e=t.data,e===Vn&&Hn?null:e;default:return null}}function qn(e,t){if(Gn)return e===`compositionend`||!Ln&&Un(e,t)?(e=cn(),sn=on=an=null,Gn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Bn&&t.locale!==`ko`?null:t.data;default:return null}}var Jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Jn[e.type]:t===`textarea`}function Xn(e,t,n,r){Yt?Xt?Xt.push(r):Xt=[r]:Yt=r,t=kd(t,`onChange`),0<t.length&&(n=new mn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Qn=null;function $n(e){xd(e,0)}function er(e){if(Ot(ut(e)))return e}function tr(e,t){if(e===`change`)return t}var nr=!1;if(tn){var rr;if(tn){var ir=`oninput`in document;if(!ir){var ar=document.createElement(`div`);ar.setAttribute(`oninput`,`return;`),ir=typeof ar.oninput==`function`}rr=ir}else rr=!1;nr=rr&&(!document.documentMode||9<document.documentMode)}function or(){Zn&&(Zn.detachEvent(`onpropertychange`,sr),Qn=Zn=null)}function sr(e){if(e.propertyName===`value`&&er(Qn)){var t=[];Xn(t,Qn,e,Jt(e)),$t($n,t)}}function cr(e,t,n){e===`focusin`?(or(),Zn=t,Qn=n,Zn.attachEvent(`onpropertychange`,sr)):e===`focusout`&&or()}function lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return er(Qn)}function ur(e,t){if(e===`click`)return er(t)}function dr(e,t){if(e===`input`||e===`change`)return er(t)}function fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pr=typeof Object.is==`function`?Object.is:fr;function mr(e,t){if(pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fe.call(t,i)||!pr(e[i],t[i]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gr(e,t){var n=hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=hr(n)}}function _r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(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=kt(e.document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var br=tn&&`documentMode`in document&&11>=document.documentMode,xr=null,Sr=null,Cr=null,wr=!1;function Tr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||xr==null||xr!==kt(r)||(r=xr,`selectionStart`in r&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&mr(Cr,r)||(Cr=r,r=kd(Sr,`onSelect`),0<r.length&&(t=new mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Dr={animationend:Er(`Animation`,`AnimationEnd`),animationiteration:Er(`Animation`,`AnimationIteration`),animationstart:Er(`Animation`,`AnimationStart`),transitionrun:Er(`Transition`,`TransitionRun`),transitionstart:Er(`Transition`,`TransitionStart`),transitioncancel:Er(`Transition`,`TransitionCancel`),transitionend:Er(`Transition`,`TransitionEnd`)},Or={},q={};tn&&(q=document.createElement(`div`).style,`AnimationEvent`in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),`TransitionEvent`in window||delete Dr.transitionend.transition);function kr(e){if(Or[e])return Or[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in q)return Or[e]=t[n];return e}var Ar=kr(`animationend`),jr=kr(`animationiteration`),Mr=kr(`animationstart`),Nr=kr(`transitionrun`),Pr=kr(`transitionstart`),Fr=kr(`transitioncancel`),Ir=kr(`transitionend`),J=new Map,Lr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Lr.push(`scrollEnd`);function Rr(e,t){J.set(e,t),ht(t,[e])}var zr=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)},Br=[],Vr=0,Hr=0;function Ur(){for(var e=Vr,t=Hr=Vr=0;t<e;){var n=Br[t];Br[t++]=null;var r=Br[t];Br[t++]=null;var i=Br[t];Br[t++]=null;var a=Br[t];if(Br[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&&qr(n,i,a)}}function Wr(e,t,n,r){Br[Vr++]=e,Br[Vr++]=t,Br[Vr++]=n,Br[Vr++]=r,Hr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Gr(e,t,n,r){return Wr(e,t,n,r),Jr(e)}function Kr(e,t){return Wr(e,null,null,t),Jr(e)}function qr(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-ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Jr(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yr={};function Xr(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 Zr(e,t,n,r){return new Xr(e,t,n,r)}function Qr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return n===null?(n=Zr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ei(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Qr(e)&&(s=1);else if(typeof e==`string`)s=Kf(e,n,H.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=Zr(31,n,t,a),e.elementType=D,e.lanes=o,e;case g:return ni(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=Zr(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=Zr(13,n,t,a),e.elementType=S,e.lanes=o,e;case w:return e=Zr(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Zr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ni(e,t,n,r){return e=Zr(7,e,r,t),e.lanes=n,e}function ri(e,t,n){return e=Zr(6,e,null,t),e.lanes=n,e}function ii(e){var t=Zr(18,null,null,0);return t.stateNode=e,t}function ai(e,t,n){return t=Zr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var oi=new WeakMap;function si(e,t){if(typeof e==`object`&&e){var n=oi.get(e);return n===void 0?(t={value:e,source:t,stack:de(t)},oi.set(e,t),t):n}return{value:e,source:t,stack:de(t)}}var ci=[],li=0,ui=null,di=0,fi=[],pi=0,mi=null,hi=1,gi=``;function _i(e,t){ci[li++]=di,ci[li++]=ui,ui=e,di=t}function vi(e,t,n){fi[pi++]=hi,fi[pi++]=gi,fi[pi++]=mi,mi=e;var r=hi;e=gi;var i=32-ke(r)-1;r&=~(1<<i),n+=1;var a=32-ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,hi=1<<32-ke(t)+i|n<<i|r,gi=a+e}else hi=1<<a|n<<i|r,gi=e}function yi(e){e.return!==null&&(_i(e,1),vi(e,1,0))}function bi(e){for(;e===ui;)ui=ci[--li],ci[li]=null,di=ci[--li],ci[li]=null;for(;e===mi;)mi=fi[--pi],fi[pi]=null,gi=fi[--pi],fi[pi]=null,hi=fi[--pi],fi[pi]=null}function xi(e,t){fi[pi++]=hi,fi[pi++]=gi,fi[pi++]=mi,hi=t.id,gi=t.overflow,mi=e}var Si=null,Ci=null,wi=!1,Ti=null,Ei=!1,Di=Error(i(519));function Oi(e){throw Pi(si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Di}function ki(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[et]=r,n){case`dialog`:Sd(`cancel`,t),Sd(`close`,t);break;case`iframe`:case`object`:case`embed`:Sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)Sd(yd[n],t);break;case`source`:Sd(`error`,t);break;case`img`:case`image`:case`link`:Sd(`error`,t),Sd(`load`,t);break;case`details`:Sd(`toggle`,t);break;case`input`:Sd(`invalid`,t),Nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Sd(`invalid`,t);break;case`textarea`:Sd(`invalid`,t),Lt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Sd(`beforetoggle`,t),Sd(`toggle`,t)),r.onScroll!=null&&Sd(`scroll`,t),r.onScrollEnd!=null&&Sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||Oi(e,!0)}function Ai(e){for(Si=e.return;Si;)switch(Si.tag){case 5:case 31:case 13:Ei=!1;return;case 27:case 3:Ei=!0;return;default:Si=Si.return}}function ji(e){if(e!==Si)return!1;if(!wi)return Ai(e),wi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Kd(e.type,e.memoizedProps)),n=!n),n&&Ci&&Oi(e),Ai(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ci=pf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ci=pf(e)}else t===27?(t=Ci,ef(e.type)?(e=ff,ff=null,Ci=e):Ci=t):Ci=Si?df(e.stateNode.nextSibling):null;return!0}function Mi(){Ci=Si=null,wi=!1}function Ni(){var e=Ti;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Ti=null),e}function Pi(e){Ti===null?Ti=[e]:Ti.push(e)}var Fi=z(null),Ii=null,Li=null;function Ri(e,t,n){V(Fi,t._currentValue),t._currentValue=n}function zi(e){e._currentValue=Fi.current,B(Fi)}function Bi(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 Vi(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),Bi(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),Bi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Hi(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;pr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===W.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[tp]:e.push(tp))}a=a.return}e!==null&&Vi(t,e,n,r),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wi(e){Ii=e,Li=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gi(e){return qi(Ii,e)}function Ki(e,t){return Ii===null&&Wi(e),qi(e,t)}function qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Li===null){if(e===null)throw Error(i(308));Li=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Li=Li.next=t;return n}var Ji=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()})}},Yi=t.unstable_scheduleCallback,Xi=t.unstable_NormalPriority,Zi={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qi(){return{controller:new Ji,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&Yi(Xi,function(){e.controller.abort()})}var ea=null,ta=0,na=0,ra=null;function ia(e,t){if(ea===null){var n=ea=[];ta=0,na=pd(),ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ta++,t.then(aa,aa),t}function aa(){if(--ta===0&&ea!==null){ra!==null&&(ra.status=`fulfilled`);var e=ea;ea=null,na=0,ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oa(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 sa=P.S;P.S=function(e,t){tu=_e(),typeof t==`object`&&t&&typeof t.then==`function`&&ia(e,t),sa!==null&&sa(e,t)};var ca=z(null);function la(){var e=ca.current;return e===null?Il.pooledCache:e}function ua(e,t){t===null?V(ca,ca.current):V(ca,t.pool)}function da(){var e=la();return e===null?null:{parent:Zi._currentValue,pool:e}}var fa=Error(i(460)),pa=Error(i(474)),ma=Error(i(542)),ha={then:function(){}};function ga(e){return e=e.status,e===`fulfilled`||e===`rejected`}function _a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kt,Kt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,xa(e),e;default:if(typeof t.status==`string`)t.then(Kt,Kt);else{if(e=Il,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,xa(e),e}throw ya=t,fa}}function va(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ya=e,fa):e}}var ya=null;function ba(){if(ya===null)throw Error(i(459));var e=ya;return ya=null,e}function xa(e){if(e===fa||e===ma)throw Error(i(483))}var Sa=null,Ca=0;function wa(e){var t=Ca;return Ca+=1,Sa===null&&(Sa=[]),_a(Sa,e,t)}function Ta(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ea(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Da(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=$r(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ri(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===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&va(i)===t.type)?(t=a(t,n.props),Ta(t,n),t.return=e,t):(t=ti(n.type,n.key,n.props,null,e.mode,r),Ta(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=ai(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=ni(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=ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ti(t.type,t.key,t.props,null,e.mode,n),Ta(n,t),n.return=e,n;case h:return t=ai(t,e.mode,n),t.return=e,t;case E:return t=va(t),f(e,t,n)}if(N(t)||A(t))return t=ni(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,wa(t),n);if(t.$$typeof===b)return f(e,Ki(e,t),n);Ea(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 m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case E:return n=va(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,wa(n),r);if(n.$$typeof===b)return p(e,t,Ki(e,n),r);Ea(e,n)}return null}function _(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 m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=va(r),_(e,t,n,r,i)}if(N(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,wa(r),i);if(r.$$typeof===b)return _(e,t,n,Ki(t,r),i);Ea(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),wi&&_i(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return wi&&_i(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),wi&&_i(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),wi&&_i(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return wi&&_i(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),wi&&_i(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&va(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ta(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=ni(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ti(o.type,o.key,o.props,null,e.mode,c),Ta(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=ai(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=va(o),x(e,r,o,c)}if(N(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,wa(o),c);if(o.$$typeof===b)return x(e,r,Ki(e,o),c);Ea(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=ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ca=0;var i=x(e,t,n,r);return Sa=null,i}catch(t){if(t===fa||t===ma)throw t;var a=Zr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Oa=Da(!0),ka=Da(!1),Aa=!1;function ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ma(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 Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Jr(e),qr(e,null,n),t}return Wr(e,r,t,n),Jr(e)}function Fa(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,Ge(e,n)}}function Ia(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 La=!1;function Ra(){if(La){var e=ra;if(e!==null)throw e}}function za(e,t,n,r){La=!1;var i=e.updateQueue;Aa=!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 p=s.lane&-536870913,m=p!==s.lane;if(m?(Rl&p)===p:(r&p)===p){p!==0&&p===na&&(La=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Aa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ba(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Va(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ba(n[e],t)}var Ha=z(null),Ua=z(0);function Wa(e,t){e=Wl,V(Ua,e),V(Ha,t),Wl=e|t.baseLanes}function Ga(){V(Ua,Wl),V(Ha,Ha.current)}function Ka(){Wl=Ua.current,B(Ha),B(Ua)}var qa=z(null),Ja=null;function Ya(e){var t=e.alternate;V(eo,eo.current&1),V(qa,e),Ja===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ja=e)}function Xa(e){V(eo,eo.current),V(qa,e),Ja===null&&(Ja=e)}function Za(e){e.tag===22?(V(eo,eo.current),V(qa,e),Ja===null&&(Ja=e)):Qa(e)}function Qa(){V(eo,eo.current),V(qa,qa.current)}function $a(e){B(qa),Ja===e&&(Ja=null),B(eo)}var eo=z(0);function to(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cf(n)||lf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=0,ro=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return no=a,ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){P.H=Ms;var t=io!==null&&io.next!==null;if(no=0,ao=io=ro=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&Ui(e)&&(Zs=!0))}function vo(e,t,n,r){ro=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(ro.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}no=0,ao=io=ro=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?ro.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=ro.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?ro.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw ro.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?ro.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=_a(fo,e,t),t=ro,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===b)return Gi(e)}throw Error(i(438,String(e)))}function Oo(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=To(),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]=O;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(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?(no&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===na&&(d=!0);else if((no&p)===p){u=u.next,p===na&&(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,Kl|=p;f=u.action,co&&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,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!pr(o,e.memoizedState)&&(Zs=!0,d&&(n=ra,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 Mo(e){var t=wo(),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);pr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=ro,a=wo(),o=wi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!pr((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Il===null)throw Error(i(349));o||no&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ro.updateQueue,t===null?(t=To(),ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function Ro(e){var t=Kr(e,2);t!==null&&gu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Oe(!0);try{n()}finally{Oe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(wi){var n=Il.formState;if(n!==null){a:{var r=ro;if(wi){if(Ci){b:{for(var i=Ci,a=Ei;i.nodeType!==8;){if(!a){i=null;break b}if(i=df(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ci=df(i.nextSibling),r=i.data===`F!`;break a}}Oi(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,ro,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,ro,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===fa?ma:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ro.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ro.updateQueue,t===null&&(t=To(),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 es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();ro.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(ro.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){ro.flags|=4;var t=ro.updateQueue;if(t===null)t=To(),ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Oe(!0);try{e()}finally{Oe(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||no&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),ro.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return pr(n,t)?n:Ha.current===null?!(no&42)||no&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=hu(),ro.lanes|=e,Kl|=e,t):(e=ms(e,n,r),pr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Os(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,oa(c,r),mu(e)):Ds(e,t,r,mu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,I,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},mu())}function xs(){return Gi(tp)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Na(n);var r=Pa(t,e,n);r!==null&&(gu(r,t,n),Fa(r,t,n)),t={cache:Qi()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Gr(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,mu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,pr(s,o))return Wr(e,t,i,0),Il===null&&Ur(),!1}catch{}if(n=Gr(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Gr(e,n,r,2),t!==null&&gu(t,e,2)}function ks(e){var t=e.alternate;return e===ro||t!==null&&t===ro}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ge(e,n)}}var Ms={readContext:Gi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:Gi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Gi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Oe(!0);try{e()}finally{Oe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Oe(!0);try{n(t)}finally{Oe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,ro,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,ro,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ro,a=Co();if(wi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Il===null)throw Error(i(349));Rl&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Il.identifierPrefix;if(wi){var n=gi,r=hi;n=(r&~(1<<32-ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,ro)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Gi,use:Do,useCallback:fs,useContext:Gi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Gi,use:Do,useCallback:fs,useContext:Gi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Na(r);i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(gu(t,e,r),Fa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Na(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(gu(t,e,r),Fa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Na(n);r.tag=2,t!=null&&(r.callback=t),t=Pa(e,r,n),t!==null&&(gu(t,e,n),Fa(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!mr(n,r)||!mr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){zr(e)}function Hs(e){console.error(e)}function Us(e){zr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Na(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Hi(t,n,a,!0),n=qa.current,n!==null){switch(n.tag){case 31:case 13:return Ja===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),Ou(),!1}if(wi)return t=qa.current,t===null?(r!==Di&&(t=Error(i(423),{cause:r}),Pi(si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=si(r,n),a=Ks(e.stateNode,r,a),Ia(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Di&&(e=Error(i(422),{cause:r}),Pi(si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=si(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Ia(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`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Ia(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?ka(t,null,n,r):Oa(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Wi(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(wi&&s&&yi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Qr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ti(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?mr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=$r(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(mr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ua(t,a===null?null:a.cachePool),a===null?Ga():Wa(t,a),Za(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ua(t,null),Ga(),Qa(t)):(ua(t,a.cachePool),Wa(t,a),Qa(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=la();return a=a===null?null:{parent:Zi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ua(t,null),Ga(),Za(t),e!==null&&Hi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Oa(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(wi){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Xa(t),(e=Ci)?(e=sf(e,Ei),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi===null?null:{id:hi,overflow:gi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,Si=t,Ci=null)):e=null,e===null)throw Oi(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Xa(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Hi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Il,r!==null&&(s=Ke(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Kr(e,s),gu(r,e,s),Xs;Ou(),t=oc(e,t,n)}else e=o.treeContext,Ci=df(s.nextSibling),Si=t,wi=!0,Ti=null,Ei=!1,e!==null&&xi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=$r(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Wi(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(wi&&r&&yi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Wi(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Cc(e,t,a)):(wi&&r&&yi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Wi(t),t.stateNode===null){var a=Yr,o=n.contextType;typeof o==`object`&&o&&(a=Gi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ja(t),o=n.contextType,a.context=typeof o==`object`&&o?Gi(o):Yr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),za(t,r,a,i),Ra(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Yr,typeof u==`object`&&u&&(o=Gi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Aa=!1;var f=t.memoizedState;a.state=f,za(t,r,a,i),Ra(),l=t.memoizedState,s||f!==l||Aa?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Aa||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ma(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Yr,typeof l==`object`&&l&&(c=Gi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Aa=!1,f=t.memoizedState,a.state=f,za(t,r,a,i),Ra();var p=t.memoizedState;o!==d||f!==p||Aa||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Aa||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Oa(t,e.child,null,i),t.child=Oa(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Mi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:da()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(eo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(wi){if(a?Ya(t):Qa(t),(e=Ci)?(e=sf(e,Ei),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi===null?null:{id:hi,overflow:gi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,Si=t,Ci=null)):e=null,e===null)throw Oi(t);return lf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Qa(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=ni(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Ya(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ya(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(Qa(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=ni(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Oa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(Qa(t),t.child=e.child,t.flags|=128,t=null);else if(Ya(t),lf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Pi({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Hi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=Ke(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Kr(e,r),gu(s,e,r),Xs;cf(c)||Ou(),t=yc(e,t,n)}else cf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ci=df(c.nextSibling),Si=t,wi=!0,Ti=null,Ei=!1,e!==null&&xi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(Qa(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=$r(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ni(c,a,n,null),c.flags|=2):c=$r(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=da():(l=Zi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Ya(t),n=e.child,e=n.sibling,n=$r(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=Zr(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Oa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=eo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,V(eo,o),Qs(e,t,r,n),r=wi?di:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&to(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hi(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=$r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ui(e)))}function Tc(e,t,n){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),Ri(t,Zi,e.memoizedState.cache),Mi();break;case 27:case 5:re(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:Ri(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ya(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Ya(t),t.flags|=128,null);Ya(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Hi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(eo,eo.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Ri(t,Zi,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,wi&&t.flags&1048576&&vi(t,di,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e==`function`)Qr(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=$s(null,t,e,r,n);break a}if(a===T){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(te(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ma(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ri(t,Zi,r),r!==o.cache&&Vi(t,[Zi],n,!0),Ra(),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=fc(e,t,r,n);break a}else if(r!==a){a=si(Error(i(424)),t),Pi(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ci=df(e.firstChild),Si=t,wi=!0,Ti=null,Ei=!0,n=ka(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Mi(),r===a){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Mf(t.type,null,t.pendingProps,null))?t.memoizedState=n:wi||(n=t.type,e=t.pendingProps,r=Ud(ee.current).createElement(n),r[$e]=t,r[et]=e,Y(r,n,e),ft(r),t.stateNode=r):t.memoizedState=Mf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return re(t),e===null&&wi&&(r=t.stateNode=hf(t.type,t.pendingProps,ee.current),Si=t,Ei=!0,a=Ci,ef(t.type)?(ff=a,Ci=df(r.firstChild)):Ci=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&wi&&((a=r=Ci)&&(r=af(r,t.type,t.pendingProps,Ei),r===null?a=!1:(t.stateNode=r,Si=t,Ci=df(r.firstChild),Ei=!1,a=!0)),a||Oi(t)),re(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Kd(a,o)?r=null:s!==null&&Kd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),tp._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&wi&&((e=n=Ci)&&(n=of(n,t.pendingProps,Ei),n===null?e=!1:(t.stateNode=n,Si=t,Ci=null,e=!0)),e||Oi(t)),null;case 13:return gc(e,t,n);case 4:return te(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Oa(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ri(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Wi(t),a=Gi(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Wi(t),r=Gi(Zi),e===null?(a=la(),a===null&&(a=Il,o=Qi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ja(t),Ri(t,Zi,a)):((e.lanes&n)!==0&&(Ma(e,t),za(t,null,null,n),Ra()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ri(t,Zi,r),r!==a.cache&&Vi(t,[Zi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ri(t,Zi,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw ya=ha,pa}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t))if(Tu())e.flags|=8192;else throw ya=ha,pa}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Be(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!wi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(bi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),zi(Zi),ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ji(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ni())),Mc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,a,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,a,e,r,n)),null;case 27:if(ie(t),n=ee.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}e=H.current,ji(t)?ki(t,e):(e=hf(a,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(ie(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}if(o=H.current,ji(t))ki(t,o);else{var s=Ud(ee.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[$e]=t,o[et]=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(Y(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&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ee.current,ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Si,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Oi(t,!0)}else e=Ud(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ji(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[$e]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Ni(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($a(t),t):($a(t),null);if(t.flags&128)throw Error(i(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ji(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[$e]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),a=!1}else a=Ni(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?($a(t),t):($a(t),null)}return $a(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),Ac(t,t.updateQueue),Mc(t),null);case 4:return ne(),e===null&&Td(t.stateNode.containerInfo),Mc(t),null;case 10:return zi(t.type),Mc(t),null;case 19:if(B(eo),r=t.memoizedState,r===null)return Mc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=to(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ei(n,e),n=n.sibling;return V(eo,eo.current&1|2),wi&&_i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_e()>nu&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304)}else{if(!a)if(e=to(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!wi)return Mc(t),null}else 2*_e()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_e(),e.sibling=null,n=eo.current,V(eo,a?n&1|2:n&1),wi&&_i(t,r.treeForkCount),e);case 22:case 23:return $a(t),Ka(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zi(Zi),Mc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Pc(e,t){switch(bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zi(Zi),ne(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ie(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error(i(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(eo),null;case 4:return ne(),null;case 10:return zi(t.type),null;case 22:case 23:return $a(t),Ka(),e!==null&&B(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zi(Zi),null;case 25:return null;default:return null}}function Fc(e,t){switch(bi(t),t.tag){case 3:zi(Zi),ne();break;case 26:case 27:case 5:ie(t);break;case 4:ne();break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:B(eo);break;case 10:zi(t.type);break;case 22:case 23:$a(t),Ka(),e!==null&&B(ca);break;case 24:zi(Zi)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Va(t,n)}catch(t){Ku(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[et]=t}catch(t){Ku(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ef(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ef(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kt));else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Y(t,r,n),t[$e]=e,t[et]=n}catch(t){Ku(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Vd=up,e=vr(e),yr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Hd={focusedElem:e,selectionRange:n},up=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)rf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:rf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Va(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),uf(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,!!(n.subtreeFlags&8772)):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&st(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(De&&typeof De.onCommitFiberUnmount==`function`)try{De.onCommitFiberUnmount(Ee,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;ef(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),gf(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,tf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Ip(e)):tf(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ip(e)}catch(e){Ku(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ip(e)}catch(e){Ku(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(i(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(ef(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(i(160));ol(o,s,a),rl=null,il=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ot]||o[$e]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Y(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Y(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Wf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Y(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[$e]=e,ft(o),r=o}e.stateNode=r}else Gf(a,e.type,e.stateNode);else e.stateNode=zf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Gf(a,e.type,e.stateNode):zf(a,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){a=e.stateNode;try{Rt(a,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Uc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Uf=null,a=fl,fl=yf(t.containerInfo),dl(t,e),fl=a,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ip(t.containerInfo)}catch(t){Ku(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=yf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=_e()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||a,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?nf(m,!0):nf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;qc(e,Gc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Rt(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(i(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:gf(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ba(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$i(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Jf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=yf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:$i(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=Gi(Zi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gi(Zi).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:P.T===null?Xe():pd()}function hu(){if(Yl===0)if(!(Rl&536870912)||wi){var e=Pe;Pe<<=1,!(Pe&3932160)&&(Pe=262144),Yl=e}else Yl=536870912;return e=qa.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),He(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),ad(e))}function _u(e,t,n){if(Fl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Re(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Hl&&!r&&bu(e,t,0,!1);break}if(n=e.current.alternate,o&&!yu(n)){a=ku(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=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-_e(),10<a)){if(bu(r,t,Yl,!Vl),Le(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Yd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}break}while(1);ad(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Dl(t,a,d);var m=(a&62914560)===a?eu-_e():(a&4194048)===a?tu-_e():0;if(m=Xf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!pr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&We(e,n,t)}function xu(){return Fl&6?!0:(od(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,Li=Ii=null,So(e),Sa=null,Ca=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=$r(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Re(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ke(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Ur(),n}function wu(e,t){ro=null,P.H=Ms,t===fa||t===ma?(t=ba(),zl=3):t===pa?(t=ba(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,si(t,e.current)))}function Tu(){var e=qa.current;return e===null?!0:(Rl&4194048)===Rl?Ja===null:(Rl&62914560)===Rl||Rl&536870912?e===Ja:!1}function Eu(){var e=P.H;return P.H=Ms,e===null?Ms:e}function Du(){var e=P.A;return P.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&qa.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:qa.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Li=Ii=null,Fl=r,P.H=i,P.A=a,Ll===null&&(Il=null,Rl=0,Ur()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),a=Du();Il!==e||Rl!==t?(ru=null,nu=_e()+500,Cu(e,t)):Hl=Re(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(ga(o)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),ad(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:ga(o)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?qf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,o,5);break;case 6:zl=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Li=Ii=null,P.H=r,P.A=a,Fl=n,Ll===null?(Il=null,Rl=0,Ur(),Gl):0}function Mu(){for(;Ll!==null&&!he();)Nu(Ll)}function Nu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:So(t);default:Fc(n,t),t=Ll=ei(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){Li=Ii=null,So(t),Sa=null,Ca=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,si(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,si(n,e.current)),Ll=null;return}t.flags&32768?(wi||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Hr,Ue(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(xe,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,F.p=a,P.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Hd,o=vr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&_r(s.ownerDocument.documentElement,s)){if(c!==null&&yr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=gr(s,h),v=gr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}up=!!Vd,Hd=Vd=null}finally{Fl=i,F.p=r,P.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,F.p=r,P.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,ge();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ye(n),t=t.stateNode,De&&typeof De.onCommitFiberRoot==`function`)try{De.onCommitFiberRoot(Ee,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=Ye(cu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(i(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,od(0,!1),De&&typeof De.onPostCommitFiberRoot==`function`)try{De.onPostCommitFiberRoot(Ee,o)}catch{}return!0}finally{F.p=a,P.T=r,Hu(e,t)}}function Gu(e,t,n){t=si(n,t),t=Ks(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(He(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=si(n,e),n=qs(2),r=Pa(t,n,2),r!==null&&(Js(n,r,t,e),He(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>_e()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Be()),e=Kr(e,t),e!==null&&(He(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,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),Yu(e,n)}function Qu(e,t){return pe(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=Le(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Re(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Jd()&&(e=id);for(var t=_e(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=Le(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Re(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&me(r),Ye(n)){case 2:case 8:n=be;break;case 32:n=xe;break;case 268435456:n=Ce;break;default:n=xe}return r=ud.bind(null,e),n=pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&me(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=Le(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),ld(e,_e()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Uu())return null;_u(e,t,!0)}function fd(){Qd(function(){Fl&6?pe(ye,sd):cd()})}function pd(){if(id===0){var e=na;e===0&&(e=Ne,Ne<<=1,!(Ne&261888)&&(Ne=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Gt(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[et]||null).action),o=r.submitter;o&&(t=(t=o[et]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new mn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Lr.length;_d++){var vd=Lr[_d];Rr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Rr(Ar,`onAnimationEnd`),Rr(jr,`onAnimationIteration`),Rr(Mr,`onAnimationStart`),Rr(`dblclick`,`onDoubleClick`),Rr(`focusin`,`onFocus`),Rr(`focusout`,`onBlur`),Rr(Nr,`onTransitionRun`),Rr(Pr,`onTransitionStart`),Rr(Fr,`onTransitionCancel`),Rr(Ir,`onTransitionEnd`),gt(`onMouseEnter`,[`mouseout`,`mouseover`]),gt(`onMouseLeave`,[`mouseout`,`mouseover`]),gt(`onPointerEnter`,[`pointerout`,`pointerover`]),gt(`onPointerLeave`,[`pointerout`,`pointerover`]),ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(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){zr(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){zr(e)}i.currentTarget=null,a=c}}}}function Sd(e,t){var n=t[nt];n===void 0&&(n=t[nt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,pt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(_p(t)){case 2:var i=dp;break;case 8:i=fp;break;default:i=pp}n=i.bind(null,t,n,e),i=void 0,!nn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ct(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}$t(function(){var r=a,i=Jt(n),s=[];a:{var c=J.get(e);if(c!==void 0){var l=mn,u=e;switch(e){case`keypress`:if(ln(n)===0)break a;case`keydown`:case`keyup`:l=jn;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;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=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=K;break;case Ar:case jr:case Mr:l=Cn;break;case Ir:l=Nn;break;case`scroll`:case`scrollend`:l=G;break;case`wheel`:l=Pn;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=Mn;break;case`toggle`:case`beforetoggle`:l=Fn}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=en(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==qt&&(u=n.relatedTarget||n.fromElement)&&(ct(u)||u[tt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ct(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Mn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ut(l),h=u==null?c:ut(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?ut(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=tr;else if(Yn(c))if(nr)v=dr;else{v=lr;var y=cr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Ht(r.elementType)&&(v=tr):v=ur;if(v&&=v(e,r)){Xn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Pt(c,`number`,c.value)}switch(y=r?ut(r):window,e){case`focusin`:(Yn(y)||y.contentEditable===`true`)&&(xr=y,Sr=r,Cr=null);break;case`focusout`:Cr=Sr=xr=null;break;case`mousedown`:wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:wr=!1,Tr(s,n,i);break;case`selectionchange`:if(br)break;case`keydown`:case`keyup`:Tr(s,n,i)}var b;if(Ln)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Gn?Un(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Bn&&n.locale!==`ko`&&(Gn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Gn&&(b=cn()):(an=i,on=`value`in an?an.value:an.textContent,Gn=!0)),y=kd(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Wn(n),b!==null&&(x.data=b)))),(b=zn?Kn(e,n):qn(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),gd(s,e,r,n,i)}xd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=en(e,n),i!=null&&r.unshift(Od(e,i,a)),i=en(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=en(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=en(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
57
57
|
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Rt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Vt(e,r,o);break;case`data`:if(t!==`object`){St(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=Gt(``+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`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Gt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Sd(`beforetoggle`,e),Sd(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ut.get(n)||n,xt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Vt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Rt(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[et]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):xt(e,n,r)}}}function Y(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Nt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Sd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ft(e,!!r,n,!0):Ft(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}Lt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Ht(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Mt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ft(e,!!n,n?[]:``,!1):Ft(e,!!n,t,!0)):Ft(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}It(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Ht(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Bd(){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&&zd(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&&zd(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 Vd=null,Hd=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Wd(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 Gd(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 Kd(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 qd=null;function Jd(){var e=window.event;return e&&e.type===`popstate`?e!==qd&&(qd=e,!0):(qd=null,!1)}var Yd=typeof setTimeout==`function`?setTimeout:void 0,Xd=typeof clearTimeout==`function`?clearTimeout:void 0,Zd=typeof Promise==`function`?Promise:void 0,Qd=typeof queueMicrotask==`function`?queueMicrotask:Zd===void 0?Yd:function(e){return Zd.resolve(null).then(e).catch($d)};function $d(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(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),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body);n=i}while(n);Ip(t)}function nf(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 rf(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`:rf(n),st(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(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[ot])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=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(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 df(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 ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(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 hf(e,t,n){switch(t=Ud(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 gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);st(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=F.d;F.d={f:xf,r:Sf,D:Tf,C:Ef,L:Df,m:Of,X:Af,S:kf,M:jf};function xf(){var e=bf.f(),t=xu();return e||t}function Sf(e){var t=lt(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Y(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Tf(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Ef(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Df(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Nf(e);break;case`script`:a=Lf(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Y(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Of(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Y(r,`link`,e),ft(r),n.head.appendChild(r)}}}function kf(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=dt(r).hoistableStyles,a=Nf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);ft(c),Y(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,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Af(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=dt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),ft(a),Y(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=dt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),ft(a),Y(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t,n,r){var a=(a=ee.current)?yf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Nf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Nf(n.href);var o=dt(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(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_f.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nf(e){return`href="`+jt(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Y(t,`link`,n),ft(t),e.head.appendChild(t))}function Lf(e){return`[src="`+jt(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Y(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Nf(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Ff(n),(a=_f.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Y(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,ft(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Y(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,Bf(r,n.precedence,e));return t.instance}function Bf(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 Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,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[ot]||a[$e]||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 Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(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 qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Jf(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=Nf(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Zf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Ff(r),(i=_f.get(i))&&Vf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Y(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=Zf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Yf=0;function Xf(e,t){return e.stylesheets&&e.count===0&&$f(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Yf===0&&(Yf=62500*Bd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$f(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qf=null;function $f(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qf=new Map,t.forEach(ep,e),Qf=null,Zf.call(e))}function ep(e,t){if(!(t.state.loading&4)){var n=Qf.get(e);if(n)var r=n.get(null);else{n=new Map,Qf.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=Zf.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 tp={$$typeof:b,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function np(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=Ve(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ve(0),this.hiddenUpdates=Ve(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function rp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new np(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Zr(3,null,null,t),e.current=a,a.stateNode=e,t=Qi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ja(a),e}function ip(e){return e?(e=Yr,e):Yr}function ap(e,t,n,r,i,a){i=ip(i),r.context===null?r.context=i:r.pendingContext=i,r=Na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Pa(e,r,t),n!==null&&(gu(n,e,t),Fa(n,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sp(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Kr(e,67108864);t!==null&&gu(t,e,67108864),sp(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=mu();t=qe(t);var n=Kr(e,t);n!==null&&gu(n,e,t),sp(e,t)}}var up=!0;function dp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,pp(e,t,n,r)}finally{F.p=a,P.T=i}}function fp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,pp(e,t,n,r)}finally{F.p=a,P.T=i}}function pp(e,t,n,r){if(up){var i=mp(r);if(i===null)Dd(e,t,r,hp,n),Ep(e,r);else if(Op(i,e,t,n,r))r.stopPropagation();else if(Ep(e,r),t&4&&-1<Tp.indexOf(e)){for(;i!==null;){var a=lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ie(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ke(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Fl&6)&&(nu=_e()+500,od(0,!1))}}break;case 31:case 13:s=Kr(a,2),s!==null&&gu(s,a,2),xu(),sp(a,2)}if(a=mp(r),a===null&&Dd(e,t,r,hp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function mp(e){return e=Jt(e),gp(e)}var hp=null;function gp(e){if(hp=null,e=ct(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 hp=e,null}function _p(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ve()){case ye:return 2;case be:return 8;case xe:case Se:return 32;case Ce:return 268435456;default:return 32}default:return 32}}var vp=!1,yp=null,bp=null,xp=null,Sp=new Map,Cp=new Map,wp=[],Tp=`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 Ep(e,t){switch(e){case`focusin`:case`focusout`:yp=null;break;case`dragenter`:case`dragleave`:bp=null;break;case`mouseover`:case`mouseout`:xp=null;break;case`pointerover`:case`pointerout`:Sp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Cp.delete(t.pointerId)}}function Dp(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=lt(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Op(e,t,n,r,i){switch(t){case`focusin`:return yp=Dp(yp,e,t,n,r,i),!0;case`dragenter`:return bp=Dp(bp,e,t,n,r,i),!0;case`mouseover`:return xp=Dp(xp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Sp.set(a,Dp(Sp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Cp.set(a,Dp(Cp.get(a)||null,e,t,n,r,i)),!0}return!1}function kp(e){var t=ct(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,Ze(e.priority,function(){lp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){lp(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 Ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qt=r,n.target.dispatchEvent(r),qt=null}else return t=lt(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){Ap(e)&&n.delete(t)}function Mp(){vp=!1,yp!==null&&Ap(yp)&&(yp=null),bp!==null&&Ap(bp)&&(bp=null),xp!==null&&Ap(xp)&&(xp=null),Sp.forEach(jp),Cp.forEach(jp)}function Np(e,n){e.blockedOn===n&&(e.blockedOn=null,vp||(vp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mp)))}var Pp=null;function Fp(e){Pp!==e&&(Pp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pp===e&&(Pp=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(gp(r||n)===null)continue;break}var a=lt(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Np(t,e)}yp!==null&&Np(yp,e),bp!==null&&Np(bp,e),xp!==null&&Np(xp,e),Sp.forEach(t),Cp.forEach(t);for(var n=0;n<wp.length;n++){var r=wp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wp.length&&(n=wp[0],n.blockedOn===null);)kp(n),n.blockedOn===null&&wp.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[et]||null;if(typeof a==`function`)o||Fp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[et]||null)s=o.formAction;else if(gp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Fp(n)}}}function Lp(){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 Rp(e){this._internalRoot=e}zp.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ap(n,mu(),e,t,null,null)},zp.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),xu(),t[tt]=null}};function zp(e){this._internalRoot=e}zp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wp.length&&t!==0&&t<wp[n].priority;n++);wp.splice(n,0,e),n===0&&kp(e)}};var Bp=n.version;if(Bp!==`19.2.8`)throw Error(i(527,Bp,`19.2.8`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Vp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hp.isDisabled&&Hp.supportsFiber)try{Ee=Hp.inject(Vp),De=Hp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;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=rp(e,1,!1,null,null,n,r,null,o,s,c,Lp),e[tt]=t.current,Td(e),new Rp(t)}})),cb=o(((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=sb()})),lb=`modulepreload`,ub=function(e){return`/app/`+e},db={},fb=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ub(t,n),t=s(t),t in db)return;db[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:lb,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},pb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,mb=/^[\\/]{2}/;function hb(e,t){return t+e.replace(/\\/g,`/`)}var gb=`popstate`;function _b(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function vb(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Cb(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:wb(t)}return Eb(t,n,null,e)}function yb(e,t){if(e===!1||e==null)throw Error(t)}function bb(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function xb(){return Math.random().toString(36).substring(2,10)}function Sb(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Cb(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Tb(t):t,state:n,key:t&&t.key||r||xb(),mask:i}}function wb({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Tb(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Eb(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=_b(e)?e:Cb(h.location,e,t);n&&n(r,e),l=u()+1;let d=Sb(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=_b(e)?e:Cb(h.location,e,t);n&&n(r,e),l=u();let i=Sb(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Db(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(gb,d),c=e,()=>{i.removeEventListener(gb,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Db(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),yb(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:wb(t);return i=i.replace(/ $/,`%20`),!n&&mb.test(i)&&(i=r+i),new URL(i,r)}function Ob(e,t,n=`/`){return kb(e,t,n,!1)}function kb(e,t,n,r,i){let a=Jb((typeof t==`string`?Tb(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Ab(e),s=null,c=qb(a);for(let e=0;s==null&&e<o.length;++e)s=Ub(o[e],c,r);return s}function Ab(e){let t=jb(e);return Nb(t),t}function jb(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;yb(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=nx([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(yb(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),jb(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Vb(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Kb(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Mb(e.path))a(e,t,!0,n)}),t}function Mb(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Mb(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Nb(e){e.sort((e,t)=>e.score===t.score?Hb(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Pb=/^:[\w-]+$/,Fb=3,Ib=2,Lb=1,Rb=10,zb=-2,Bb=e=>e===`*`;function Vb(e,t){let n=e.split(`/`),r=n.length;return n.some(Bb)&&(r+=zb),t&&(r+=Ib),n.filter(e=>!Bb(e)).reduce((e,t)=>e+(Pb.test(t)?Fb:t===``?Lb:Rb),r)}function Hb(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ub(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Gb(u,l,s.matcher,s.compiledParams):Wb(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Wb({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:nx([a,d.pathname]),pathnameBase:ix(nx([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=nx([a,d.pathnameBase]))}return o}function Wb(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Kb(e.path,e.caseSensitive,e.end);return Gb(e,t,n,r)}function Gb(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Kb(e,t=!1,n=!0){bb(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function qb(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return bb(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Jb(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Yb(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Tb(e):e,a;return n?(n=tx(n),a=n.startsWith(`/`)?Xb(n.substring(1),`/`):Xb(n,t)):a=t,{pathname:a,search:ax(r),hash:ox(i)}}function Xb(e,t){let n=rx(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Zb(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qb(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function $b(e){let t=Qb(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ex(e,t,n,r=!1){let i;typeof e==`string`?i=Tb(e):(i={...e},yb(!i.pathname||!i.pathname.includes(`?`),Zb(`?`,`pathname`,`search`,i)),yb(!i.pathname||!i.pathname.includes(`#`),Zb(`#`,`pathname`,`hash`,i)),yb(!i.search||!i.search.includes(`#`),Zb(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Yb(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var tx=e=>e.replace(/[\\/]{2,}/g,`/`),nx=e=>tx(e.join(`/`)),rx=e=>e.replace(/\/+$/,``),ix=e=>rx(e).replace(/^\/*/,`/`),ax=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ox=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,sx=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function cx(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function lx(e){return nx(e.map(e=>e.route.path).filter(Boolean))||`/`}var ux=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function dx(e,t){let n=e;if(typeof n!=`string`||!pb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ux)try{let e=new URL(window.location.href),r=mb.test(n)?new URL(hb(n,e.protocol)):new URL(n),a=Jb(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{bb(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var fx=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(fx);var px=[`GET`,...fx];new Set(px);var mx=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function hx(e){try{return mx.includes(new URL(e).protocol)}catch{return!1}}var gx=w.createContext(null);gx.displayName=`DataRouter`;var _x=w.createContext(null);_x.displayName=`DataRouterState`;var vx=w.createContext(!1);function yx(){return w.useContext(vx)}var bx=w.createContext({isTransitioning:!1});bx.displayName=`ViewTransition`;var xx=w.createContext(new Map);xx.displayName=`Fetchers`;var Sx=w.createContext(null);Sx.displayName=`Await`;var Cx=w.createContext(null);Cx.displayName=`Navigation`;var wx=w.createContext(null);wx.displayName=`Location`;var Tx=w.createContext({outlet:null,matches:[],isDataRoute:!1});Tx.displayName=`Route`;var Ex=w.createContext(null);Ex.displayName=`RouteError`;var Dx=`REACT_ROUTER_ERROR`,Ox=`REDIRECT`,kx=`ROUTE_ERROR_RESPONSE`;function Ax(e){if(e.startsWith(`${Dx}:${Ox}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function jx(e){if(e.startsWith(`${Dx}:${kx}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new sx(t.status,t.statusText,t.data)}catch{}}function Mx(e,{relative:t}={}){yb(Nx(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=w.useContext(Cx),{hash:i,pathname:a,search:o}=Hx(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:nx([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Nx(){return w.useContext(wx)!=null}function Px(){return yb(Nx(),`useLocation() may be used only in the context of a <Router> component.`),w.useContext(wx).location}var Fx=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Ix(e){w.useContext(Cx).static||w.useLayoutEffect(e)}function Lx(){let{isDataRoute:e}=w.useContext(Tx);return e?aS():Rx()}function Rx(){yb(Nx(),`useNavigate() may be used only in the context of a <Router> component.`);let e=w.useContext(gx),{basename:t,navigator:n}=w.useContext(Cx),{matches:r}=w.useContext(Tx),{pathname:i}=Px(),a=JSON.stringify($b(r)),o=w.useRef(!1);return Ix(()=>{o.current=!0}),w.useCallback((r,s={})=>{if(bb(o.current,Fx),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ex(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:nx([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var zx=w.createContext(null);function Bx(e){let t=w.useContext(Tx).outlet;return w.useMemo(()=>t&&w.createElement(zx.Provider,{value:e},t),[t,e])}function Vx(){let{matches:e}=w.useContext(Tx);return e[e.length-1]?.params??{}}function Hx(e,{relative:t}={}){let{matches:n}=w.useContext(Tx),{pathname:r}=Px(),i=JSON.stringify($b(n));return w.useMemo(()=>ex(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Ux(e,t){return Wx(e,t)}function Wx(e,t,n){yb(Nx(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=w.useContext(Cx),{matches:i}=w.useContext(Tx),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;sS(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
58
58
|
|
|
59
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Px(),d;if(t){let e=typeof t==`string`?Tb(t):t;yb(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Ob(e,{pathname:p});bb(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),bb(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Zx(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:nx([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:nx([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?w.createElement(wx.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Gx(){let e=iS(),t=cx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=w.createElement(w.Fragment,null,w.createElement(`p`,null,`💿 Hey developer 👋`),w.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,w.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,w.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),w.createElement(w.Fragment,null,w.createElement(`h2`,null,`Unexpected Application Error!`),w.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?w.createElement(`pre`,{style:i},n):null,o)}var Kx=w.createElement(Gx,null),qx=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=jx(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:w.createElement(Tx.Provider,{value:this.props.routeContext},w.createElement(Ex.Provider,{value:e,children:this.props.component}));return this.context?w.createElement(Yx,{error:e},t):t}};qx.contextType=vx;var Jx=new WeakMap;function Yx({children:e,error:t}){let{basename:n}=w.useContext(Cx);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ax(t.digest);if(e){let r=Jx.get(t);if(r)throw r;let i=dx(e.location,n),a=i.absoluteURL||i.to;if(hx(a))throw Error(`Invalid redirect location`);if(ux&&!Jx.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Jx.set(t,n),n}return w.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Xx({routeContext:e,match:t,children:n}){let r=w.useContext(gx);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Tx.Provider,{value:e},n)}function Zx(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);yb(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:lx(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Kx,o&&(s<0&&c===0?(sS(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?w.createElement(n.route.Component,null):n.route.element?n.route.element:e,w.createElement(Xx,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?w.createElement(qx,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Qx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $x(e){let t=w.useContext(gx);return yb(t,Qx(e)),t}function eS(e){let t=w.useContext(_x);return yb(t,Qx(e)),t}function tS(e){let t=w.useContext(Tx);return yb(t,Qx(e)),t}function nS(e){let t=tS(e),n=t.matches[t.matches.length-1];return yb(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rS(){return nS(`useRouteId`)}function iS(){let e=w.useContext(Ex),t=eS(`useRouteError`),n=nS(`useRouteError`);return e===void 0?t.errors?.[n]:e}function aS(){let{router:e}=$x(`useNavigate`),t=nS(`useNavigate`),n=w.useRef(!1);return Ix(()=>{n.current=!0}),w.useCallback(async(r,i={})=>{bb(n.current,Fx),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var oS={};function sS(e,t,n){!t&&!oS[e]&&(oS[e]=!0,bb(!1,n))}w.memo(cS);function cS({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Wx(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function lS(e){return Bx(e.context)}function uS(e){yb(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function dS({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){yb(!Nx(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=w.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Tb(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=w.useMemo(()=>{let e=Jb(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return bb(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(Cx.Provider,{value:c},w.createElement(wx.Provider,{children:t,value:h}))}function fS({children:e,location:t}){return Ux(pS(e),t)}w.Component;function pS(e,t=[]){let n=[];return w.Children.forEach(e,(e,r)=>{if(!w.isValidElement(e))return;let i=[...t,r];if(e.type===w.Fragment){n.push.apply(n,pS(e.props.children,i));return}yb(e.type===uS,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yb(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=pS(e.props.children,i)),n.push(a)}),n}var mS=`get`,hS=`application/x-www-form-urlencoded`;function gS(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function _S(e){return gS(e)&&e.tagName.toLowerCase()===`button`}function vS(e){return gS(e)&&e.tagName.toLowerCase()===`form`}function yS(e){return gS(e)&&e.tagName.toLowerCase()===`input`}function bS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xS(e,t){return e.button===0&&(!t||t===`_self`)&&!bS(e)}function SS(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function CS(e,t){let n=SS(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var wS=null;function TS(){if(wS===null)try{new FormData(document.createElement(`form`),0),wS=!1}catch{wS=!0}return wS}var ES=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function DS(e){return e!=null&&!ES.has(e)?(bb(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hS}"`),null):e}function OS(e,t){let n,r,i,a,o;if(vS(e)){let o=e.getAttribute(`action`);r=o?Jb(o,t):null,n=e.getAttribute(`method`)||mS,i=DS(e.getAttribute(`enctype`))||hS,a=new FormData(e)}else if(_S(e)||yS(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Jb(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||mS,i=DS(e.getAttribute(`formenctype`))||DS(o.getAttribute(`enctype`))||hS,a=new FormData(o,e),!TS()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(gS(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=mS,r=null,i=hS,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function kS(e,t){if(e===!1||e==null)throw Error(t)}function AS(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Jb(i.pathname,t)===`/`?`${rx(t)}/_root.${r}`:`${rx(i.pathname)}.${r}`,i}async function jS(e,t){if(e.id in t)return t[e.id];try{let n=await fb(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function MS(e){return e!=null&&typeof e.page==`string`}function NS(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function PS(e,t,n){return zS((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await jS(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(NS).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function FS(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function IS(e,t,{includeHydrateFallback:n}={}){return LS(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function LS(e){return[...new Set(e)]}function RS(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zS(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!MS(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(RS(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function BS(){let e=w.useContext(gx);return kS(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function VS(){let e=w.useContext(_x);return kS(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var HS=w.createContext(void 0);HS.displayName=`FrameworkContext`;function US(){let e=w.useContext(HS);return kS(e,`You must render this element inside a <HydratedRouter> element`),e}function WS(e,t){let n=w.useContext(HS),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=w.useRef(null);w.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:GS(s,p),onBlur:GS(c,m),onMouseEnter:GS(l,p),onMouseLeave:GS(u,m),onTouchStart:GS(d,p)}]:[a,f,{}]:[!1,f,{}]}function GS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function KS({page:e,...t}){let n=yx(),{nonce:r}=US(),{router:i}=BS(),a=w.useMemo(()=>Ob(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?w.createElement(JS,{page:e,matches:a,...t}):w.createElement(YS,{page:e,matches:a,...t})):null}function qS(e){let{manifest:t,routeModules:n}=US(),[r,i]=w.useState([]);return w.useEffect(()=>{let r=!1;return PS(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function JS({page:e,matches:t,...n}){let r=Px(),{future:i}=US(),{basename:a}=BS(),o=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=AS(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,o.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function YS({page:e,matches:t,...n}){let r=Px(),{future:i,manifest:a,routeModules:o}=US(),{basename:s}=BS(),{loaderData:c,matches:l}=VS(),u=w.useMemo(()=>FS(e,t,l,a,r,`data`),[e,t,l,a,r]),d=w.useMemo(()=>FS(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=AS(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=w.useMemo(()=>IS(d,a),[d,a]),m=qS(d);return w.createElement(w.Fragment,null,f.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>w.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>w.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function XS(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}w.Component;var ZS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ZS&&(window.__reactRouterVersion=`7.18.2`)}catch{}function QS({basename:e,children:t,useTransitions:n,window:r}){let i=w.useRef();i.current??=vb({window:r,v5Compat:!0});let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),c=w.useCallback(e=>{n===!1?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>a.listen(c),[a,c]),w.createElement(dS,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var $S=w.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=w.useContext(Cx),v=typeof l==`string`&&pb.test(l),y=dx(l,h);l=y.to;let b=Mx(l,{relative:r}),x=Px(),S=null;if(o){let e=ex(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:nx([h,e.pathname])),S=g.createHref(e)}let[C,T,E]=WS(n,p),D=iC(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=w.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:XS(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?w.createElement(w.Fragment,null,A,w.createElement(KS,{page:b})):A});$S.displayName=`Link`;var eC=w.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Hx(a,{relative:c.relative}),d=Px(),f=w.useContext(_x),{navigator:p,basename:m}=w.useContext(Cx),h=f!=null&&uC(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Jb(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return w.createElement($S,{...c,"aria-current":C,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});eC.displayName=`NavLink`;var tC=w.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=mS,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=w.useContext(Cx),g=cC(),_=lC(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&pb.test(s);return w.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?w.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});tC.displayName=`Form`;function nC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rC(e){let t=w.useContext(gx);return yb(t,nC(e)),t}function iC(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Lx(),d=Px(),f=Hx(e,{relative:o});return w.useCallback(p=>{if(xS(p,t)){p.preventDefault();let t=n===void 0?wb(d)===wb(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?w.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function aC(e){bb(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(SS(e)),n=w.useRef(!1),r=Px(),i=w.useMemo(()=>CS(r.search,n.current?null:t.current),[r.search]),a=Lx();return[i,w.useCallback((e,t)=>{let r=SS(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var oC=0,sC=()=>`__${String(++oC)}__`;function cC(){let{router:e}=rC(`useSubmit`),{basename:t}=w.useContext(Cx),n=rS(),r=e.fetch,i=e.navigate;return w.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=OS(e,t);if(a.navigate===!1){let e=a.fetcherKey||sC();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function lC(e,{relative:t}={}){let{basename:n}=w.useContext(Cx),r=w.useContext(Tx);yb(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Hx(e||`.`,{relative:t})},o=Px();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:nx([n,a.pathname])),wb(a)}function uC(e,{relative:t}={}){let n=w.useContext(bx);yb(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rC(`useViewTransitionState`),i=Hx(e,{relative:t});if(!n.isTransitioning)return!1;let a=Jb(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Jb(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wb(i.pathname,o)!=null||Wb(i.pathname,a)!=null}var dC={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},fC=(e,t,n,r)=>{let i=(0,w.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,w.createElement)(`svg`,{ref:u,...dC[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,w.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},pC=fC(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]),mC=fC(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),hC=fC(`outline`,`alert-triangle`,`AlertTriangle`,[[`path`,{d:`M12 9v4`,key:`svg-0`}],[`path`,{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),gC=fC(`outline`,`arrow-back-up`,`ArrowBackUp`,[[`path`,{d:`M9 14l-4 -4l4 -4`,key:`svg-0`}],[`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`,key:`svg-1`}]]),_C=fC(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]),vC=fC(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),yC=fC(`outline`,`arrows-diff`,`ArrowsDiff`,[[`path`,{d:`M11 16h10`,key:`svg-0`}],[`path`,{d:`M11 16l4 4`,key:`svg-1`}],[`path`,{d:`M11 16l4 -4`,key:`svg-2`}],[`path`,{d:`M13 8h-10`,key:`svg-3`}],[`path`,{d:`M13 8l-4 4`,key:`svg-4`}],[`path`,{d:`M13 8l-4 -4`,key:`svg-5`}]]),bC=fC(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]),xC=fC(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),SC=fC(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),CC=fC(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),wC=fC(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),TC=fC(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),EC=fC(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),DC=fC(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),OC=fC(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),kC=fC(`outline`,`database`,`Database`,[[`path`,{d:`M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0`,key:`svg-0`}],[`path`,{d:`M4 6v6a8 3 0 0 0 16 0v-6`,key:`svg-1`}],[`path`,{d:`M4 12v6a8 3 0 0 0 16 0v-6`,key:`svg-2`}]]),AC=fC(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]),jC=fC(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]),MC=fC(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),NC=fC(`outline`,`edit`,`Edit`,[[`path`,{d:`M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1`,key:`svg-0`}],[`path`,{d:`M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415`,key:`svg-1`}],[`path`,{d:`M16 5l3 3`,key:`svg-2`}]]),PC=fC(`outline`,`file-text`,`FileText`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}],[`path`,{d:`M9 9l1 0`,key:`svg-2`}],[`path`,{d:`M9 13l6 0`,key:`svg-3`}],[`path`,{d:`M9 17l6 0`,key:`svg-4`}]]),FC=fC(`outline`,`flask`,`Flask`,[[`path`,{d:`M9 3l6 0`,key:`svg-0`}],[`path`,{d:`M10 9l4 0`,key:`svg-1`}],[`path`,{d:`M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6`,key:`svg-2`}]]),IC=fC(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]),LC=fC(`outline`,`history`,`History`,[[`path`,{d:`M12 8l0 4l2 2`,key:`svg-0`}],[`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`,key:`svg-1`}]]),RC=fC(`outline`,`link`,`Link`,[[`path`,{d:`M9 15l6 -6`,key:`svg-0`}],[`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`,key:`svg-1`}],[`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`,key:`svg-2`}]]),zC=fC(`outline`,`list`,`List`,[[`path`,{d:`M9 6l11 0`,key:`svg-0`}],[`path`,{d:`M9 12l11 0`,key:`svg-1`}],[`path`,{d:`M9 18l11 0`,key:`svg-2`}],[`path`,{d:`M5 6l0 .01`,key:`svg-3`}],[`path`,{d:`M5 12l0 .01`,key:`svg-4`}],[`path`,{d:`M5 18l0 .01`,key:`svg-5`}]]),BC=fC(`outline`,`lock-open`,`LockOpen`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-5a4 4 0 0 1 8 0`,key:`svg-2`}]]),VC=fC(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),HC=fC(`outline`,`map-pin`,`MapPin`,[[`path`,{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-0`}],[`path`,{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0`,key:`svg-1`}]]),UC=fC(`outline`,`moon`,`Moon`,[[`path`,{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008`,key:`svg-0`}]]),WC=fC(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),GC=fC(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),KC=fC(`outline`,`robot`,`Robot`,[[`path`,{d:`M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4`,key:`svg-0`}],[`path`,{d:`M12 2v2`,key:`svg-1`}],[`path`,{d:`M9 12v9`,key:`svg-2`}],[`path`,{d:`M15 12v9`,key:`svg-3`}],[`path`,{d:`M5 16l4 -2`,key:`svg-4`}],[`path`,{d:`M15 14l4 2`,key:`svg-5`}],[`path`,{d:`M9 18h6`,key:`svg-6`}],[`path`,{d:`M10 8v.01`,key:`svg-7`}],[`path`,{d:`M14 8v.01`,key:`svg-8`}]]),qC=fC(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),JC=fC(`outline`,`sparkles`,`Sparkles`,[[`path`,{d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6`,key:`svg-0`}]]),YC=fC(`outline`,`stack-2`,`Stack2`,[[`path`,{d:`M12 4l-8 4l8 4l8 -4l-8 -4`,key:`svg-0`}],[`path`,{d:`M4 12l8 4l8 -4`,key:`svg-1`}],[`path`,{d:`M4 16l8 4l8 -4`,key:`svg-2`}]]),XC=fC(`outline`,`sun`,`Sun`,[[`path`,{d:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,key:`svg-0`}],[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`,key:`svg-1`}]]),ZC=fC(`outline`,`terminal-2`,`Terminal2`,[[`path`,{d:`M8 9l3 3l-3 3`,key:`svg-0`}],[`path`,{d:`M13 15l3 0`,key:`svg-1`}],[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12`,key:`svg-2`}]]),QC=fC(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),$C=fC(`outline`,`upload`,`Upload`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 9l5 -5l5 5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),ew=fC(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),tw=cb(),nw=`/api/v1`,rw=class extends Error{status;statusText;body;constructor(e,t,n){super(`API error ${e}: ${t}`),this.name=`ApiError`,this.status=e,this.statusText=t,this.body=n}},iw=class extends rw{errorMessage;see;note;constructor(e,t){super(503,`Service Unavailable`,e),this.name=`V07IngestionDeferredError`,this.errorMessage=t.error,this.see=t.see??null,this.note=t.note??null}};function aw(e){try{let t=JSON.parse(e),n=t.error;return typeof n!=`string`||!n.toLowerCase().includes(`v0.7`)?null:{error:n,see:typeof t.see==`string`?t.see:void 0,note:typeof t.note==`string`?t.note:void 0}}catch{}return null}async function ow(e,t){let n=`${nw}${e}`,r=await fetch(n,{...t,headers:{"Content-Type":`application/json`,...t?.headers}});if(!r.ok){let e=await r.text();if(r.status===503){let t=aw(e);if(t)throw new iw(e,t)}throw new rw(r.status,r.statusText,e)}return r.json()}async function sw(e){if(e.status!==503)return null;let t=await e.text(),n=aw(t);return n?new iw(t,n):null}function cw(e){let t=Object.entries(e).filter(([,e])=>e!==void 0&&e!==``);return t.length===0?``:`?`+new URLSearchParams(t.map(([e,t])=>[e,String(t)])).toString()}async function lw(){return ow(`/preferences`)}async function uw(e){await ow(`/preferences`,{method:`PUT`,body:JSON.stringify(e)})}function dw(){let{colorScheme:e,setColorScheme:t}=nn();return(0,w.useEffect)(()=>{let n=!1;return lw().then(r=>{!n&&r.theme&&r.theme!==e&&t(r.theme)}).catch(()=>{}),()=>{n=!0}},[]),{theme:e,setTheme:e=>{t(e),uw({theme:e}).catch(()=>{})}}}async function fw(){return ow(`/version`)}function pw(){let{data:e}=rb({queryKey:[`version`],queryFn:fw,staleTime:1/0,retry:!1}),t=e?.env_label?.trim();return t?(0,G.jsxs)(Nd,{icon:(0,G.jsx)(FC,{size:18}),color:`grape`,withCloseButton:!1,mb:`md`,"data-testid":`environment-banner`,children:[(0,G.jsxs)(Y,{size:`sm`,fw:600,children:[t.toUpperCase(),` environment — not production.`]}),(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`This server is running against the `,(0,G.jsx)(Y,{span:!0,fw:600,children:t}),` `,`database. Changes made here do not affect production.`]})]}):null}var mw=`/api/v1`;async function hw(){let e=await fetch(`${mw}/docs`);if(!e.ok)throw Error(`Failed to load docs index: ${e.status}`);return e.json()}async function gw(e){let t=await fetch(`${mw}/docs/${e.split(`/`).map(encodeURIComponent).join(`/`)}`);if(!t.ok)throw Error(`Failed to load doc '${e}': ${t.status}`);return t.text()}async function _w(){let e=await fetch(`${mw}/schema-version`);if(!e.ok)throw Error(`Failed to load schema version: ${e.status}`);return e.json()}function vw(){let{data:e}=rb({queryKey:[`schema-version`],queryFn:_w,refetchInterval:6e4,staleTime:3e4,retry:!1}),t=e?.level===`below-min`;return!e||!t&&!e.mismatch?null:(0,G.jsxs)(Nd,{icon:(0,G.jsx)(hC,{size:18}),color:t?`red`:`yellow`,title:t?`Database schema is incompatible`:`Database schema out of date`,withCloseButton:!1,mb:`md`,children:[(0,G.jsx)(Y,{size:`sm`,children:t?(0,G.jsxs)(G.Fragment,{children:[`This Cerefox client (v`,e.bundled,`) requires schema v`,e.min,` or newer, but your Supabase has v`,e.deployed??`unknown`,`. Features will not work correctly until you redeploy.`]}):(0,G.jsxs)(G.Fragment,{children:[`Cerefox v`,e.bundled,` ships a newer schema than what is currently deployed to your Supabase (v`,e.deployed??`unknown`,`). Some features may behave incorrectly until you redeploy.`]})}),(0,G.jsx)(Y,{size:`sm`,mt:`xs`,children:`Redeploy with the Cerefox CLI:`}),(0,G.jsx)(Ap,{block:!0,mt:`xs`,children:`cerefox deploy-server --schema-only`})]})}var yw=`https://github.com/fstamatelopoulos/cerefox/releases`;function bw(){let{data:e}=rb({queryKey:[`version`],queryFn:fw,staleTime:1/0,retry:!1});if(!e)return null;let t=`${yw}/tag/v${e.version}`,n=e.git_commit_short?` (${e.git_commit_short})`:``;return(0,G.jsx)(El,{justify:`center`,py:`sm`,gap:`xs`,children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`Cerefox`,` `,(0,G.jsxs)(Bd,{href:t,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,c:`dimmed`,underline:`hover`,children:[`v`,e.version]}),n]})})}var xw=[{label:`Dashboard`,path:`/`},{label:`Search`,path:`/search`},{label:`Metadata Search`,path:`/metadata-search`},{label:`Ingest`,path:`/ingest`},{label:`Projects`,path:`/projects`},{label:`Audit Log`,path:`/audit-log`},{label:`Trash`,path:`/trash`},{label:`Analytics`,path:`/analytics`},{label:`Settings`,path:`/settings`},{label:`Help`,path:`/help`}],Sw=[{value:`light`,label:`Light`,icon:XC},{value:`dark`,label:`Dark`,icon:UC},{value:`auto`,label:`System`,icon:AC}];function Cw(){let e=Lx(),t=Px(),{theme:n,setTheme:r}=dw(),i=n===`light`?XC:n===`dark`?UC:AC;return(0,G.jsxs)(df,{header:{height:56},padding:`xs`,children:[(0,G.jsxs)(df.Header,{style:{position:`relative`},children:[(0,G.jsxs)(El,{h:`100%`,px:`md`,justify:`space-between`,children:[(0,G.jsxs)(El,{gap:`sm`,children:[(0,G.jsx)(`img`,{src:`/app/cerefox_icon.png`,alt:`Cerefox`,height:32,width:32,style:{borderRadius:4}}),(0,G.jsxs)(Y,{component:`span`,onClick:()=>e(`/`),style:{fontFamily:`var(--font-display)`,fontSize:18,fontWeight:600,letterSpacing:`-0.01em`,cursor:`pointer`},children:[`Cere`,(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`fox`})]})]}),(0,G.jsxs)(El,{gap:`lg`,children:[xw.map(n=>(0,G.jsx)(sc,{onClick:()=>e(n.path),children:(0,G.jsx)(Y,{size:`sm`,fw:t.pathname===n.path?700:400,c:t.pathname===n.path?void 0:`dimmed`,children:n.label})},n.label)),(0,G.jsxs)(qm,{position:`bottom-end`,withArrow:!0,shadow:`md`,width:150,children:[(0,G.jsx)(qm.Target,{children:(0,G.jsx)(gl,{variant:`subtle`,size:`lg`,title:`Color theme`,"aria-label":`Color theme`,children:(0,G.jsx)(i,{size:18})})}),(0,G.jsxs)(qm.Dropdown,{children:[(0,G.jsx)(qm.Label,{children:`Theme`}),Sw.map(e=>{let t=e.icon;return(0,G.jsx)(qm.Item,{leftSection:(0,G.jsx)(t,{size:16}),rightSection:n===e.value?(0,G.jsx)(xC,{size:14}):null,onClick:()=>r(e.value),children:e.label},e.value)})]})]})]})]}),(0,G.jsx)(`div`,{style:{position:`absolute`,left:0,right:0,bottom:0,height:2,background:`linear-gradient(90deg, var(--primary), var(--violet) 60%, transparent)`}})]}),(0,G.jsxs)(df.Main,{children:[(0,G.jsx)(pw,{}),(0,G.jsx)(vw,{}),(0,G.jsx)(lS,{}),(0,G.jsx)(bw,{})]})]})}async function ww(e){return ow(`/audit-log${cw(e??{})}`)}async function Tw(e,t){return ow(`/documents/${e}/review-status`,{method:`POST`,body:JSON.stringify({status:t})})}async function Ew(e,t,n){return ow(`/documents/${e}/versions/${t}/archive`,{method:`POST`,body:JSON.stringify({archived:n})})}var X={eyebrow:`_eyebrow_jg14y_6`,pageTitle:`_pageTitle_jg14y_25`,pageSub:`_pageSub_jg14y_34`,mono:`_mono_jg14y_44`,dim:`_dim_jg14y_45`,faint:`_faint_jg14y_46`,col:`_col_jg14y_47`,row:`_row_jg14y_48`,link:`_link_jg14y_49`,btn:`_btn_jg14y_59`,btnPrimary:`_btnPrimary_jg14y_74`,btnGhost:`_btnGhost_jg14y_84`,btnSubtle:`_btnSubtle_jg14y_93`,btnDanger:`_btnDanger_jg14y_105`,btnWarn:`_btnWarn_jg14y_111`,card:`_card_jg14y_121`,cardPad:`_cardPad_jg14y_127`,badge:`_badge_jg14y_130`,bPrimary:`_bPrimary_jg14y_142`,bViolet:`_bViolet_jg14y_143`,bBlue:`_bBlue_jg14y_144`,bGreen:`_bGreen_jg14y_145`,bYellow:`_bYellow_jg14y_146`,bRed:`_bRed_jg14y_147`,bNeutral:`_bNeutral_jg14y_148`,secHead:`_secHead_jg14y_151`,secTitle:`_secTitle_jg14y_157`,countPill:`_countPill_jg14y_168`,srcChip:`_srcChip_jg14y_180`,srcChipAgent:`_srcChipAgent_jg14y_193`,whatis:`_whatis_jg14y_200`,pageHead:`_pageHead_jg14y_219`,divider:`_divider_jg14y_228`,iconBtn:`_iconBtn_jg14y_104`,iconBtnSm:`_iconBtnSm_jg14y_253`,iconBtnDanger:`_iconBtnDanger_jg14y_104`,seg:`_seg_jg14y_277`,segBtn:`_segBtn_jg14y_285`,segBtnOn:`_segBtnOn_jg14y_304`,chip:`_chip_jg14y_311`,chipOn:`_chipOn_jg14y_330`,selectWrap:`_selectWrap_jg14y_337`,selectEl:`_selectEl_jg14y_351`,cliCard:`_cliCard_jg14y_370`,cliBlock:`_cliBlock_jg14y_374`,cliP:`_cliP_jg14y_383`,cliS:`_cliS_jg14y_387`,cliOut:`_cliOut_jg14y_390`,cliLine:`_cliLine_jg14y_396`,cliLineCmd:`_cliLineCmd_jg14y_404`,cliCopyBtn:`_cliCopyBtn_jg14y_411`,cliHintBlock:`_cliHintBlock_jg14y_427`,cliHintArgs:`_cliHintArgs_jg14y_445`,rise:`_rise_jg14y_453`};function Dw({cmd:e,args:t,docPath:n=`guides/cli.md`}){let r=Lx(),[i,a]=(0,w.useState)(!1),o=(0,w.useRef)(null),s=t?`${e} ${t}`:e;return(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8,flexWrap:`wrap`,justifyContent:`flex-end`},children:[(0,G.jsxs)(`button`,{type:`button`,className:X.cliHintBlock,title:i?`Copied!`:`Copy command to clipboard`,onClick:()=>{navigator.clipboard?.writeText(s),a(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(!1),1200)},children:[(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`$`}),(0,G.jsx)(`span`,{children:e}),t&&(0,G.jsx)(`span`,{className:X.cliHintArgs,children:t}),i?(0,G.jsx)(xC,{size:12,style:{color:`var(--green)`,flexShrink:0}}):(0,G.jsx)(OC,{size:12,style:{color:`var(--text-faint)`,flexShrink:0}})]}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,onClick:()=>r(`/help/${n}`),children:`cli docs`})]})}var Ow=`cerefox:rowsPerPage`,kw=[10,25,50,100],Aw=10;function jw(){try{let e=Number(localStorage.getItem(Ow));if(kw.includes(e))return e}catch{}return Aw}function Mw(){let[e,t]=(0,w.useState)(jw);return[e,e=>{t(e);try{localStorage.setItem(Ow,String(e))}catch{}}]}var Nw={wrap:`_wrap_17ha0_4`,toolbar:`_toolbar_17ha0_11`,search:`_search_17ha0_18`,count:`_count_17ha0_49`,tbl:`_tbl_17ha0_58`,actions:`_actions_17ha0_92`,foot:`_foot_17ha0_99`,pgBtn:`_pgBtn_17ha0_110`,emptyRow:`_emptyRow_17ha0_130`,faint:`_faint_17ha0_135`};function Pw({page:e,pageCount:t,total:n,pageSize:r,onPage:i,onPageSize:a,loading:o=!1}){let s=n===0?0:(e-1)*r+1,c=Math.min(n,(e-1)*r+r),l=e<=1,u=e>=t;return(0,G.jsxs)(`div`,{className:Nw.foot,children:[(0,G.jsxs)(`span`,{className:Nw.faint,children:[n===0?`0`:`${s}–${c}`,` of `,n,o?` · loading…`:``]}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,G.jsx)(`span`,{className:Nw.faint,style:{fontSize:11.5},children:`Rows`}),(0,G.jsx)(`span`,{className:X.selectWrap,style:{height:28},children:(0,G.jsx)(`select`,{className:X.selectEl,value:r,onChange:e=>a(Number(e.currentTarget.value)),"aria-label":`Rows per page`,children:kw.map(e=>(0,G.jsx)(`option`,{value:e,children:e},e))})}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:l,onClick:()=>i(1),"aria-label":`First page`,children:(0,G.jsx)(TC,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:l,onClick:()=>i(e-1),"aria-label":`Previous page`,children:(0,G.jsx)(CC,{size:14})}),(0,G.jsxs)(`span`,{className:Nw.faint,children:[`page `,e,` / `,t]}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:u,onClick:()=>i(e+1),"aria-label":`Next page`,children:(0,G.jsx)(wC,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:u,onClick:()=>i(t),"aria-label":`Last page`,children:(0,G.jsx)(EC,{size:14})})]})]})]})}function Fw({eyebrow:e,title:t,subtitle:n,headerRight:r,toolbarExtra:i,searchValue:a,onSearchChange:o,searchPlaceholder:s=`Filter…`,searchText:c,columns:l,rows:u,rowKey:d,rowClick:f,actions:p,loading:m=!1,emptyText:h=`No matching rows.`}){let[g,_]=(0,w.useState)(0),[v,y]=Mw(),b=(0,w.useMemo)(()=>{let e=a.trim().toLowerCase();return!e||!c?u:u.filter(t=>c(t).toLowerCase().includes(e))},[u,a,c]),x=b.length,S=Math.max(1,Math.ceil(x/v)),C=Math.min(g,S-1),T=b.slice(C*v,C*v+v),E=!!p,D=l.length+ +!!E;return(0,G.jsxs)(`div`,{className:Nw.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:e}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:t}),n&&(0,G.jsx)(`p`,{className:X.pageSub,children:n})]}),r]}),(0,G.jsxs)(`div`,{className:Nw.toolbar,children:[(0,G.jsxs)(`span`,{className:Nw.search,children:[(0,G.jsx)(qC,{size:16}),(0,G.jsx)(`input`,{value:a,onChange:e=>{o(e.currentTarget.value),_(0)},placeholder:s})]}),i,(0,G.jsxs)(`span`,{className:Nw.count,children:[x,` `,x===1?`row`:`rows`]})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:Nw.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[l.map(e=>(0,G.jsx)(`th`,{style:{width:e.width,textAlign:e.align??`left`},children:e.label},e.key)),E&&(0,G.jsx)(`th`,{style:{width:1}})]})}),(0,G.jsx)(`tbody`,{children:m?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:Nw.emptyRow,children:`Loading…`})}):T.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:Nw.emptyRow,children:h})}):T.map(e=>(0,G.jsxs)(`tr`,{style:f?{cursor:`pointer`}:void 0,onClick:f?()=>f(e):void 0,children:[l.map(t=>(0,G.jsx)(`td`,{style:{textAlign:t.align??`left`},children:t.render(e)},t.key)),E&&(0,G.jsx)(`td`,{onClick:e=>e.stopPropagation(),children:(0,G.jsx)(`div`,{className:Nw.actions,children:p(e)})})]},d(e)))})]}),(0,G.jsx)(Pw,{page:C+1,pageCount:S,total:x,pageSize:v,onPage:e=>_(e-1),onPageSize:e=>{y(e),_(0)}})]})]})}function Iw(e){return e?new Date(e).toLocaleDateString():``}function Lw(e){if(!e)return``;let t=new Date(e);return t.toLocaleDateString()+` `+t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}var Rw=[{value:``,label:`All operations`},{value:`create`,label:`Create`},{value:`update-content`,label:`Update content`},{value:`update-metadata`,label:`Update metadata`},{value:`delete`,label:`Delete`},{value:`status-change`,label:`Status change`},{value:`archive`,label:`Archive`},{value:`unarchive`,label:`Unarchive`}],zw={create:X.bGreen,"update-content":X.bBlue,"update-metadata":X.bViolet,"status-change":X.bYellow,archive:X.bPrimary,unarchive:X.bPrimary,delete:X.bRed};function Bw(){let e=Lx(),[t]=aC(),[n,r]=(0,w.useState)(t.get(`operation`)||``),[i]=(0,w.useState)(t.get(`document_id`)||``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(`100`),[d,f]=(0,w.useState)(``),{data:p,isLoading:m}=rb({queryKey:[`audit-log`,n,i,a,s,l],queryFn:()=>ww({operation:n||void 0,document_id:i||void 0,since:a?`${a}T00:00:00`:void 0,until:s?`${s}T23:59:59`:void 0,limit:Number(l)})});return(0,G.jsx)(Fw,{eyebrow:`Every read & write`,title:`Audit Log`,subtitle:`A complete trail of changes — by human and agent alike.`,headerRight:(0,G.jsx)(Dw,{cmd:`cerefox audit list`}),searchValue:d,onSearchChange:f,searchPlaceholder:`Filter by document or description…`,searchText:e=>`${e.doc_title??``} ${e.description??``} ${e.author??``}`,toolbarExtra:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(l_,{data:Rw,value:n,onChange:e=>r(e||``),placeholder:`All operations`,size:`sm`,w:170,clearable:!0}),(0,G.jsx)(A_,{type:`date`,"aria-label":`From`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(A_,{type:`date`,"aria-label":`To`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(l_,{data:[`100`,`250`,`500`,`1000`],value:l,onChange:e=>u(e||`100`),size:`sm`,w:100})]}),columns:[{key:`time`,label:`Time`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12,whiteSpace:`nowrap`},children:Lw(e.created_at)})},{key:`op`,label:`Operation`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.badge} ${zw[e.operation]??X.bNeutral}`,children:e.operation})},{key:`author`,label:`Author`,width:170,render:e=>(0,G.jsxs)(`span`,{className:`${X.srcChip} ${e.author_type===`agent`?X.srcChipAgent:``}`,children:[e.author_type===`agent`?(0,G.jsx)(JC,{size:12}):(0,G.jsx)(HC,{size:12}),e.author]})},{key:`doc`,label:`Document`,render:e=>e.document_id?(0,G.jsx)(`span`,{className:`${X.link}`,style:{fontSize:13},children:e.doc_title||`${e.document_id.slice(0,8)}…`}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`(deleted)`})},{key:`delta`,label:`Change`,width:110,align:`right`,render:e=>{if(e.size_before==null&&e.size_after==null)return(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:`—`});let t=(e.size_after??0)-(e.size_before??0),n=t>0?`var(--green)`:t<0?`var(--red)`:`var(--text-faint)`;return(0,G.jsxs)(`span`,{className:X.mono,style:{fontSize:12,color:n},children:[t>0?`+`:``,t.toLocaleString()]})}}],rows:p??[],rowKey:e=>e.id,rowClick:t=>t.document_id&&e(`/document/${t.document_id}`),loading:m,emptyText:`No audit log entries found.`})}async function Vw(e={}){return ow(`/usage-log/summary${cw({...e})}`)}async function Hw(e={}){return ow(`/usage-log${cw({...e,limit:e.limit??100})}`)}function Uw(e={}){return`/api/v1/usage-log/export.csv${cw({...e})}`}async function Ww(e){return(await ow(`/config/${e}`)).value}async function Gw(e,t){await ow(`/config/${e}`,{method:`PUT`,body:JSON.stringify({value:t})})}function Kw(e){let t=t=>e?.find(e=>e.access_path===t)?.count??0,n=t(`local-mcp`),r=t(`remote-mcp`),i=t(`edge-function`);return{localMcpOps:n,remoteMcpOps:r,efOps:i,agentOps:n+r+i,cliOps:t(`cli`),webOps:t(`webapp`)}}function qw({title:e,commands:t,docPath:n=`guides/cli.md`}){let r=Lx(),[i,a]=(0,w.useState)(null),o=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]);let s=(e,t)=>{navigator.clipboard?.writeText(t.args?`${t.cmd} ${t.args}`:t.cmd),a(e),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(null),1200)};return(0,G.jsxs)(`div`,{className:`${X.card} ${X.cliCard} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8,marginBottom:10},children:[(0,G.jsx)(ZC,{size:15}),(0,G.jsx)(`span`,{style:{fontWeight:600,fontSize:13.5},children:e}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,style:{marginLeft:`auto`},onClick:()=>r(`/help/${n}`),children:`cli docs`})]}),(0,G.jsx)(`div`,{className:X.cliBlock,children:t.map((e,t)=>(0,G.jsxs)(`div`,{className:X.cliLine,children:[(0,G.jsxs)(`span`,{className:X.cliLineCmd,children:[(0,G.jsx)(`span`,{className:X.cliP,children:`$`}),e.cmd,e.args&&(0,G.jsxs)(G.Fragment,{children:[` `,(0,G.jsx)(`span`,{className:X.cliS,children:e.args})]})]}),(0,G.jsx)(`button`,{type:`button`,className:X.cliCopyBtn,title:i===t?`Copied!`:`Copy command to clipboard`,onClick:()=>s(t,e),children:i===t?(0,G.jsx)(xC,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(OC,{size:13})})]},t))})]})}async function Jw(){return ow(`/dashboard`)}var Yw={wrap:`_wrap_1i3hz_5`,dashHero:`_dashHero_1i3hz_12`,dashHeroActions:`_dashHeroActions_1i3hz_20`,quickSearch:`_quickSearch_1i3hz_24`,qsGo:`_qsGo_1i3hz_52`,statGrid:`_statGrid_1i3hz_66`,statTile:`_statTile_1i3hz_72`,statTop:`_statTop_1i3hz_78`,statIco:`_statIco_1i3hz_84`,statValue:`_statValue_1i3hz_91`,statLabel:`_statLabel_1i3hz_99`,emptyVal:`_emptyVal_1i3hz_103`,dashSplit:`_dashSplit_1i3hz_112`,dashRail:`_dashRail_1i3hz_118`,tbl:`_tbl_1i3hz_125`,alignRight:`_alignRight_1i3hz_152`,docCell:`_docCell_1i3hz_154`,docDot:`_docDot_1i3hz_159`,docTitle:`_docTitle_1i3hz_165`,projList:`_projList_1i3hz_175`,projScroll:`_projScroll_1i3hz_180`,projRow:`_projRow_1i3hz_189`,projDot:`_projDot_1i3hz_203`,projName:`_projName_1i3hz_209`,projCounts:`_projCounts_1i3hz_220`,trashCount:`_trashCount_1i3hz_229`,projBar:`_projBar_1i3hz_235`,projChev:`_projChev_1i3hz_248`,projFoot:`_projFoot_1i3hz_255`},Xw=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function Zw(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function Qw(){let e=new Date().getHours();return e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function $w(e){let t=(e??`manual`).toLowerCase();switch(t){case`agent`:return{icon:JC,label:`agent`,agent:!0};case`cli`:return{icon:ZC,label:`cli`,agent:!1};case`file`:return{icon:PC,label:`file`,agent:!1};case`paste`:return{icon:PC,label:`paste`,agent:!1};case`url`:return{icon:RC,label:`url`,agent:!1};default:return{icon:HC,label:t,agent:!1}}}var eT=new Date(Date.now()-2592e6).toISOString();function tT(){let e=Lx(),[t,n]=(0,w.useState)(``),{data:r}=rb({queryKey:[`dashboard`],queryFn:Jw}),i=eT,{data:a}=rb({queryKey:[`usage-summary-30d`,i],queryFn:()=>Vw({start:i}),staleTime:6e4}),{localMcpOps:o,remoteMcpOps:s,efOps:c,agentOps:l,cliOps:u,webOps:d}=Kw(a?.ops_by_access_path),f=new Map((r?.projects??[]).map(e=>[e.id,e.name])),p=new Map((r?.projects??[]).map((e,t)=>[e.id,Xw[t%Xw.length]])),m=r?.project_doc_counts??{},h=r?.project_deleted_doc_counts??{},g=Object.values(h).reduce((e,t)=>e+t,0),_=Math.max(1,...Object.values(m)),v=()=>{let n=t.trim();e(n?`/search?q=${encodeURIComponent(n)}&mode=docs`:`/search`)},y=e=>`var(${p.get(e.project_ids[0])??`--border`})`;return(0,G.jsxs)(`div`,{className:Yw.wrap,children:[(0,G.jsxs)(`div`,{className:`${Yw.dashHero} ${X.rise}`,children:[(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Memory layer · online`}),(0,G.jsxs)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:[Qw(),`, operator.`]})]}),(0,G.jsxs)(`div`,{className:Yw.dashHeroActions,children:[(0,G.jsxs)(`form`,{className:Yw.quickSearch,onSubmit:e=>{e.preventDefault(),v()},children:[(0,G.jsx)(qC,{size:16}),(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.currentTarget.value),placeholder:`Quick search…`}),(0,G.jsx)(`button`,{type:`submit`,className:Yw.qsGo,"aria-label":`Search`,children:(0,G.jsx)(vC,{size:15})})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,onClick:()=>e(`/ingest`),children:[(0,G.jsx)(GC,{size:16}),`Ingest content`]})]})]}),(0,G.jsxs)(`div`,{className:Yw.statGrid,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bPrimary}`,children:(0,G.jsx)(kC,{size:18})}),g>0&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[g,` docs in trash`]})]}),(0,G.jsx)(`div`,{className:Yw.statValue,children:(r?.doc_count??0).toLocaleString()}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Documents`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bViolet}`,children:(0,G.jsx)(YC,{size:18})}),(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bViolet}`,children:[Zw(r?.total_chars??0),` chars`]})]}),(0,G.jsx)(`div`,{className:Yw.statValue,children:(r?.total_chunks??0).toLocaleString()}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Indexed chunks`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:Yw.statTop,children:(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bBlue}`,children:(0,G.jsx)(IC,{size:18})})}),(0,G.jsx)(`div`,{className:Yw.statValue,children:r?.project_count??0}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Projects`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bGreen}`,children:(0,G.jsx)(JC,{size:18})}),l>0?(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bGreen}`,title:`Agent operations by access path, last 30 days`,children:[o.toLocaleString(),` local · `,s.toLocaleString(),` remote ·`,` `,c.toLocaleString(),` edge`]}):(0,G.jsxs)(el,{width:260,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(el.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,children:`Why no data?`})}),(0,G.jsx)(el.Dropdown,{children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`No agent activity on the MCP or Edge Function paths in the last 30 days. That is not the same as "no agents" — CLI and web operations are counted separately below, and the Edge Function path is only used by ChatGPT Actions, so a zero there is normal unless you run a Custom GPT. Agent ops are recorded in the usage log, which is `,(0,G.jsx)(`b`,{children:`opt-in`}),` — enable it with`,` `,(0,G.jsx)(`code`,{children:`cerefox config set usage_tracking_enabled true`}),` if it's off.`]})})]})]}),(0,G.jsx)(`div`,{className:l>0?Yw.statValue:Yw.emptyVal,children:l>0?l.toLocaleString():`—`}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Agent operations · 30d`}),(u>0||d>0)&&(0,G.jsxs)(`div`,{className:Yw.statLabel,title:`Not counted above: the CLI is used by both agents and people, and the usage summary does not separate them.`,children:[u.toLocaleString(),` cli · `,d.toLocaleString(),` web`]})]})]}),(0,G.jsxs)(`div`,{className:Yw.dashSplit,children:[(0,G.jsxs)(`section`,{className:X.rise,children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(DC,{size:16}),`Recently changed documents`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>e(`/search`),children:[`View all`,(0,G.jsx)(vC,{size:14})]})]}),(0,G.jsx)(`div`,{className:X.card,style:{overflow:`hidden`},children:(0,G.jsxs)(`table`,{className:Yw.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{children:`Author`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Chunks`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Size`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:(r?.recent_docs??[]).map(t=>{let n=t.author?{icon:t.author_type===`agent`?JC:HC,label:t.author,agent:t.author_type===`agent`}:$w(t.source),r=n.icon,i=t.review_status!==`approved`;return(0,G.jsxs)(`tr`,{"data-testid":`recent-doc-row`,onClick:()=>e(`/document/${t.id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsxs)(`div`,{className:Yw.docCell,children:[(0,G.jsx)(`span`,{className:Yw.docDot,style:{background:y(t)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:3,minWidth:0},children:[(0,G.jsx)($S,{to:`/document/${t.id}`,className:`${X.link} ${Yw.docTitle}`,onClick:e=>e.stopPropagation(),children:t.title||`Untitled`}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[t.project_ids.filter(e=>f.has(e)).slice(0,1).map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:f.get(e)},e)),i&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bYellow}`,children:[(0,G.jsx)(`span`,{style:{width:6,height:6,borderRadius:`50%`,background:`currentColor`}}),`pending review`]})]})]})]})}),(0,G.jsx)(`td`,{children:(0,G.jsxs)(`span`,{className:`${X.srcChip} ${n.agent?X.srcChipAgent:``}`,children:[(0,G.jsx)(r,{size:12}),n.label]})}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.mono} ${X.dim}`,children:t.chunk_count}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.mono} ${X.dim}`,children:t.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.faint}`,children:Lw(t.updated_at)})]},t.id)})})]})})]}),(0,G.jsxs)(`aside`,{className:Yw.dashRail,children:[(0,G.jsxs)(`section`,{className:X.rise,style:{minHeight:0},children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(YC,{size:16}),`Projects `,(0,G.jsx)(`span`,{className:X.countPill,children:r?.project_count??0})]}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>e(`/projects`),children:`Manage`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.projList}`,children:[(0,G.jsx)(`div`,{className:Yw.projScroll,children:(r?.projects??[]).map(t=>{let n=m[t.id]??0,r=h[t.id]??0,i=`var(${p.get(t.id)??`--border`})`;return(0,G.jsxs)(`button`,{type:`button`,className:Yw.projRow,onClick:()=>e(`/projects/${t.id}/documents`),children:[(0,G.jsx)(`span`,{className:Yw.projDot,style:{background:i}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:5,minWidth:0,flex:1},children:[(0,G.jsxs)(`div`,{className:X.row,style:{justifyContent:`space-between`,gap:8},children:[(0,G.jsx)($S,{to:`/projects/${t.id}/documents`,className:Yw.projName,onClick:e=>e.stopPropagation(),children:t.name}),(0,G.jsxs)(`span`,{className:Yw.projCounts,children:[(0,G.jsx)(`span`,{children:n}),r>0&&(0,G.jsxs)(`span`,{className:Yw.trashCount,title:`${r} in trash`,children:[(0,G.jsx)(QC,{size:11}),r]})]})]}),(0,G.jsx)(`div`,{className:Yw.projBar,children:(0,G.jsx)(`span`,{style:{width:`${n/_*100}%`,background:i}})})]}),(0,G.jsx)(`span`,{className:Yw.projChev,children:(0,G.jsx)(wC,{size:15})})]},t.id)})}),(0,G.jsxs)(`div`,{className:Yw.projFoot,children:[(0,G.jsxs)(`span`,{children:[r?.project_count??0,` projects`]}),(0,G.jsxs)(`span`,{className:X.faint,children:[g,` docs in trash`]})]})]})]}),(0,G.jsx)(qw,{title:`Same memory, your terminal`,commands:[{cmd:`cerefox search`,args:`"retry backoff" --mode hybrid`},{cmd:`cerefox document ingest`,args:`./rfc-018.md --project-name infra`}]})]})]})]})}async function nT(e,t){return ow(`/documents/${e}${cw({version_id:t})}`)}async function rT(e){return ow(`/documents/${e}/chunks`)}async function iT(e,t){return ow(`/documents/${e}/edit`,{method:`POST`,body:JSON.stringify(t)})}async function aT(e){return ow(`/documents/${e}`,{method:`DELETE`})}async function oT(e){return ow(`/ingest`,{method:`POST`,body:JSON.stringify({mode:`paste`,...e})})}async function sT(e){return ow(`/check-filename${cw({filename:e})}`)}async function cT(e,t){return ow(`/documents/${e}?version_id=${t}`)}function lT(e,t){let n=`/api/v1/documents/${e}/download`;return t?`${n}?version_id=${t}`:n}function uT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var dT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pT={};function mT(e,t){return((t||pT).jsx?fT:dT).test(e)}var hT=/[ \t\n\f\r]/g;function gT(e){return typeof e==`object`?e.type===`text`&&_T(e.value):_T(e)}function _T(e){return e.replace(hT,``)===``}var vT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};vT.prototype.normal={},vT.prototype.property={},vT.prototype.space=void 0;function yT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new vT(n,r,t)}function bT(e){return e.toLowerCase()}var xT=class{constructor(e,t){this.attribute=t,this.property=e}};xT.prototype.attribute=``,xT.prototype.booleanish=!1,xT.prototype.boolean=!1,xT.prototype.commaOrSpaceSeparated=!1,xT.prototype.commaSeparated=!1,xT.prototype.defined=!1,xT.prototype.mustUseProperty=!1,xT.prototype.number=!1,xT.prototype.overloadedBoolean=!1,xT.prototype.property=``,xT.prototype.spaceSeparated=!1,xT.prototype.space=void 0;var ST=s({boolean:()=>wT,booleanish:()=>TT,commaOrSpaceSeparated:()=>kT,commaSeparated:()=>OT,number:()=>Z,overloadedBoolean:()=>ET,spaceSeparated:()=>DT}),CT=0,wT=AT(),TT=AT(),ET=AT(),Z=AT(),DT=AT(),OT=AT(),kT=AT();function AT(){return 2**++CT}var jT=Object.keys(ST),MT=class extends xT{constructor(e,t,n,r){let i=-1;if(super(e,t),NT(this,`space`,r),typeof n==`number`)for(;++i<jT.length;){let e=jT[i];NT(this,jT[i],(n&ST[e])===ST[e])}}};MT.prototype.defined=!0;function NT(e,t,n){n&&(e[t]=n)}function PT(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new MT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[bT(r)]=r,n[bT(a.attribute)]=r}return new vT(t,n,e.space)}var FT=PT({properties:{ariaActiveDescendant:null,ariaAtomic:TT,ariaAutoComplete:null,ariaBusy:TT,ariaChecked:TT,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:DT,ariaCurrent:null,ariaDescribedBy:DT,ariaDetails:null,ariaDisabled:TT,ariaDropEffect:DT,ariaErrorMessage:null,ariaExpanded:TT,ariaFlowTo:DT,ariaGrabbed:TT,ariaHasPopup:null,ariaHidden:TT,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:DT,ariaLevel:Z,ariaLive:null,ariaModal:TT,ariaMultiLine:TT,ariaMultiSelectable:TT,ariaOrientation:null,ariaOwns:DT,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:TT,ariaReadOnly:TT,ariaRelevant:null,ariaRequired:TT,ariaRoleDescription:DT,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:TT,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function IT(e,t){return t in e?e[t]:t}function LT(e,t){return IT(e,t.toLowerCase())}var RT=PT({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:OT,acceptCharset:DT,accessKey:DT,action:null,allow:null,allowFullScreen:wT,allowPaymentRequest:wT,allowUserMedia:wT,alpha:wT,alt:null,as:null,async:wT,autoCapitalize:null,autoComplete:DT,autoFocus:wT,autoPlay:wT,blocking:DT,capture:null,charSet:null,checked:wT,cite:null,className:DT,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:TT,controls:wT,controlsList:DT,coords:Z|OT,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wT,defer:wT,dir:null,dirName:null,disabled:wT,download:ET,draggable:TT,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wT,formTarget:null,headers:DT,height:Z,hidden:ET,high:Z,href:null,hrefLang:null,htmlFor:DT,httpEquiv:DT,id:null,imageSizes:null,imageSrcSet:null,inert:wT,inputMode:null,integrity:null,is:null,isMap:wT,itemId:null,itemProp:DT,itemRef:DT,itemScope:wT,itemType:DT,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wT,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:wT,muted:wT,name:null,nonce:null,noModule:wT,noValidate:wT,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wT,optimum:Z,pattern:null,ping:DT,placeholder:null,playsInline:wT,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wT,referrerPolicy:null,rel:DT,required:wT,reversed:wT,rows:Z,rowSpan:Z,sandbox:DT,scope:null,scoped:wT,seamless:wT,selected:wT,shadowRootClonable:wT,shadowRootCustomElementRegistry:wT,shadowRootDelegatesFocus:wT,shadowRootMode:null,shadowRootSerializable:wT,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:TT,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:wT,useMap:null,value:TT,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:DT,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wT,declare:wT,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:wT,noHref:wT,noShade:wT,noWrap:wT,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:TT,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:wT,disablePictureInPicture:wT,disableRemotePlayback:wT,exportParts:OT,part:DT,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:LT}),zT=PT({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:kT,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:DT,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:wT,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:OT,g2:OT,glyphName:OT,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:kT,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:DT,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kT,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kT,rev:kT,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kT,requiredFeatures:kT,requiredFonts:kT,requiredFormats:kT,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:kT,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kT,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kT,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:IT}),BT=PT({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),VT=PT({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:LT}),HT=PT({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),UT={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},WT=/[A-Z]/g,GT=/-[a-z]/g,KT=/^data[-\w.:]+$/i;function qT(e,t){let n=bT(t),r=t,i=xT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&KT.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(GT,YT);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!GT.test(e)){let n=e.replace(WT,JT);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=MT}return new i(r,t)}function JT(e){return`-`+e.toLowerCase()}function YT(e){return e.charAt(1).toUpperCase()}var XT=yT([FT,RT,BT,VT,HT],`html`),ZT=yT([FT,zT,BT,VT,HT],`svg`);function QT(e){return e.join(` `).trim()}var $T=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
59
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Px(),d;if(t){let e=typeof t==`string`?Tb(t):t;yb(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Ob(e,{pathname:p});bb(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),bb(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Zx(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:nx([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:nx([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?w.createElement(wx.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Gx(){let e=iS(),t=cx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=w.createElement(w.Fragment,null,w.createElement(`p`,null,`💿 Hey developer 👋`),w.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,w.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,w.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),w.createElement(w.Fragment,null,w.createElement(`h2`,null,`Unexpected Application Error!`),w.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?w.createElement(`pre`,{style:i},n):null,o)}var Kx=w.createElement(Gx,null),qx=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=jx(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:w.createElement(Tx.Provider,{value:this.props.routeContext},w.createElement(Ex.Provider,{value:e,children:this.props.component}));return this.context?w.createElement(Yx,{error:e},t):t}};qx.contextType=vx;var Jx=new WeakMap;function Yx({children:e,error:t}){let{basename:n}=w.useContext(Cx);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ax(t.digest);if(e){let r=Jx.get(t);if(r)throw r;let i=dx(e.location,n),a=i.absoluteURL||i.to;if(hx(a))throw Error(`Invalid redirect location`);if(ux&&!Jx.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Jx.set(t,n),n}return w.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Xx({routeContext:e,match:t,children:n}){let r=w.useContext(gx);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Tx.Provider,{value:e},n)}function Zx(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);yb(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:lx(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Kx,o&&(s<0&&c===0?(sS(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?w.createElement(n.route.Component,null):n.route.element?n.route.element:e,w.createElement(Xx,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?w.createElement(qx,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Qx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $x(e){let t=w.useContext(gx);return yb(t,Qx(e)),t}function eS(e){let t=w.useContext(_x);return yb(t,Qx(e)),t}function tS(e){let t=w.useContext(Tx);return yb(t,Qx(e)),t}function nS(e){let t=tS(e),n=t.matches[t.matches.length-1];return yb(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rS(){return nS(`useRouteId`)}function iS(){let e=w.useContext(Ex),t=eS(`useRouteError`),n=nS(`useRouteError`);return e===void 0?t.errors?.[n]:e}function aS(){let{router:e}=$x(`useNavigate`),t=nS(`useNavigate`),n=w.useRef(!1);return Ix(()=>{n.current=!0}),w.useCallback(async(r,i={})=>{bb(n.current,Fx),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var oS={};function sS(e,t,n){!t&&!oS[e]&&(oS[e]=!0,bb(!1,n))}w.memo(cS);function cS({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Wx(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function lS(e){return Bx(e.context)}function uS(e){yb(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function dS({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){yb(!Nx(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=w.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Tb(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=w.useMemo(()=>{let e=Jb(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return bb(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(Cx.Provider,{value:c},w.createElement(wx.Provider,{children:t,value:h}))}function fS({children:e,location:t}){return Ux(pS(e),t)}w.Component;function pS(e,t=[]){let n=[];return w.Children.forEach(e,(e,r)=>{if(!w.isValidElement(e))return;let i=[...t,r];if(e.type===w.Fragment){n.push.apply(n,pS(e.props.children,i));return}yb(e.type===uS,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yb(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=pS(e.props.children,i)),n.push(a)}),n}var mS=`get`,hS=`application/x-www-form-urlencoded`;function gS(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function _S(e){return gS(e)&&e.tagName.toLowerCase()===`button`}function vS(e){return gS(e)&&e.tagName.toLowerCase()===`form`}function yS(e){return gS(e)&&e.tagName.toLowerCase()===`input`}function bS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xS(e,t){return e.button===0&&(!t||t===`_self`)&&!bS(e)}function SS(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function CS(e,t){let n=SS(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var wS=null;function TS(){if(wS===null)try{new FormData(document.createElement(`form`),0),wS=!1}catch{wS=!0}return wS}var ES=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function DS(e){return e!=null&&!ES.has(e)?(bb(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hS}"`),null):e}function OS(e,t){let n,r,i,a,o;if(vS(e)){let o=e.getAttribute(`action`);r=o?Jb(o,t):null,n=e.getAttribute(`method`)||mS,i=DS(e.getAttribute(`enctype`))||hS,a=new FormData(e)}else if(_S(e)||yS(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Jb(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||mS,i=DS(e.getAttribute(`formenctype`))||DS(o.getAttribute(`enctype`))||hS,a=new FormData(o,e),!TS()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(gS(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=mS,r=null,i=hS,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function kS(e,t){if(e===!1||e==null)throw Error(t)}function AS(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Jb(i.pathname,t)===`/`?`${rx(t)}/_root.${r}`:`${rx(i.pathname)}.${r}`,i}async function jS(e,t){if(e.id in t)return t[e.id];try{let n=await fb(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function MS(e){return e!=null&&typeof e.page==`string`}function NS(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function PS(e,t,n){return zS((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await jS(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(NS).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function FS(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function IS(e,t,{includeHydrateFallback:n}={}){return LS(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function LS(e){return[...new Set(e)]}function RS(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zS(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!MS(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(RS(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function BS(){let e=w.useContext(gx);return kS(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function VS(){let e=w.useContext(_x);return kS(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var HS=w.createContext(void 0);HS.displayName=`FrameworkContext`;function US(){let e=w.useContext(HS);return kS(e,`You must render this element inside a <HydratedRouter> element`),e}function WS(e,t){let n=w.useContext(HS),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=w.useRef(null);w.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:GS(s,p),onBlur:GS(c,m),onMouseEnter:GS(l,p),onMouseLeave:GS(u,m),onTouchStart:GS(d,p)}]:[a,f,{}]:[!1,f,{}]}function GS(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function KS({page:e,...t}){let n=yx(),{nonce:r}=US(),{router:i}=BS(),a=w.useMemo(()=>Ob(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?w.createElement(JS,{page:e,matches:a,...t}):w.createElement(YS,{page:e,matches:a,...t})):null}function qS(e){let{manifest:t,routeModules:n}=US(),[r,i]=w.useState([]);return w.useEffect(()=>{let r=!1;return PS(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function JS({page:e,matches:t,...n}){let r=Px(),{future:i}=US(),{basename:a}=BS(),o=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=AS(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,o.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function YS({page:e,matches:t,...n}){let r=Px(),{future:i,manifest:a,routeModules:o}=US(),{basename:s}=BS(),{loaderData:c,matches:l}=VS(),u=w.useMemo(()=>FS(e,t,l,a,r,`data`),[e,t,l,a,r]),d=w.useMemo(()=>FS(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=AS(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=w.useMemo(()=>IS(d,a),[d,a]),m=qS(d);return w.createElement(w.Fragment,null,f.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>w.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>w.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function XS(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}w.Component;var ZS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ZS&&(window.__reactRouterVersion=`7.18.2`)}catch{}function QS({basename:e,children:t,useTransitions:n,window:r}){let i=w.useRef();i.current??=vb({window:r,v5Compat:!0});let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),c=w.useCallback(e=>{n===!1?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>a.listen(c),[a,c]),w.createElement(dS,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var $S=w.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=w.useContext(Cx),v=typeof l==`string`&&pb.test(l),y=dx(l,h);l=y.to;let b=Mx(l,{relative:r}),x=Px(),S=null;if(o){let e=ex(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:nx([h,e.pathname])),S=g.createHref(e)}let[C,T,E]=WS(n,p),D=iC(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=w.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:XS(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?w.createElement(w.Fragment,null,A,w.createElement(KS,{page:b})):A});$S.displayName=`Link`;var eC=w.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Hx(a,{relative:c.relative}),d=Px(),f=w.useContext(_x),{navigator:p,basename:m}=w.useContext(Cx),h=f!=null&&uC(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Jb(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return w.createElement($S,{...c,"aria-current":C,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});eC.displayName=`NavLink`;var tC=w.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=mS,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=w.useContext(Cx),g=cC(),_=lC(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&pb.test(s);return w.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?w.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});tC.displayName=`Form`;function nC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rC(e){let t=w.useContext(gx);return yb(t,nC(e)),t}function iC(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Lx(),d=Px(),f=Hx(e,{relative:o});return w.useCallback(p=>{if(xS(p,t)){p.preventDefault();let t=n===void 0?wb(d)===wb(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?w.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function aC(e){bb(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(SS(e)),n=w.useRef(!1),r=Px(),i=w.useMemo(()=>CS(r.search,n.current?null:t.current),[r.search]),a=Lx();return[i,w.useCallback((e,t)=>{let r=SS(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var oC=0,sC=()=>`__${String(++oC)}__`;function cC(){let{router:e}=rC(`useSubmit`),{basename:t}=w.useContext(Cx),n=rS(),r=e.fetch,i=e.navigate;return w.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=OS(e,t);if(a.navigate===!1){let e=a.fetcherKey||sC();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function lC(e,{relative:t}={}){let{basename:n}=w.useContext(Cx),r=w.useContext(Tx);yb(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Hx(e||`.`,{relative:t})},o=Px();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:nx([n,a.pathname])),wb(a)}function uC(e,{relative:t}={}){let n=w.useContext(bx);yb(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rC(`useViewTransitionState`),i=Hx(e,{relative:t});if(!n.isTransitioning)return!1;let a=Jb(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Jb(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wb(i.pathname,o)!=null||Wb(i.pathname,a)!=null}var dC={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},fC=(e,t,n,r)=>{let i=(0,w.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,w.createElement)(`svg`,{ref:u,...dC[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,w.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i},pC=fC(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]),mC=fC(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),hC=fC(`outline`,`alert-triangle`,`AlertTriangle`,[[`path`,{d:`M12 9v4`,key:`svg-0`}],[`path`,{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]),gC=fC(`outline`,`arrow-back-up`,`ArrowBackUp`,[[`path`,{d:`M9 14l-4 -4l4 -4`,key:`svg-0`}],[`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`,key:`svg-1`}]]),_C=fC(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]),vC=fC(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),yC=fC(`outline`,`arrows-diff`,`ArrowsDiff`,[[`path`,{d:`M11 16h10`,key:`svg-0`}],[`path`,{d:`M11 16l4 4`,key:`svg-1`}],[`path`,{d:`M11 16l4 -4`,key:`svg-2`}],[`path`,{d:`M13 8h-10`,key:`svg-3`}],[`path`,{d:`M13 8l-4 4`,key:`svg-4`}],[`path`,{d:`M13 8l-4 -4`,key:`svg-5`}]]),bC=fC(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]),xC=fC(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),SC=fC(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),CC=fC(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),wC=fC(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),TC=fC(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),EC=fC(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),DC=fC(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),OC=fC(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),kC=fC(`outline`,`database`,`Database`,[[`path`,{d:`M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0`,key:`svg-0`}],[`path`,{d:`M4 6v6a8 3 0 0 0 16 0v-6`,key:`svg-1`}],[`path`,{d:`M4 12v6a8 3 0 0 0 16 0v-6`,key:`svg-2`}]]),AC=fC(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]),jC=fC(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]),MC=fC(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),NC=fC(`outline`,`edit`,`Edit`,[[`path`,{d:`M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1`,key:`svg-0`}],[`path`,{d:`M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415`,key:`svg-1`}],[`path`,{d:`M16 5l3 3`,key:`svg-2`}]]),PC=fC(`outline`,`file-text`,`FileText`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}],[`path`,{d:`M9 9l1 0`,key:`svg-2`}],[`path`,{d:`M9 13l6 0`,key:`svg-3`}],[`path`,{d:`M9 17l6 0`,key:`svg-4`}]]),FC=fC(`outline`,`flask`,`Flask`,[[`path`,{d:`M9 3l6 0`,key:`svg-0`}],[`path`,{d:`M10 9l4 0`,key:`svg-1`}],[`path`,{d:`M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6`,key:`svg-2`}]]),IC=fC(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]),LC=fC(`outline`,`history`,`History`,[[`path`,{d:`M12 8l0 4l2 2`,key:`svg-0`}],[`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`,key:`svg-1`}]]),RC=fC(`outline`,`link`,`Link`,[[`path`,{d:`M9 15l6 -6`,key:`svg-0`}],[`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`,key:`svg-1`}],[`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`,key:`svg-2`}]]),zC=fC(`outline`,`list`,`List`,[[`path`,{d:`M9 6l11 0`,key:`svg-0`}],[`path`,{d:`M9 12l11 0`,key:`svg-1`}],[`path`,{d:`M9 18l11 0`,key:`svg-2`}],[`path`,{d:`M5 6l0 .01`,key:`svg-3`}],[`path`,{d:`M5 12l0 .01`,key:`svg-4`}],[`path`,{d:`M5 18l0 .01`,key:`svg-5`}]]),BC=fC(`outline`,`lock-open`,`LockOpen`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-5a4 4 0 0 1 8 0`,key:`svg-2`}]]),VC=fC(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),HC=fC(`outline`,`map-pin`,`MapPin`,[[`path`,{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-0`}],[`path`,{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0`,key:`svg-1`}]]),UC=fC(`outline`,`moon`,`Moon`,[[`path`,{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008`,key:`svg-0`}]]),WC=fC(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),GC=fC(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),KC=fC(`outline`,`robot`,`Robot`,[[`path`,{d:`M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4`,key:`svg-0`}],[`path`,{d:`M12 2v2`,key:`svg-1`}],[`path`,{d:`M9 12v9`,key:`svg-2`}],[`path`,{d:`M15 12v9`,key:`svg-3`}],[`path`,{d:`M5 16l4 -2`,key:`svg-4`}],[`path`,{d:`M15 14l4 2`,key:`svg-5`}],[`path`,{d:`M9 18h6`,key:`svg-6`}],[`path`,{d:`M10 8v.01`,key:`svg-7`}],[`path`,{d:`M14 8v.01`,key:`svg-8`}]]),qC=fC(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),JC=fC(`outline`,`sparkles`,`Sparkles`,[[`path`,{d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6`,key:`svg-0`}]]),YC=fC(`outline`,`stack-2`,`Stack2`,[[`path`,{d:`M12 4l-8 4l8 4l8 -4l-8 -4`,key:`svg-0`}],[`path`,{d:`M4 12l8 4l8 -4`,key:`svg-1`}],[`path`,{d:`M4 16l8 4l8 -4`,key:`svg-2`}]]),XC=fC(`outline`,`sun`,`Sun`,[[`path`,{d:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,key:`svg-0`}],[`path`,{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`,key:`svg-1`}]]),ZC=fC(`outline`,`terminal-2`,`Terminal2`,[[`path`,{d:`M8 9l3 3l-3 3`,key:`svg-0`}],[`path`,{d:`M13 15l3 0`,key:`svg-1`}],[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12`,key:`svg-2`}]]),QC=fC(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),$C=fC(`outline`,`upload`,`Upload`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 9l5 -5l5 5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),ew=fC(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),tw=cb(),nw=`/api/v1`,rw=class extends Error{status;statusText;body;constructor(e,t,n){super(`API error ${e}: ${t}`),this.name=`ApiError`,this.status=e,this.statusText=t,this.body=n}},iw=class extends rw{errorMessage;see;note;constructor(e,t){super(503,`Service Unavailable`,e),this.name=`V07IngestionDeferredError`,this.errorMessage=t.error,this.see=t.see??null,this.note=t.note??null}};function aw(e){try{let t=JSON.parse(e),n=t.error;return typeof n!=`string`||!n.toLowerCase().includes(`v0.7`)?null:{error:n,see:typeof t.see==`string`?t.see:void 0,note:typeof t.note==`string`?t.note:void 0}}catch{}return null}async function ow(e,t){let n=`${nw}${e}`,r=await fetch(n,{...t,headers:{"Content-Type":`application/json`,...t?.headers}});if(!r.ok){let e=await r.text();if(r.status===503){let t=aw(e);if(t)throw new iw(e,t)}throw new rw(r.status,r.statusText,e)}return r.json()}async function sw(e){if(e.status!==503)return null;let t=await e.text(),n=aw(t);return n?new iw(t,n):null}function cw(e){let t=Object.entries(e).filter(([,e])=>e!==void 0&&e!==``);return t.length===0?``:`?`+new URLSearchParams(t.map(([e,t])=>[e,String(t)])).toString()}async function lw(){return ow(`/preferences`)}async function uw(e){await ow(`/preferences`,{method:`PUT`,body:JSON.stringify(e)})}function dw(){let{colorScheme:e,setColorScheme:t}=nn();return(0,w.useEffect)(()=>{let n=!1;return lw().then(r=>{!n&&r.theme&&r.theme!==e&&t(r.theme)}).catch(()=>{}),()=>{n=!0}},[]),{theme:e,setTheme:e=>{t(e),uw({theme:e}).catch(()=>{})}}}async function fw(){return ow(`/version`)}function pw(){let{data:e}=rb({queryKey:[`version`],queryFn:fw,staleTime:1/0,retry:!1}),t=e?.env_label?.trim();return t?(0,G.jsxs)(Nd,{icon:(0,G.jsx)(FC,{size:18}),color:`grape`,withCloseButton:!1,mb:`md`,"data-testid":`environment-banner`,children:[(0,G.jsxs)(Y,{size:`sm`,fw:600,children:[t.toUpperCase(),` environment — not production.`]}),(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`This server is running against the `,(0,G.jsx)(Y,{span:!0,fw:600,children:t}),` `,`database. Changes made here do not affect production.`]})]}):null}var mw=`/api/v1`;async function hw(){let e=await fetch(`${mw}/docs`);if(!e.ok)throw Error(`Failed to load docs index: ${e.status}`);return e.json()}async function gw(e){let t=await fetch(`${mw}/docs/${e.split(`/`).map(encodeURIComponent).join(`/`)}`);if(!t.ok)throw Error(`Failed to load doc '${e}': ${t.status}`);return t.text()}async function _w(){let e=await fetch(`${mw}/schema-version`);if(!e.ok)throw Error(`Failed to load schema version: ${e.status}`);return e.json()}function vw(){let{data:e}=rb({queryKey:[`schema-version`],queryFn:_w,refetchInterval:6e4,staleTime:3e4,retry:!1}),t=e?.level===`below-min`;return!e||!t&&!e.mismatch?null:(0,G.jsxs)(Nd,{icon:(0,G.jsx)(hC,{size:18}),color:t?`red`:`yellow`,title:t?`Database schema is incompatible`:`Database schema out of date`,withCloseButton:!1,mb:`md`,children:[(0,G.jsx)(Y,{size:`sm`,children:t?(0,G.jsxs)(G.Fragment,{children:[`This Cerefox client (v`,e.bundled,`) requires schema v`,e.min,` or newer, but your Supabase has v`,e.deployed??`unknown`,`. Features will not work correctly until you redeploy.`]}):(0,G.jsxs)(G.Fragment,{children:[`Cerefox v`,e.bundled,` ships a newer schema than what is currently deployed to your Supabase (v`,e.deployed??`unknown`,`). Some features may behave incorrectly until you redeploy.`]})}),(0,G.jsx)(Y,{size:`sm`,mt:`xs`,children:`Redeploy with the Cerefox CLI:`}),(0,G.jsx)(Ap,{block:!0,mt:`xs`,children:`cerefox deploy-server --schema-only`})]})}var yw=`https://github.com/fstamatelopoulos/cerefox/releases`;function bw(){let{data:e}=rb({queryKey:[`version`],queryFn:fw,staleTime:1/0,retry:!1});if(!e)return null;let t=`${yw}/tag/v${e.version}`,n=e.git_commit_short?` (${e.git_commit_short})`:``;return(0,G.jsx)(El,{justify:`center`,py:`sm`,gap:`xs`,children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`Cerefox`,` `,(0,G.jsxs)(Bd,{href:t,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,c:`dimmed`,underline:`hover`,children:[`v`,e.version]}),n]})})}var xw=[{label:`Dashboard`,path:`/`},{label:`Search`,path:`/search`},{label:`Metadata Search`,path:`/metadata-search`},{label:`Ingest`,path:`/ingest`},{label:`Projects`,path:`/projects`},{label:`Audit Log`,path:`/audit-log`},{label:`Trash`,path:`/trash`},{label:`Analytics`,path:`/analytics`},{label:`Settings`,path:`/settings`},{label:`Help`,path:`/help`}],Sw=[{value:`light`,label:`Light`,icon:XC},{value:`dark`,label:`Dark`,icon:UC},{value:`auto`,label:`System`,icon:AC}];function Cw(){let e=Lx(),t=Px(),{theme:n,setTheme:r}=dw(),i=n===`light`?XC:n===`dark`?UC:AC;return(0,G.jsxs)(df,{header:{height:56},padding:`xs`,children:[(0,G.jsxs)(df.Header,{style:{position:`relative`},children:[(0,G.jsxs)(El,{h:`100%`,px:`md`,justify:`space-between`,children:[(0,G.jsxs)(El,{gap:`sm`,children:[(0,G.jsx)(`img`,{src:`/app/cerefox_icon.png`,alt:`Cerefox`,height:32,width:32,style:{borderRadius:4}}),(0,G.jsxs)(Y,{component:`span`,onClick:()=>e(`/`),style:{fontFamily:`var(--font-display)`,fontSize:18,fontWeight:600,letterSpacing:`-0.01em`,cursor:`pointer`},children:[`Cere`,(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`fox`})]})]}),(0,G.jsxs)(El,{gap:`lg`,children:[xw.map(n=>(0,G.jsx)(sc,{onClick:()=>e(n.path),children:(0,G.jsx)(Y,{size:`sm`,fw:t.pathname===n.path?700:400,c:t.pathname===n.path?void 0:`dimmed`,children:n.label})},n.label)),(0,G.jsxs)(qm,{position:`bottom-end`,withArrow:!0,shadow:`md`,width:150,children:[(0,G.jsx)(qm.Target,{children:(0,G.jsx)(gl,{variant:`subtle`,size:`lg`,title:`Color theme`,"aria-label":`Color theme`,children:(0,G.jsx)(i,{size:18})})}),(0,G.jsxs)(qm.Dropdown,{children:[(0,G.jsx)(qm.Label,{children:`Theme`}),Sw.map(e=>{let t=e.icon;return(0,G.jsx)(qm.Item,{leftSection:(0,G.jsx)(t,{size:16}),rightSection:n===e.value?(0,G.jsx)(xC,{size:14}):null,onClick:()=>r(e.value),children:e.label},e.value)})]})]})]})]}),(0,G.jsx)(`div`,{style:{position:`absolute`,left:0,right:0,bottom:0,height:2,background:`linear-gradient(90deg, var(--primary), var(--violet) 60%, transparent)`}})]}),(0,G.jsxs)(df.Main,{children:[(0,G.jsx)(pw,{}),(0,G.jsx)(vw,{}),(0,G.jsx)(lS,{}),(0,G.jsx)(bw,{})]})]})}async function ww(e){return ow(`/audit-log${cw(e??{})}`)}async function Tw(e,t){return ow(`/documents/${e}/review-status`,{method:`POST`,body:JSON.stringify({status:t})})}async function Ew(e,t,n){return ow(`/documents/${e}/versions/${t}/archive`,{method:`POST`,body:JSON.stringify({archived:n})})}var X={eyebrow:`_eyebrow_jg14y_6`,pageTitle:`_pageTitle_jg14y_25`,pageSub:`_pageSub_jg14y_34`,mono:`_mono_jg14y_44`,dim:`_dim_jg14y_45`,faint:`_faint_jg14y_46`,col:`_col_jg14y_47`,row:`_row_jg14y_48`,link:`_link_jg14y_49`,btn:`_btn_jg14y_59`,btnPrimary:`_btnPrimary_jg14y_74`,btnGhost:`_btnGhost_jg14y_84`,btnSubtle:`_btnSubtle_jg14y_93`,btnDanger:`_btnDanger_jg14y_105`,btnWarn:`_btnWarn_jg14y_111`,card:`_card_jg14y_121`,cardPad:`_cardPad_jg14y_127`,badge:`_badge_jg14y_130`,bPrimary:`_bPrimary_jg14y_142`,bViolet:`_bViolet_jg14y_143`,bBlue:`_bBlue_jg14y_144`,bGreen:`_bGreen_jg14y_145`,bYellow:`_bYellow_jg14y_146`,bRed:`_bRed_jg14y_147`,bNeutral:`_bNeutral_jg14y_148`,secHead:`_secHead_jg14y_151`,secTitle:`_secTitle_jg14y_157`,countPill:`_countPill_jg14y_168`,srcChip:`_srcChip_jg14y_180`,srcChipAgent:`_srcChipAgent_jg14y_193`,whatis:`_whatis_jg14y_200`,pageHead:`_pageHead_jg14y_219`,divider:`_divider_jg14y_228`,iconBtn:`_iconBtn_jg14y_104`,iconBtnSm:`_iconBtnSm_jg14y_253`,iconBtnDanger:`_iconBtnDanger_jg14y_104`,seg:`_seg_jg14y_277`,segBtn:`_segBtn_jg14y_285`,segBtnOn:`_segBtnOn_jg14y_304`,chip:`_chip_jg14y_311`,chipOn:`_chipOn_jg14y_330`,selectWrap:`_selectWrap_jg14y_337`,selectEl:`_selectEl_jg14y_351`,cliCard:`_cliCard_jg14y_370`,cliBlock:`_cliBlock_jg14y_374`,cliP:`_cliP_jg14y_383`,cliS:`_cliS_jg14y_387`,cliOut:`_cliOut_jg14y_390`,cliLine:`_cliLine_jg14y_396`,cliLineCmd:`_cliLineCmd_jg14y_404`,cliCopyBtn:`_cliCopyBtn_jg14y_411`,cliHintBlock:`_cliHintBlock_jg14y_427`,cliHintArgs:`_cliHintArgs_jg14y_445`,rise:`_rise_jg14y_453`};function Dw({cmd:e,args:t,docPath:n=`guides/cli.md`}){let r=Lx(),[i,a]=(0,w.useState)(!1),o=(0,w.useRef)(null),s=t?`${e} ${t}`:e;return(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8,flexWrap:`wrap`,justifyContent:`flex-end`},children:[(0,G.jsxs)(`button`,{type:`button`,className:X.cliHintBlock,title:i?`Copied!`:`Copy command to clipboard`,onClick:()=>{navigator.clipboard?.writeText(s),a(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(!1),1200)},children:[(0,G.jsx)(`span`,{style:{color:`var(--primary)`},children:`$`}),(0,G.jsx)(`span`,{children:e}),t&&(0,G.jsx)(`span`,{className:X.cliHintArgs,children:t}),i?(0,G.jsx)(xC,{size:12,style:{color:`var(--green)`,flexShrink:0}}):(0,G.jsx)(OC,{size:12,style:{color:`var(--text-faint)`,flexShrink:0}})]}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,onClick:()=>r(`/help/${n}`),children:`cli docs`})]})}var Ow=`cerefox:rowsPerPage`,kw=[10,25,50,100],Aw=10;function jw(){try{let e=Number(localStorage.getItem(Ow));if(kw.includes(e))return e}catch{}return Aw}function Mw(){let[e,t]=(0,w.useState)(jw);return[e,e=>{t(e);try{localStorage.setItem(Ow,String(e))}catch{}}]}var Nw={wrap:`_wrap_17ha0_4`,toolbar:`_toolbar_17ha0_11`,search:`_search_17ha0_18`,count:`_count_17ha0_49`,tbl:`_tbl_17ha0_58`,actions:`_actions_17ha0_92`,foot:`_foot_17ha0_99`,pgBtn:`_pgBtn_17ha0_110`,emptyRow:`_emptyRow_17ha0_130`,faint:`_faint_17ha0_135`};function Pw({page:e,pageCount:t,total:n,pageSize:r,onPage:i,onPageSize:a,loading:o=!1}){let s=n===0?0:(e-1)*r+1,c=Math.min(n,(e-1)*r+r),l=e<=1,u=e>=t;return(0,G.jsxs)(`div`,{className:Nw.foot,children:[(0,G.jsxs)(`span`,{className:Nw.faint,children:[n===0?`0`:`${s}–${c}`,` of `,n,o?` · loading…`:``]}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8},children:[(0,G.jsx)(`span`,{className:Nw.faint,style:{fontSize:11.5},children:`Rows`}),(0,G.jsx)(`span`,{className:X.selectWrap,style:{height:28},children:(0,G.jsx)(`select`,{className:X.selectEl,value:r,onChange:e=>a(Number(e.currentTarget.value)),"aria-label":`Rows per page`,children:kw.map(e=>(0,G.jsx)(`option`,{value:e,children:e},e))})}),(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6},children:[(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:l,onClick:()=>i(1),"aria-label":`First page`,children:(0,G.jsx)(TC,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:l,onClick:()=>i(e-1),"aria-label":`Previous page`,children:(0,G.jsx)(CC,{size:14})}),(0,G.jsxs)(`span`,{className:Nw.faint,children:[`page `,e,` / `,t]}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:u,onClick:()=>i(e+1),"aria-label":`Next page`,children:(0,G.jsx)(wC,{size:14})}),(0,G.jsx)(`button`,{type:`button`,className:Nw.pgBtn,disabled:u,onClick:()=>i(t),"aria-label":`Last page`,children:(0,G.jsx)(EC,{size:14})})]})]})]})}function Fw({eyebrow:e,title:t,subtitle:n,headerRight:r,toolbarExtra:i,searchValue:a,onSearchChange:o,searchPlaceholder:s=`Filter…`,searchText:c,columns:l,rows:u,rowKey:d,rowClick:f,actions:p,loading:m=!1,emptyText:h=`No matching rows.`}){let[g,_]=(0,w.useState)(0),[v,y]=Mw(),b=(0,w.useMemo)(()=>{let e=a.trim().toLowerCase();return!e||!c?u:u.filter(t=>c(t).toLowerCase().includes(e))},[u,a,c]),x=b.length,S=Math.max(1,Math.ceil(x/v)),C=Math.min(g,S-1),T=b.slice(C*v,C*v+v),E=!!p,D=l.length+ +!!E;return(0,G.jsxs)(`div`,{className:Nw.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:e}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:t}),n&&(0,G.jsx)(`p`,{className:X.pageSub,children:n})]}),r]}),(0,G.jsxs)(`div`,{className:Nw.toolbar,children:[(0,G.jsxs)(`span`,{className:Nw.search,children:[(0,G.jsx)(qC,{size:16}),(0,G.jsx)(`input`,{value:a,onChange:e=>{o(e.currentTarget.value),_(0)},placeholder:s})]}),i,(0,G.jsxs)(`span`,{className:Nw.count,children:[x,` `,x===1?`row`:`rows`]})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:Nw.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[l.map(e=>(0,G.jsx)(`th`,{style:{width:e.width,textAlign:e.align??`left`},children:e.label},e.key)),E&&(0,G.jsx)(`th`,{style:{width:1}})]})}),(0,G.jsx)(`tbody`,{children:m?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:Nw.emptyRow,children:`Loading…`})}):T.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:D,className:Nw.emptyRow,children:h})}):T.map(e=>(0,G.jsxs)(`tr`,{style:f?{cursor:`pointer`}:void 0,onClick:f?()=>f(e):void 0,children:[l.map(t=>(0,G.jsx)(`td`,{style:{textAlign:t.align??`left`},children:t.render(e)},t.key)),E&&(0,G.jsx)(`td`,{onClick:e=>e.stopPropagation(),children:(0,G.jsx)(`div`,{className:Nw.actions,children:p(e)})})]},d(e)))})]}),(0,G.jsx)(Pw,{page:C+1,pageCount:S,total:x,pageSize:v,onPage:e=>_(e-1),onPageSize:e=>{y(e),_(0)}})]})]})}function Iw(e){return e?new Date(e).toLocaleDateString():``}function Lw(e){if(!e)return``;let t=new Date(e);return t.toLocaleDateString()+` `+t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}var Rw=[{value:``,label:`All operations`},{value:`create`,label:`Create`},{value:`update-content`,label:`Update content`},{value:`update-metadata`,label:`Update metadata`},{value:`delete`,label:`Delete`},{value:`status-change`,label:`Status change`},{value:`archive`,label:`Archive`},{value:`unarchive`,label:`Unarchive`}],zw={create:X.bGreen,"update-content":X.bBlue,"update-metadata":X.bViolet,"status-change":X.bYellow,archive:X.bPrimary,unarchive:X.bPrimary,delete:X.bRed};function Bw(){let e=Lx(),[t]=aC(),[n,r]=(0,w.useState)(t.get(`operation`)||``),[i]=(0,w.useState)(t.get(`document_id`)||``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(`100`),[d,f]=(0,w.useState)(``),{data:p,isLoading:m}=rb({queryKey:[`audit-log`,n,i,a,s,l],queryFn:()=>ww({operation:n||void 0,document_id:i||void 0,since:a?`${a}T00:00:00`:void 0,until:s?`${s}T23:59:59`:void 0,limit:Number(l)})});return(0,G.jsx)(Fw,{eyebrow:`Every read & write`,title:`Audit Log`,subtitle:`A complete trail of changes — by human and agent alike.`,headerRight:(0,G.jsx)(Dw,{cmd:`cerefox audit list`}),searchValue:d,onSearchChange:f,searchPlaceholder:`Filter by document or description…`,searchText:e=>`${e.doc_title??``} ${e.description??``} ${e.author??``}`,toolbarExtra:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(l_,{data:Rw,value:n,onChange:e=>r(e||``),placeholder:`All operations`,size:`sm`,w:170,clearable:!0}),(0,G.jsx)(A_,{type:`date`,"aria-label":`From`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(A_,{type:`date`,"aria-label":`To`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`,w:150}),(0,G.jsx)(l_,{data:[`100`,`250`,`500`,`1000`],value:l,onChange:e=>u(e||`100`),size:`sm`,w:100})]}),columns:[{key:`time`,label:`Time`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12,whiteSpace:`nowrap`},children:Lw(e.created_at)})},{key:`op`,label:`Operation`,width:150,render:e=>(0,G.jsx)(`span`,{className:`${X.badge} ${zw[e.operation]??X.bNeutral}`,children:e.operation})},{key:`author`,label:`Author`,width:170,render:e=>(0,G.jsxs)(`span`,{className:`${X.srcChip} ${e.author_type===`agent`?X.srcChipAgent:``}`,children:[e.author_type===`agent`?(0,G.jsx)(JC,{size:12}):(0,G.jsx)(HC,{size:12}),e.author]})},{key:`doc`,label:`Document`,render:e=>e.document_id?(0,G.jsx)(`span`,{className:`${X.link}`,style:{fontSize:13},children:e.doc_title||`${e.document_id.slice(0,8)}…`}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`(deleted)`})},{key:`delta`,label:`Change`,width:110,align:`right`,render:e=>{if(e.size_before==null&&e.size_after==null)return(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:`—`});let t=(e.size_after??0)-(e.size_before??0),n=t>0?`var(--green)`:t<0?`var(--red)`:`var(--text-faint)`;return(0,G.jsxs)(`span`,{className:X.mono,style:{fontSize:12,color:n},children:[t>0?`+`:``,t.toLocaleString()]})}}],rows:p??[],rowKey:e=>e.id,rowClick:t=>t.document_id&&e(`/document/${t.document_id}`),loading:m,emptyText:`No audit log entries found.`})}async function Vw(e={}){return ow(`/usage-log/summary${cw({...e})}`)}async function Hw(e={}){return ow(`/usage-log${cw({...e,limit:e.limit??100})}`)}function Uw(e={}){return`/api/v1/usage-log/export.csv${cw({...e})}`}async function Ww(e){return(await ow(`/config/${e}`)).value}async function Gw(e,t){await ow(`/config/${e}`,{method:`PUT`,body:JSON.stringify({value:t})})}function Kw(e){let t=t=>e?.find(e=>e.access_path===t)?.count??0,n=t(`local-mcp`),r=t(`remote-mcp`),i=t(`edge-function`);return{localMcpOps:n,remoteMcpOps:r,efOps:i,agentOps:n+r+i,cliOps:t(`cli`),webOps:t(`webapp`)}}function qw({title:e,commands:t,docPath:n=`guides/cli.md`}){let r=Lx(),[i,a]=(0,w.useState)(null),o=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]);let s=(e,t)=>{navigator.clipboard?.writeText(t.args?`${t.cmd} ${t.args}`:t.cmd),a(e),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>a(null),1200)};return(0,G.jsxs)(`div`,{className:`${X.card} ${X.cliCard} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8,marginBottom:10},children:[(0,G.jsx)(ZC,{size:15}),(0,G.jsx)(`span`,{style:{fontWeight:600,fontSize:13.5},children:e}),(0,G.jsx)(`button`,{type:`button`,className:X.whatis,style:{marginLeft:`auto`},onClick:()=>r(`/help/${n}`),children:`cli docs`})]}),(0,G.jsx)(`div`,{className:X.cliBlock,children:t.map((e,t)=>(0,G.jsxs)(`div`,{className:X.cliLine,children:[(0,G.jsxs)(`span`,{className:X.cliLineCmd,children:[(0,G.jsx)(`span`,{className:X.cliP,children:`$`}),e.cmd,e.args&&(0,G.jsxs)(G.Fragment,{children:[` `,(0,G.jsx)(`span`,{className:X.cliS,children:e.args})]})]}),(0,G.jsx)(`button`,{type:`button`,className:X.cliCopyBtn,title:i===t?`Copied!`:`Copy command to clipboard`,onClick:()=>s(t,e),children:i===t?(0,G.jsx)(xC,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(OC,{size:13})})]},t))})]})}async function Jw(){return ow(`/dashboard`)}var Yw={wrap:`_wrap_gx2zk_5`,dashHero:`_dashHero_gx2zk_12`,dashHeroActions:`_dashHeroActions_gx2zk_20`,quickSearch:`_quickSearch_gx2zk_24`,qsGo:`_qsGo_gx2zk_52`,statGrid:`_statGrid_gx2zk_66`,statTile:`_statTile_gx2zk_72`,statTop:`_statTop_gx2zk_78`,statIco:`_statIco_gx2zk_84`,statValue:`_statValue_gx2zk_91`,statLabel:`_statLabel_gx2zk_99`,statSub:`_statSub_gx2zk_106`,emptyVal:`_emptyVal_gx2zk_112`,dashSplit:`_dashSplit_gx2zk_121`,dashRail:`_dashRail_gx2zk_133`,tbl:`_tbl_gx2zk_140`,authorCell:`_authorCell_gx2zk_151`,alignRight:`_alignRight_gx2zk_180`,docCell:`_docCell_gx2zk_182`,docDot:`_docDot_gx2zk_187`,docTitle:`_docTitle_gx2zk_193`,projList:`_projList_gx2zk_203`,projScroll:`_projScroll_gx2zk_208`,projRow:`_projRow_gx2zk_217`,projDot:`_projDot_gx2zk_231`,projName:`_projName_gx2zk_237`,projCounts:`_projCounts_gx2zk_248`,trashCount:`_trashCount_gx2zk_257`,projBar:`_projBar_gx2zk_263`,projChev:`_projChev_gx2zk_276`,projFoot:`_projFoot_gx2zk_283`},Xw=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function Zw(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function Qw(){let e=new Date().getHours();return e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function $w(e){let t=(e??`manual`).toLowerCase();switch(t){case`agent`:return{icon:JC,label:`agent`,agent:!0};case`cli`:return{icon:ZC,label:`cli`,agent:!1};case`file`:return{icon:PC,label:`file`,agent:!1};case`paste`:return{icon:PC,label:`paste`,agent:!1};case`url`:return{icon:RC,label:`url`,agent:!1};default:return{icon:HC,label:t,agent:!1}}}var eT=new Date(Date.now()-2592e6).toISOString();function tT(){let e=Lx(),[t,n]=(0,w.useState)(``),{data:r}=rb({queryKey:[`dashboard`],queryFn:Jw}),i=eT,{data:a}=rb({queryKey:[`usage-summary-30d`,i],queryFn:()=>Vw({start:i}),staleTime:6e4}),{localMcpOps:o,remoteMcpOps:s,efOps:c,agentOps:l,cliOps:u,webOps:d}=Kw(a?.ops_by_access_path),f=new Map((r?.projects??[]).map(e=>[e.id,e.name])),p=new Map((r?.projects??[]).map((e,t)=>[e.id,Xw[t%Xw.length]])),m=r?.project_doc_counts??{},h=r?.project_deleted_doc_counts??{},g=Object.values(h).reduce((e,t)=>e+t,0),_=Math.max(1,...Object.values(m)),v=()=>{let n=t.trim();e(n?`/search?q=${encodeURIComponent(n)}&mode=docs`:`/search`)},y=e=>`var(${p.get(e.project_ids[0])??`--border`})`;return(0,G.jsxs)(`div`,{className:Yw.wrap,children:[(0,G.jsxs)(`div`,{className:`${Yw.dashHero} ${X.rise}`,children:[(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Memory layer · online`}),(0,G.jsxs)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:[Qw(),`, operator.`]})]}),(0,G.jsxs)(`div`,{className:Yw.dashHeroActions,children:[(0,G.jsxs)(`form`,{className:Yw.quickSearch,onSubmit:e=>{e.preventDefault(),v()},children:[(0,G.jsx)(qC,{size:16}),(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.currentTarget.value),placeholder:`Quick search…`}),(0,G.jsx)(`button`,{type:`submit`,className:Yw.qsGo,"aria-label":`Search`,children:(0,G.jsx)(vC,{size:15})})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnPrimary}`,onClick:()=>e(`/ingest`),children:[(0,G.jsx)(GC,{size:16}),`Ingest content`]})]})]}),(0,G.jsxs)(`div`,{className:Yw.statGrid,children:[(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bPrimary}`,children:(0,G.jsx)(kC,{size:18})}),g>0&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[g,` docs in trash`]})]}),(0,G.jsx)(`div`,{className:Yw.statValue,children:(r?.doc_count??0).toLocaleString()}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Documents`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bViolet}`,children:(0,G.jsx)(YC,{size:18})}),(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bViolet}`,children:[Zw(r?.total_chars??0),` chars`]})]}),(0,G.jsx)(`div`,{className:Yw.statValue,children:(r?.total_chunks??0).toLocaleString()}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Indexed chunks`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsx)(`div`,{className:Yw.statTop,children:(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bBlue}`,children:(0,G.jsx)(IC,{size:18})})}),(0,G.jsx)(`div`,{className:Yw.statValue,children:r?.project_count??0}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Projects`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.statTile} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:Yw.statTop,children:[(0,G.jsx)(`span`,{className:`${Yw.statIco} ${X.bGreen}`,children:(0,G.jsx)(JC,{size:18})}),l>0?(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bGreen}`,title:`MCP transports, last 30 days. Other paths are listed below the count.`,children:[o.toLocaleString(),` local · `,s.toLocaleString(),` remote`]}):(0,G.jsxs)(el,{width:260,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,G.jsx)(el.Target,{children:(0,G.jsx)(`button`,{type:`button`,className:X.whatis,children:`Why no data?`})}),(0,G.jsx)(el.Dropdown,{children:(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,children:[`No agent activity on the MCP or Edge Function paths in the last 30 days. That is not the same as "no agents" — CLI and web operations are counted separately below, and the Edge Function path is only used by ChatGPT Actions, so a zero there is normal unless you run a Custom GPT. Agent ops are recorded in the usage log, which is `,(0,G.jsx)(`b`,{children:`opt-in`}),` — enable it with`,` `,(0,G.jsx)(`code`,{children:`cerefox config set usage_tracking_enabled true`}),` if it's off.`]})})]})]}),(0,G.jsx)(`div`,{className:l>0?Yw.statValue:Yw.emptyVal,children:l>0?l.toLocaleString():`—`}),(0,G.jsx)(`div`,{className:Yw.statLabel,children:`Agent operations · 30d`}),(c>0||u>0||d>0)&&(0,G.jsxs)(`div`,{className:Yw.statSub,title:`edge = ChatGPT Actions (counted in the total above). cli and web are NOT counted as agent operations: the usage summary cannot separate an agent's CLI use from a person's.`,children:[c.toLocaleString(),` edge · `,u.toLocaleString(),` cli ·`,` `,d.toLocaleString(),` web`]})]})]}),(0,G.jsxs)(`div`,{className:Yw.dashSplit,children:[(0,G.jsxs)(`section`,{className:X.rise,children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(DC,{size:16}),`Recently changed documents`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>e(`/search`),children:[`View all`,(0,G.jsx)(vC,{size:14})]})]}),(0,G.jsx)(`div`,{className:X.card,style:{overflow:`hidden`},children:(0,G.jsxs)(`table`,{className:Yw.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{className:Yw.authorCell,children:`Author`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Chunks`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Size`}),(0,G.jsx)(`th`,{className:Yw.alignRight,children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:(r?.recent_docs??[]).map(t=>{let n=t.author?{icon:t.author_type===`agent`?JC:HC,label:t.author,agent:t.author_type===`agent`}:$w(t.source),r=n.icon,i=t.review_status!==`approved`;return(0,G.jsxs)(`tr`,{"data-testid":`recent-doc-row`,onClick:()=>e(`/document/${t.id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsxs)(`div`,{className:Yw.docCell,children:[(0,G.jsx)(`span`,{className:Yw.docDot,style:{background:y(t)}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:3,minWidth:0},children:[(0,G.jsx)($S,{to:`/document/${t.id}`,className:`${X.link} ${Yw.docTitle}`,onClick:e=>e.stopPropagation(),children:t.title||`Untitled`}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:6},children:[t.project_ids.filter(e=>f.has(e)).slice(0,1).map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:f.get(e)},e)),i&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bYellow}`,children:[(0,G.jsx)(`span`,{style:{width:6,height:6,borderRadius:`50%`,background:`currentColor`}}),`pending review`]})]})]})]})}),(0,G.jsx)(`td`,{className:Yw.authorCell,title:n.label,children:(0,G.jsxs)(`span`,{className:`${X.srcChip} ${n.agent?X.srcChipAgent:``}`,children:[(0,G.jsx)(r,{size:12}),n.label]})}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.mono} ${X.dim}`,children:t.chunk_count}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.mono} ${X.dim}`,children:t.total_chars.toLocaleString()}),(0,G.jsx)(`td`,{className:`${Yw.alignRight} ${X.faint}`,children:Lw(t.updated_at)})]},t.id)})})]})})]}),(0,G.jsxs)(`aside`,{className:Yw.dashRail,children:[(0,G.jsxs)(`section`,{className:X.rise,style:{minHeight:0},children:[(0,G.jsxs)(`div`,{className:X.secHead,children:[(0,G.jsxs)(`h2`,{className:X.secTitle,children:[(0,G.jsx)(YC,{size:16}),`Projects `,(0,G.jsx)(`span`,{className:X.countPill,children:r?.project_count??0})]}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>e(`/projects`),children:`Manage`})]}),(0,G.jsxs)(`div`,{className:`${X.card} ${Yw.projList}`,children:[(0,G.jsx)(`div`,{className:Yw.projScroll,children:(r?.projects??[]).map(t=>{let n=m[t.id]??0,r=h[t.id]??0,i=`var(${p.get(t.id)??`--border`})`;return(0,G.jsxs)(`button`,{type:`button`,className:Yw.projRow,onClick:()=>e(`/projects/${t.id}/documents`),children:[(0,G.jsx)(`span`,{className:Yw.projDot,style:{background:i}}),(0,G.jsxs)(`div`,{className:X.col,style:{gap:5,minWidth:0,flex:1},children:[(0,G.jsxs)(`div`,{className:X.row,style:{justifyContent:`space-between`,gap:8},children:[(0,G.jsx)($S,{to:`/projects/${t.id}/documents`,className:Yw.projName,onClick:e=>e.stopPropagation(),children:t.name}),(0,G.jsxs)(`span`,{className:Yw.projCounts,children:[(0,G.jsx)(`span`,{children:n}),r>0&&(0,G.jsxs)(`span`,{className:Yw.trashCount,title:`${r} in trash`,children:[(0,G.jsx)(QC,{size:11}),r]})]})]}),(0,G.jsx)(`div`,{className:Yw.projBar,children:(0,G.jsx)(`span`,{style:{width:`${n/_*100}%`,background:i}})})]}),(0,G.jsx)(`span`,{className:Yw.projChev,children:(0,G.jsx)(wC,{size:15})})]},t.id)})}),(0,G.jsxs)(`div`,{className:Yw.projFoot,children:[(0,G.jsxs)(`span`,{children:[r?.project_count??0,` projects`]}),(0,G.jsxs)(`span`,{className:X.faint,children:[g,` docs in trash`]})]})]})]}),(0,G.jsx)(qw,{title:`Same memory, your terminal`,commands:[{cmd:`cerefox search`,args:`"retry backoff" --mode hybrid`},{cmd:`cerefox document ingest`,args:`./rfc-018.md --project-name infra`}]})]})]})]})}async function nT(e,t){return ow(`/documents/${e}${cw({version_id:t})}`)}async function rT(e){return ow(`/documents/${e}/chunks`)}async function iT(e,t){return ow(`/documents/${e}/edit`,{method:`POST`,body:JSON.stringify(t)})}async function aT(e){return ow(`/documents/${e}`,{method:`DELETE`})}async function oT(e){return ow(`/ingest`,{method:`POST`,body:JSON.stringify({mode:`paste`,...e})})}async function sT(e){return ow(`/check-filename${cw({filename:e})}`)}async function cT(e,t){return ow(`/documents/${e}?version_id=${t}`)}function lT(e,t){let n=`/api/v1/documents/${e}/download`;return t?`${n}?version_id=${t}`:n}function uT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var dT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pT={};function mT(e,t){return((t||pT).jsx?fT:dT).test(e)}var hT=/[ \t\n\f\r]/g;function gT(e){return typeof e==`object`?e.type===`text`&&_T(e.value):_T(e)}function _T(e){return e.replace(hT,``)===``}var vT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};vT.prototype.normal={},vT.prototype.property={},vT.prototype.space=void 0;function yT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new vT(n,r,t)}function bT(e){return e.toLowerCase()}var xT=class{constructor(e,t){this.attribute=t,this.property=e}};xT.prototype.attribute=``,xT.prototype.booleanish=!1,xT.prototype.boolean=!1,xT.prototype.commaOrSpaceSeparated=!1,xT.prototype.commaSeparated=!1,xT.prototype.defined=!1,xT.prototype.mustUseProperty=!1,xT.prototype.number=!1,xT.prototype.overloadedBoolean=!1,xT.prototype.property=``,xT.prototype.spaceSeparated=!1,xT.prototype.space=void 0;var ST=s({boolean:()=>wT,booleanish:()=>TT,commaOrSpaceSeparated:()=>kT,commaSeparated:()=>OT,number:()=>Z,overloadedBoolean:()=>ET,spaceSeparated:()=>DT}),CT=0,wT=AT(),TT=AT(),ET=AT(),Z=AT(),DT=AT(),OT=AT(),kT=AT();function AT(){return 2**++CT}var jT=Object.keys(ST),MT=class extends xT{constructor(e,t,n,r){let i=-1;if(super(e,t),NT(this,`space`,r),typeof n==`number`)for(;++i<jT.length;){let e=jT[i];NT(this,jT[i],(n&ST[e])===ST[e])}}};MT.prototype.defined=!0;function NT(e,t,n){n&&(e[t]=n)}function PT(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new MT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[bT(r)]=r,n[bT(a.attribute)]=r}return new vT(t,n,e.space)}var FT=PT({properties:{ariaActiveDescendant:null,ariaAtomic:TT,ariaAutoComplete:null,ariaBusy:TT,ariaChecked:TT,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:DT,ariaCurrent:null,ariaDescribedBy:DT,ariaDetails:null,ariaDisabled:TT,ariaDropEffect:DT,ariaErrorMessage:null,ariaExpanded:TT,ariaFlowTo:DT,ariaGrabbed:TT,ariaHasPopup:null,ariaHidden:TT,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:DT,ariaLevel:Z,ariaLive:null,ariaModal:TT,ariaMultiLine:TT,ariaMultiSelectable:TT,ariaOrientation:null,ariaOwns:DT,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:TT,ariaReadOnly:TT,ariaRelevant:null,ariaRequired:TT,ariaRoleDescription:DT,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:TT,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function IT(e,t){return t in e?e[t]:t}function LT(e,t){return IT(e,t.toLowerCase())}var RT=PT({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:OT,acceptCharset:DT,accessKey:DT,action:null,allow:null,allowFullScreen:wT,allowPaymentRequest:wT,allowUserMedia:wT,alpha:wT,alt:null,as:null,async:wT,autoCapitalize:null,autoComplete:DT,autoFocus:wT,autoPlay:wT,blocking:DT,capture:null,charSet:null,checked:wT,cite:null,className:DT,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:TT,controls:wT,controlsList:DT,coords:Z|OT,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wT,defer:wT,dir:null,dirName:null,disabled:wT,download:ET,draggable:TT,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wT,formTarget:null,headers:DT,height:Z,hidden:ET,high:Z,href:null,hrefLang:null,htmlFor:DT,httpEquiv:DT,id:null,imageSizes:null,imageSrcSet:null,inert:wT,inputMode:null,integrity:null,is:null,isMap:wT,itemId:null,itemProp:DT,itemRef:DT,itemScope:wT,itemType:DT,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wT,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:wT,muted:wT,name:null,nonce:null,noModule:wT,noValidate:wT,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wT,optimum:Z,pattern:null,ping:DT,placeholder:null,playsInline:wT,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wT,referrerPolicy:null,rel:DT,required:wT,reversed:wT,rows:Z,rowSpan:Z,sandbox:DT,scope:null,scoped:wT,seamless:wT,selected:wT,shadowRootClonable:wT,shadowRootCustomElementRegistry:wT,shadowRootDelegatesFocus:wT,shadowRootMode:null,shadowRootSerializable:wT,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:TT,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:wT,useMap:null,value:TT,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:DT,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wT,declare:wT,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:wT,noHref:wT,noShade:wT,noWrap:wT,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:TT,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:wT,disablePictureInPicture:wT,disableRemotePlayback:wT,exportParts:OT,part:DT,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:LT}),zT=PT({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:kT,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:DT,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:wT,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:OT,g2:OT,glyphName:OT,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:kT,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:DT,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kT,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kT,rev:kT,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kT,requiredFeatures:kT,requiredFonts:kT,requiredFormats:kT,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:kT,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kT,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kT,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:IT}),BT=PT({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),VT=PT({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:LT}),HT=PT({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),UT={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},WT=/[A-Z]/g,GT=/-[a-z]/g,KT=/^data[-\w.:]+$/i;function qT(e,t){let n=bT(t),r=t,i=xT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&KT.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(GT,YT);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!GT.test(e)){let n=e.replace(WT,JT);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=MT}return new i(r,t)}function JT(e){return`-`+e.toLowerCase()}function YT(e){return e.charAt(1).toUpperCase()}var XT=yT([FT,RT,BT,VT,HT],`html`),ZT=yT([FT,zT,BT,VT,HT],`svg`);function QT(e){return e.join(` `).trim()}var $T=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
60
60
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),eE=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t($T());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),tE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),nE=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(eE()),r=tE();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),rE=aE(`end`),iE=aE(`start`);function aE(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function oE(e){let t=iE(e),n=rE(e);if(t&&n)return{start:t,end:n}}function sE(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?lE(e.position):`start`in e||`end`in e?lE(e):`line`in e||`column`in e?cE(e):``}function cE(e){return uE(e&&e.line)+`:`+uE(e&&e.column)}function lE(e){return cE(e&&e.start)+`-`+cE(e&&e.end)}function uE(e){return e&&typeof e==`number`?e:1}var dE=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=sE(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};dE.prototype.file=``,dE.prototype.name=``,dE.prototype.reason=``,dE.prototype.message=``,dE.prototype.stack=``,dE.prototype.column=void 0,dE.prototype.line=void 0,dE.prototype.ancestors=void 0,dE.prototype.cause=void 0,dE.prototype.fatal=void 0,dE.prototype.place=void 0,dE.prototype.ruleId=void 0,dE.prototype.source=void 0;var fE=l(nE(),1),pE={}.hasOwnProperty,mE=new Map,hE=/[A-Z]/g,gE=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),_E=new Set([`td`,`th`]);function vE(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=oee(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=aee(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ZT:XT,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=yE(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function yE(e,t,n){if(t.type===`element`)return bE(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return xE(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return CE(e,t,n);if(t.type===`mdxjsEsm`)return SE(e,t);if(t.type===`root`)return wE(e,t,n);if(t.type===`text`)return TE(e,t)}function bE(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ZT,e.schema=i),e.ancestors.push(t);let a=kE(e,t.tagName,!1),o=see(e,t),s=OE(e,t);return gE.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!gT(e)})),EE(e,o,a,t),DE(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function xE(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}AE(e,t.position)}function SE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);AE(e,t.position)}function CE(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ZT,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:kE(e,t.name,!0),o=cee(e,t),s=OE(e,t);return EE(e,o,a,t),DE(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function wE(e,t,n){let r={};return DE(r,OE(e,t)),e.create(t,e.Fragment,r,n)}function TE(e,t){return t.value}function EE(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function DE(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function aee(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function oee(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=iE(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function see(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&pE.call(t.properties,i)){let a=lee(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&_E.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function cee(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else AE(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else AE(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function OE(e,t){let n=[],r=-1,i=e.passKeys?new Map:mE;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=yE(e,a,o);s!==void 0&&n.push(s)}return n}function lee(e,t,n){let r=qT(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?uT(n):QT(n)),r.property===`style`){let t=typeof n==`object`?n:uee(e,String(n));return e.stylePropertyNameCase===`css`&&(t=dee(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?UT[r.property]||r.property:r.attribute,n]}}function uee(e,t){try{return(0,fE.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new dE("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function kE(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=mT(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=mT(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return pE.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);AE(e)}function AE(e,t){let n=new dE("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function dee(e){let t={},n;for(n in e)pE.call(e,n)&&(t[fee(n)]=e[n]);return t}function fee(e){let t=e.replace(hE,pee);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function pee(e){return`-`+e.toLowerCase()}var jE={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},ME={};function NE(e,t){let n=t||ME;return PE(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function PE(e,t,n){if(IE(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return FE(e.children,t,n)}return Array.isArray(e)?FE(e,t,n):``}function FE(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=PE(e[i],t,n);return r.join(``)}function IE(e){return!!(e&&typeof e==`object`)}var LE=document.createElement(`i`);function RE(e){let t=`&`+e+`;`;LE.innerHTML=t;let n=LE.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function zE(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function BE(e,t){return e.length>0?(zE(e,e.length,0,t),e):t}var VE={}.hasOwnProperty;function HE(e){let t={},n=-1;for(;++n<e.length;)UE(t,e[n]);return t}function UE(e,t){let n;for(n in t){let r=(VE.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){VE.call(r,a)||(r[a]=[]);let e=i[a];WE(r[a],Array.isArray(e)?e:e?[e]:[])}}}function WE(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);zE(e,0,0,r)}function GE(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function KE(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var qE=iD(/[A-Za-z]/),JE=iD(/[\dA-Za-z]/),YE=iD(/[#-'*+\--9=?A-Z^-~]/);function XE(e){return e!==null&&(e<32||e===127)}var ZE=iD(/\d/),mee=iD(/[\dA-Fa-f]/),QE=iD(/[!-/:-@[-`{-~]/);function $E(e){return e!==null&&e<-2}function eD(e){return e!==null&&(e<0||e===32)}function tD(e){return e===-2||e===-1||e===32}var nD=iD(/\p{P}|\p{S}/u),rD=iD(/\s/);function iD(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function aD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&JE(e.charCodeAt(n+1))&&JE(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function oD(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return tD(r)?(e.enter(n),s(r)):t(r)}function s(r){return tD(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var sD={tokenize:cD};function cD(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),oD(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return $E(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var lD={tokenize:dD},uD={tokenize:fD};function dD(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return zE(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(uD,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(uD,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return $E(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;zE(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function fD(e,t,n){return oD(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function pD(e){if(e===null||eD(e)||rD(e))return 1;if(nD(e))return 2}function mD(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var hD={name:`attention`,resolveAll:gD,tokenize:_D};function gD(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};vD(d,-c),vD(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=BE(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=BE(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=BE(l,mD(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=BE(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=BE(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,zE(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function _D(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=pD(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=pD(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function vD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var yD={name:`autolink`,tokenize:bD};function bD(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return qE(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||JE(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||JE(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||XE(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):YE(t)?(e.consume(t),l):n(t)}function u(e){return JE(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||JE(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var xD={partial:!0,tokenize:hee};function hee(e,t,n){return r;function r(t){return tD(t)?oD(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||$E(e)?t(e):n(e)}}var SD={continuation:{tokenize:wD},exit:TD,name:`blockQuote`,tokenize:CD};function CD(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return tD(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function wD(e,t,n){let r=this;return i;function i(t){return tD(t)?oD(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(SD,t,n)(r)}}function TD(e){e.exit(`blockQuote`)}var ED={name:`characterEscape`,tokenize:DD};function DD(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return QE(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var OD={name:`characterReference`,tokenize:kD};function kD(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=JE,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=mee,u):(e.enter(`characterReferenceValue`),a=7,o=ZE,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===JE&&!RE(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var AD={partial:!0,tokenize:ND},jD={concrete:!0,name:`codeFenced`,tokenize:MD};function MD(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),tD(t)?oD(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||$E(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(AD,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||$E(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):tD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),oD(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||$E(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||$E(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&tD(t)?oD(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||$E(t)?e.check(AD,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||$E(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),tD(t)?oD(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),tD(t)?oD(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$E(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function ND(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var PD={name:`codeIndented`,tokenize:ID},FD={partial:!0,tokenize:LD};function ID(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),oD(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):$E(t)?e.attempt(FD,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||$E(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function LD(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):$E(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):oD(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):$E(e)?i(e):n(e)}}var RD={name:`codeText`,previous:BD,resolve:zD,tokenize:VD};function zD(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function BD(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function VD(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):$E(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||$E(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var HD=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&UD(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),UD(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),UD(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);UD(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);UD(this.left,t.reverse())}}};function UD(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function WD(e){let t={},n=-1,r,i,a,o,s,c,l,u=new HD(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,GD(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return zE(e,0,1/0,u.slice(0)),!l}function GD(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var KD={resolve:JD,tokenize:YD},qD={partial:!0,tokenize:XD};function JD(e){return WD(e),e}function YD(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):$E(t)?e.check(qD,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function XD(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oD(e,a,`linePrefix`)}function a(i){if(i===null||$E(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function ZD(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||XE(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||$E(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||eD(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||XE(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function QD(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):$E(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||$E(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!tD(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function $D(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):$E(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oD(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$E(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function eO(e,t){let n;return r;function r(i){return $E(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):tD(i)?oD(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var tO={name:`definition`,tokenize:rO},nO={partial:!0,tokenize:iO};function rO(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return QD.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=KE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return eD(t)?eO(e,l)(t):l(t)}function l(t){return ZD(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(nO,d,d)(t)}function d(t){return tD(t)?oD(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$E(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function iO(e,t,n){return r;function r(t){return eD(t)?eO(e,i)(t):n(t)}function i(t){return $D(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return tD(t)?oD(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$E(e)?t(e):n(e)}}var aO={name:`hardBreakEscape`,tokenize:oO};function oO(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $E(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var sO={name:`headingAtx`,resolve:cO,tokenize:lO};function cO(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},zE(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function lO(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||eD(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$E(n)?(e.exit(`atxHeading`),t(n)):tD(n)?oD(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||eD(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var uO=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),dO=[`pre`,`script`,`style`,`textarea`],fO={concrete:!0,name:`htmlFlow`,resolveTo:hO,tokenize:gO},pO={partial:!0,tokenize:vO},mO={partial:!0,tokenize:_O};function hO(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function gO(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):qE(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):qE(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return qE(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||eD(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&dO.includes(l)?(i=1,r.interrupt?t(s):O(s)):uO.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||JE(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return tD(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||qE(t)?(e.consume(t),b):tD(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||JE(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):tD(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):tD(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||$E(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||eD(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||tD(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||$E(t)?O(t):tD(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):$E(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(pO,R,k)(t)):t===null||$E(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(mO,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||$E(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return dO.includes(n)?(e.consume(t),L):O(t)}return qE(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||$E(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function _O(e,t,n){let r=this;return i;function i(t){return $E(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function vO(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(xD,t,n)}}var yO={name:`htmlText`,tokenize:bO};function bO(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):qE(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):qE(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):$E(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):$E(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):$E(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):$E(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return qE(t)?(e.consume(t),S):n(t)}function S(t){return t===45||JE(t)?(e.consume(t),S):C(t)}function C(t){return $E(t)?(o=C,N(t)):tD(t)?(e.consume(t),C):M(t)}function w(t){return t===45||JE(t)?(e.consume(t),w):t===47||t===62||eD(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||qE(t)?(e.consume(t),E):$E(t)?(o=T,N(t)):tD(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||JE(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):$E(t)?(o=D,N(t)):tD(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):$E(t)?(o=O,N(t)):tD(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):$E(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||eD(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||eD(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return tD(t)?oD(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var xO={name:`labelEnd`,resolveAll:TO,resolveTo:EO,tokenize:DO},SO={tokenize:OO},CO={tokenize:kO},wO={tokenize:AO};function TO(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&zE(e,0,e.length,n),e}function EO(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=BE(s,e.slice(a+1,a+r+3)),s=BE(s,[[`enter`,u,t]]),s=BE(s,mD(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=BE(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=BE(s,e.slice(o+1)),s=BE(s,[[`exit`,c,t]]),zE(e,a,e.length,s),e}function DO(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(KE(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(SO,u,o?u:d)(t):t===91?e.attempt(CO,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(wO,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function OO(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return eD(t)?eO(e,a)(t):a(t)}function a(t){return t===41?u(t):ZD(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return eD(t)?eO(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?$D(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return eD(t)?eO(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function kO(e,t,n){let r=this;return i;function i(t){return QD.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(KE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function AO(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var jO={name:`labelStartImage`,resolveAll:xO.resolveAll,tokenize:MO};function MO(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var NO={name:`labelStartLink`,resolveAll:xO.resolveAll,tokenize:PO};function PO(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var FO={name:`lineEnding`,tokenize:IO};function IO(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),oD(e,t,`linePrefix`)}}var LO={name:`thematicBreak`,tokenize:RO};function RO(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||$E(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),tD(t)?oD(e,s,`whitespace`)(t):s(t))}}var zO={continuation:{tokenize:UO},exit:GO,name:`list`,tokenize:HO},BO={partial:!0,tokenize:KO},VO={partial:!0,tokenize:WO};function HO(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:ZE(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(LO,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return ZE(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(xD,r.interrupt?n:u,e.attempt(BO,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return tD(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function UO(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(xD,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oD(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!tD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(VO,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,oD(e,e.attempt(zO,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function WO(e,t,n){let r=this;return oD(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function GO(e){e.exit(this.containerState.type)}function KO(e,t,n){let r=this;return oD(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!tD(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var qO={name:`setextUnderline`,resolveTo:JO,tokenize:YO};function JO(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function YO(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),tD(t)?oD(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$E(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var XO={tokenize:ZO};function ZO(e){let t=this,n=e.attempt(xD,r,e.attempt(this.parser.constructs.flowInitial,i,oD(e,e.attempt(this.parser.constructs.flow,i,e.attempt(KD,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var QO={resolveAll:nk()},$O=tk(`string`),ek=tk(`text`);function tk(e){return{resolveAll:nk(e===`text`?rk:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function nk(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function rk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var ik=s({attentionMarkers:()=>fk,contentInitial:()=>ok,disable:()=>pk,document:()=>ak,flow:()=>ck,flowInitial:()=>sk,insideSpan:()=>dk,string:()=>lk,text:()=>uk}),ak={42:zO,43:zO,45:zO,48:zO,49:zO,50:zO,51:zO,52:zO,53:zO,54:zO,55:zO,56:zO,57:zO,62:SD},ok={91:tO},sk={[-2]:PD,[-1]:PD,32:PD},ck={35:sO,42:LO,45:[qO,LO],60:fO,61:qO,95:LO,96:jD,126:jD},lk={38:OD,92:ED},uk={[-5]:FO,[-4]:FO,[-3]:FO,33:jO,38:OD,42:hD,60:[yD,yO],91:NO,92:[aO,ED],93:xO,95:hD,96:RD},dk={null:[hD,QO]},fk={null:[42,95]},pk={null:[]};function mk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=BE(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=mD(a,l.events,l),l.events):[]}function f(e,t){return gk(p(e),t)}function p(e){return hk(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){$E(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&zE(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function hk(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function gk(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
61
61
|
`;break;case-3:o=`\r
|
|
62
62
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function _k(e){let t={constructs:HE([ik,...(e||{}).extensions||[]]),content:n(sD),defined:[],document:n(lD),flow:n(XO),lazy:{},string:n($O),text:n(ek)};return t;function n(e){return n;function n(n){return mk(t,e,n)}}}function vk(e){for(;!WD(e););return e}var yk=/[\0\t\n\r]/g;function bk(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(yk.lastIndex=u,c=yk.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var xk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sk(e){return e.replace(xk,Ck)}function Ck(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return GE(n.slice(t?2:1),t?16:10)}return RE(n)||e}var wk={}.hasOwnProperty;function Tk(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Ek(n)(vk(_k(n).document().write(bk()(e,t,!0))))}function Ek(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ue),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(oe),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ne,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ae),hardBreakEscape:a(se),hardBreakTrailing:a(se),htmlFlow:a(ce,o),htmlFlowData:T,htmlText:a(ce,o),htmlTextData:T,image:a(le),label:o,link:a(ue),listItem:a(fe),listItemValue:f,listOrdered:a(de,d),listUnordered:a(de),paragraph:a(pe),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(oe),strong:a(me),thematicBreak:a(ge)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:W,autolinkProtocol:ee,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Ok(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];wk.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ak).call(a,void 0,e[0])}for(r.position={start:Dk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Dk(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Dk(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ak).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+sE({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Dk(e.end)}function u(){return NE(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=KE(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=he(),n.position={start:Dk(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Dk(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Dk(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Sk(t),n.identifier=KE(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=KE(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=GE(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=RE(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=Dk(e.end)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function ne(){return{type:`code`,lang:null,meta:null,value:``}}function re(){return{type:`inlineCode`,value:``}}function ie(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ae(){return{type:`emphasis`,children:[]}}function oe(){return{type:`heading`,depth:0,children:[]}}function se(){return{type:`break`}}function ce(){return{type:`html`,value:``}}function le(){return{type:`image`,title:null,url:``,alt:null}}function ue(){return{type:`link`,title:null,url:``,children:[]}}function de(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function fe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function pe(){return{type:`paragraph`,children:[]}}function me(){return{type:`strong`,children:[]}}function he(){return{type:`text`,value:``}}function ge(){return{type:`thematicBreak`}}}function Dk(e){return{line:e.line,column:e.column,offset:e.offset}}function Ok(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Ok(e,r):kk(e,r)}}function kk(e,t){let n;for(n in t)if(wk.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Ak(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+sE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sE({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+sE({start:t.start,end:t.end})+`) is still open`)}function jk(e){let t=this;t.parser=n;function n(n){return Tk(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Mk(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Nk(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
@@ -118,4 +118,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
118
118
|
L0 `+r+`
|
|
119
119
|
L`+r/2+` 0
|
|
120
120
|
`,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})})};function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o6.apply(null,arguments)}var s6={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:`left-to-right`,justify:!1,symbolShape:`square`,symbolSize:16,symbolSpacing:8},c6={top:0,right:0,bottom:0,left:0},l6=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!=`number`&&(typeof(t=i)!=`object`||Array.isArray(t)||t===null))throw Error(`Invalid property padding, must be one of: number, object`);var c=typeof i==`number`?{top:i,right:i,bottom:i,left:i}:o6({},c6,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,p=(a-1)*r;return n===`row`?d=o*a+p+l:n===`column`&&(f=s*a+p+u),{width:d,height:f,padding:c}},u6=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,c=n,l=r;switch(t){case`top`:c+=(i-o)/2;break;case`top-right`:c+=i-o;break;case`right`:c+=i-o,l+=(a-s)/2;break;case`bottom-right`:c+=i-o,l+=a-s;break;case`bottom`:c+=(i-o)/2,l+=a-s;break;case`bottom-left`:l+=a-s;break;case`left`:l+=(a-s)/2;break;case`center`:c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},d6=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case`left-to-right`:t=0,n=(f-l)/2,i=f/2,o=`central`,c?(r=d,a=`end`):(r=l+u,a=`start`);break;case`right-to-left`:t=d-l,n=(f-l)/2,i=f/2,o=`central`,c?(r=0,a=`start`):(r=d-l-u,a=`end`);break;case`top-to-bottom`:t=(d-l)/2,n=0,r=d/2,a=`middle`,c?(i=f,o=`alphabetic`):(i=l+u,o=`text-before-edge`);break;case`bottom-to-top`:t=(d-l)/2,n=f-l,r=d/2,a=`middle`,c?(i=0,o=`text-before-edge`):(i=f-l-u,o=`alphabetic`)}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},f6={circle:n6,diamond:r6,square:i6,triangle:a6},p6=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.direction,s=o===void 0?s6.itemDirection:o,c=e.justify,l=c===void 0?s6.justify:c,u=e.textColor,d=e.background,f=d===void 0?`transparent`:d,p=e.opacity,m=p===void 0?1:p,h=e.symbolShape,g=h===void 0?s6.symbolShape:h,_=e.symbolSize,v=_===void 0?s6.symbolSize:_,y=e.symbolSpacing,b=y===void 0?s6.symbolSpacing:y,x=e.symbolBorderWidth,S=x===void 0?0:x,C=e.symbolBorderColor,T=C===void 0?`transparent`:C,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=(0,w.useState)({}),M=j[0],N=j[1],P=gH(),F=(0,w.useCallback)((function(e){A&&N(A.filter((function(e){return e.on===`hover`})).reduce((function(e,t){return o6({},e,t.style)}),{})),D?.(a,e)}),[D,a,A]),I=(0,w.useCallback)((function(e){A&&N(A.filter((function(e){return e.on!==`hover`})).reduce((function(e,t){return o6({},e,t.style)}),{})),O?.(a,e)}),[O,a,A]),L=d6({direction:s,justify:l,symbolSize:M.symbolSize??v,symbolSpacing:b,width:r,height:i}),R=L.symbolX,z=L.symbolY,B=L.labelX,V=L.labelY,H=L.labelAnchor,U=L.labelAlignment,ee=[E,D,O,k].some((function(e){return e!==void 0})),W=typeof g==`function`?g:f6[g];return(0,G.jsxs)(`g`,{transform:`translate(`+t+`,`+n+`)`,style:{opacity:M.itemOpacity??m},children:[(0,G.jsx)(`rect`,{width:r,height:i,fill:M.itemBackground??f,style:{cursor:ee?`pointer`:`auto`},onClick:function(e){E?.(a,e),k?.(a.id)},onMouseEnter:F,onMouseLeave:I}),w.createElement(W,o6({id:a.id,x:R,y:z,size:M.symbolSize??v,fill:a.fill??a.color??`black`,borderWidth:M.symbolBorderWidth??S,borderColor:M.symbolBorderColor??T},a.hidden?P.legends.hidden.symbol:void 0)),(0,G.jsx)(J0,{textAnchor:H,style:o6({},P.legends.text,{fill:M.itemTextColor??u??P.legends.text.fill??`black`,dominantBaseline:U,pointerEvents:`none`,userSelect:`none`},a.hidden?P.legends.hidden.text:void 0),x:B,y:V,children:a.label})]})},m6=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?s6.padding:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?s6.itemDirection:d,p=e.itemsSpacing,m=p===void 0?s6.itemsSpacing:p,h=e.itemTextColor,g=e.itemBackground,_=g===void 0?`transparent`:g,v=e.itemOpacity,y=v===void 0?1:v,b=e.symbolShape,x=e.symbolSize,S=e.symbolSpacing,C=e.symbolBorderWidth,w=e.symbolBorderColor,T=e.onClick,E=e.onMouseEnter,D=e.onMouseLeave,O=e.toggleSerie,k=l6({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:m,direction:i,padding:o}).padding,A=i===`row`?l+m:0,j=i===`column`?u+m:0;return(0,G.jsx)(`g`,{transform:`translate(`+n+`,`+r+`)`,children:t.map((function(e,t){return(0,G.jsx)(p6,{data:e,x:t*A+k.left,y:t*j+k.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:h,background:_,opacity:y,symbolShape:b,symbolSize:x,symbolSpacing:S,symbolBorderWidth:C,symbolBorderColor:w,onClick:T,onMouseEnter:E,onMouseLeave:D,toggleSerie:O},t)}))})},h6=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?s6.translateX:i,o=e.translateY,s=o===void 0?s6.translateY:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?s6.padding:u,f=e.justify,p=e.itemsSpacing,m=p===void 0?s6.itemsSpacing:p,h=e.itemWidth,g=e.itemHeight,_=e.itemDirection,v=e.itemTextColor,y=e.itemBackground,b=e.itemOpacity,x=e.symbolShape,S=e.symbolSize,C=e.symbolSpacing,w=e.symbolBorderWidth,T=e.symbolBorderColor,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=l6({itemCount:t.length,itemsSpacing:m,itemWidth:h,itemHeight:g,direction:l,padding:d}),M=j.width,N=j.height,P=u6({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:M,height:N}),F=P.x,I=P.y;return(0,G.jsx)(m6,{data:t,x:F,y:I,direction:l,padding:d,justify:f,effects:A,itemsSpacing:m,itemWidth:h,itemHeight:g,itemDirection:_,itemTextColor:v,itemBackground:y,itemOpacity:b,symbolShape:x,symbolSize:S,symbolSpacing:C,symbolBorderWidth:w,symbolBorderColor:T,onClick:E,onMouseEnter:D,onMouseLeave:O,toggleSerie:typeof k==`boolean`?void 0:k})},g6={start:`left`,middle:`center`,end:`right`},_6=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,m=p!==void 0&&p,h=t.itemsSpacing,g=h===void 0?0:h,_=t.itemWidth,v=t.itemHeight,y=t.itemDirection,b=y===void 0?`left-to-right`:y,x=t.itemTextColor,S=t.symbolSize,C=S===void 0?16:S,w=t.symbolSpacing,T=w===void 0?8:w,E=t.theme,D=l6({itemCount:n.length,itemWidth:_,itemHeight:v,itemsSpacing:g,direction:u,padding:f}),O=D.width,k=D.height,A=D.padding,j=u6({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O,height:k}),M=j.x,N=j.y,P=u===`row`?_+g:0,F=u===`column`?v+g:0;e.save(),e.translate(M,N),H0(e,E.legends.text),n.forEach((function(t,n){var r=n*P+A.left,i=n*F+A.top,a=d6({direction:b,justify:m,symbolSize:C,symbolSpacing:T,width:_,height:v}),o=a.symbolX,s=a.symbolY,c=a.labelX,l=a.labelY,u=a.labelAnchor,d=a.labelAlignment;e.fillStyle=t.color??`black`,e.fillRect(r+o,i+s,C,C),e.textAlign=g6[u],d===`central`&&(e.textBaseline=`middle`),U0(e,o6({},E.legends.text,{fill:x??E.legends.text.fill}),String(t.label),r+c,i+l)})),e.restore()},v6=function(e,t,n,r,i,a){a>0?(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()):e.rect(t,n,r,i)};function y6(){return y6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y6.apply(null,arguments)}function b6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var x6,S6=function(e){var t=e.bars,n=e.annotations,r=C3({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return(0,G.jsx)(G.Fragment,{children:r.map((function(e,t){return(0,G.jsx)(j3,y6({},e),t)}))})},C6=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return(0,G.jsx)(G.Fragment,{children:r.map((function(e,r){var a=e[0],o=e[1];return(0,G.jsx)(h6,y6({},a,{containerWidth:t,containerHeight:n,data:a.data??o,toggleSerie:a.toggleSerie&&a.dataFrom===`keys`?i:void 0}),r)}))})},w6=[`data`],T6=function(e){var t=e.bar,n=t.data,r=b6(t,w6),i=e.style,a=i.borderColor,o=i.color,s=i.height,c=i.labelColor,l=i.labelOpacity,u=i.labelX,d=i.labelY,f=i.transform,p=i.width,m=i.textAnchor,h=e.borderRadius,g=e.borderWidth,_=e.label,v=e.shouldRenderLabel,y=e.isInteractive,b=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,C=e.tooltip,T=e.isFocusable,E=e.ariaLabel,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.ariaDisabled,A=e.ariaHidden,j=gH(),M=MH(),N=M.showTooltipFromEvent,P=M.showTooltipAt,F=M.hideTooltip,I=(0,w.useMemo)((function(){return function(){return(0,w.createElement)(C,y6({},r,n))}}),[C,r,n]),L=(0,w.useCallback)((function(e){b?.(y6({color:r.color},n),e)}),[r,n,b]),R=(0,w.useCallback)((function(e){return N(I(),e)}),[N,I]),z=(0,w.useCallback)((function(e){x?.(n,e),N(I(),e)}),[n,x,N,I]),B=(0,w.useCallback)((function(e){S?.(n,e),F()}),[n,F,S]),V=(0,w.useCallback)((function(){P(I(),[r.absX+r.width/2,r.absY])}),[P,I,r]),H=(0,w.useCallback)((function(){F()}),[F]);return(0,G.jsxs)(Xz.g,{transform:f,children:[(0,G.jsx)(Xz.rect,{width:Az(p,(function(e){return Math.max(e,0)})),height:Az(s,(function(e){return Math.max(e,0)})),rx:h,ry:h,fill:n.fill??o,strokeWidth:g,stroke:a,focusable:T,tabIndex:T?0:void 0,"aria-label":E?E(n):void 0,"aria-labelledby":D?D(n):void 0,"aria-describedby":O?O(n):void 0,"aria-disabled":k?k(n):void 0,"aria-hidden":A?A(n):void 0,onMouseEnter:y?z:void 0,onMouseMove:y?R:void 0,onMouseLeave:y?B:void 0,onClick:y?L:void 0,onFocus:y&&T?V:void 0,onBlur:y&&T?H:void 0,"data-testid":`bar.item.`+n.id+`.`+n.index}),v&&(0,G.jsx)(J0,{x:u,y:d,textAnchor:m,dominantBaseline:`central`,fillOpacity:l,style:y6({},j.labels.text,{pointerEvents:`none`,fill:c}),children:_})]})},E6=[`color`,`label`],D6={indexBy:`id`,keys:[`value`],groupMode:`stacked`,layout:`vertical`,valueScale:{type:`linear`,nice:!0,round:!1},indexScale:{type:`band`,round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:`formattedValue`,labelPosition:`middle`,labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:`labels.text.fill`},colorBy:`id`,colors:{scheme:`nivo`},borderRadius:0,borderWidth:0,borderColor:{from:`color`},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=b6(e,E6);return(0,G.jsx)(CH,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+` - `+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},O6=y6({},D6,{layers:[`grid`,`axes`,`bars`,`totals`,`markers`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:T6,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:`default`,role:`img`,isFocusable:!1}),k6=y6({},D6,{layers:[`grid`,`axes`,`bars`,`totals`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,a=n.width,o=n.x,s=n.y,c=t.borderColor,l=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,p=t.labelStyle,m=t.labelX,h=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=c,e.lineWidth=u),e.beginPath(),v6(e,o,s,a,i,Math.min(l,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline=`middle`,e.textAlign=g===`middle`?`center`:g,U0(e,p,d,o+m,s+h))},pixelRatio:typeof window<`u`&&(x6=window.devicePixelRatio)!=null?x6:1}),A6=function(e,t,n,r,i,a){return v4(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},j6=function(e,t){return e.map((function(e){return y6({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},M6=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},N6=function(e){return[e,Number(e)]};function P6(e,t,n,r){return e===void 0&&(e=D6.layout),n===void 0&&(n=D6.labelPosition),r===void 0&&(r=D6.labelOffset),function(i,a){var o=r*(t?-1:1);if(e===`horizontal`){var s=i/2;return n===`start`?s=t?i:0:n===`end`&&(s=t?0:i),{labelX:s+o,labelY:a/2,textAnchor:n===`middle`?`middle`:t?`end`:`start`}}var c=a/2;return n===`start`?c=t?0:a:n===`end`&&(c=t?a:0),{labelX:i/2,labelY:c-o,textAnchor:`middle`}}}var F6=[`layout`,`width`,`height`,`padding`,`innerPadding`,`valueScale`,`indexScale`,`hiddenIds`],I6=function(e,t){return e>t},L6=function(e,t){return e<t},R6=function(e,t){return Array.from(` `.repeat(t-e),(function(t,n){return e+n}))},z6=function(e){return I6(e,0)?0:e},B6=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,m=e.margin,h=n?L6:I6,g=i.map(M6),_=[];return d.forEach((function(e,n){return R6(0,f.domain().length).forEach((function(l){var d,v=N6(i[l][e]),y=v[0],b=v[1],x=s(i[l]),S=(f(x)??0)+t*n+u*n,C=h(d=b,0)?p(d)??0:r,w=function(e,t){return h(e,0)?r-t:(p(e)??0)-r}(b,C),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:t,height:w,color:o(T),label:c(T)})}))})),_},V6=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,m=e.margin,h=n?L6:I6,g=i.map(M6),_=[];return l.forEach((function(e,n){return R6(0,p.domain().length).forEach((function(l){var u,v=N6(i[l][e]),y=v[0],b=v[1],x=o(i[l]),S=h(u=b,0)?r:f(u)??0,C=(p(x)??0)+t*n+d*n,w=function(e,t){return h(e,0)?(f(e)??0)-r:r-t}(b,S),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:w,height:t,color:s(T),label:c(T)})}))})),_},H6=function(e){var t,n,r=e.layout,i=e.width,a=e.height,o=e.padding,s=o===void 0?0:o,c=e.innerPadding,l=c===void 0?0:c,u=e.valueScale,d=e.indexScale,f=e.hiddenIds,p=f===void 0?[]:f,m=b6(e,F6),h=m.keys.filter((function(e){return!p.includes(e)})),g=j6(m.data,h),_=r===`vertical`?[`y`,`x`,i]:[`x`,`y`,a],v=_[0],y=_[1],b=_[2],x=A6(g,m.getIndex,s,d,b,y),S=u.min===`auto`?z6:function(e){return e},C=g.reduce((function(e,t){return[].concat(e,h.map((function(e){return t[e]})))}),[]).filter(Boolean),w=v4(u,{all:C,min:S(Math.min.apply(Math,C)),max:(n=Math.max.apply(Math,C),isFinite(n)?n:0)},v===`x`?i:a,v),T=r===`vertical`?[x,w]:[w,x],E=T[0],D=T[1],O=(x.bandwidth()-l*(h.length-1))/h.length,k=[y6({},m,{data:g,keys:h,innerPadding:l,xScale:E,yScale:D}),O,(t=u.reverse)!=null&&t,w(0)??0];return{xScale:E,yScale:D,bars:O>0?r===`vertical`?B6.apply(void 0,k):V6.apply(void 0,k):[]}},U6=[`data`,`layout`,`width`,`height`,`padding`,`valueScale`,`indexScale`,`hiddenIds`],W6=function(e){var t;return e.some(Array.isArray)?W6((t=[]).concat.apply(t,e)):e},G6=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(e){return l.domain().forEach((function(c,p){var m=e[p],h=l(a(m.data))??0,g=(function(e){return u(e[+!n])}(m)??0)+.5*s,_=function(e,t){return(u(e[+!!n])??0)-t}(m,g)-s,v=N6(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:M6(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:h,y:g,absX:d.left+h,absY:d.top+g,width:t,height:_,color:i(x),label:o(x)})}))})),f},K6=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(e){return u.domain().forEach((function(c,p){var m=e[p],h=u(a(m.data))??0,g=(function(e){return l(e[+!!n])}(m)??0)+.5*s,_=function(e,t){return(l(e[+!n])??0)-t}(m,g)-s,v=N6(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:M6(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:g,y:h,absX:d.left+g,absY:d.top+h,width:_,height:t,color:i(x),label:o(x)})}))})),f},q6=function(e){var t,n,r=e.data,i=e.layout,a=e.width,o=e.height,s=e.padding,c=s===void 0?0:s,l=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,p=b6(e,U6),m=p.keys.filter((function(e){return!f.includes(e)})),h=vK().keys(m).offset(yK)(j6(r,m)),g=i===`vertical`?[`y`,`x`,a]:[`x`,`y`,o],_=g[0],v=g[1],y=g[2],b=A6(r,p.getIndex,c,u,y,v),x=(n=W6(h),l.type===`log`?n.filter((function(e){return e!==0})):n),S=v4(l,{all:x,min:Math.min.apply(Math,x),max:Math.max.apply(Math,x)},_===`x`?a:o,_),C=i===`vertical`?[b,S]:[S,b],w=C[0],T=C[1],E=p.innerPadding>0?p.innerPadding:0,D=b.bandwidth(),O=[y6({},p,{innerPadding:E,stackedData:h,xScale:w,yScale:T}),D,(t=l.reverse)!=null&&t];return{xScale:w,yScale:T,bars:D>0?i===`vertical`?G6.apply(void 0,O):K6.apply(void 0,O):[]}},J6=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=j0(o??(r===`indexes`?`indexValue`:`id`));return r===`indexes`?function(e,t,n){var r=(0,e4.default)(e.map((function(e){return{id:e.data.indexValue??``,label:n(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return t===`horizontal`&&r.reverse(),r}(t,a,c):function(e,t,n,r,i,a){var o=(0,e4.default)(e.map((function(e){return{id:e.data.id,label:a(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return(t===`vertical`&&r===`stacked`&&n===`column`&&!0!==i||t===`horizontal`&&r===`stacked`&&!0===i)&&o.reverse(),o}(t,a,n,i,s,c)},Y6=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},X6=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Z6=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Q6=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},$6=function(e){var t,n=e.indexBy,r=n===void 0?D6.indexBy:n,i=e.keys,a=i===void 0?D6.keys:i,o=e.label,s=o===void 0?D6.label:o,c=e.tooltipLabel,l=c===void 0?D6.tooltipLabel:c,u=e.valueFormat,d=e.colors,f=d===void 0?D6.colors:d,p=e.colorBy,m=p===void 0?D6.colorBy:p,h=e.borderColor,g=h===void 0?D6.borderColor:h,_=e.labelTextColor,v=_===void 0?D6.labelTextColor:_,y=e.groupMode,b=y===void 0?D6.groupMode:y,x=e.layout,S=x===void 0?D6.layout:x,C=e.data,T=e.margin,E=e.width,D=e.height,O=e.padding,k=O===void 0?D6.padding:O,A=e.innerPadding,j=A===void 0?D6.innerPadding:A,M=e.valueScale,N=M===void 0?D6.valueScale:M,P=e.indexScale,F=P===void 0?D6.indexScale:P,I=e.initialHiddenIds,L=I===void 0?D6.initialHiddenIds:I,R=e.enableLabel,z=R===void 0?D6.enableLabel:R,B=e.labelSkipWidth,V=B===void 0?D6.labelSkipWidth:B,H=e.labelSkipHeight,U=H===void 0?D6.labelSkipHeight:H,ee=e.legends,W=ee===void 0?D6.legends:ee,te=e.legendLabel,ne=e.totalsOffset,re=ne===void 0?D6.totalsOffset:ne,ie=(0,w.useState)(L??[]),ae=ie[0],oe=ie[1],se=(0,w.useCallback)((function(e){oe((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),ce=M0(r),le=M0(s),ue=M0(l),de=A0(u),fe=gH(),pe=t6(f,m),me=$3(g,fe),he=$3(v,fe),ge=(b===`grouped`?H6:q6)({layout:S,data:C,getIndex:ce,keys:a,width:E,height:D,getColor:pe,padding:k,innerPadding:j,valueScale:N,indexScale:F,hiddenIds:ae,formatValue:de,getTooltipLabel:ue,margin:T}),_e=ge.bars,ve=ge.xScale,ye=ge.yScale,be=(0,w.useMemo)((function(){return _e.filter((function(e){return e.data.value!==null})).map((function(e,t){return y6({},e,{index:t})}))}),[_e]),xe=(0,w.useCallback)((function(e){var t=e.width,n=e.height;return!!z&&!(V>0&&t<V)&&!(U>0&&n<U)}),[z,V,U]),Se=(0,w.useMemo)((function(){return a.map((function(e){var t=_e.find((function(t){return t.data.id===e}));return y6({},t,{data:y6({id:e},t?.data,{hidden:ae.includes(e)})})}))}),[ae,a,_e]),Ce=(t=N.reverse)!=null&&t;return{bars:_e,barsWithValue:be,xScale:ve,yScale:ye,getIndex:ce,getLabel:le,getTooltipLabel:ue,formatValue:de,getColor:pe,getBorderColor:me,getLabelColor:he,shouldRenderBarLabel:xe,hiddenIds:ae,toggleSerie:se,legendsWithData:(0,w.useMemo)((function(){return W.map((function(e){return[e,J6({bars:e.dataFrom===`keys`?Se:_e,direction:e.direction,from:e.dataFrom,groupMode:b,layout:S,legendLabel:te,reverse:Ce})]}))}),[W,Se,_e,b,S,te,Ce]),barTotals:(0,w.useMemo)((function(){return function(e,t,n,r,i,a,o){r===void 0&&(r=D6.layout),i===void 0&&(i=D6.groupMode);var s=[];if(e.length===0)return s;var c=new Map,l=e[0].width,u=e[0].height;if(i===`stacked`){var d=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;Y6(c,n,Number(r)),X6(d,n,Number(r))})),d.forEach((function(e,i){var d,f,p,m=c.get(i)||0;r===`vertical`?(d=t(i),f=n(e),p=n(e/2)):(d=t(e),f=n(i),p=t(e/2)),d+=r===`vertical`?l/2:a,f+=r===`vertical`?-a:u/2,s.push({key:`total_`+i,x:d,y:f,value:m,formattedValue:o(m),animationOffset:p})}))}else if(i===`grouped`){var f=new Map,p=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;Y6(c,n,Number(r)),Z6(f,n,Number(r)),Q6(p,n)})),f.forEach((function(e,i){var d,f,m,h=c.get(i)||0,g=p.get(i);r===`vertical`?(d=t(i),f=n(e),m=n(e/2)):(d=t(e),f=n(i),m=t(e/2)),d+=r===`vertical`?g*l/2:a,f+=r===`vertical`?-a:g*u/2,s.push({key:`total_`+i,x:d,y:f,value:h,formattedValue:o(h),animationOffset:m})}))}return s}(_e,ve,ye,S,b,re,de)}),[_e,ve,ye,S,b,re,de])}},e8=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?O6.layout:i,o=gH();return Cz(t,{keys:function(e){return e.key},from:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})((function(e,t){return(0,G.jsx)(Xz.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:y6({},o.labels.text,{pointerEvents:`none`}),fontWeight:`bold`,fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a===`vertical`?`middle`:`start`,alignmentBaseline:a===`vertical`?`alphabetic`:`middle`,children:t.formattedValue},t.key)}))},t8=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],n8=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.height,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,_=g===void 0?O6.axisBottom:g,v=e.axisLeft,y=v===void 0?O6.axisLeft:v,b=e.enableGridX,x=b===void 0?O6.enableGridX:b,S=e.enableGridY,C=S===void 0?O6.enableGridY:S,T=e.gridXValues,E=e.gridYValues,D=e.layers,O=D===void 0?O6.layers:D,k=e.barComponent,A=k===void 0?O6.barComponent:k,j=e.enableLabel,M=j===void 0?O6.enableLabel:j,N=e.label,P=e.labelSkipWidth,F=P===void 0?O6.labelSkipWidth:P,I=e.labelSkipHeight,L=I===void 0?O6.labelSkipHeight:I,R=e.labelTextColor,z=e.labelPosition,B=z===void 0?O6.labelPosition:z,V=e.labelOffset,H=V===void 0?O6.labelOffset:V,U=e.markers,ee=U===void 0?O6.markers:U,W=e.colorBy,te=e.colors,ne=e.defs,re=ne===void 0?O6.defs:ne,ie=e.fill,ae=ie===void 0?O6.fill:ie,oe=e.borderRadius,se=oe===void 0?O6.borderRadius:oe,ce=e.borderWidth,le=ce===void 0?O6.borderWidth:ce,ue=e.borderColor,de=e.annotations,fe=de===void 0?O6.annotations:de,pe=e.legendLabel,me=e.tooltipLabel,he=e.valueFormat,ge=e.isInteractive,_e=ge===void 0?O6.isInteractive:ge,ve=e.tooltip,ye=ve===void 0?O6.tooltip:ve,be=e.onClick,xe=e.onMouseEnter,Se=e.onMouseLeave,Ce=e.legends,we=e.role,Te=we===void 0?O6.role:we,Ee=e.ariaLabel,De=e.ariaLabelledBy,Oe=e.ariaDescribedBy,ke=e.isFocusable,Ae=ke===void 0?O6.isFocusable:ke,je=e.barAriaLabel,Me=e.barAriaLabelledBy,Ne=e.barAriaDescribedBy,Pe=e.barAriaHidden,Fe=e.barAriaDisabled,Ie=e.initialHiddenIds,Le=e.enableTotals,Re=Le===void 0?O6.enableTotals:Le,ze=e.totalsOffset,Be=ze===void 0?O6.totalsOffset:ze,Ve=e.forwardedRef,He=G1(),Ue=He.animate,We=He.config,Ge=D0(o,s,a),Ke=Ge.outerWidth,qe=Ge.outerHeight,Je=Ge.margin,Ye=Ge.innerWidth,Xe=Ge.innerHeight,Ze=$6({indexBy:r,label:N,tooltipLabel:me,valueFormat:he,colors:te,colorBy:W,borderColor:ue,labelTextColor:R,groupMode:c,layout:l,data:n,keys:i,margin:Je,width:Ye,height:Xe,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:M,labelSkipWidth:F,labelSkipHeight:L,legends:Ce,legendLabel:pe,initialHiddenIds:Ie,totalsOffset:Be}),Qe=Ze.bars,$e=Ze.barsWithValue,et=Ze.xScale,tt=Ze.yScale,nt=Ze.getLabel,rt=Ze.getTooltipLabel,it=Ze.getBorderColor,at=Ze.getLabelColor,ot=Ze.shouldRenderBarLabel,st=Ze.toggleSerie,ct=Ze.legendsWithData,lt=Ze.barTotals,ut=Ze.getColor,dt=P6(l,(t=u?.reverse)!=null&&t,B,H),ft=Cz($e,{keys:function(e){return e.key},from:function(e){return y6({borderColor:it(e),color:e.color,height:0,labelColor:at(e),labelOpacity:0},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:{height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0})},enter:function(e){return y6({borderColor:it(e),color:e.color,height:e.height,labelColor:at(e),labelOpacity:1},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},update:function(e){return y6({borderColor:it(e),color:e.color,height:e.height,labelColor:at(e),labelOpacity:1},dt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},leave:function(e){return y6({borderColor:it(e),color:e.color,height:0,labelColor:at(e),labelOpacity:0},dt(e.width,e.height),{labelY:0,transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:y6({},dt(e.width,e.height),{labelX:0,height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0}))},config:We,immediate:!Ue,initial:Ue?void 0:null}),pt=(0,w.useMemo)((function(){return{borderRadius:se,borderWidth:le,enableLabel:M,isInteractive:_e,labelSkipWidth:F,labelSkipHeight:L,onClick:be,onMouseEnter:xe,onMouseLeave:Se,getTooltipLabel:rt,tooltip:ye,isFocusable:Ae,ariaLabel:je,ariaLabelledBy:Me,ariaDescribedBy:Ne,ariaHidden:Pe,ariaDisabled:Fe}}),[se,le,M,rt,_e,L,F,be,xe,Se,ye,Ae,je,Me,Ne,Pe,Fe]),mt=B0(re,Qe,ae,{dataKey:`data`,targetKey:`data.fill`}),ht={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};O.includes(`annotations`)&&(ht.annotations=(0,G.jsx)(S6,{bars:Qe,annotations:fe},`annotations`)),O.includes(`axes`)&&(ht.axes=(0,G.jsx)(M4,{xScale:et,yScale:tt,width:Ye,height:Xe,top:m,right:h,bottom:_,left:y},`axes`)),O.includes(`bars`)&&(ht.bars=(0,G.jsx)(w.Fragment,{children:ft((function(e,t){return(0,w.createElement)(A,y6({},pt,{bar:t,style:e,shouldRenderLabel:ot(t),label:nt(t.data)}))}))},`bars`)),O.includes(`grid`)&&(ht.grid=(0,G.jsx)(F4,{width:Ye,height:Xe,xScale:x?et:null,yScale:C?tt:null,xValues:T,yValues:E},`grid`)),O.includes(`legends`)&&(ht.legends=(0,G.jsx)(C6,{width:Ye,height:Xe,legends:ct,toggleSerie:st},`legends`)),O.includes(`markers`)&&(ht.markers=(0,G.jsx)(S0,{markers:ee,width:Ye,height:Xe,xScale:et,yScale:tt},`markers`)),O.includes(`totals`)&&Re&&(ht.totals=(0,G.jsx)(e8,{data:lt,springConfig:We,animate:Ue,layout:l},`totals`));var gt=y6({},pt,{margin:Je,width:o,height:s,innerWidth:Ye,innerHeight:Xe,bars:Qe,legendData:ct,enableLabel:M,xScale:et,yScale:tt,tooltip:ye,getTooltipLabel:rt,onClick:be,onMouseEnter:xe,onMouseLeave:Se,getColor:ut});return(0,G.jsx)(y0,{width:Ke,height:qe,margin:Je,defs:mt,role:Te,ariaLabel:Ee,ariaLabelledBy:De,ariaDescribedBy:Oe,isFocusable:Ae,ref:Ve,children:O.map((function(e,t){return typeof e==`function`?(0,G.jsx)(w.Fragment,{children:(0,w.createElement)(e,gt)},t):ht?.[e]??null}))})},r8=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?O6.isInteractive:n,i=e.animate,a=i===void 0?O6.animate:i,o=e.motionConfig,s=o===void 0?O6.motionConfig:o,c=e.theme,l=e.renderWrapper,u=b6(e,t8);return(0,G.jsx)(J1,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(n8,y6({},u,{isInteractive:r,forwardedRef:t}))})})),i8=[`isInteractive`,`renderWrapper`,`theme`],a8=function(e,t,n,r){return e.find((function(e){return F0(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},o8=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.height,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,_=g===void 0?k6.axisBottom:g,v=e.axisLeft,y=v===void 0?k6.axisLeft:v,b=e.enableGridX,x=b===void 0?k6.enableGridX:b,S=e.enableGridY,C=S===void 0?k6.enableGridY:S,T=e.gridXValues,E=e.gridYValues,D=e.labelPosition,O=D===void 0?k6.labelPosition:D,k=e.labelOffset,A=k===void 0?k6.labelOffset:k,j=e.layers,M=j===void 0?k6.layers:j,N=e.renderBar,P=N===void 0?k6.renderBar:N,F=e.enableLabel,I=F===void 0?k6.enableLabel:F,L=e.label,R=e.labelSkipWidth,z=R===void 0?k6.labelSkipWidth:R,B=e.labelSkipHeight,V=B===void 0?k6.labelSkipHeight:B,H=e.labelTextColor,U=e.colorBy,ee=e.colors,W=e.borderRadius,te=W===void 0?k6.borderRadius:W,ne=e.borderWidth,re=ne===void 0?k6.borderWidth:ne,ie=e.borderColor,ae=e.annotations,oe=ae===void 0?k6.annotations:ae,se=e.legendLabel,ce=e.tooltipLabel,le=e.valueFormat,ue=e.isInteractive,de=ue===void 0?k6.isInteractive:ue,fe=e.tooltip,pe=fe===void 0?k6.tooltip:fe,me=e.onClick,he=e.onMouseEnter,ge=e.onMouseLeave,_e=e.legends,ve=e.pixelRatio,ye=ve===void 0?k6.pixelRatio:ve,be=e.role,xe=e.forwardedRef,Se=e.enableTotals,Ce=Se===void 0?k6.enableTotals:Se,we=e.totalsOffset,Te=we===void 0?k6.totalsOffset:we,Ee=(0,w.useRef)(null),De=gH(),Oe=D0(o,s,a),ke=Oe.margin,Ae=Oe.innerWidth,je=Oe.innerHeight,Me=Oe.outerWidth,Ne=Oe.outerHeight,Pe=$6({indexBy:r,label:L,tooltipLabel:ce,valueFormat:le,colors:ee,colorBy:U,borderColor:ie,labelTextColor:H,groupMode:c,layout:l,data:n,keys:i,margin:ke,width:Ae,height:je,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:I,labelSkipWidth:z,labelSkipHeight:V,legends:_e,legendLabel:se,totalsOffset:Te}),Fe=Pe.bars,Ie=Pe.barsWithValue,Le=Pe.xScale,Re=Pe.yScale,ze=Pe.getLabel,Be=Pe.getTooltipLabel,Ve=Pe.getBorderColor,He=Pe.getLabelColor,Ue=Pe.shouldRenderBarLabel,We=Pe.legendsWithData,Ge=Pe.barTotals,Ke=Pe.getColor,qe=MH(),Je=qe.showTooltipFromEvent,Ye=qe.hideTooltip,Xe=w3({annotations:C3({data:Fe,annotations:oe,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),Ze=(0,w.useMemo)((function(){return{borderRadius:te,borderWidth:re,isInteractive:de,isFocusable:!1,labelSkipWidth:z,labelSkipHeight:V,margin:ke,width:o,height:s,innerWidth:Ae,innerHeight:je,bars:Fe,legendData:We,enableLabel:I,xScale:Le,yScale:Re,tooltip:pe,getTooltipLabel:Be,onClick:me,onMouseEnter:he,onMouseLeave:ge,getColor:Ke}}),[te,re,de,z,V,ke,o,s,Ae,je,Fe,We,I,Le,Re,pe,Be,me,he,ge,Ke]),Qe=A0(le),$e=P6(l,(t=u?.reverse)!=null&&t,O,A);(0,w.useEffect)((function(){if(Ee.current){Ee.current.width=Me*ye,Ee.current.height=Ne*ye;var e=Ee.current.getContext(`2d`);e.scale(ye,ye),e.fillStyle=De.background,e.fillRect(0,0,Me,Ne),e.translate(ke.left,ke.top),M.forEach((function(t){t===`grid`?typeof De.grid.line.strokeWidth==`number`&&De.grid.line.strokeWidth>0&&(e.lineWidth=De.grid.line.strokeWidth,e.strokeStyle=De.grid.line.stroke,x&&R4(e,{width:Ae,height:je,scale:Le,axis:`x`,values:T}),C&&R4(e,{width:Ae,height:je,scale:Re,axis:`y`,values:E})):t===`axes`?L4(e,{xScale:Le,yScale:Re,width:Ae,height:je,top:m,right:h,bottom:_,left:y,theme:De}):t===`bars`?(H0(e,De.text),Ie.forEach((function(t){P(e,y6({bar:t,borderColor:Ve(t),borderRadius:te,borderWidth:re,label:ze(t.data),shouldRenderLabel:Ue(t),labelStyle:y6({},De.labels.text,{fill:He(t)})},$e(t.width,t.height)))}))):t===`legends`?We.forEach((function(t){var n=t[0],r=t[1];_6(e,y6({},n,{data:r,containerWidth:Ae,containerHeight:je,theme:De}))})):t===`annotations`?N3(e,{annotations:Xe,theme:De}):t===`totals`&&Ce?function(e,t,n,r){r===void 0&&(r=k6.layout),H0(e,n.labels.text),e.textBaseline=r===`vertical`?`alphabetic`:`middle`,e.textAlign=r===`vertical`?`center`:`start`,t.forEach((function(t){U0(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,Ge,De,l):typeof t==`function`&&t(e,Ze)})),e.save()}}),[_,y,h,m,Ie,te,re,Xe,x,C,Ve,ze,He,T,E,c,s,je,Ae,Ze,M,l,We,ke.left,ke.top,Ne,Me,ye,P,Le,Re,Ue,De,o,Ge,Ce,Qe,$e]);var et=(0,w.useCallback)((function(e){if(Fe&&Ee.current){var t=I0(Ee.current,e),n=t[0],r=t[1],i=a8(Fe,ke,n,r);i===void 0?Ye():(Je((0,w.createElement)(pe,y6({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),e.type===`mouseenter`&&he?.(i.data,e))}}),[Ye,ke,he,Fe,Je,pe]),tt=(0,w.useCallback)((function(e){if(Fe&&Ee.current){Ye();var t=I0(Ee.current,e),n=t[0],r=t[1],i=a8(Fe,ke,n,r);i&&ge?.(i.data,e)}}),[Ye,ke,ge,Fe]),nt=(0,w.useCallback)((function(e){if(Fe&&Ee.current){var t=I0(Ee.current,e),n=t[0],r=t[1],i=a8(Fe,ke,n,r);i!==void 0&&me?.(y6({},i.data,{color:i.color}),e)}}),[ke,me,Fe]);return(0,G.jsx)(`canvas`,{ref:V0(Ee,xe),width:Me*ye,height:Ne*ye,style:{width:Me,height:Ne,cursor:de?`auto`:`normal`},onMouseEnter:de?et:void 0,onMouseMove:de?et:void 0,onMouseLeave:de?tt:void 0,onClick:de?nt:void 0,role:be})},s8=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=b6(e,i8);return(0,G.jsx)(J1,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,G.jsx)(o8,y6({},a,{isInteractive:n,forwardedRef:t}))})})),c8=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],l8=(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=b6(e,c8);return(0,G.jsx)(Z1,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(r8,y6({},o,{width:n,height:r,ref:t}))}})})),u8=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=b6(e,u8);return(0,G.jsx)(Z1,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(s8,y6({},o,{width:n,height:r,ref:t}))}})}));function d8(){return d8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d8.apply(null,arguments)}var f8={pointerEvents:`none`},p8=function(e){var t=e.label,n=e.style,r=gH();return(0,G.jsx)(Xz.g,{transform:n.transform,opacity:n.progress,style:f8,children:(0,G.jsx)(J0,{textAnchor:`middle`,dominantBaseline:`central`,style:d8({},r.labels.text,{fill:n.textColor}),children:t})})},m8=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},h8=function(e,t){return e.filter((function(e){return Math.abs(s0(e.arc.endAngle-e.arc.startAngle))>=t}))},g8={startAngle:{enter:function(e){return d8({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return d8({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return d8({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return d8({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return d8({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return d8({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return d8({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return d8({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return d8({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return d8({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return d8({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return d8({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return d8({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return d8({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return d8({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return d8({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},_8=function(e,t){return(0,w.useMemo)((function(){var n=g8[e];return{enter:function(e){return d8({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return d8({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return d8({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},v8=function(e,t){return l0(c0(e)-Math.PI/2,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},y8=function(e){return function(t,n,r,i){return Az([t,n,r,i],(function(t,n,r,i){var a=v8({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return`translate(`+a.x+`,`+a.y+`)`}))}},b8=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n=`innerRadius`);var i=G1(),a=i.animate,o=i.config,s=_8(n,r);return{transition:Cz(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:y8(t)}},x8=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,a=i===void 0?0:i,o=e.computeExtraProps,s=o===void 0?function(){return{}}:o;return(0,w.useMemo)((function(){return h8(t,a).map((function(e){var t=v8(e.arc,r);return d8({},s(e),{x:t.x,y:t.y,data:e})}))}),[t,r,a,s])},S8=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.skipRadius,c=e.textColor,l=e.component,u=l===void 0?p8:l,d=M0(i),f=$3(c,gH()),p=b8((0,w.useMemo)((function(){return n.filter((function(e){var t=Math.abs(s0(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=o&&n>=s}))}),[n,o,s]),a,r),m=p.transition,h=p.interpolate,g=u;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:m((function(e,t){return(0,w.createElement)(g,{key:t.id,datum:t,label:d(t),style:{progress:e.progress,transform:h(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:f(t)}})}))})},C8=function(e,t,n){H0(e,n.labels.text),e.textAlign=`center`,e.textBaseline=`middle`,t.forEach((function(t){U0(e,d8({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)}))},w8=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=M0(i),s=$3(a,gH());return x8({data:t,offset:n,skipAngle:r,computeExtraProps:(0,w.useCallback)((function(e){return{label:o(e),textColor:s(e)}}),[o,s])})},T8=function(e){var t=e.label,n=e.style,r=gH();return(0,G.jsxs)(Xz.g,{opacity:n.opacity,children:[(0,G.jsx)(Xz.path,{fill:`none`,stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,G.jsx)(J0,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:`central`,style:d8({},r.labels.text,{fill:n.textColor}),children:t})]})},E8=function(e){var t=m8(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?`start`:`end`},D8=function(e,t,n,r){var i,a,o=m8(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=l0(o,e.outerRadius+t),c=l0(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i=`after`,a={x:c.x+r,y:c.y}):(i=`before`,a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},O8=SG().x((function(e){return e.x})).y((function(e){return e.y})),k8=function(e,t,n,r,i,a,o){return Az([e,t,n,r,i,a,o],(function(e,t,n,r,i,a,o){var s=D8({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o).points;return O8(s)}))},A8=function(e,t,n,r){return Az([e,t,n,r],(function(e,t,n,r){return E8({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})}))},j8=function(e,t,n,r,i,a,o,s){return Az([e,t,n,r,i,a,o,s],(function(e,t,n,r,i,a,o,s){var c=D8({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o),l=c.points,u=c.side,d=l[2];return u===`before`?d.x-=s:d.x+=s,`translate(`+d.x+`,`+d.y+`)`}))},M8=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,l=e.linkColor,u=e.textColor,d=G1(),f=d.animate,p=d.config,m=gH(),h=$3(l,m),g=$3(u,m),_=function(e,t){return(0,w.useMemo)((function(){return h8(e,t)}),[e,t])}(t,s),v=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,a=e.getLinkColor,o=e.getTextColor;return(0,w.useMemo)((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(e),textColor:o(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:a(e),textColor:o(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(e),textColor:o(e),opacity:0}}}}),[n,r,i,a,o,t])}({offset:r,diagonalLength:i,straightLength:a,textOffset:c,getLinkColor:h,getTextColor:g});return{transition:Cz(_,{keys:function(e){return e.id},initial:v.update,from:v.enter,enter:v.update,update:v.update,leave:v.leave,config:p,immediate:!f}),interpolateLink:k8,interpolateTextAnchor:A8,interpolateTextPosition:j8}},N8=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?T8:f,m=M0(r),h=M8({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),g=h.transition,_=h.interpolateLink,v=h.interpolateTextAnchor,y=h.interpolateTextPosition,b=p;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:g((function(e,t){return(0,w.createElement)(b,{key:t.id,datum:t,label:m(t),style:d8({},e,{thickness:c,path:_(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})},P8=function(e,t,n,r){e.textBaseline=`middle`,H0(e,n.labels.text),t.forEach((function(t){e.textAlign=d0.canvas.align[t.textAnchor],U0(e,d8({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach((function(t,n){n===0?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)})),e.stroke()}))},F8=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,a=i===void 0?.5:i,o=e.diagonalLength,s=e.straightLength,c=e.computeExtraProps,l=c===void 0?function(){return{}}:c,u=(0,w.useMemo)((function(){return t.filter((function(e){return Math.abs(s0(e.arc.endAngle-e.arc.startAngle))>=r})).map((function(e){return d8({},D8(e.arc,a,o,s),{data:e})}))}),[t,r,a,o,s]);return(0,w.useMemo)((function(){return u.map((function(e){return d8({},l(e),e)}))}),[u,l])},I8=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,a=e.straightLength,o=e.textOffset,s=o===void 0?0:o,c=e.label,l=e.linkColor,u=e.textColor,d=M0(c),f=gH(),p=$3(l,f),m=$3(u,f);return F8({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:(0,w.useCallback)((function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return e.side===`before`?(n.x-=s,t=`end`):(n.x+=s,t=`start`),d8({},n,{label:d(e.data),linkColor:p(e.data),textAnchor:t,textColor:m(e.data)})}),[d,p,m,s])})},L8=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=(0,w.useCallback)((function(e){return r?.(t,e)}),[r,t]),c=(0,w.useCallback)((function(e){return i?.(t,e)}),[i,t]),l=(0,w.useCallback)((function(e){return a?.(t,e)}),[a,t]),u=(0,w.useCallback)((function(e){return o?.(t,e)}),[o,t]);return(0,G.jsx)(Xz.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0,"data-testid":`arc.`+t.id})},R8=function(e,t,n,r,i){return Az([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},z8=function(e,t,n){t===void 0&&(t=`innerRadius`);var r=G1(),i=r.animate,a=r.config,o=_8(t,n);return{transition:Cz(e,{keys:function(e){return e.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:R8}},B8=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?L8:d,p=$3(a,gH()),m=z8(n,u,{enter:function(e){return{opacity:0,color:e.color,borderColor:p(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:p(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:p(e)}}}),h=m.transition,g=m.interpolate,_=f;return(0,G.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:h((function(e,t){return(0,w.createElement)(_,{key:t.id,datum:t,style:d8({},e,{borderWidth:i,path:g(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})}))})},V8=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=l0(o0(r),n);o.push([s.x,s.y]);var c=l0(o0(i),n);o.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=l0(o0(l),n);o.push([u.x,u.y])}o=o.map((function(n){var r=n[0],i=n[1];return[e+r,t+i]})),a&&o.push([e,t]);var d=o.map((function(e){return e[0]})),f=o.map((function(e){return e[1]})),p=Math.min.apply(Math,d),m=Math.max.apply(Math,d),h=Math.min.apply(Math,f);return{points:o,x:p,y:h,width:m-p,height:Math.max.apply(Math,f)-h}},H8=function(e,t,n,r,i,a){var o=N0(i,a,e,t);return o<n&&o>r},U8=function(e,t,n,r,i,a,o){if(H8(e,t,n,r,a,o)){var s=P0(a,o,e,t);return i.find((function(e){var t=e.startAngle,n=e.endAngle;return s>=t&&s<n}))}},W8=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return(0,w.useMemo)((function(){return gG().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(r).padAngle(a)}),[r,a])};function G8(){return G8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G8.apply(null,arguments)}function K8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q8,J8=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return(0,G.jsx)(G.Fragment,{children:r.map((function(e,r){return(0,G.jsx)(h6,G8({},e,{containerWidth:t,containerHeight:n,data:e.data??i,toggleSerie:e.toggleSerie?a:void 0}),r)}))})},$={id:`id`,value:`value`,sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:[`arcs`,`arcLinkLabels`,`arcLabels`,`legends`],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:`color`,modifiers:[[`darker`,1]]},enableArcLabels:!0,arcLabel:`formattedValue`,arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:`labels.text.fill`},enableArcLinkLabels:!0,arcLinkLabel:`id`,arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:`labels.text.fill`},arcLinkLabelsColor:{theme:`axis.ticks.line.stroke`},colors:{scheme:`nivo`},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:`gentle`,transitionMode:`innerRadius`,tooltip:function(e){var t=e.datum;return(0,G.jsx)(CH,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:`img`,pixelRatio:typeof window<`u`&&(q8=window.devicePixelRatio)!=null?q8:1},Y8=[`points`],X8=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.colors,c=s===void 0?$.colors:s,l=M0(r),u=M0(a),d=A0(o),f=t6(c,`id`);return(0,w.useMemo)((function(){return t.map((function(e){var t=l(e),n=u(e),r={id:t,label:e.label??t,hidden:!1,value:n,formattedValue:d(n),data:e};return G8({},r,{color:f(r)})}))}),[t,l,u,d,f])},Z8=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=(0,w.useMemo)((function(){var e=TG().value((function(e){return e.value})).startAngle(o0(n)).endAngle(o0(r)).padAngle(o0(o));return s||e.sortValues(null),e}),[n,r,o,s]),m=(0,w.useMemo)((function(){return{dataWithArc:p(t.filter((function(e){return!d.includes(e.id)}))).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return G8({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?i-l:i,outerRadius:c===e.data.id?a+u:a,thickness:a-i,padAngle:e.padAngle,angle:t,angleDeg:s0(t)}})})),legendData:t.map((function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}}))}}),[p,t,d,c,i,l,a,u]),h=m.legendData,g=(0,w.useRef)(f);return(0,w.useEffect)((function(){typeof g.current==`function`&&g.current(h)}),[g,h]),m},Q8=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=(0,w.useState)(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:(0,w.useCallback)((function(e){n&&n(e),i||s(e)}),[i,n,s])}},$8=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?$.innerRadius:i,o=e.startAngle,s=o===void 0?$.startAngle:o,c=e.endAngle,l=c===void 0?$.endAngle:c,u=e.padAngle,d=u===void 0?$.padAngle:u,f=e.sortByValue,p=f===void 0?$.sortByValue:f,m=e.cornerRadius,h=m===void 0?$.cornerRadius:m,g=e.fit,_=g===void 0?$.fit:g,v=e.activeInnerRadiusOffset,y=v===void 0?$.activeInnerRadiusOffset:v,b=e.activeOuterRadiusOffset,x=b===void 0?$.activeOuterRadiusOffset:b,S=e.activeId,C=e.onActiveIdChange,T=e.defaultActiveId,E=e.forwardLegendData,D=Q8({activeId:S,onActiveIdChange:C,defaultActiveId:T}),O=D.activeId,k=D.setActiveId,A=(0,w.useState)([]),j=A[0],M=A[1],N=(0,w.useMemo)((function(){var e,t=Math.min(n,r)/2,i=t*Math.min(a,1),o=n/2,c=r/2;if(_){var u=V8(o,c,t,s-90,l-90),d=u.points,f=K8(u,Y8),p=Math.min(n/f.width,r/f.height),m={width:f.width*p,height:f.height*p};m.x=(n-m.width)/2,m.y=(r-m.height)/2,o=(o-f.x)/f.width*f.width*p+m.x,c=(c-f.y)/f.height*f.height*p+m.y,e={box:f,ratio:p,points:d},t*=p,i*=p}return{centerX:o,centerY:c,radius:t,innerRadius:i,debug:e}}),[n,r,a,s,l,_]),P=Z8({data:t,startAngle:s,endAngle:l,innerRadius:N.innerRadius,outerRadius:N.radius,padAngle:d,sortByValue:p,activeId:O,activeInnerRadiusOffset:y,activeOuterRadiusOffset:x,hiddenIds:j,forwardLegendData:E}),F=(0,w.useCallback)((function(e){M((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]);return G8({arcGenerator:W8({cornerRadius:h,padAngle:o0(d)}),activeId:O,setActiveId:k,toggleSerie:F},P,N)},e5=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return(0,w.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}}),[t,n,r,i,a,o])},t5=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,m=MH(),h=m.showTooltipFromEvent,g=m.hideTooltip,_=(0,w.useMemo)((function(){if(o)return function(e,t){s?.(e,t)}}),[o,s]),v=(0,w.useMemo)((function(){if(o)return function(e,t){h((0,w.createElement)(f,{datum:e}),t),d(e.id),c?.(e,t)}}),[o,h,d,c,f]),y=(0,w.useMemo)((function(){if(o)return function(e,t){h((0,w.createElement)(f,{datum:e}),t),l?.(e,t)}}),[o,h,l,f]),b=(0,w.useMemo)((function(){if(o)return function(e,t){g(),d(null),u?.(e,t)}}),[o,g,d,u]);return(0,G.jsx)(B8,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:p,onClick:_,onMouseEnter:v,onMouseMove:y,onMouseLeave:b})},n5=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],r5=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?$.sortByValue:s,l=e.layers,u=l===void 0?$.layers:l,d=e.startAngle,f=d===void 0?$.startAngle:d,p=e.endAngle,m=p===void 0?$.endAngle:p,h=e.padAngle,g=h===void 0?$.padAngle:h,_=e.fit,v=_===void 0?$.fit:_,y=e.innerRadius,b=y===void 0?$.innerRadius:y,x=e.cornerRadius,S=x===void 0?$.cornerRadius:x,C=e.activeInnerRadiusOffset,T=C===void 0?$.activeInnerRadiusOffset:C,E=e.activeOuterRadiusOffset,D=E===void 0?$.activeOuterRadiusOffset:E,O=e.width,k=e.height,A=e.margin,j=e.colors,M=j===void 0?$.colors:j,N=e.borderWidth,P=N===void 0?$.borderWidth:N,F=e.borderColor,I=F===void 0?$.borderColor:F,L=e.enableArcLabels,R=L===void 0?$.enableArcLabels:L,z=e.arcLabel,B=z===void 0?$.arcLabel:z,V=e.arcLabelsSkipAngle,H=V===void 0?$.arcLabelsSkipAngle:V,U=e.arcLabelsSkipRadius,ee=U===void 0?$.arcLabelsSkipRadius:U,W=e.arcLabelsTextColor,te=W===void 0?$.arcLabelsTextColor:W,ne=e.arcLabelsRadiusOffset,re=ne===void 0?$.arcLabelsRadiusOffset:ne,ie=e.arcLabelsComponent,ae=e.enableArcLinkLabels,oe=ae===void 0?$.enableArcLinkLabels:ae,se=e.arcLinkLabel,ce=se===void 0?$.arcLinkLabel:se,le=e.arcLinkLabelsSkipAngle,ue=le===void 0?$.arcLinkLabelsSkipAngle:le,de=e.arcLinkLabelsOffset,fe=de===void 0?$.arcLinkLabelsOffset:de,pe=e.arcLinkLabelsDiagonalLength,me=pe===void 0?$.arcLinkLabelsDiagonalLength:pe,he=e.arcLinkLabelsStraightLength,ge=he===void 0?$.arcLinkLabelsStraightLength:he,_e=e.arcLinkLabelsThickness,ve=_e===void 0?$.arcLinkLabelsThickness:_e,ye=e.arcLinkLabelsTextOffset,be=ye===void 0?$.arcLinkLabelsTextOffset:ye,xe=e.arcLinkLabelsTextColor,Se=xe===void 0?$.arcLinkLabelsTextColor:xe,Ce=e.arcLinkLabelsColor,we=Ce===void 0?$.arcLinkLabelsColor:Ce,Te=e.arcLinkLabelComponent,Ee=e.defs,De=Ee===void 0?$.defs:Ee,Oe=e.fill,ke=Oe===void 0?$.fill:Oe,Ae=e.isInteractive,je=Ae===void 0?$.isInteractive:Ae,Me=e.onClick,Ne=e.onMouseEnter,Pe=e.onMouseMove,Fe=e.onMouseLeave,Ie=e.tooltip,Le=Ie===void 0?$.tooltip:Ie,Re=e.activeId,ze=e.onActiveIdChange,Be=e.defaultActiveId,Ve=e.transitionMode,He=Ve===void 0?$.transitionMode:Ve,Ue=e.legends,We=Ue===void 0?$.legends:Ue,Ge=e.forwardLegendData,Ke=e.role,qe=Ke===void 0?$.role:Ke,Je=e.forwardedRef,Ye=D0(O,k,A),Xe=Ye.outerWidth,Ze=Ye.outerHeight,Qe=Ye.margin,$e=Ye.innerWidth,et=Ye.innerHeight,tt=$8({data:X8({data:t,id:r,value:a,valueFormat:o,colors:M}),width:$e,height:et,fit:v,innerRadius:b,startAngle:f,endAngle:m,padAngle:g,sortByValue:c,cornerRadius:S,activeInnerRadiusOffset:T,activeOuterRadiusOffset:D,activeId:Re,onActiveIdChange:ze,defaultActiveId:Be,forwardLegendData:Ge}),nt=tt.dataWithArc,rt=tt.legendData,it=tt.arcGenerator,at=tt.centerX,ot=tt.centerY,st=tt.radius,ct=tt.innerRadius,lt=tt.setActiveId,ut=tt.toggleSerie,dt=B0(De,nt,ke),ft={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes(`arcs`)&&(ft.arcs=(0,G.jsx)(t5,{center:[at,ot],data:nt,arcGenerator:it,borderWidth:P,borderColor:I,isInteractive:je,onClick:Me,onMouseEnter:Ne,onMouseMove:Pe,onMouseLeave:Fe,setActiveId:lt,tooltip:Le,transitionMode:He},`arcs`)),oe&&u.includes(`arcLinkLabels`)&&(ft.arcLinkLabels=(0,G.jsx)(N8,{center:[at,ot],data:nt,label:ce,skipAngle:ue,offset:fe,diagonalLength:me,straightLength:ge,strokeWidth:ve,textOffset:be,textColor:Se,linkColor:we,component:Te},`arcLinkLabels`)),R&&u.includes(`arcLabels`)&&(ft.arcLabels=(0,G.jsx)(S8,{center:[at,ot],data:nt,label:B,radiusOffset:re,skipAngle:H,skipRadius:ee,textColor:te,transitionMode:He,component:ie},`arcLabels`)),We.length>0&&u.includes(`legends`)&&(ft.legends=(0,G.jsx)(J8,{width:$e,height:et,data:rt,legends:We,toggleSerie:ut},`legends`));var pt=e5({dataWithArc:nt,arcGenerator:it,centerX:at,centerY:ot,radius:st,innerRadius:ct});return(0,G.jsx)(y0,{width:Xe,height:Ze,margin:Qe,defs:dt,role:qe,ref:Je,children:u.map((function(e,t){return ft[e]===void 0?typeof e==`function`?(0,G.jsx)(w.Fragment,{children:(0,w.createElement)(e,pt)},t):null:ft[e]}))})},i5=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?$.isInteractive:n,i=e.animate,a=i===void 0?$.animate:i,o=e.motionConfig,s=o===void 0?$.motionConfig:o,c=e.theme,l=e.renderWrapper,u=K8(e,n5);return(0,G.jsx)(J1,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,G.jsx)(r5,G8({isInteractive:r},u,{forwardedRef:t}))})})),a5=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],o5=(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=K8(e,a5);return(0,G.jsx)(Z1,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(i5,G8({width:n,height:r},o,{ref:t}))}})})),s5=[`isInteractive`,`theme`,`renderWrapper`],c5=function(e){var t=e.data,n=e.id,r=n===void 0?$.id:n,i=e.value,a=i===void 0?$.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?$.sortByValue:s,l=e.startAngle,u=l===void 0?$.startAngle:l,d=e.endAngle,f=d===void 0?$.endAngle:d,p=e.padAngle,m=p===void 0?$.padAngle:p,h=e.fit,g=h===void 0?$.fit:h,_=e.innerRadius,v=_===void 0?$.innerRadius:_,y=e.cornerRadius,b=y===void 0?$.cornerRadius:y,x=e.activeInnerRadiusOffset,S=x===void 0?$.activeInnerRadiusOffset:x,C=e.activeOuterRadiusOffset,T=C===void 0?$.activeOuterRadiusOffset:C,E=e.width,D=e.height,O=e.margin,k=e.pixelRatio,A=k===void 0?$.pixelRatio:k,j=e.colors,M=j===void 0?$.colors:j,N=e.borderWidth,P=N===void 0?$.borderWidth:N,F=e.borderColor,I=F===void 0?$.borderColor:F,L=e.enableArcLabels,R=L===void 0?$.enableArcLabels:L,z=e.arcLabel,B=z===void 0?$.arcLabel:z,V=e.arcLabelsSkipAngle,H=V===void 0?$.arcLabelsSkipAngle:V,U=e.arcLabelsTextColor,ee=U===void 0?$.arcLabelsTextColor:U,W=e.arcLabelsRadiusOffset,te=W===void 0?$.arcLabelsRadiusOffset:W,ne=e.enableArcLinkLabels,re=ne===void 0?$.enableArcLinkLabels:ne,ie=e.arcLinkLabel,ae=ie===void 0?$.arcLinkLabel:ie,oe=e.arcLinkLabelsSkipAngle,se=oe===void 0?$.arcLinkLabelsSkipAngle:oe,ce=e.arcLinkLabelsOffset,le=ce===void 0?$.arcLinkLabelsOffset:ce,ue=e.arcLinkLabelsDiagonalLength,de=ue===void 0?$.arcLinkLabelsDiagonalLength:ue,fe=e.arcLinkLabelsStraightLength,pe=fe===void 0?$.arcLinkLabelsStraightLength:fe,me=e.arcLinkLabelsThickness,he=me===void 0?$.arcLinkLabelsThickness:me,ge=e.arcLinkLabelsTextOffset,_e=ge===void 0?$.arcLinkLabelsTextOffset:ge,ve=e.arcLinkLabelsTextColor,ye=ve===void 0?$.arcLinkLabelsTextColor:ve,be=e.arcLinkLabelsColor,xe=be===void 0?$.arcLinkLabelsColor:be,Se=e.isInteractive,Ce=Se===void 0?$.isInteractive:Se,we=e.onClick,Te=e.onMouseMove,Ee=e.tooltip,De=Ee===void 0?$.tooltip:Ee,Oe=e.activeId,ke=e.onActiveIdChange,Ae=e.defaultActiveId,je=e.legends,Me=je===void 0?$.legends:je,Ne=e.forwardLegendData,Pe=e.role,Fe=e.forwardedRef,Ie=(0,w.useRef)(null),Le=gH(),Re=D0(E,D,O),ze=Re.margin,Be=Re.innerWidth,Ve=Re.innerHeight,He=Re.outerWidth,Ue=Re.outerHeight,We=$8({data:X8({data:t,id:r,value:a,valueFormat:o,colors:M}),width:Be,height:Ve,fit:g,innerRadius:v,startAngle:u,endAngle:f,padAngle:m,sortByValue:c,cornerRadius:b,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,activeId:Oe,onActiveIdChange:ke,defaultActiveId:Ae,forwardLegendData:Ne}),Ge=We.dataWithArc,Ke=We.arcGenerator,qe=We.centerX,Je=We.centerY,Ye=We.radius,Xe=We.innerRadius,Ze=We.setActiveId,Qe=$3(I,Le),$e=w8({data:Ge,label:B,skipAngle:H,offset:te,textColor:ee}),et=I8({data:Ge,skipAngle:se,offset:le,diagonalLength:de,straightLength:pe,label:ae,linkColor:xe,textOffset:_e,textColor:ye});(0,w.useEffect)((function(){if(Ie.current){Ie.current.width=He*A,Ie.current.height=Ue*A;var e=Ie.current.getContext(`2d`);e.scale(A,A),e.fillStyle=Le.background,e.fillRect(0,0,He,Ue),e.save(),e.translate(ze.left,ze.top),Ke.context(e),e.save(),e.translate(qe,Je),Ge.forEach((function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=Qe(t),e.lineWidth=P,Ke(t.arc),e.fill(),P>0&&e.stroke()})),!0===re&&P8(e,et,Le,he),!0===R&&C8(e,$e,Le),e.restore(),Me.forEach((function(t){_6(e,G8({},t,{data:Ge,containerWidth:Be,containerHeight:Ve,theme:Le}))}))}}),[Ie,Be,Ve,He,Ue,ze.top,ze.left,A,qe,Je,Ke,Ge,P,Qe,R,$e,re,et,he,Me,Le]);var tt=(0,w.useMemo)((function(){return Ge.map((function(e){return G8({id:e.id},e.arc)}))}),[Ge]),nt=function(e){if(!Ie.current)return null;var t=I0(Ie.current,e),n=t[0],r=t[1],i=U8(ze.left+qe,ze.top+Je,Ye,Xe,tt,n,r);return i?Ge.find((function(e){return e.id===i.id})):null},rt=MH(),it=rt.showTooltipFromEvent,at=rt.hideTooltip,ot=function(e){var t=nt(e);t?(Te?.(t,e),Ze(t.id),it((0,w.createElement)(De,{datum:t}),e)):(Ze(null),at())};return(0,G.jsx)(`canvas`,{ref:V0(Ie,Fe),width:He*A,height:Ue*A,style:{width:He,height:Ue,cursor:Ce?`auto`:`normal`},onMouseEnter:Ce?ot:void 0,onMouseMove:Ce?ot:void 0,onMouseLeave:Ce?function(){at()}:void 0,onClick:Ce?function(e){if(we){var t=nt(e);t&&we(t,e)}}:void 0,role:Pe})},l5=(0,w.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?$.isInteractive:n,i=e.theme,a=e.renderWrapper,o=K8(e,s5);return(0,G.jsx)(J1,{isInteractive:r,renderWrapper:a,theme:i,children:(0,G.jsx)(c5,G8({isInteractive:r},o,{forwardedRef:t}))})})),u5=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,w.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=K8(e,u5);return(0,G.jsx)(Z1,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,G.jsx)(l5,G8({width:n,height:r},o,{ref:t}))}})}));function d5({data:e}){let{colorScheme:t}=nn(),n=t===`dark`;if(e.length===0)return(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No reader data available.`});let r=Math.max(...e.map(e=>e.value),1),i=Math.min(...e.map(e=>e.value),0),a=r-i||1,o=n?[`#74c0fc`,`#63e6be`,`#ffa94d`,`#da77f2`,`#66d9e8`,`#ff8787`,`#a9e34b`]:[`#1c7ed6`,`#0ca678`,`#e67700`,`#9c36b5`,`#0c8599`,`#e03131`,`#5c940d`],s=[...e].sort((e,t)=>t.value-e.value);return(0,G.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`,gap:8,padding:16,minHeight:150},children:s.map((e,t)=>{let n=(e.value-i)/a,r=Math.round(14+n*40),s=o[t%o.length];return(0,G.jsx)(`span`,{style:{fontSize:r,fontWeight:n>.5?700:500,color:s,lineHeight:1.2,cursor:`default`},title:`${e.text}: ${e.value} calls`,children:e.text},e.text)})})}var f5={value:()=>{}};function p5(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new m5(n)}function m5(e){this._=e}function h5(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}m5.prototype=p5.prototype={constructor:m5,on:function(e,t){var n=this._,r=h5(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=g5(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=_5(n[i],e.name,t);else if(t==null)for(i in n)n[i]=_5(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new m5(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function g5(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function _5(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=f5,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var v5={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function y5(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),v5.hasOwnProperty(t)?{space:v5[t],local:e}:e}function b5(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function x5(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function S5(e){var t=y5(e);return(t.local?x5:b5)(t)}function C5(){}function w5(e){return e==null?C5:function(){return this.querySelector(e)}}function T5(e){typeof e!=`function`&&(e=w5(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new p9(r,this._parents)}function E5(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function D5(){return[]}function O5(e){return e==null?D5:function(){return this.querySelectorAll(e)}}function k5(e){return function(){return E5(e.apply(this,arguments))}}function A5(e){e=typeof e==`function`?k5(e):O5(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new p9(r,i)}function j5(e){return function(){return this.matches(e)}}function M5(e){return function(t){return t.matches(e)}}var N5=Array.prototype.find;function P5(e){return function(){return N5.call(this.children,e)}}function F5(){return this.firstElementChild}function I5(e){return this.select(e==null?F5:P5(typeof e==`function`?e:M5(e)))}var L5=Array.prototype.filter;function R5(){return Array.from(this.children)}function z5(e){return function(){return L5.call(this.children,e)}}function B5(e){return this.selectAll(e==null?R5:z5(typeof e==`function`?e:M5(e)))}function V5(e){typeof e!=`function`&&(e=j5(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new p9(r,this._parents)}function H5(e){return Array(e.length)}function U5(){return new p9(this._enter||this._groups.map(H5),this._parents)}function W5(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}W5.prototype={constructor:W5,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function G5(e){return function(){return e}}function K5(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new W5(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function q5(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new W5(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function J5(e){return e.__data__}function Y5(e,t){if(!arguments.length)return Array.from(this,J5);var n=t?q5:K5,r=this._parents,i=this._groups;typeof e!=`function`&&(e=G5(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=X5(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new p9(o,r),o._enter=s,o._exit=c,o}function X5(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Z5(){return new p9(this._exit||this._groups.map(H5),this._parents)}function Q5(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function $5(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new p9(s,this._parents)}function e7(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function t7(e){e||=n7;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new p9(i,this._parents).order()}function n7(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function r7(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function i7(){return Array.from(this)}function a7(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function o7(){let e=0;for(let t of this)++e;return e}function s7(){return!this.node()}function c7(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function l7(e){return function(){this.removeAttribute(e)}}function u7(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d7(e,t){return function(){this.setAttribute(e,t)}}function f7(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function p7(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function m7(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function h7(e,t){var n=y5(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?u7:l7:typeof t==`function`?n.local?m7:p7:n.local?f7:d7)(n,t))}function g7(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _7(e){return function(){this.style.removeProperty(e)}}function v7(e,t,n){return function(){this.style.setProperty(e,t,n)}}function y7(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function b7(e,t,n){return arguments.length>1?this.each((t==null?_7:typeof t==`function`?y7:v7)(e,t,n??``)):x7(this.node(),e)}function x7(e,t){return e.style.getPropertyValue(t)||g7(e).getComputedStyle(e,null).getPropertyValue(t)}function S7(e){return function(){delete this[e]}}function C7(e,t){return function(){this[e]=t}}function w7(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function T7(e,t){return arguments.length>1?this.each((t==null?S7:typeof t==`function`?w7:C7)(e,t)):this.node()[e]}function E7(e){return e.trim().split(/^|\s+/)}function D7(e){return e.classList||new O7(e)}function O7(e){this._node=e,this._names=E7(e.getAttribute(`class`)||``)}O7.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function k7(e,t){for(var n=D7(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function A7(e,t){for(var n=D7(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function j7(e){return function(){k7(this,e)}}function M7(e){return function(){A7(this,e)}}function N7(e,t){return function(){(t.apply(this,arguments)?k7:A7)(this,e)}}function P7(e,t){var n=E7(e+``);if(arguments.length<2){for(var r=D7(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?N7:t?j7:M7)(n,t))}function F7(){this.textContent=``}function I7(e){return function(){this.textContent=e}}function L7(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function R7(e){return arguments.length?this.each(e==null?F7:(typeof e==`function`?L7:I7)(e)):this.node().textContent}function z7(){this.innerHTML=``}function B7(e){return function(){this.innerHTML=e}}function V7(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function H7(e){return arguments.length?this.each(e==null?z7:(typeof e==`function`?V7:B7)(e)):this.node().innerHTML}function U7(){this.nextSibling&&this.parentNode.appendChild(this)}function W7(){return this.each(U7)}function G7(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K7(){return this.each(G7)}function q7(e){var t=typeof e==`function`?e:S5(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function J7(){return null}function Y7(e,t){var n=typeof e==`function`?e:S5(e),r=t==null?J7:typeof t==`function`?t:w5(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function X7(){var e=this.parentNode;e&&e.removeChild(this)}function Z7(){return this.each(X7)}function Q7(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function $7(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function e9(e){return this.select(e?$7:Q7)}function t9(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function n9(e){return function(t){e.call(this,t,this.__data__)}}function r9(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function i9(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function a9(e,t,n){return function(){var r=this.__on,i,a=n9(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function o9(e,t,n){var r=r9(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?a9:i9,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function s9(e,t,n){var r=g7(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function c9(e,t){return function(){return s9(this,e,t)}}function l9(e,t){return function(){return s9(this,e,t.apply(this,arguments))}}function u9(e,t){return this.each((typeof t==`function`?l9:c9)(e,t))}function*d9(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var f9=[null];function p9(e,t){this._groups=e,this._parents=t}function m9(){return new p9([[document.documentElement]],f9)}function h9(){return this}p9.prototype=m9.prototype={constructor:p9,select:T5,selectAll:A5,selectChild:I5,selectChildren:B5,filter:V5,data:Y5,enter:U5,exit:Z5,join:Q5,merge:$5,selection:h9,order:e7,sort:t7,call:r7,nodes:i7,node:a7,size:o7,empty:s7,each:c7,attr:h7,style:b7,property:T7,classed:P7,text:R7,html:H7,raise:W7,lower:K7,append:q7,insert:Y7,remove:Z7,clone:e9,datum:t9,on:o9,dispatch:u9,[Symbol.iterator]:d9};function g9(e){return typeof e==`string`?new p9([[document.querySelector(e)]],[document.documentElement]):new p9([[e]],f9)}var _9=0,v9=0,y9=0,b9=1e3,x9,S9,C9=0,w9=0,T9=0,E9=typeof performance==`object`&&performance.now?performance:Date,D9=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function O9(){return w9||=(D9(Eee),E9.now()+T9)}function Eee(){w9=0}function k9(){this._call=this._time=this._next=null}k9.prototype=A9.prototype={constructor:k9,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?O9():+n)+(t==null?0:+t),!this._next&&S9!==this&&(S9?S9._next=this:x9=this,S9=this),this._call=e,this._time=n,M9()},stop:function(){this._call&&(this._call=null,this._time=1/0,M9())}};function A9(e,t,n){var r=new k9;return r.restart(e,t,n),r}function Dee(){O9(),++_9;for(var e=x9,t;e;)(t=w9-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_9}function j9(){w9=(C9=E9.now())+T9,_9=v9=0;try{Dee()}finally{_9=0,kee(),w9=0}}function Oee(){var e=E9.now(),t=e-C9;t>b9&&(T9-=t,C9=e)}function kee(){for(var e,t=x9,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:x9=n);S9=e,M9(r)}function M9(e){_9||(v9&&=clearTimeout(v9),e-w9>24?(e<1/0&&(v9=setTimeout(j9,e-E9.now()-T9)),y9&&=clearInterval(y9)):(y9||=(C9=E9.now(),setInterval(Oee,b9)),_9=1,D9(j9)))}function N9(e,t,n){var r=new k9;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Aee=p5(`start`,`end`,`cancel`,`interrupt`),jee=[];function P9(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Mee(e,n,{name:t,index:r,group:i,on:Aee,tween:jee,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function F9(e,t){var n=L9(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function I9(e,t){var n=L9(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function L9(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Mee(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=A9(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return N9(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(N9(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Nee(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Pee(e){return this.each(function(){Nee(this,e)})}function Fee(e,t){var n,r;return function(){var i=I9(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Iee(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=I9(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Lee(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=L9(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Fee:Iee)(n,e,t))}function R9(e,t,n){var r=e._id;return e.each(function(){var e=I9(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return L9(e,r).value[t]}}function z9(e,t){var n;return(typeof t==`number`?uW:t instanceof _U?rW:(n=_U(t))?(t=n,rW):gW)(e,t)}function Ree(e){return function(){this.removeAttribute(e)}}function zee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Bee(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Vee(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Hee(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Uee(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Wee(e,t){var n=y5(e),r=n===`transform`?DW:z9;return this.attrTween(e,typeof t==`function`?(n.local?Uee:Hee)(n,r,R9(this,`attr.`+e,t)):t==null?(n.local?zee:Ree)(n):(n.local?Vee:Bee)(n,r,t))}function Gee(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Kee(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function qee(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Kee(e,i)),n}return i._value=t,i}function Jee(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Gee(e,i)),n}return i._value=t,i}function Yee(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=y5(e);return this.tween(n,(r.local?qee:Jee)(r,t))}function Xee(e,t){return function(){F9(this,e).delay=+t.apply(this,arguments)}}function Zee(e,t){return t=+t,function(){F9(this,e).delay=t}}function Qee(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Xee:Zee)(t,e)):L9(this.node(),t).delay}function $ee(e,t){return function(){I9(this,e).duration=+t.apply(this,arguments)}}function ete(e,t){return t=+t,function(){I9(this,e).duration=t}}function tte(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?$ee:ete)(t,e)):L9(this.node(),t).duration}function nte(e,t){if(typeof t!=`function`)throw Error();return function(){I9(this,e).ease=t}}function rte(e){var t=this._id;return arguments.length?this.each(nte(t,e)):L9(this.node(),t).ease}function ite(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();I9(this,e).ease=n}}function ate(e){if(typeof e!=`function`)throw Error();return this.each(ite(this._id,e))}function ote(e){typeof e!=`function`&&(e=j5(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new V9(r,this._parents,this._name,this._id)}function ste(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new V9(o,this._parents,this._name,this._id)}function cte(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function lte(e,t,n){var r,i,a=cte(t)?F9:I9;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ute(e,t){var n=this._id;return arguments.length<2?L9(this.node(),n).on.on(e):this.each(lte(n,e,t))}function dte(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function fte(){return this.on(`end.remove`,dte(this._id))}function pte(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=w5(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,P9(l[f],t,n,f,l,L9(u,n)));return new V9(a,this._parents,t,n)}function mte(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=O5(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=L9(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&P9(p,t,n,h,f,m);a.push(f),o.push(u)}return new V9(a,o,t,n)}var hte=m9.prototype.constructor;function gte(){return new hte(this._groups,this._parents)}function _te(e,t){var n,r,i;return function(){var a=x7(this,e),o=(this.style.removeProperty(e),x7(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function B9(e){return function(){this.style.removeProperty(e)}}function vte(e,t,n){var r,i=n+``,a;return function(){var o=x7(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function yte(e,t,n){var r,i,a;return function(){var o=x7(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),x7(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function bte(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=I9(this,e),l=c.on,u=c.value[a]==null?s||=B9(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function xte(e,t,n){var r=(e+=``)==`transform`?EW:z9;return t==null?this.styleTween(e,_te(e,r)).on(`end.style.`+e,B9(e)):typeof t==`function`?this.styleTween(e,yte(e,r,R9(this,`style.`+e,t))).each(bte(this._id,e)):this.styleTween(e,vte(e,r,t),n).on(`end.style.`+e,null)}function Ste(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Cte(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ste(e,a,n)),r}return a._value=t,a}function wte(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Cte(e,t,n??``))}function Tte(e){return function(){this.textContent=e}}function Ete(e){return function(){var t=e(this);this.textContent=t??``}}function Dte(e){return this.tween(`text`,typeof e==`function`?Ete(R9(this,`text`,e)):Tte(e==null?``:e+``))}function Ote(e){return function(t){this.textContent=e.call(this,t)}}function kte(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ote(r)),t}return r._value=e,r}function Ate(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,kte(e))}function jte(){for(var e=this._name,t=this._id,n=H9(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=L9(c,t);P9(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new V9(r,this._parents,e,n)}function Mte(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=I9(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Nte=0;function V9(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function H9(){return++Nte}var U9=m9.prototype;V9.prototype={constructor:V9,select:pte,selectAll:mte,selectChild:U9.selectChild,selectChildren:U9.selectChildren,filter:ote,merge:ste,selection:gte,transition:jte,call:U9.call,nodes:U9.nodes,node:U9.node,size:U9.size,empty:U9.empty,each:U9.each,on:ute,attr:Wee,attrTween:Yee,style:xte,styleTween:wte,text:Dte,textTween:Ate,remove:fte,tween:Lee,delay:Qee,duration:tte,ease:rte,easeVarying:ate,end:Mte,[Symbol.iterator]:U9[Symbol.iterator]};function Pte(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Fte={time:null,delay:0,duration:250,ease:Pte};function Ite(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Lte(e){var t,n;e instanceof V9?(t=e._id,e=e._name):(t=H9(),(n=Fte).time=O9(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&P9(c,e,t,l,o,n||Ite(c,t));return new V9(r,this._parents,e,t)}m9.prototype.interrupt=Pee,m9.prototype.transition=Lte;var{abs:Rte,max:zte,min:Bte}=Math;[`w`,`e`].map(W9),[`n`,`s`].map(W9),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(W9);function W9(e){return{type:e}}function G9(e,t,n){this.k=e,this.x=t,this.y=n}G9.prototype={constructor:G9,scale:function(e){return e===1?this:new G9(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new G9(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Vte=new G9(1,0,0);Hte.prototype=G9.prototype;function Hte(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Vte;return e.__zoom}function Ute({usageLog:e,width:t=400,height:n=400}){let r=(0,w.useRef)(null),{colorScheme:i}=nn(),a=i===`dark`,o=[],s=new Map;for(let t of e){if(!t.requestor||!t.doc_title)continue;let e=`${t.requestor}|||${t.doc_title}`;s.set(e,(s.get(e)??0)+1)}for(let[e,t]of s){let[n,r]=e.split(`|||`);o.push({requestor:n,doc:r,count:t})}let c=[...new Set(o.map(e=>e.requestor))],l=[...new Set(o.map(e=>e.doc))];return(0,w.useEffect)(()=>{if(!r.current||o.length===0)return;let e=g9(r.current);e.selectAll(`*`).remove();let i=[...c.map(e=>({id:e,group:`reader`})),...l.map(e=>({id:e,group:`document`}))];if(i.length===0)return;let s=Math.min(t,n)/2-60,u=t/2,d=n/2,f=Math.PI/Math.max(c.length,1),p=Math.PI/Math.max(l.length,1),m=new Map;c.forEach((e,t)=>{let n=Math.PI/2+f*(t+.5);m.set(e,{x:u+s*Math.cos(n),y:d+s*Math.sin(n)})}),l.forEach((e,t)=>{let n=-Math.PI/2+p*(t+.5);m.set(e,{x:u+s*Math.cos(n),y:d+s*Math.sin(n)})});let h=a?`#c1c2c5`:`#495057`,g=a?`rgba(116, 192, 252, 0.3)`:`rgba(28, 126, 214, 0.2)`,_=a?`rgba(116, 192, 252, 0.8)`:`rgba(28, 126, 214, 0.6)`,v=a?`#74c0fc`:`#1c7ed6`,y=a?`#63e6be`:`#0ca678`,b=Math.max(...o.map(e=>e.count),1),x=e.append(`g`);x.selectAll(`path.link`).data(o).enter().append(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=m.get(e.requestor),n=m.get(e.doc);return`M${t.x},${t.y} Q${u},${d} ${n.x},${n.y}`}).attr(`fill`,`none`).attr(`stroke`,g).attr(`stroke-width`,e=>1+e.count/b*3).on(`mouseenter`,function(){g9(this).attr(`stroke`,_).attr(`stroke-width`,3)}).on(`mouseleave`,function(e,t){g9(this).attr(`stroke`,g).attr(`stroke-width`,1+t.count/b*3)}),x.selectAll(`circle.node`).data(i).enter().append(`circle`).attr(`class`,`node`).attr(`cx`,e=>m.get(e.id).x).attr(`cy`,e=>m.get(e.id).y).attr(`r`,5).attr(`fill`,e=>e.group===`reader`?v:y),x.selectAll(`text.label`).data(i).enter().append(`text`).attr(`class`,`label`).attr(`x`,e=>{let t=m.get(e.id);return t.x<u?t.x-10:t.x+10}).attr(`y`,e=>m.get(e.id).y).attr(`text-anchor`,e=>m.get(e.id).x<u?`end`:`start`).attr(`dominant-baseline`,`middle`).attr(`fill`,h).attr(`font-size`,`11px`).text(e=>e.id.length>35?e.id.slice(0,33)+`...`:e.id)},[o,c,l,t,n,a]),o.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Need reader + document data to show access patterns.`}):(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`svg`,{ref:r,width:t,height:n}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:16,justifyContent:`center`,marginTop:4},children:[(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#74c0fc`:`#1c7ed6`},children:`● Readers`}),(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#63e6be`:`#0ca678`},children:`● Documents`})]})]})}function Wte({usageLog:e,width:t=400,height:n=400}){let r=(0,w.useRef)(null),{colorScheme:i}=nn(),a=i===`dark`,o=[],s=new Map;for(let t of e){if(!t.requestor)continue;let e=`${t.requestor}|||${t.operation}`;s.set(e,(s.get(e)??0)+1)}for(let[e,t]of s){let[n,r]=e.split(`|||`);o.push({requestor:n,operation:r,count:t})}let c=[...new Set(o.map(e=>e.requestor))],l=[...new Set(o.map(e=>e.operation))];return(0,w.useEffect)(()=>{if(!r.current||o.length===0)return;let e=g9(r.current);e.selectAll(`*`).remove();let i=[...c.map(e=>({id:e,group:`requestor`})),...l.map(e=>({id:e,group:`operation`}))];if(i.length===0)return;let s=Math.min(t,n)/2-60,u=t/2,d=n/2,f=Math.PI/Math.max(c.length,1),p=Math.PI/Math.max(l.length,1),m=new Map;c.forEach((e,t)=>{let n=Math.PI/2+f*(t+.5);m.set(e,{x:u+s*Math.cos(n),y:d+s*Math.sin(n)})}),l.forEach((e,t)=>{let n=-Math.PI/2+p*(t+.5);m.set(e,{x:u+s*Math.cos(n),y:d+s*Math.sin(n)})});let h=a?`#c1c2c5`:`#495057`,g=a?`rgba(255, 169, 77, 0.3)`:`rgba(232, 89, 12, 0.2)`,_=a?`rgba(255, 169, 77, 0.8)`:`rgba(232, 89, 12, 0.6)`,v=a?`#74c0fc`:`#1c7ed6`,y=a?`#ffa94d`:`#e8590c`,b=Math.max(...o.map(e=>e.count),1),x=e.append(`g`);x.selectAll(`path.link`).data(o).enter().append(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=m.get(e.requestor),n=m.get(e.operation);return`M${t.x},${t.y} Q${u},${d} ${n.x},${n.y}`}).attr(`fill`,`none`).attr(`stroke`,g).attr(`stroke-width`,e=>1+e.count/b*4).on(`mouseenter`,function(){g9(this).attr(`stroke`,_).attr(`stroke-width`,4)}).on(`mouseleave`,function(e,t){g9(this).attr(`stroke`,g).attr(`stroke-width`,1+t.count/b*4)}),x.selectAll(`circle.node`).data(i).enter().append(`circle`).attr(`class`,`node`).attr(`cx`,e=>m.get(e.id).x).attr(`cy`,e=>m.get(e.id).y).attr(`r`,5).attr(`fill`,e=>e.group===`requestor`?v:y),x.selectAll(`text.label`).data(i).enter().append(`text`).attr(`class`,`label`).attr(`x`,e=>{let t=m.get(e.id);return t.x<u?t.x-10:t.x+10}).attr(`y`,e=>m.get(e.id).y).attr(`text-anchor`,e=>m.get(e.id).x<u?`end`:`start`).attr(`dominant-baseline`,`middle`).attr(`fill`,h).attr(`font-size`,`11px`).text(e=>e.id.length>35?e.id.slice(0,33)+`...`:e.id)},[o,c,l,t,n,a]),o.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Need requestor + operation data to show patterns.`}):(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`svg`,{ref:r,width:t,height:n}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:16,justifyContent:`center`,marginTop:4},children:[(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#74c0fc`:`#1c7ed6`},children:`● Requestors`}),(0,G.jsx)(`span`,{style:{fontSize:11,color:a?`#ffa94d`:`#e8590c`},children:`● Operations`})]})]})}var Gte=[{value:`7`,label:`Last 7 days`},{value:`30`,label:`Last 30 days`},{value:`90`,label:`Last 90 days`},{value:`all`,label:`All time`}],Kte=[{value:``,label:`All paths`},{value:`remote-mcp`,label:`Remote MCP`},{value:`local-mcp`,label:`Local MCP`},{value:`edge-function`,label:`Edge Function`},{value:`webapp`,label:`Web App`},{value:`cli`,label:`CLI`}],K9=[`#228be6`,`#12b886`,`#e8590c`,`#9c36b5`,`#15aabf`,`#e03131`,`#74b816`,`#4263eb`],q9={text:{fill:`var(--mantine-color-text)`},axis:{ticks:{text:{fill:`var(--mantine-color-dimmed)`,fontSize:11}},legend:{text:{fill:`var(--mantine-color-text)`,fontSize:12}}},grid:{line:{stroke:`var(--mantine-color-default-border)`,strokeWidth:1}},tooltip:{container:{background:`var(--mantine-color-body)`,color:`var(--mantine-color-text)`,border:`1px solid var(--mantine-color-default-border)`,borderRadius:4,fontSize:12}}};function qte(e){let t=new Date;return t.setDate(t.getDate()-e),t.toISOString()}function J9(e,t,n,r,i){let a={};return e!==`all`&&(a.start=qte(Number(e))),t&&(a.start=t),n&&(a.end=n),r&&(a.project_id=r),i&&(a.access_path=i),a}function Jte(){let e=Hy(),[t,n]=(0,w.useState)(`30`),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(``),[d,f]=(0,w.useState)(null),{data:p}=rb({queryKey:[`projects`],queryFn:BP,staleTime:6e4,retry:1}),{data:m}=rb({queryKey:[`config`,`usage_tracking_enabled`],queryFn:()=>Ww(`usage_tracking_enabled`),staleTime:1e4,retry:1}),{data:h,isLoading:g,error:_}=rb({queryKey:[`usageSummary`,d],queryFn:()=>Vw(d),enabled:d!==null,staleTime:6e4,retry:0}),{data:v,isLoading:y}=rb({queryKey:[`usageLog`,d],queryFn:()=>Hw({...d,limit:200}),enabled:d!==null&&h!==void 0,staleTime:6e4,retry:0}),b=ib({mutationFn:e=>Gw(`usage_tracking_enabled`,e?`true`:`false`),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:[`config`]}),qP(`Usage tracking ${n?`enabled`:`disabled`}`,n?`Reads and writes will now be recorded in the usage log.`:`Operations will no longer be recorded.`)}}),x=[{value:``,label:`All projects`},...(p??[]).map(e=>({value:e.id,label:e.name}))],S=m===`true`,C=g||y,T=_,E=(0,w.useCallback)(()=>{let e=J9(t,s,l,r,a);f(e)},[t,s,l,r,a]),D=d??J9(t,s,l,r,a);return(0,G.jsxs)(Pp,{size:`xl`,children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Usage`}),(0,G.jsxs)(El,{justify:`space-between`,mb:`md`,children:[(0,G.jsx)(L_,{order:2,children:`Analytics`}),(0,G.jsxs)(El,{gap:`md`,children:[(0,G.jsx)(r_,{label:`Opt-in. Logs each read/write (operation metadata only — no content) to the usage log, powering these charts and the dashboard's agent-activity card. Same setting as usage_tracking_enabled on the Settings page — either place works.`,multiline:!0,w:300,withArrow:!0,openDelay:120,position:`bottom`,children:(0,G.jsx)(k_,{label:`Usage tracking`,checked:S,onChange:e=>b.mutate(e.currentTarget.checked),size:`sm`,color:`green`,disabled:b.isPending})}),(0,G.jsx)(bp,{variant:`subtle`,leftSection:(0,G.jsx)(MC,{size:16}),component:`a`,href:Uw(D),download:!0,size:`sm`,children:`Export CSV`})]})]}),(0,G.jsx)(Dp,{withBorder:!0,mb:`md`,p:`sm`,children:(0,G.jsxs)(El,{gap:`sm`,wrap:`wrap`,children:[(0,G.jsx)(l_,{label:`Period`,data:Gte,value:t,onChange:e=>{n(e??`30`),c(``),u(``)},size:`xs`,w:140}),(0,G.jsx)(A_,{label:`Custom start`,placeholder:`YYYY-MM-DD`,value:s,onChange:e=>{c(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(A_,{label:`Custom end`,placeholder:`YYYY-MM-DD`,value:l,onChange:e=>{u(e.currentTarget.value),n(`all`)},size:`xs`,w:130}),(0,G.jsx)(l_,{label:`Project`,data:x,value:r,onChange:e=>i(e??``),size:`xs`,w:160,clearable:!0}),(0,G.jsx)(l_,{label:`Access path`,data:Kte,value:a,onChange:e=>o(e??``),size:`xs`,w:150,clearable:!0}),(0,G.jsx)(S_,{gap:2,justify:`flex-end`,style:{paddingTop:20},children:(0,G.jsx)(bp,{leftSection:(0,G.jsx)(WC,{size:16}),onClick:E,loading:C,size:`sm`,children:`Run Analysis`})})]})}),C&&(0,G.jsx)(El,{justify:`center`,mt:`xl`,children:(0,G.jsx)(cl,{})}),T&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error loading analytics: `,T.message]}),!d&&!C&&(0,G.jsx)(Dp,{withBorder:!0,p:`xl`,mt:`md`,children:(0,G.jsx)(Y,{ta:`center`,c:`dimmed`,size:`lg`,children:`Select filters and click "Run Analysis" to load usage data.`})}),h&&(0,G.jsx)(Yte,{summary:h,usageLog:v??[]})]})}function Yte({summary:e,usageLog:t}){let n=e.ops_by_operation[0];return(0,G.jsxs)(S_,{gap:`md`,children:[(0,G.jsxs)(v_,{cols:{base:2,sm:4},children:[(0,G.jsx)(Y9,{label:`Total Calls`,value:e.total_count.toLocaleString()}),(0,G.jsx)(Y9,{label:`Unique Requestors`,value:String(e.top_requestors.length)}),(0,G.jsx)(Y9,{label:`Docs Accessed`,value:String(e.top_documents.length)}),(0,G.jsx)(Y9,{label:`Top Operation`,value:n?n.operation:`--`,sub:n?`${n.count} calls`:``})]}),e.total_count===0?(0,G.jsx)(Dp,{withBorder:!0,p:`xl`,children:(0,G.jsx)(Y,{ta:`center`,c:`dimmed`,size:`lg`,children:`No usage data for the selected period. Enable tracking and use the knowledge base to start collecting analytics.`})}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Calls per Day`}),(0,G.jsx)(`div`,{style:{height:250},children:(0,G.jsx)(l8,{data:e.ops_by_day.map(e=>({day:e.day.slice(5),calls:e.count})),keys:[`calls`],indexBy:`day`,margin:{top:10,right:20,bottom:40,left:50},padding:.3,colors:[`#228be6`],axisBottom:{tickRotation:e.ops_by_day.length>15?-45:0},axisLeft:{legend:`Calls`,legendPosition:`middle`,legendOffset:-40},enableLabel:!1,theme:q9})})]}),(0,G.jsxs)(Jp,{children:[(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`By Access Path`}),(0,G.jsx)(`div`,{style:{height:200},children:(0,G.jsx)(l8,{data:e.ops_by_access_path.map(e=>({path:e.access_path,calls:e.count})),keys:[`calls`],indexBy:`path`,margin:{top:10,right:20,bottom:40,left:50},padding:.4,colors:[`#12b886`],enableLabel:!1,theme:q9})})]})}),(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Operations Breakdown`}),(0,G.jsx)(`div`,{style:{height:200},children:(0,G.jsx)(o5,{data:e.ops_by_operation.map((e,t)=>({id:e.operation,label:e.operation,value:e.count,color:K9[t%K9.length]})),margin:{top:20,right:80,bottom:20,left:80},innerRadius:.5,padAngle:1,cornerRadius:3,colors:{datum:`data.color`},arcLinkLabelsTextColor:`var(--mantine-color-text)`,arcLinkLabelsColor:{from:`color`},arcLabelsTextColor:`#fff`,enableArcLabels:!1,theme:q9})})]})})]}),(0,G.jsxs)(Jp,{children:[(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Most Accessed Documents`}),e.top_documents.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No document-specific access recorded.`}):(0,G.jsx)(`div`,{style:{height:Math.max(150,e.top_documents.length*32)},children:(0,G.jsx)(l8,{data:e.top_documents.map(e=>({doc:e.doc_title.length>25?e.doc_title.slice(0,23)+`...`:e.doc_title,calls:e.count})),keys:[`calls`],indexBy:`doc`,layout:`horizontal`,margin:{top:5,right:30,bottom:30,left:160},padding:.3,colors:[`#e8590c`],enableLabel:!0,labelTextColor:`#fff`,theme:q9})})]})}),(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Most Active Requestors`}),e.top_requestors.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No requestor attribution recorded.`}):(0,G.jsx)(`div`,{style:{height:Math.max(150,e.top_requestors.length*32)},children:(0,G.jsx)(l8,{data:e.top_requestors.map(e=>({requestor:e.requestor,calls:e.count})),keys:[`calls`],indexBy:`requestor`,layout:`horizontal`,margin:{top:5,right:30,bottom:30,left:120},padding:.3,colors:[`#9c36b5`],enableLabel:!0,labelTextColor:`#fff`,theme:q9})})]})})]}),(0,G.jsxs)(Jp,{children:[(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor Activity (Word Cloud)`}),e.top_requestors.length===0?(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`No requestor data available.`}):(0,G.jsx)(d5,{data:e.top_requestors.map(e=>({text:e.requestor,value:e.count}))})]})}),(0,G.jsx)(Jp.Col,{span:{base:12,md:6},children:(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,h:`100%`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Document Access Patterns`}),(0,G.jsx)(Ute,{usageLog:t})]})})]}),(0,G.jsxs)(Dp,{withBorder:!0,p:`md`,children:[(0,G.jsx)(Y,{fw:500,mb:`sm`,children:`Requestor → Operation Patterns`}),(0,G.jsx)(Wte,{usageLog:t})]})]})]})}function Y9({label:e,value:t,sub:n}){return(0,G.jsxs)(Dp,{withBorder:!0,p:`sm`,children:[(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:500,children:e}),(0,G.jsx)(Y,{size:`xl`,fw:700,mt:4,children:t}),n&&(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:n})]})}async function Xte(e){return ow(`/documents/metadata-search`,{method:`POST`,body:JSON.stringify(e)})}function Zte(){let e=Lx(),[t,n]=(0,w.useState)([{key:``,value:``}]),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(``),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(25),{data:d}=rb({queryKey:[`metadataKeys`],queryFn:VP,staleTime:6e4}),{data:f}=rb({queryKey:[`projects`],queryFn:BP,staleTime:6e4}),p=(d??[]).map(e=>({value:e.key,label:`${e.key} (${e.doc_count} docs)`})),m=[{value:``,label:`All projects`},...(f??[]).map(e=>({value:e.id,label:e.name}))],h=()=>n(e=>[...e,{key:``,value:``}]),g=e=>n(t=>t.filter((t,n)=>n!==e)),_=(e,t,r)=>n(n=>n.map((n,i)=>i===e?{...n,[t]:r}:n)),{mutate:v,data:y,isPending:b,error:x,reset:S}=ib({mutationFn:e=>Xte(e)}),C=(0,w.useCallback)(()=>{let e={};for(let n of t)n.key.trim()&&n.value.trim()&&(e[n.key.trim()]=n.value.trim());return e},[t]),T=(0,w.useCallback)(()=>{let e=C();if(Object.keys(e).length===0)return;let t={metadata_filter:e,limit:l};r&&(t.project_id=r),a&&(t.updated_since=a),s&&(t.created_since=s),S(),v(t)},[C,r,a,s,l,v,S]),E=t.filter(e=>e.key.trim()&&e.value.trim()).length,D=C(),O=`-f '${JSON.stringify(Object.keys(D).length?D:{key:`value`})}'`;return(0,G.jsxs)(`div`,{className:Nw.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Knowledge base`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Metadata Search`}),(0,G.jsx)(`p`,{className:X.pageSub,children:`Find documents by their metadata keys and values.`})]}),(0,G.jsx)(Dw,{cmd:`cerefox metadata search`,args:O})]}),(0,G.jsx)(Dp,{withBorder:!0,mb:`md`,p:`md`,radius:`lg`,children:(0,G.jsxs)(S_,{gap:`sm`,children:[(0,G.jsxs)(Y,{fw:600,size:`sm`,children:[`Metadata filters `,(0,G.jsx)(`span`,{className:X.faint,children:`(all must match)`})]}),t.map((e,n)=>(0,G.jsxs)(El,{gap:`xs`,align:`flex-end`,children:[(0,G.jsx)(l_,{placeholder:`Key`,data:p,value:e.key||null,onChange:e=>_(n,`key`,e??``),searchable:!0,allowDeselect:!0,style:{flex:1},size:`sm`}),(0,G.jsx)(A_,{placeholder:`Value`,value:e.value,onChange:e=>_(n,`value`,e.currentTarget.value),style:{flex:1},size:`sm`}),t.length>1&&(0,G.jsx)(gl,{variant:`subtle`,color:`red`,onClick:()=>g(n),size:`md`,children:(0,G.jsx)(QC,{size:16})})]},n)),(0,G.jsx)(bp,{variant:`subtle`,size:`xs`,leftSection:(0,G.jsx)(GC,{size:14}),onClick:h,style:{alignSelf:`flex-start`},children:`Add filter`}),(0,G.jsxs)(El,{gap:`sm`,grow:!0,children:[(0,G.jsx)(l_,{label:`Project`,data:m,value:r,onChange:e=>i(e??``),size:`sm`,clearable:!0}),(0,G.jsx)(Gg,{label:`Limit`,value:l,onChange:e=>u(Number(e)||25),min:1,max:100,size:`sm`})]}),(0,G.jsxs)(El,{gap:`sm`,grow:!0,children:[(0,G.jsx)(A_,{label:`Updated since`,type:`date`,value:a,onChange:e=>o(e.currentTarget.value),size:`sm`}),(0,G.jsx)(A_,{label:`Created since`,type:`date`,value:s,onChange:e=>c(e.currentTarget.value),size:`sm`})]}),(0,G.jsx)(bp,{"data-testid":`metadata-search-submit`,leftSection:(0,G.jsx)(qC,{size:16}),onClick:T,disabled:E===0,loading:b,style:{alignSelf:`flex-start`},children:`Search`})]})}),x&&(0,G.jsxs)(Y,{c:`red`,mt:`md`,children:[`Error: `,x.message]}),y&&(0,G.jsxs)(`div`,{className:`${X.card} ${X.rise}`,style:{overflow:`hidden`},children:[(0,G.jsxs)(`table`,{className:Nw.tbl,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`Document`}),(0,G.jsx)(`th`,{children:`Metadata`}),(0,G.jsx)(`th`,{style:{width:160},children:`Project`}),(0,G.jsx)(`th`,{style:{width:110,textAlign:`right`},children:`Updated`})]})}),(0,G.jsx)(`tbody`,{children:y.length===0?(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:4,className:Nw.emptyRow,children:`No documents match the metadata filter.`})}):y.map(t=>{let n=Object.entries(t.doc_metadata??{});return(0,G.jsxs)(`tr`,{style:{cursor:`pointer`},onClick:()=>e(`/document/${t.document_id}`),children:[(0,G.jsx)(`td`,{children:(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:t.title})}),(0,G.jsx)(`td`,{children:(0,G.jsxs)(`span`,{style:{display:`inline-flex`,gap:6,flexWrap:`wrap`},children:[n.slice(0,3).map(([e,t])=>(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[e,`=`,String(t).length>24?`${String(t).slice(0,22)}…`:String(t)]},e)),n.length>3&&(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[`+`,n.length-3]})]})}),(0,G.jsx)(`td`,{children:(0,G.jsx)(`span`,{style:{display:`inline-flex`,gap:4,flexWrap:`wrap`},children:t.project_names.map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:e},e))})}),(0,G.jsx)(`td`,{style:{textAlign:`right`},children:(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:t.updated_at?.slice(0,10)??`?`})})]},t.document_id)})})]}),(0,G.jsx)(`div`,{className:Nw.foot,children:(0,G.jsxs)(`span`,{className:Nw.faint,children:[y.length,` document`,y.length===1?``:`s`]})})]})]})}var X9={wrap:`_wrap_gy5et_4`,searchBar:`_searchBar_gy5et_11`,searchInputRow:`_searchInputRow_gy5et_14`,searchInput:`_searchInput_gy5et_14`,searchControls:`_searchControls_gy5et_34`,controlsRight:`_controlsRight_gy5et_41`,filterRow:`_filterRow_gy5et_48`,resultMeta:`_resultMeta_gy5et_57`,results:`_results_gy5et_67`,resultCard:`_resultCard_gy5et_72`,resultCardOpen:`_resultCardOpen_gy5et_80`,resultHead:`_resultHead_gy5et_83`,resultTitleWrap:`_resultTitleWrap_gy5et_90`,resultTitle:`_resultTitle_gy5et_90`,breadcrumb:`_breadcrumb_gy5et_107`,resultMetaR:`_resultMetaR_gy5et_126`,chev:`_chev_gy5et_132`,chevOpen:`_chevOpen_gy5et_137`,resultSnippet:`_resultSnippet_gy5et_140`,resultSnippetOpen:`_resultSnippetOpen_gy5et_152`,resultExpand:`_resultExpand_gy5et_156`,fade:`_fade_gy5et_1`,resultStats:`_resultStats_gy5et_160`,dot:`_dot_gy5et_169`,emptyState:`_emptyState_gy5et_176`},Qte=[{v:`hybrid`,label:`Hybrid`,icon:YC,desc:`BM25 + embeddings`},{v:`fts`,label:`Keyword`,icon:qC,desc:`Exact full-text`},{v:`semantic`,label:`Semantic`,icon:JC,desc:`Meaning-based`}],$te=[5,10,20];function ene({query:e,mode:t,projectId:n,count:r,reviewStatus:i,metadataFilter:a,onSearch:o}){let[s,c]=(0,w.useState)(e),[l,u]=(0,w.useState)(t===`docs`?`documents`:`chunks`),[d,f]=(0,w.useState)(t===`docs`?`hybrid`:t),[p,m]=(0,w.useState)(n),[h,g]=(0,w.useState)(r),[_,v]=(0,w.useState)(i),[y,b]=(0,w.useState)(()=>Object.entries(a).map(([e,t])=>({key:e,value:t}))),[x,S]=(0,w.useState)(y.length>0),{data:C}=GP(),{data:T}=KP(),E=(0,w.useCallback)(()=>{let e={};for(let t of y)t.key.trim()&&t.value.trim()&&(e[t.key.trim()]=t.value.trim());return e},[y]),D=(0,w.useCallback)(e=>{o({q:s,mode:l===`documents`?`docs`:d,projectId:p,count:h,reviewStatus:_,metadataFilter:E(),...e})},[s,l,d,p,h,_,E,o]),O=e=>{u(e),D({mode:e===`documents`?`docs`:d})},k=e=>{f(e),u(`chunks`),D({mode:e})},A=e=>{m(e),D({projectId:e})},j=e=>{g(e),D({count:e})},M=()=>{let e=_===`pending_review`?``:`pending_review`;v(e),D({reviewStatus:e})},N=T?.map(e=>({value:e.key,label:`${e.key} (${e.doc_count} docs)`}))??[];return(0,G.jsxs)(`div`,{className:`${X.card} ${X9.searchBar} ${X.rise}`,children:[(0,G.jsxs)(`form`,{className:X9.searchInputRow,onSubmit:e=>{e.preventDefault(),D({})},children:[(0,G.jsx)(qC,{size:20}),(0,G.jsx)(`input`,{className:X9.searchInput,value:s,onChange:e=>c(e.currentTarget.value),placeholder:`Search your knowledge base…`}),s&&(0,G.jsx)(`button`,{type:`button`,className:X.iconBtn,style:{width:30,height:30},"aria-label":`Clear`,onClick:()=>{c(``)},children:(0,G.jsx)(ew,{size:16})}),(0,G.jsx)(`button`,{type:`submit`,className:`${X.btn} ${X.btnPrimary}`,children:`Search`})]}),(0,G.jsx)(`div`,{className:X.divider}),(0,G.jsxs)(`div`,{className:X9.searchControls,children:[(0,G.jsxs)(`div`,{className:X.seg,children:[(0,G.jsxs)(`button`,{type:`button`,title:`Whole documents — one entry per document, hybrid-ranked`,className:`${X.segBtn} ${l===`documents`?X.segBtnOn:``}`,onClick:()=>O(`documents`),children:[(0,G.jsx)(PC,{size:14}),`Documents`]}),(0,G.jsxs)(`button`,{type:`button`,title:`Matching chunks — pick a ranker`,className:`${X.segBtn} ${l===`chunks`?X.segBtnOn:``}`,onClick:()=>O(`chunks`),children:[(0,G.jsx)(zC,{size:14}),`Chunks`]})]}),l===`chunks`?(0,G.jsxs)(`span`,{className:X.selectWrap,title:`Ranking method`,children:[(0,G.jsx)(`select`,{className:X.selectEl,value:d,onChange:e=>k(e.currentTarget.value),children:Qte.map(e=>(0,G.jsx)(`option`,{value:e.v,children:e.label},e.v))}),(0,G.jsx)(SC,{size:14})]}):(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:11.5},children:`whole documents · hybrid-ranked`}),(0,G.jsxs)(`div`,{className:X9.controlsRight,children:[(0,G.jsxs)(`span`,{className:X.selectWrap,children:[(0,G.jsx)(IC,{size:14}),(0,G.jsxs)(`select`,{className:X.selectEl,value:p,onChange:e=>A(e.currentTarget.value),children:[(0,G.jsxs)(`option`,{value:``,children:[`All projects (`,C?.length??0,`)`]}),C?.map(e=>(0,G.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,G.jsx)(SC,{size:14})]}),(0,G.jsxs)(`span`,{className:X.selectWrap,children:[(0,G.jsx)(`select`,{className:X.selectEl,value:String(h),onChange:e=>j(Number(e.currentTarget.value)),children:$te.map(e=>(0,G.jsxs)(`option`,{value:e,children:[e,` results`]},e))}),(0,G.jsx)(SC,{size:14})]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${_===`pending_review`?X.chipOn:``}`,onClick:M,children:[(0,G.jsx)(xC,{size:13}),`Pending review`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.chip} ${x?X.chipOn:``}`,onClick:()=>S(e=>!e),children:[(0,G.jsx)(pC,{size:13}),`Filters`,y.length>0?` (${y.length})`:``]})]})]}),x&&(0,G.jsxs)(`div`,{className:X9.filterRow,children:[y.map((e,t)=>(0,G.jsxs)(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,G.jsx)(l_,{placeholder:`Key`,data:N,value:e.key||null,onChange:e=>b(n=>n.map((n,r)=>r===t?{...n,key:e||``}:n)),searchable:!0,size:`xs`,w:190}),(0,G.jsx)(A_,{placeholder:`Value`,value:e.value,onChange:e=>b(n=>n.map((n,r)=>r===t?{...n,value:e.currentTarget.value}:n)),size:`xs`,w:190}),(0,G.jsx)(gl,{variant:`subtle`,color:`red`,size:`sm`,onClick:()=>b(e=>e.filter((e,n)=>n!==t)),children:(0,G.jsx)(ew,{size:14})})]},t)),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>b(e=>[...e,{key:``,value:``}]),children:`+ Add filter`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>D({}),children:`Apply filters`})]})]})}function Z9(e){return`full_content`in e}function tne({score:e,size:t=38}){let n=Math.max(0,Math.min(1,e)),r=Math.round(n*100),i=(t-5)/2,a=2*Math.PI*i,o=r>=70?`var(--green)`:r>=40?`var(--yellow)`:`var(--text-faint)`;return(0,G.jsxs)(`div`,{style:{position:`relative`,width:t,height:t,flexShrink:0},children:[(0,G.jsxs)(`svg`,{width:t,height:t,style:{transform:`rotate(-90deg)`},children:[(0,G.jsx)(`circle`,{cx:t/2,cy:t/2,r:i,fill:`none`,stroke:`var(--border)`,strokeWidth:2.5}),(0,G.jsx)(`circle`,{cx:t/2,cy:t/2,r:i,fill:`none`,stroke:o,strokeWidth:2.5,strokeLinecap:`round`,strokeDasharray:a,strokeDashoffset:a*(1-n),style:{transition:`stroke-dashoffset .6s cubic-bezier(.2,.7,.3,1)`}})]}),(0,G.jsx)(`span`,{style:{position:`absolute`,inset:0,display:`grid`,placeItems:`center`,fontFamily:`var(--font-mono)`,fontSize:t>34?11:9.5,fontWeight:600,color:o},children:r})]})}var Q9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function nne(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return`var(${Q9[t%Q9.length]})`}var rne={docs:`documents`,hybrid:`chunks`,fts:`chunks`,semantic:`chunks`},ine={docs:`hybrid`,hybrid:`hybrid`,fts:`keyword`,semantic:`semantic`};function ane({data:e,isLoading:t,error:n,hasQuery:r}){let i=Lx(),[a,o]=(0,w.useState)(null),[s,c]=(0,w.useState)(null),l=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let u=(e,t)=>{navigator.clipboard?.writeText(t),c(e),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(null),1200)};if(!r)return(0,G.jsxs)(`div`,{className:`${X.card} ${X9.emptyState}`,style:{marginTop:22},children:[(0,G.jsx)(qC,{size:28}),(0,G.jsx)(`p`,{style:{marginTop:10},children:`Enter a query or pick a project to browse your memory.`})]});if(t)return(0,G.jsxs)(`div`,{style:{display:`flex`,gap:12,justifyContent:`center`,marginTop:40},children:[(0,G.jsx)(cl,{size:`sm`}),(0,G.jsx)(`span`,{className:X.dim,children:`Searching…`})]});if(n)return(0,G.jsx)(Nd,{icon:(0,G.jsx)(mC,{size:16}),title:`Search failed`,color:`red`,mt:`md`,children:n.message});if(!e||e.results.length===0)return(0,G.jsxs)(`div`,{className:`${X.card} ${X9.emptyState}`,style:{marginTop:22},children:[(0,G.jsx)(qC,{size:28}),(0,G.jsx)(`p`,{style:{marginTop:10},children:`No results. Try widening your search or switching mode.`})]});let d=(e.response_bytes/1024).toFixed(1),f=e.results.map(e=>Z9(e)?e.best_score:e.score),p=Math.max(0,...f),m=e=>p>1?e/p:Math.max(0,Math.min(1,e)),h=e.results.length>0&&e.results.every(e=>e.below_confidence===!0);return(0,G.jsxs)(G.Fragment,{children:[h&&(0,G.jsxs)(`div`,{className:X9.resultMeta,style:{color:`var(--warning, #b58900)`},children:[`⚠ No results cleared the confidence threshold — showing the closest`,` `,e.results.length,` candidate`,e.results.length===1?``:`s`,`; judge relevance by their scores.`]}),(0,G.jsxs)(`div`,{className:X9.resultMeta,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`b`,{className:X.mono,style:{color:`var(--text)`},children:e.total_found}),` `,`result`,e.total_found===1?``:`s`,` ·`,` `,(0,G.jsx)(`span`,{className:X.mono,style:{color:`var(--primary)`},children:rne[e.mode]}),` `,`ranked by`,` `,(0,G.jsx)(`span`,{className:X.mono,style:{color:`var(--primary)`},children:ine[e.mode]}),` `,`relevance`]}),(0,G.jsxs)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:[e.truncated?`truncated · `:``,d,` KB`]})]}),(0,G.jsx)(`div`,{className:X9.results,children:e.results.map(e=>{let t=Z9(e),n=t?e.document_id:e.chunk_id,r=e.document_id,c=t?e.best_score:e.score,l=e.doc_title||`Untitled`,d=t?e.best_chunk_heading_path:e.heading_path,f=t?e.full_content:e.content,p=e.doc_project_names??[],h=a===n;return(0,G.jsxs)(`article`,{className:`${X.card} ${X9.resultCard} ${h?X9.resultCardOpen:``} ${X.rise}`,children:[(0,G.jsxs)(`div`,{className:X9.resultHead,onClick:()=>o(h?null:n),children:[(0,G.jsx)(tne,{score:m(c)}),(0,G.jsxs)(`div`,{className:X9.resultTitleWrap,children:[(0,G.jsxs)(`div`,{className:X.row,style:{gap:8,marginBottom:5},children:[(0,G.jsx)(`h3`,{className:X9.resultTitle,children:(0,G.jsx)(`span`,{className:X.link,style:{cursor:`pointer`},onClick:e=>{e.stopPropagation(),i(`/document/${r}`)},children:l})}),t?e.is_partial?(0,G.jsx)(`span`,{className:`${X.badge} ${X.bYellow}`,children:`excerpt`}):(0,G.jsx)(`span`,{className:`${X.badge} ${X.bGreen}`,children:`full`}):(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:`chunk`})]}),d.length>0&&(0,G.jsx)(`div`,{className:X9.breadcrumb,children:d.map((e,t)=>(0,G.jsxs)(`span`,{children:[t>0&&(0,G.jsx)(wC,{size:11}),(0,G.jsx)(`span`,{children:e})]},t))})]}),(0,G.jsxs)(`div`,{className:X9.resultMetaR,children:[p.map(e=>(0,G.jsxs)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:[(0,G.jsx)(`span`,{className:X9.dot,style:{background:nne(e),width:6,height:6}}),e]},e)),(0,G.jsx)(`span`,{className:`${X9.chev} ${h?X9.chevOpen:``}`,children:(0,G.jsx)(SC,{size:16})})]})]}),(0,G.jsx)(`div`,{className:`${X9.resultSnippet} ${h?X9.resultSnippetOpen:``}`,children:f.slice(0,h?4e3:600)}),h&&(0,G.jsxs)(`div`,{className:X9.resultExpand,children:[(0,G.jsx)(`div`,{className:X9.resultStats,children:t?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{children:[e.chunk_count,` chunks`]}),(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[e.total_chars.toLocaleString(),` chars`]}),e.doc_updated_at&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[`updated`,` `,new Date(e.doc_updated_at).toLocaleDateString()]})]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{children:[`chunk #`,e.chunk_index]}),(0,G.jsx)(`span`,{children:`·`}),(0,G.jsxs)(`span`,{children:[e.content.length.toLocaleString(),` chars`]})]})}),(0,G.jsxs)(`div`,{className:X.row,style:{gap:8},children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost}`,onClick:()=>i(`/document/${r}`),children:[(0,G.jsx)(PC,{size:14}),`Open document`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{marginLeft:`auto`},title:s===n?`Copied!`:`Copy CLI command to clipboard`,onClick:()=>u(n,`cerefox document get ${r}`),children:[(0,G.jsx)(ZC,{size:14}),(0,G.jsxs)(`span`,{className:X.mono,style:{fontSize:12},children:[`cerefox document get `,r.slice(0,8),`…`]}),s===n?(0,G.jsx)(xC,{size:13,style:{color:`var(--green)`}}):(0,G.jsx)(OC,{size:13})]})]})]})]},n)})})]})}async function one(e){let t=e.metadata_filter&&Object.keys(e.metadata_filter).length>0?JSON.stringify(e.metadata_filter):void 0;return ow(`/search${cw({q:e.q,mode:e.mode,project_id:e.project_id,count:e.count===void 0?void 0:e.count,review_status:e.review_status,metadata_filter:t})}`)}function sne(e){if(!e)return{};let t={};for(let n of e.split(`,`)){let e=n.indexOf(`:`);e>0&&(t[n.slice(0,e)]=n.slice(e+1))}return t}function cne(e){return Object.entries(e).filter(([e,t])=>e&&t).map(([e,t])=>`${e}:${t}`).join(`,`)}function lne(){let[e]=aC();return{q:e.get(`q`)||``,mode:e.get(`mode`)||`docs`,projectId:e.get(`project_id`)||``,count:Number(e.get(`count`))||10,reviewStatus:e.get(`review_status`)||``,metadataFilter:sne(e.get(`mf`)||``)}}function une(e){let t=!!e.q,n={q:e.q||void 0,mode:e.mode,project_id:e.projectId||void 0,count:e.count,review_status:e.reviewStatus||void 0,metadata_filter:Object.keys(e.metadataFilter).length>0?e.metadataFilter:void 0};return rb({queryKey:[`search`,n],queryFn:()=>one(n),enabled:t})}function dne(){let[,e]=aC(),t=lne(),{data:n,isLoading:r,error:i}=une(t),{data:a}=rb({queryKey:[`dashboard`],queryFn:Jw}),o=(0,w.useCallback)(t=>{let n=new URLSearchParams;t.q&&n.set(`q`,t.q),t.mode!==`docs`&&n.set(`mode`,t.mode),t.projectId&&n.set(`project_id`,t.projectId),t.count!==10&&n.set(`count`,String(t.count)),t.reviewStatus&&n.set(`review_status`,t.reviewStatus);let r=cne(t.metadataFilter);r&&n.set(`mf`,r),e(n)},[e]);return(0,G.jsxs)(`div`,{className:X9.wrap,children:[(0,G.jsxs)(`div`,{className:X.pageHead,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:X.eyebrow,children:`Knowledge base`}),(0,G.jsx)(`h1`,{className:X.pageTitle,"data-testid":`page-title`,children:`Search memory`})]}),(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,gap:8},children:[a&&(0,G.jsxs)(`span`,{className:`${X.mono} ${X.faint}`,style:{fontSize:12},children:[a.doc_count.toLocaleString(),` docs · `,a.total_chunks.toLocaleString(),` chunks`]}),(0,G.jsx)(Dw,{cmd:`cerefox search`,args:`"${t.q||`query`}"${t.mode===`docs`?``:` --mode ${t.mode}`}`})]})]}),(0,G.jsx)(ene,{query:t.q,mode:t.mode,projectId:t.projectId,count:t.count,reviewStatus:t.reviewStatus,metadataFilter:t.metadataFilter,onSearch:o}),(0,G.jsx)(ane,{data:n,isLoading:r,error:i,hasQuery:!!t.q})]})}async function fne(){return ow(`/config`)}async function pne(e,t){return ow(`/config/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({value:t})})}var mne=[`Retrieval`,`Retention`,`Governance`,`Features`],hne={Retrieval:`How search ranks and filters results.`,Governance:`Attribution and audit requirements for agent calls.`,Retention:`How long document version history is kept.`,Features:`Optional capabilities, off until you turn them on.`};function gne(){let e=Hy(),{data:t,isLoading:n}=rb({queryKey:[`config`],queryFn:fne}),[r,i]=(0,w.useState)(null),[a,o]=(0,w.useState)({}),s=ib({mutationFn:({key:e,value:t})=>pne(e,t),onSuccess:(t,n)=>{qP(`Saved ${n.key}`),e.invalidateQueries({queryKey:[`config`]}),e.invalidateQueries({queryKey:[`config`,n.key]}),o(e=>{let t={...e};return delete t[n.key],t})},onError:e=>{JP(e instanceof Error?e.message:String(e))}});function c(e,t){if(e.high_impact){i({entry:e,value:t});return}s.mutate({key:e.key,value:t})}if(n)return(0,G.jsx)(Y,{children:`Loading settings…`});let l=t?.keys??[];return(0,G.jsxs)(S_,{gap:`lg`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(L_,{order:2,"data-testid":`page-title`,children:`Settings`}),(0,G.jsx)(Y,{c:`dimmed`,size:`sm`,children:`Runtime configuration stored in the database. A change here applies to every access path — this app, the CLI, and every connected agent.`})]}),mne.map(e=>{let t=l.filter(t=>t.group===e);return t.length===0?null:(0,G.jsx)(Dp,{withBorder:!0,padding:`md`,"data-testid":`config-group-${e}`,children:(0,G.jsxs)(S_,{gap:`xs`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(L_,{order:4,children:e}),(0,G.jsx)(Y,{size:`xs`,c:`dimmed`,children:hne[e]})]}),t.map(e=>(0,G.jsx)(_ne,{entry:e,draft:a[e.key],onDraft:t=>o(n=>({...n,[e.key]:t})),onSave:t=>c(e,t),saving:s.isPending},e.key))]})},e)}),(0,G.jsx)(qw,{title:`CLI equivalent`,commands:[{cmd:`cerefox config list`},{cmd:`cerefox config get`,args:`min_search_score`},{cmd:`cerefox config set`,args:`min_search_score 0.6`}]}),(0,G.jsx)(lh,{opened:r!==null,onClose:()=>i(null),title:`Confirm this change`,"data-testid":`config-confirm-modal`,children:r&&(0,G.jsxs)(S_,{gap:`sm`,"data-testid":`config-confirm-body`,children:[(0,G.jsxs)(Y,{size:`sm`,children:[`Set `,(0,G.jsx)(Ap,{children:r.entry.key}),` to `,(0,G.jsx)(Ap,{children:r.value}),`?`]}),r.entry.impact_note&&(0,G.jsx)(Nd,{icon:(0,G.jsx)(hC,{size:16}),color:`yellow`,children:(0,G.jsx)(Y,{size:`sm`,children:r.entry.impact_note})}),(0,G.jsxs)(El,{justify:`flex-end`,children:[(0,G.jsx)(bp,{variant:`default`,onClick:()=>i(null),children:`Cancel`}),(0,G.jsx)(bp,{"data-testid":`config-confirm-apply`,loading:s.isPending,onClick:()=>{s.mutate({key:r.entry.key,value:r.value}),i(null)},children:`Apply`})]})]})})]})}function _ne({entry:e,draft:t,onDraft:n,onSave:r,saving:i}){let a=t??e.effective,o=(()=>{let t=e.retired_env_set?.value;if(t===void 0)return!1;let n=Number(t),r=Number(e.effective);return Number.isFinite(n)&&Number.isFinite(r)?n===r:t.trim()===e.effective.trim()})(),s=t!==void 0&&t!==e.effective;return(0,G.jsx)(Dp,{withBorder:!0,padding:`sm`,radius:`sm`,"data-testid":`config-row-${e.key}`,children:(0,G.jsxs)(El,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,G.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,G.jsxs)(El,{gap:`xs`,wrap:`nowrap`,align:`baseline`,children:[(0,G.jsx)(Y,{size:`sm`,fw:500,children:e.description}),e.value===null&&(0,G.jsx)(dp,{size:`xs`,variant:`light`,color:`gray`,children:`default`}),e.high_impact&&(0,G.jsx)(dp,{size:`xs`,variant:`light`,color:`yellow`,children:`affects agents`})]}),(0,G.jsx)(Ap,{style:{fontSize:`0.72rem`},children:e.key}),e.retired_env_set&&(0,G.jsx)(Nd,{icon:(0,G.jsx)(hC,{size:14}),color:o?`gray`:`yellow`,mt:`xs`,p:`xs`,"data-testid":`config-retired-env-${e.key}`,children:(0,G.jsxs)(Y,{size:`xs`,children:[(0,G.jsx)(Ap,{children:e.retired_env_set.name}),` is still set in this server's environment (to `,(0,G.jsx)(Ap,{children:e.retired_env_set.value}),`) but is`,` `,(0,G.jsx)(Y,{span:!0,fw:600,children:`no longer read`}),`. This setting moved into the database in v1.1.0 so one value governs every client.`,` `,o?(0,G.jsxs)(G.Fragment,{children:[`The stored value already matches, so nothing changes: delete that line from your `,(0,G.jsx)(Ap,{children:`.env`}),`.`]}):(0,G.jsxs)(Y,{span:!0,fw:600,children:[`Your .env asked for `,e.retired_env_set.value,`, but`,` `,e.effective,` is what actually runs. Set it here if you want the old value back, then delete the line from your .env.`]})]})})]}),(0,G.jsxs)(`div`,{style:{minWidth:190},children:[e.kind===`boolean`?(0,G.jsx)(k_,{checked:a===`true`,disabled:i,onChange:e=>r(e.currentTarget.checked?`true`:`false`),label:a===`true`?`On`:`Off`}):e.kind===`number`?(0,G.jsxs)(El,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(Gg,{value:a===``?``:Number(a),min:e.min??void 0,max:e.max??void 0,step:.05,decimalScale:3,size:`xs`,style:{width:100},onChange:e=>n(String(e))}),(0,G.jsx)(bp,{size:`xs`,disabled:!s||i,onClick:()=>r(a),children:`Save`})]}):(0,G.jsxs)(El,{gap:`xs`,wrap:`nowrap`,children:[(0,G.jsx)(A_,{value:a,size:`xs`,style:{width:120},placeholder:e.default||`(unset)`,onChange:e=>n(e.currentTarget.value)}),(0,G.jsx)(bp,{size:`xs`,disabled:!s||i,onClick:()=>r(a),children:`Save`})]}),(0,G.jsxs)(Y,{size:`xs`,c:`dimmed`,ta:`right`,mt:4,children:[`default: `,e.default||`(empty)`]})]})]})})}var $9=[`--primary`,`--violet`,`--blue`,`--green`,`--yellow`,`--red`];function vne(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return`var(${$9[t%$9.length]})`}function yne(){let e=Lx(),t=Hy(),{data:n}=GP(),r=new Map(n?.map(e=>[e.id,e.name])??[]),[i,a]=(0,w.useState)(`50`),[o,s]=(0,w.useState)(``),[c,l]=(0,w.useState)(null),{data:u,isLoading:d}=rb({queryKey:[`trash`,i],queryFn:()=>ZP(Number(i)),staleTime:1e4}),f=()=>{t.invalidateQueries({queryKey:[`trash`]}),t.invalidateQueries({queryKey:[`dashboard`]}),t.invalidateQueries({queryKey:[`search`]})},p=ib({mutationFn:QP,onSuccess:()=>{f(),qP(`Document restored`)},onError:e=>JP(`Restore failed`,String(e))}),m=ib({mutationFn:$P,onSuccess:()=>{f(),qP(`Permanently deleted`)},onError:e=>JP(`Purge failed`,String(e))});return(0,G.jsx)(Fw,{eyebrow:`Recoverable`,title:`Trash`,subtitle:`Soft-deleted documents — excluded from search until restored or purged.`,headerRight:(0,G.jsx)(`div`,{style:{width:400,maxWidth:`100%`},children:(0,G.jsx)(qw,{title:`CLI equivalent`,commands:[{cmd:`cerefox document list`,args:`--deleted`},{cmd:`cerefox document restore`,args:`<id>`}]})}),searchValue:o,onSearchChange:s,searchPlaceholder:`Filter trashed documents…`,searchText:e=>e.title,toolbarExtra:(0,G.jsx)(l_,{data:[`50`,`100`,`200`,`500`],value:i,onChange:e=>a(e||`50`),size:`sm`,w:110,"aria-label":`Max rows`}),columns:[{key:`title`,label:`Document`,render:e=>{let t=e.project_ids.find(e=>r.has(e));return(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:11},children:[(0,G.jsx)(`span`,{style:{width:8,height:8,borderRadius:`50%`,flexShrink:0,background:t?vne(r.get(t)):`var(--text-faint)`}}),(0,G.jsx)(`span`,{className:X.link,style:{fontSize:13.5},children:e.title})]})}},{key:`project`,label:`Project`,width:160,render:e=>{let t=e.project_ids.filter(e=>r.has(e)).map(e=>r.get(e));return t.length?(0,G.jsx)(`span`,{style:{display:`inline-flex`,gap:4,flexWrap:`wrap`},children:t.map(e=>(0,G.jsx)(`span`,{className:`${X.badge} ${X.bNeutral}`,children:e},e))}):(0,G.jsx)(`span`,{className:X.faint,style:{fontSize:12},children:`—`})}},{key:`size`,label:`Size`,width:110,align:`right`,render:e=>(0,G.jsx)(`span`,{className:`${X.mono} ${X.dim}`,style:{fontSize:12},children:e.total_chars.toLocaleString()})},{key:`deleted`,label:`Deleted`,width:120,align:`right`,render:e=>(0,G.jsx)(`span`,{className:`${X.faint} ${X.mono}`,style:{fontSize:12},children:e.deleted_at?.slice(0,10)??`?`})}],rows:u??[],rowKey:e=>e.id,rowClick:t=>e(`/document/${t.id}`),loading:d,emptyText:`Trash is empty.`,actions:e=>c===e.id?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,style:{color:`var(--red)`},onClick:()=>{m.mutate(e.id),l(null)},children:`Confirm purge`}),(0,G.jsx)(`button`,{type:`button`,className:`${X.btn} ${X.btnSubtle}`,onClick:()=>l(null),children:`Cancel`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnWarn}`,title:`Restore from trash`,onClick:()=>p.mutate(e.id),children:[(0,G.jsx)(gC,{size:14}),`Restore`]}),(0,G.jsxs)(`button`,{type:`button`,className:`${X.btn} ${X.btnGhost} ${X.btnDanger}`,title:`Permanently delete (cannot be undone)`,onClick:()=>l(e.id),children:[(0,G.jsx)(QC,{size:14}),`Purge`]})]})})}function bne(){return(0,G.jsx)(fS,{children:(0,G.jsxs)(uS,{element:(0,G.jsx)(Cw,{}),children:[(0,G.jsx)(uS,{path:`/`,element:(0,G.jsx)(tT,{})}),(0,G.jsx)(uS,{path:`/search`,element:(0,G.jsx)(dne,{})}),(0,G.jsx)(uS,{path:`/metadata-search`,element:(0,G.jsx)(Zte,{})}),(0,G.jsx)(uS,{path:`/document/:id`,element:(0,G.jsx)(kF,{})}),(0,G.jsx)(uS,{path:`/document/:id/edit`,element:(0,G.jsx)(XP,{})}),(0,G.jsx)(uS,{path:`/ingest`,element:(0,G.jsx)(IF,{})}),(0,G.jsx)(uS,{path:`/projects`,element:(0,G.jsx)(zF,{})}),(0,G.jsx)(uS,{path:`/projects/:id/documents`,element:(0,G.jsx)(LF,{})}),(0,G.jsx)(uS,{path:`/audit-log`,element:(0,G.jsx)(Bw,{})}),(0,G.jsx)(uS,{path:`/trash`,element:(0,G.jsx)(yne,{})}),(0,G.jsx)(uS,{path:`/analytics`,element:(0,G.jsx)(Jte,{})}),(0,G.jsx)(uS,{path:`/settings`,element:(0,G.jsx)(gne,{})}),(0,G.jsx)(uS,{path:`/help`,element:(0,G.jsx)(NF,{})}),(0,G.jsx)(uS,{path:`/help/*`,element:(0,G.jsx)(NF,{})})]})})}var xne=Nn({primaryColor:`fox`,primaryShade:{light:6,dark:5},colors:{fox:[`#fff1e8`,`#ffdcc6`,`#fcbd97`,`#f99d66`,`#f78440`,`#f57626`,`#e6641a`,`#bf5115`,`#983f10`,`#722f0b`],dark:[`#f3f1f7`,`#c4c0d4`,`#a6a2b8`,`#756f88`,`#332f49`,`#2b2840`,`#1f1c34`,`#161427`,`#121023`,`#0d0b1c`],violet:[`#f3eefe`,`#e0d3fb`,`#c4aef4`,`#aa8aed`,`#9a76e8`,`#8a62e2`,`#7a45d6`,`#6636bb`,`#522a96`,`#3f2175`],blue:[`#e9f2fd`,`#cbe0fa`,`#9cc6f4`,`#6cabef`,`#5aa9f0`,`#3f8fe0`,`#356fd0`,`#2b5aad`,`#22478a`,`#193668`],green:[`#e6f8ef`,`#c3edd9`,`#8fdcb6`,`#5acf95`,`#4ec98a`,`#36b576`,`#2f9e6a`,`#257e54`,`#1d6242`,`#154731`],yellow:[`#fdf6e3`,`#f8e9bd`,`#f0d585`,`#e8c24f`,`#e6bb45`,`#d6a52f`,`#b88824`,`#8f6a1b`,`#6d5115`,`#4d390e`],red:[`#fdecea`,`#f9cfc9`,`#f1a79c`,`#ea7f70`,`#e8675a`,`#dd4a3b`,`#c43a2c`,`#9d2f24`,`#79251c`,`#591b15`]},fontFamily:`Geist, system-ui, -apple-system, sans-serif`,fontFamilyMonospace:`'JetBrains Mono', ui-monospace, monospace`,headings:{fontFamily:`'Space Grotesk', system-ui, sans-serif`,fontWeight:`600`,sizes:{h1:{fontSize:`30px`,lineHeight:`1.15`,fontWeight:`600`},h2:{fontSize:`22px`,lineHeight:`1.2`,fontWeight:`600`},h3:{fontSize:`16px`,lineHeight:`1.3`,fontWeight:`600`}}},defaultRadius:`md`,radius:{xs:`6px`,sm:`8px`,md:`10px`,lg:`14px`,xl:`16px`},shadows:{sm:`0 1px 2px rgba(0,0,0,.10)`,md:`0 10px 30px -12px rgba(40,40,70,.18)`,lg:`0 28px 64px -20px rgba(35,30,80,.28)`},components:{Card:{defaultProps:{radius:`lg`,withBorder:!0,shadow:`sm`,padding:`lg`}},Button:{defaultProps:{radius:`md`},styles:{root:{fontWeight:600}}},Badge:{defaultProps:{radius:`xl`,variant:`light`},styles:{root:{fontFamily:`'JetBrains Mono', monospace`,fontWeight:500,textTransform:`none`}}},TextInput:{defaultProps:{radius:`md`}},Select:{defaultProps:{radius:`md`}},Table:{styles:{th:{fontFamily:`'JetBrains Mono', monospace`,fontSize:`10.5px`,fontWeight:500,letterSpacing:`0.1em`,textTransform:`uppercase`}}},SegmentedControl:{defaultProps:{radius:`md`}},Modal:{defaultProps:{radius:`lg`}},Tabs:{}},other:{fontDisplay:`'Space Grotesk', sans-serif`,fontMono:`'JetBrains Mono', monospace`}}),Sne=new By({defaultOptions:{queries:{staleTime:3e4,retry:1}}});(0,tw.createRoot)(document.getElementById(`root`)).render((0,G.jsx)(w.StrictMode,{children:(0,G.jsx)(Uy,{client:Sne,children:(0,G.jsxs)(Mn,{theme:xne,defaultColorScheme:`auto`,children:[(0,G.jsx)(Mv,{position:`top-right`}),(0,G.jsx)(QS,{basename:`/app`,children:(0,G.jsx)(bne,{})})]})})}));
|
|
121
|
-
//# sourceMappingURL=index-
|
|
121
|
+
//# sourceMappingURL=index-DcWOeGAh.js.map
|