@lovelybunch/api 1.0.71-alpha.4 → 1.0.71-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/api/v1/context/images/index.d.ts +2 -0
- package/dist/routes/api/v1/context/images/index.js +2 -0
- package/dist/routes/api/v1/context/images/route.d.ts +3 -0
- package/dist/routes/api/v1/context/images/route.js +253 -0
- package/dist/routes/api/v1/context/index.js +2 -0
- package/dist/routes/api/v1/resources/generate-audio/index.d.ts +3 -0
- package/dist/routes/api/v1/resources/generate-audio/index.js +5 -0
- package/dist/routes/api/v1/resources/generate-audio/route.d.ts +19 -0
- package/dist/routes/api/v1/resources/generate-audio/route.js +129 -0
- package/dist/routes/api/v1/resources/generate-video/index.d.ts +3 -0
- package/dist/routes/api/v1/resources/generate-video/index.js +5 -0
- package/dist/routes/api/v1/resources/generate-video/route.d.ts +19 -0
- package/dist/routes/api/v1/resources/generate-video/route.js +235 -0
- package/dist/routes/api/v1/resources/index.js +4 -0
- package/dist/routes/api/v1/resources/route.js +3 -3
- package/package.json +4 -4
- package/static/assets/{AgentDetailPage-BkWRFbPj.js → AgentDetailPage-Bw8wHgla.js} +1 -1
- package/static/assets/{AgentEditPage-DN0TouUG.js → AgentEditPage-CQ9Y3ez8.js} +1 -1
- package/static/assets/{AgentsPage-DW6eV7oU.js → AgentsPage-DcgU1MPa.js} +1 -1
- package/static/assets/{AgentsSettingsPage-BJKnn0R0.js → AgentsSettingsPage-CgoXxqGL.js} +1 -1
- package/static/assets/{ApiKeysSettingsPage-ChFu9Eo6.js → ApiKeysSettingsPage-BgqGOa4p.js} +3 -3
- package/static/assets/{ArchitectureEditPage-DWrvSS5U.js → ArchitectureEditPage-DrEnTloL.js} +1 -1
- package/static/assets/{ArchitecturePage-BdQG779E.js → ArchitecturePage-Dpd6cyyT.js} +1 -1
- package/static/assets/{AuthSettingsPage-BXMn4xXd.js → AuthSettingsPage-wu1zFEx-.js} +2 -2
- package/static/assets/{CallbackPage-AxQqTxCV.js → CallbackPage-DYzikcPp.js} +1 -1
- package/static/assets/{CodePage-CfKZ52Zo.js → CodePage-CtM-PEHU.js} +1 -1
- package/static/assets/{CollapsibleSection-ZFq6LSXW.js → CollapsibleSection-B23j-nZD.js} +1 -1
- package/static/assets/{DashboardPage-Df-d3-fG.js → DashboardPage-BoPCq6M9.js} +1 -1
- package/static/assets/{GitPage-DAWR8rrg.js → GitPage-DYicFQBx.js} +1 -1
- package/static/assets/{GitSettingsPage-CzGuiY9j.js → GitSettingsPage-B-1Nnid8.js} +2 -2
- package/static/assets/{IdentityPage-DbsNwWtP.js → IdentityPage-Cvj6SDPj.js} +2 -2
- package/static/assets/{ImplementationStepsEditor-DZq7KcDP.js → ImplementationStepsEditor-CCfJKk2U.js} +1 -1
- package/static/assets/{IntegrationsSettingsPage-qvvsp1_G.js → IntegrationsSettingsPage-BgLXCF-u.js} +1 -1
- package/static/assets/{KnowledgeDetailPage-BMnj1qiH.js → KnowledgeDetailPage-I9erHJXN.js} +1 -1
- package/static/assets/{KnowledgeEditPage-BZa4E2M9.js → KnowledgeEditPage-BfaWotPl.js} +1 -1
- package/static/assets/{KnowledgePage-Dtq9BKZi.js → KnowledgePage-x9ShzjoT.js} +2 -2
- package/static/assets/{LoginPage-BnlCd8Cm.js → LoginPage-CZtwhbdN.js} +1 -1
- package/static/assets/{McpSettingsPage-COPMqimV.js → McpSettingsPage-BHPjMqOX.js} +1 -1
- package/static/assets/{NewAgentPage-Dtvey1oU.js → NewAgentPage-D-Pj_KgZ.js} +1 -1
- package/static/assets/{NewKnowledgePage-CbiRD2V3.js → NewKnowledgePage-CoVnCUx6.js} +1 -1
- package/static/assets/{NewProposalPage-B1tUJIZz.js → NewProposalPage-nCTq2mBC.js} +1 -1
- package/static/assets/{ProjectEditPage-CwM8LXHy.js → ProjectEditPage-d1cMZArt.js} +1 -1
- package/static/assets/{ProjectPage-BHa8M3vI.js → ProjectPage-KwwOjk5b.js} +1 -1
- package/static/assets/{PromptsSettingsPage-CwGmsIAW.js → PromptsSettingsPage-fSs6HBAk.js} +1 -1
- package/static/assets/{ProposalDetailPage-DC7NMuFi.js → ProposalDetailPage-BnLOBPPT.js} +1 -1
- package/static/assets/{ProposalEditPage-CfUidv6D.js → ProposalEditPage-bIYTFTmG.js} +1 -1
- package/static/assets/{ProposalsPage-V8ut_TsU.js → ProposalsPage-D8W2d6g6.js} +1 -1
- package/static/assets/ResourcesPage-Dq9DZFd7.js +71 -0
- package/static/assets/{RulesSettingsPage-BJ72X2Y3.js → RulesSettingsPage-SWRxKVNH.js} +1 -1
- package/static/assets/{SchedulePage-DBYxTZMb.js → SchedulePage-DGxD8ZaL.js} +1 -1
- package/static/assets/{TagInput-Cqju3cXZ.js → TagInput-CYcNHzrk.js} +1 -1
- package/static/assets/{TerminalPage-Iow1ciWG.js → TerminalPage-fabajZvk.js} +1 -1
- package/static/assets/{TerminalSessionPage-CZdzhFhY.js → TerminalSessionPage-DuJsKT9f.js} +1 -1
- package/static/assets/{UserPreferencesPage-CAuJ7yO4.js → UserPreferencesPage-DQMtobsK.js} +1 -1
- package/static/assets/{UserSettingsPage-0j7ha-RI.js → UserSettingsPage-CFEb7pD0.js} +1 -1
- package/static/assets/{UtilitiesPage-OgkcmaOS.js → UtilitiesPage-qStPGLN_.js} +1 -1
- package/static/assets/{alert-D2VTq6m-.js → alert-Baaj8mli.js} +1 -1
- package/static/assets/{arrow-down-vmWOjyjO.js → arrow-down-CSpiROUo.js} +1 -1
- package/static/assets/{arrow-left-Do2jUSS9.js → arrow-left-CdJt7_wH.js} +1 -1
- package/static/assets/{arrow-up-hMM1cdZm.js → arrow-up-ugn3lusK.js} +1 -1
- package/static/assets/{badge-D7ZZbMEG.js → badge-fHjW-wEe.js} +1 -1
- package/static/assets/{browser-modal-CWDhylx7.js → browser-modal-D6BB5mxm.js} +1 -1
- package/static/assets/{calendar-C5JtKp_F.js → calendar-DXMWQL-h.js} +1 -1
- package/static/assets/{card-D_zGBKua.js → card-C9ekeZtD.js} +1 -1
- package/static/assets/{chevron-left-JjvWea8A.js → chevron-left-BkP_F3xd.js} +1 -1
- package/static/assets/{circle-alert-DQD0CPB3.js → circle-alert-DnIYekt3.js} +1 -1
- package/static/assets/{circle-check-xj41FKuF.js → circle-check-BO-qmBFl.js} +1 -1
- package/static/assets/{circle-check-big-KfJvKA9H.js → circle-check-big-BUVglreY.js} +1 -1
- package/static/assets/{circle-play-BlGnYWUU.js → circle-play-84ZOWBDG.js} +1 -1
- package/static/assets/{circle-x-Ds97aY1x.js → circle-x-EQNlLpRR.js} +1 -1
- package/static/assets/{clipboard-D3NA8gb4.js → clipboard-Dv0iwZO9.js} +1 -1
- package/static/assets/{clock-9dU_D6sL.js → clock-BxO7xcX9.js} +1 -1
- package/static/assets/{download-CNckZYWh.js → download-CpaVC4DU.js} +1 -1
- package/static/assets/{eye-Dp6wEoME.js → eye-BSR7OEmk.js} +1 -1
- package/static/assets/{folder-git-2-B9ILjFN2.js → folder-git-2-9fWvFiHp.js} +1 -1
- package/static/assets/index-BAEEeZzi.js +458 -0
- package/static/assets/index-DdGUrKz8.css +2 -0
- package/static/assets/label-CRsu1MwQ.js +1 -0
- package/static/assets/{markdown-editor-BiM9h5iI.js → markdown-editor-Dop22vuJ.js} +1 -1
- package/static/assets/{pause-BNL49HvB.js → pause-C7KYrzQF.js} +1 -1
- package/static/assets/{play-8b83f5X0.js → play-DhUf2mKM.js} +1 -1
- package/static/assets/{plus-Be79gWKj.js → plus-CemYz5Fm.js} +1 -1
- package/static/assets/radio-group-Dz2cO4IQ.js +1 -0
- package/static/assets/{refresh-cw-C0_Ot2Zc.js → refresh-cw-BL3y7jJo.js} +1 -1
- package/static/assets/{search-CrIdR7ah.js → search-BvRo_rak.js} +1 -1
- package/static/assets/{switch-BYPAX9oF.js → switch-CDOrVL8G.js} +1 -1
- package/static/assets/{tabs-Ug7Ug5Ha.js → tabs-CP_A6r0A.js} +1 -1
- package/static/assets/{tag-BgO5mxYK.js → tag-BpNIhvRX.js} +1 -1
- package/static/assets/{terminal-preview-CDrLQbSE.js → terminal-preview-CbgoHEQH.js} +1 -1
- package/static/assets/{use-terminal-CNk4WtA6.js → use-terminal-ZvK-kdxE.js} +1 -1
- package/static/assets/{zap-cD8GAJPg.js → zap-DOtH7YrV.js} +1 -1
- package/static/index.html +2 -2
- package/static/assets/ResourcesPage-Cofgbx3H.js +0 -66
- package/static/assets/index-Bbxvuj4b.js +0 -458
- package/static/assets/index-Ca98xZVe.css +0 -2
- package/static/assets/label-CZGCmBD7.js +0 -1
- package/static/assets/radio-group-DpxssBzw.js +0 -1
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BoPCq6M9.js","assets/card-C9ekeZtD.js","assets/badge-fHjW-wEe.js","assets/folder-git-2-9fWvFiHp.js","assets/calendar-DXMWQL-h.js","assets/circle-check-BO-qmBFl.js","assets/chevron-left-BkP_F3xd.js","assets/clock-BxO7xcX9.js","assets/circle-check-big-BUVglreY.js","assets/plus-CemYz5Fm.js","assets/LoginPage-CZtwhbdN.js","assets/label-CRsu1MwQ.js","assets/tabs-CP_A6r0A.js","assets/CallbackPage-DYzikcPp.js","assets/circle-x-EQNlLpRR.js","assets/ProposalsPage-D8W2d6g6.js","assets/search-BvRo_rak.js","assets/ProposalDetailPage-BnLOBPPT.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-CdJt7_wH.js","assets/clipboard-Dv0iwZO9.js","assets/download-CpaVC4DU.js","assets/ProposalEditPage-bIYTFTmG.js","assets/markdown-editor-Dop22vuJ.js","assets/markdown-editor-DUEthZ0y.css","assets/CollapsibleSection-B23j-nZD.js","assets/ImplementationStepsEditor-CCfJKk2U.js","assets/TagInput-CYcNHzrk.js","assets/NewProposalPage-nCTq2mBC.js","assets/TerminalPage-fabajZvk.js","assets/use-terminal-ZvK-kdxE.js","assets/terminal-preview-CbgoHEQH.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/refresh-cw-BL3y7jJo.js","assets/play-DhUf2mKM.js","assets/circle-play-84ZOWBDG.js","assets/TerminalSessionPage-DuJsKT9f.js","assets/radio-group-Dz2cO4IQ.js","assets/arrow-down-CSpiROUo.js","assets/droid-CmYuCN_q.js","assets/zap-DOtH7YrV.js","assets/UtilitiesPage-qStPGLN_.js","assets/CodePage-CtM-PEHU.js","assets/AgentsPage-DcgU1MPa.js","assets/browser-modal-D6BB5mxm.js","assets/registry-ANRa5WBi.js","assets/tag-BpNIhvRX.js","assets/AgentDetailPage-Bw8wHgla.js","assets/NewAgentPage-D-Pj_KgZ.js","assets/AgentEditPage-CQ9Y3ez8.js","assets/ResourcesPage-Dq9DZFd7.js","assets/KnowledgePage-x9ShzjoT.js","assets/arrow-up-ugn3lusK.js","assets/KnowledgeDetailPage-I9erHJXN.js","assets/KnowledgeEditPage-BfaWotPl.js","assets/NewKnowledgePage-CoVnCUx6.js","assets/ProjectPage-KwwOjk5b.js","assets/ProjectEditPage-d1cMZArt.js","assets/ArchitecturePage-Dpd6cyyT.js","assets/ArchitectureEditPage-DrEnTloL.js","assets/IdentityPage-Cvj6SDPj.js","assets/alert-Baaj8mli.js","assets/eye-BSR7OEmk.js","assets/UserSettingsPage-CFEb7pD0.js","assets/AuthSettingsPage-wu1zFEx-.js","assets/switch-CDOrVL8G.js","assets/circle-alert-DnIYekt3.js","assets/ApiKeysSettingsPage-BgqGOa4p.js","assets/AgentsSettingsPage-CgoXxqGL.js","assets/pause-C7KYrzQF.js","assets/IntegrationsSettingsPage-BgLXCF-u.js","assets/GitSettingsPage-B-1Nnid8.js","assets/McpSettingsPage-BHPjMqOX.js","assets/PromptsSettingsPage-fSs6HBAk.js","assets/RulesSettingsPage-SWRxKVNH.js","assets/GitPage-DYicFQBx.js","assets/SchedulePage-DGxD8ZaL.js","assets/UserPreferencesPage-DQMtobsK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function _T(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hh={exports:{}},kl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var qx;function MT(){if(qx)return kl;qx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return kl.Fragment=n,kl.jsx=r,kl.jsxs=r,kl}var Vx;function jT(){return Vx||(Vx=1,hh.exports=MT()),hh.exports}var g=jT(),ph={exports:{}},Pe={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var $x;function DT(){if($x)return Pe;$x=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function A(k,Z,ce){this.props=k,this.context=Z,this.refs=S,this.updater=ce||w}A.prototype.isReactComponent={},A.prototype.setState=function(k,Z){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Z,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=A.prototype;function N(k,Z,ce){this.props=k,this.context=Z,this.refs=S,this.updater=ce||w}var R=N.prototype=new T;R.constructor=N,E(R,A.prototype),R.isPureReactComponent=!0;var D=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function B(k,Z,ce,M,se,Se){return ce=Se.ref,{$$typeof:e,type:k,key:Z,ref:ce!==void 0?ce:null,props:Se}}function U(k,Z){return B(k.type,Z,void 0,void 0,void 0,k.props)}function Y(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function L(k){var Z={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ce){return Z[ce]})}var J=/\/+/g;function W(k,Z){return typeof k=="object"&&k!==null&&k.key!=null?L(""+k.key):Z.toString(36)}function ie(){}function G(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ie,ie):(k.status="pending",k.then(function(Z){k.status==="pending"&&(k.status="fulfilled",k.value=Z)},function(Z){k.status==="pending"&&(k.status="rejected",k.reason=Z)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function ne(k,Z,ce,M,se){var Se=typeof k;(Se==="undefined"||Se==="boolean")&&(k=null);var me=!1;if(k===null)me=!0;else switch(Se){case"bigint":case"string":case"number":me=!0;break;case"object":switch(k.$$typeof){case e:case n:me=!0;break;case m:return me=k._init,ne(me(k._payload),Z,ce,M,se)}}if(me)return se=se(k),me=M===""?"."+W(k,0):M,D(se)?(ce="",me!=null&&(ce=me.replace(J,"$&/")+"/"),ne(se,Z,ce,"",function(He){return He})):se!=null&&(Y(se)&&(se=U(se,ce+(se.key==null||k&&k.key===se.key?"":(""+se.key).replace(J,"$&/")+"/")+me)),Z.push(se)),1;me=0;var le=M===""?".":M+":";if(D(k))for(var ve=0;ve<k.length;ve++)M=k[ve],Se=le+W(M,ve),me+=ne(M,Z,ce,Se,se);else if(ve=b(k),typeof ve=="function")for(k=ve.call(k),ve=0;!(M=k.next()).done;)M=M.value,Se=le+W(M,ve++),me+=ne(M,Z,ce,Se,se);else if(Se==="object"){if(typeof k.then=="function")return ne(G(k),Z,ce,M,se);throw Z=String(k),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return me}function z(k,Z,ce){if(k==null)return k;var M=[],se=0;return ne(k,M,"","",function(Se){return Z.call(ce,Se,se++)}),M}function Q(k){if(k._status===-1){var Z=k._result;Z=Z(),Z.then(function(ce){(k._status===0||k._status===-1)&&(k._status=1,k._result=ce)},function(ce){(k._status===0||k._status===-1)&&(k._status=2,k._result=ce)}),k._status===-1&&(k._status=0,k._result=Z)}if(k._status===1)return k._result.default;throw k._result}var F=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function re(){}return Pe.Children={map:z,forEach:function(k,Z,ce){z(k,function(){Z.apply(this,arguments)},ce)},count:function(k){var Z=0;return z(k,function(){Z++}),Z},toArray:function(k){return z(k,function(Z){return Z})||[]},only:function(k){if(!Y(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Pe.Component=A,Pe.Fragment=r,Pe.Profiler=l,Pe.PureComponent=N,Pe.StrictMode=i,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return P.H.useMemoCache(k)}},Pe.cache=function(k){return function(){return k.apply(null,arguments)}},Pe.cloneElement=function(k,Z,ce){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var M=E({},k.props),se=k.key,Se=void 0;if(Z!=null)for(me in Z.ref!==void 0&&(Se=void 0),Z.key!==void 0&&(se=""+Z.key),Z)!j.call(Z,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Z.ref===void 0||(M[me]=Z[me]);var me=arguments.length-2;if(me===1)M.children=ce;else if(1<me){for(var le=Array(me),ve=0;ve<me;ve++)le[ve]=arguments[ve+2];M.children=le}return B(k.type,se,void 0,void 0,Se,M)},Pe.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Pe.createElement=function(k,Z,ce){var M,se={},Se=null;if(Z!=null)for(M in Z.key!==void 0&&(Se=""+Z.key),Z)j.call(Z,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(se[M]=Z[M]);var me=arguments.length-2;if(me===1)se.children=ce;else if(1<me){for(var le=Array(me),ve=0;ve<me;ve++)le[ve]=arguments[ve+2];se.children=le}if(k&&k.defaultProps)for(M in me=k.defaultProps,me)se[M]===void 0&&(se[M]=me[M]);return B(k,Se,void 0,void 0,null,se)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(k){return{$$typeof:f,render:k}},Pe.isValidElement=Y,Pe.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:Q}},Pe.memo=function(k,Z){return{$$typeof:h,type:k,compare:Z===void 0?null:Z}},Pe.startTransition=function(k){var Z=P.T,ce={};P.T=ce;try{var M=k(),se=P.S;se!==null&&se(ce,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(re,F)}catch(Se){F(Se)}finally{P.T=Z}},Pe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Pe.use=function(k){return P.H.use(k)},Pe.useActionState=function(k,Z,ce){return P.H.useActionState(k,Z,ce)},Pe.useCallback=function(k,Z){return P.H.useCallback(k,Z)},Pe.useContext=function(k){return P.H.useContext(k)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(k,Z){return P.H.useDeferredValue(k,Z)},Pe.useEffect=function(k,Z,ce){var M=P.H;if(typeof ce=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(k,Z)},Pe.useId=function(){return P.H.useId()},Pe.useImperativeHandle=function(k,Z,ce){return P.H.useImperativeHandle(k,Z,ce)},Pe.useInsertionEffect=function(k,Z){return P.H.useInsertionEffect(k,Z)},Pe.useLayoutEffect=function(k,Z){return P.H.useLayoutEffect(k,Z)},Pe.useMemo=function(k,Z){return P.H.useMemo(k,Z)},Pe.useOptimistic=function(k,Z){return P.H.useOptimistic(k,Z)},Pe.useReducer=function(k,Z,ce){return P.H.useReducer(k,Z,ce)},Pe.useRef=function(k){return P.H.useRef(k)},Pe.useState=function(k){return P.H.useState(k)},Pe.useSyncExternalStore=function(k,Z,ce){return P.H.useSyncExternalStore(k,Z,ce)},Pe.useTransition=function(){return P.H.useTransition()},Pe.version="19.1.1",Pe}var Gx;function Gp(){return Gx||(Gx=1,ph.exports=DT()),ph.exports}var x=Gp();const Sa=bc(x),$0=_T({__proto__:null,default:Sa},[x]);var mh={exports:{}},Al={},gh={exports:{}},yh={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Yx;function OT(){return Yx||(Yx=1,(function(e){function n(z,Q){var F=z.length;z.push(Q);e:for(;0<F;){var re=F-1>>>1,k=z[re];if(0<l(k,Q))z[re]=Q,z[F]=k,F=re;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var Q=z[0],F=z.pop();if(F!==Q){z[0]=F;e:for(var re=0,k=z.length,Z=k>>>1;re<Z;){var ce=2*(re+1)-1,M=z[ce],se=ce+1,Se=z[se];if(0>l(M,F))se<k&&0>l(Se,M)?(z[re]=Se,z[se]=F,re=se):(z[re]=M,z[ce]=F,re=ce);else if(se<k&&0>l(Se,F))z[re]=Se,z[se]=F,re=se;else break e}}return Q}function l(z,Q){var F=z.sortIndex-Q.sortIndex;return F!==0?F:z.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],m=1,y=null,b=3,w=!1,E=!1,S=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(z){for(var Q=r(h);Q!==null;){if(Q.callback===null)i(h);else if(Q.startTime<=z)i(h),Q.sortIndex=Q.expirationTime,n(d,Q);else break;Q=r(h)}}function P(z){if(S=!1,D(z),!E)if(r(d)!==null)E=!0,j||(j=!0,W());else{var Q=r(h);Q!==null&&ne(P,Q.startTime-z)}}var j=!1,B=-1,U=5,Y=-1;function L(){return A?!0:!(e.unstable_now()-Y<U)}function J(){if(A=!1,j){var z=e.unstable_now();Y=z;var Q=!0;try{e:{E=!1,S&&(S=!1,N(B),B=-1),w=!0;var F=b;try{t:{for(D(z),y=r(d);y!==null&&!(y.expirationTime>z&&L());){var re=y.callback;if(typeof re=="function"){y.callback=null,b=y.priorityLevel;var k=re(y.expirationTime<=z);if(z=e.unstable_now(),typeof k=="function"){y.callback=k,D(z),Q=!0;break t}y===r(d)&&i(d),D(z)}else i(d);y=r(d)}if(y!==null)Q=!0;else{var Z=r(h);Z!==null&&ne(P,Z.startTime-z),Q=!1}}break e}finally{y=null,b=F,w=!1}Q=void 0}}finally{Q?W():j=!1}}}var W;if(typeof R=="function")W=function(){R(J)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,G=ie.port2;ie.port1.onmessage=J,W=function(){G.postMessage(null)}}else W=function(){T(J,0)};function ne(z,Q){B=T(function(){z(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(z){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var F=b;b=Q;try{return z()}finally{b=F}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(z,Q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=b;b=z;try{return Q()}finally{b=F}},e.unstable_scheduleCallback=function(z,Q,F){var re=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?re+F:re):F=re,z){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=F+k,z={id:m++,callback:Q,priorityLevel:z,startTime:F,expirationTime:k,sortIndex:-1},F>re?(z.sortIndex=F,n(h,z),r(d)===null&&z===r(h)&&(S?(N(B),B=-1):S=!0,ne(P,F-re))):(z.sortIndex=k,n(d,z),E||w||(E=!0,j||(j=!0,W()))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var Q=b;return function(){var F=b;b=Q;try{return z.apply(this,arguments)}finally{b=F}}}})(yh)),yh}var Kx;function PT(){return Kx||(Kx=1,gh.exports=OT()),gh.exports}var vh={exports:{}},en={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Xx;function LT(){if(Xx)return en;Xx=1;var e=Gp();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:d,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,en.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(d,h,null,m)},en.flushSync=function(d){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,d)return d()}finally{c.T=h,i.p=m,i.d.f()}},en.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},en.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},en.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):m==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},en.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},en.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},en.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},en.requestFormReset=function(d){i.d.r(d)},en.unstable_batchedUpdates=function(d,h){return d(h)},en.useFormState=function(d,h,m){return c.H.useFormState(d,h,m)},en.useFormStatus=function(){return c.H.useHostTransitionStatus()},en.version="19.1.1",en}var Qx;function G0(){if(Qx)return vh.exports;Qx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=LT(),vh.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Zx;function zT(){if(Zx)return Al;Zx=1;var e=PT(),n=Gp(),r=G0();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var a=t,o=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(o=a.return),t=a.return;while(t)}return a.tag===3?o:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(s(t)!==t)throw Error(i(188))}function d(t){var a=t.alternate;if(!a){if(a=s(t),a===null)throw Error(i(188));return a!==t?null:t}for(var o=t,u=a;;){var p=o.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){o=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===o)return f(p),t;if(v===u)return f(p),a;v=v.sibling}throw Error(i(188))}if(o.return!==u.return)o=p,u=v;else{for(var C=!1,_=p.child;_;){if(_===o){C=!0,o=p,u=v;break}if(_===u){C=!0,u=p,o=v;break}_=_.sibling}if(!C){for(_=v.child;_;){if(_===o){C=!0,o=v,u=p;break}if(_===u){C=!0,u=v,o=p;break}_=_.sibling}if(!C)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:a}function h(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=h(t),a!==null)return a;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=J&&t[J]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Symbol.for("react.client.reference");function G(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case R:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case D:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return a=t.displayName||null,a!==null?a:G(t.type)||"Memo";case U:a=t._payload,t=t._init;try{return G(t(a))}catch{}}return null}var ne=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},re=[],k=-1;function Z(t){return{current:t}}function ce(t){0>k||(t.current=re[k],re[k]=null,k--)}function M(t,a){k++,re[k]=t.current,t.current=a}var se=Z(null),Se=Z(null),me=Z(null),le=Z(null);function ve(t,a){switch(M(me,a),M(Se,t),M(se,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?yx(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=yx(a),t=vx(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ce(se),M(se,t)}function He(){ce(se),ce(Se),ce(me)}function Ce(t){t.memoizedState!==null&&M(le,t);var a=se.current,o=vx(a,t.type);a!==o&&(M(Se,t),M(se,o))}function Oe(t){Se.current===t&&(ce(se),ce(Se)),le.current===t&&(ce(le),bl._currentValue=F)}var Xe=Object.prototype.hasOwnProperty,Ct=e.unstable_scheduleCallback,kt=e.unstable_cancelCallback,Xt=e.unstable_shouldYield,Xn=e.unstable_requestPaint,ft=e.unstable_now,_o=e.unstable_getCurrentPriorityLevel,Qn=e.unstable_ImmediatePriority,ja=e.unstable_UserBlockingPriority,Qr=e.unstable_NormalPriority,di=e.unstable_LowPriority,Da=e.unstable_IdlePriority,hi=e.log,Zr=e.unstable_setDisableYieldValue,ee=null,de=null;function ke(t){if(typeof hi=="function"&&Zr(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(ee,t)}catch{}}var Te=Math.clz32?Math.clz32:Zn,et=Math.log,rn=Math.LN2;function Zn(t){return t>>>=0,t===0?32:31-(et(t)/rn|0)|0}var Qt=256,jn=4194304;function an(t){var a=t&42;if(a!==0)return a;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function At(t,a,o){var u=t.pendingLanes;if(u===0)return 0;var p=0,v=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var _=u&134217727;return _!==0?(u=_&~v,u!==0?p=an(u):(C&=_,C!==0?p=an(C):o||(o=_&~t,o!==0&&(p=an(o))))):(_=u&~v,_!==0?p=an(_):C!==0?p=an(C):o||(o=u&~t,o!==0&&(p=an(o)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,o=a&-a,v>=o||v===32&&(o&4194048)!==0)?a:p}function Zt(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function fn(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Cr(){var t=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),t}function pi(){var t=jn;return jn<<=1,(jn&62914560)===0&&(jn=4194304),t}function $(t){for(var a=[],o=0;31>o;o++)a.push(t);return a}function fe(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ge(t,a,o,u,p,v){var C=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var _=t.entanglements,O=t.expirationTimes,V=t.hiddenUpdates;for(o=C&~o;0<o;){var te=31-Te(o),oe=1<<te;_[te]=0,O[te]=-1;var K=V[te];if(K!==null)for(V[te]=null,te=0;te<K.length;te++){var X=K[te];X!==null&&(X.lane&=-536870913)}o&=~oe}u!==0&&ye(t,u,0),v!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=v&~(C&~a))}function ye(t,a,o){t.pendingLanes|=a,t.suspendedLanes&=~a;var u=31-Te(a);t.entangledLanes|=a,t.entanglements[u]=t.entanglements[u]|1073741824|o&4194090}function Me(t,a){var o=t.entangledLanes|=a;for(t=t.entanglements;o;){var u=31-Te(o),p=1<<u;p&a|t[u]&a&&(t[u]|=a),o&=~p}}function Qe(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Wt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Tt(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:zx(t.type))}function Ke(t,a){var o=Q.p;try{return Q.p=t,a()}finally{Q.p=o}}var vt=Math.random().toString(36).slice(2),dt="__reactFiber$"+vt,mt="__reactProps$"+vt,lt="__reactContainer$"+vt,dn="__reactEvents$"+vt,hn="__reactListeners$"+vt,Mo="__reactHandles$"+vt,Oa="__reactResources$"+vt,kr="__reactMarker$"+vt;function jo(t){delete t[dt],delete t[mt],delete t[dn],delete t[hn],delete t[Mo]}function Bt(t){var a=t[dt];if(a)return a;for(var o=t.parentNode;o;){if(a=o[lt]||o[dt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(t=Sx(t);t!==null;){if(o=t[dt])return o;t=Sx(t)}return a}t=o,o=t.parentNode}return null}function Ut(t){if(t=t[dt]||t[lt]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function st(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function Wn(t){var a=t[Oa];return a||(a=t[Oa]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function qe(t){t[kr]=!0}var Rt=new Set,jt={};function pn(t,a){ur(t,a),ur(t+"Capture",a)}function ur(t,a){for(jt[t]=a,t=0;t<a.length;t++)Rt.add(a[t])}var Pa=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]*$"),Ht={},Ar={};function La(t){return Xe.call(Ar,t)?!0:Xe.call(Ht,t)?!1:Pa.test(t)?Ar[t]=!0:(Ht[t]=!0,!1)}function xs(t,a,o){if(La(a))if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+o)}}function bs(t,a,o){if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+o)}}function Tr(t,a,o,u){if(u===null)t.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(a,o,""+u)}}var lf,cg;function mi(t){if(lf===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);lf=a&&a[1]||"",cg=-1<o.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+lf+t+cg}var sf=!1;function uf(t,a){if(!t||sf)return"";sf=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(X){var K=X}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(X){K=X}t.call(oe.prototype)}}else{try{throw Error()}catch(X){K=X}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(X){if(X&&K&&typeof X.stack=="string")return[X.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),C=v[0],_=v[1];if(C&&_){var O=C.split(`
|
|
45
|
+
`),V=_.split(`
|
|
46
|
+
`);for(p=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;p<V.length&&!V[p].includes("DetermineComponentFrameRoot");)p++;if(u===O.length||p===V.length)for(u=O.length-1,p=V.length-1;1<=u&&0<=p&&O[u]!==V[p];)p--;for(;1<=u&&0<=p;u--,p--)if(O[u]!==V[p]){if(u!==1||p!==1)do if(u--,p--,0>p||O[u]!==V[p]){var te=`
|
|
47
|
+
`+O[u].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=u&&0<=p);break}}}finally{sf=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?mi(o):""}function C2(t){switch(t.tag){case 26:case 27:case 5:return mi(t.type);case 16:return mi("Lazy");case 13:return mi("Suspense");case 19:return mi("SuspenseList");case 0:case 15:return uf(t.type,!1);case 11:return uf(t.type.render,!1);case 1:return uf(t.type,!0);case 31:return mi("Activity");default:return""}}function fg(t){try{var a="";do a+=C2(t),t=t.return;while(t);return a}catch(o){return`
|
|
48
|
+
Error generating stack: `+o.message+`
|
|
49
|
+
`+o.stack}}function Dn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function dg(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function k2(t){var a=dg(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),u=""+t[a];if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var p=o.get,v=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return p.call(this)},set:function(C){u=""+C,v.call(this,C)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function ws(t){t._valueTracker||(t._valueTracker=k2(t))}function hg(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return t&&(u=dg(t)?t.checked?"true":"false":t.value),t=u,t!==o?(a.setValue(t),!0):!1}function Ss(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var A2=/[\n"\\]/g;function On(t){return t.replace(A2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function cf(t,a,o,u,p,v,C,_){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),a!=null?C==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Dn(a)):t.value!==""+Dn(a)&&(t.value=""+Dn(a)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),a!=null?ff(t,C,Dn(a)):o!=null?ff(t,C,Dn(o)):u!=null&&t.removeAttribute("value"),p==null&&v!=null&&(t.defaultChecked=!!v),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+Dn(_):t.removeAttribute("name")}function pg(t,a,o,u,p,v,C,_){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),a!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;o=o!=null?""+Dn(o):"",a=a!=null?""+Dn(a):o,_||a===t.value||(t.value=a),t.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=_?t.checked:!!u,t.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C)}function ff(t,a,o){a==="number"&&Ss(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function gi(t,a,o,u){if(t=t.options,a){a={};for(var p=0;p<o.length;p++)a["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=a.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&u&&(t[o].defaultSelected=!0)}else{for(o=""+Dn(o),a=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}a!==null||t[p].disabled||(a=t[p])}a!==null&&(a.selected=!0)}}function mg(t,a,o){if(a!=null&&(a=""+Dn(a),a!==t.value&&(t.value=a),o==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=o!=null?""+Dn(o):""}function gg(t,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(i(92));if(ne(u)){if(1<u.length)throw Error(i(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=Dn(a),t.defaultValue=o,u=t.textContent,u===o&&u!==""&&u!==null&&(t.value=u)}function yi(t,a){if(a){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=a;return}}t.textContent=a}var T2=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 yg(t,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":u?t.setProperty(a,o):typeof o!="number"||o===0||T2.has(a)?a==="float"?t.cssFloat=o:t[a]=(""+o).trim():t[a]=o+"px"}function vg(t,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in a)u=a[p],a.hasOwnProperty(p)&&o[p]!==u&&yg(t,p,u)}else for(var v in a)a.hasOwnProperty(v)&&yg(t,v,a[v])}function df(t){if(t.indexOf("-")===-1)return!1;switch(t){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 R2=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"]]),N2=/^[\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 Es(t){return N2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var hf=null;function pf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vi=null,xi=null;function xg(t){var a=Ut(t);if(a&&(t=a.stateNode)){var o=t[mt]||null;e:switch(t=a.stateNode,a.type){case"input":if(cf(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+On(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==t&&u.form===t.form){var p=u[mt]||null;if(!p)throw Error(i(90));cf(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===t.form&&hg(u)}break e;case"textarea":mg(t,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&gi(t,!!o.multiple,a,!1)}}}var mf=!1;function bg(t,a,o){if(mf)return t(a,o);mf=!0;try{var u=t(a);return u}finally{if(mf=!1,(vi!==null||xi!==null)&&(su(),vi&&(a=vi,t=xi,xi=vi=null,xg(a),t)))for(a=0;a<t.length;a++)xg(t[a])}}function Do(t,a){var o=t.stateNode;if(o===null)return null;var u=o[mt]||null;if(u===null)return null;o=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gf=!1;if(Rr)try{var Oo={};Object.defineProperty(Oo,"passive",{get:function(){gf=!0}}),window.addEventListener("test",Oo,Oo),window.removeEventListener("test",Oo,Oo)}catch{gf=!1}var Wr=null,yf=null,Cs=null;function wg(){if(Cs)return Cs;var t,a=yf,o=a.length,u,p="value"in Wr?Wr.value:Wr.textContent,v=p.length;for(t=0;t<o&&a[t]===p[t];t++);var C=o-t;for(u=1;u<=C&&a[o-u]===p[v-u];u++);return Cs=p.slice(t,1<u?1-u:void 0)}function ks(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function As(){return!0}function Sg(){return!1}function mn(t){function a(o,u,p,v,C){this._reactName=o,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=C,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(o=t[_],this[_]=o?o(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?As:Sg,this.isPropagationStopped=Sg,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=As)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=As)},persist:function(){},isPersistent:As}),a}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ts=mn(za),Po=m({},za,{view:0,detail:0}),_2=mn(Po),vf,xf,Lo,Rs=m({},Po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Lo&&(Lo&&t.type==="mousemove"?(vf=t.screenX-Lo.screenX,xf=t.screenY-Lo.screenY):xf=vf=0,Lo=t),vf)},movementY:function(t){return"movementY"in t?t.movementY:xf}}),Eg=mn(Rs),M2=m({},Rs,{dataTransfer:0}),j2=mn(M2),D2=m({},Po,{relatedTarget:0}),bf=mn(D2),O2=m({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=mn(O2),L2=m({},za,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),z2=mn(L2),I2=m({},za,{data:0}),Cg=mn(I2),B2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={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"},H2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=H2[t])?!!a[t]:!1}function wf(){return F2}var q2=m({},Po,{key:function(t){if(t.key){var a=B2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=ks(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?U2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wf,charCode:function(t){return t.type==="keypress"?ks(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ks(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),V2=mn(q2),$2=m({},Rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kg=mn($2),G2=m({},Po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wf}),Y2=mn(G2),K2=m({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),X2=mn(K2),Q2=m({},Rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Z2=mn(Q2),W2=m({},za,{newState:0,oldState:0}),J2=mn(W2),eA=[9,13,27,32],Sf=Rr&&"CompositionEvent"in window,zo=null;Rr&&"documentMode"in document&&(zo=document.documentMode);var tA=Rr&&"TextEvent"in window&&!zo,Ag=Rr&&(!Sf||zo&&8<zo&&11>=zo),Tg=" ",Rg=!1;function Ng(t,a){switch(t){case"keyup":return eA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _g(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bi=!1;function nA(t,a){switch(t){case"compositionend":return _g(a);case"keypress":return a.which!==32?null:(Rg=!0,Tg);case"textInput":return t=a.data,t===Tg&&Rg?null:t;default:return null}}function rA(t,a){if(bi)return t==="compositionend"||!Sf&&Ng(t,a)?(t=wg(),Cs=yf=Wr=null,bi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ag&&a.locale!=="ko"?null:a.data;default:return null}}var aA={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 Mg(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!aA[t.type]:a==="textarea"}function jg(t,a,o,u){vi?xi?xi.push(u):xi=[u]:vi=u,a=pu(a,"onChange"),0<a.length&&(o=new Ts("onChange","change",null,o,u),t.push({event:o,listeners:a}))}var Io=null,Bo=null;function iA(t){dx(t,0)}function Ns(t){var a=st(t);if(hg(a))return t}function Dg(t,a){if(t==="change")return a}var Og=!1;if(Rr){var Ef;if(Rr){var Cf="oninput"in document;if(!Cf){var Pg=document.createElement("div");Pg.setAttribute("oninput","return;"),Cf=typeof Pg.oninput=="function"}Ef=Cf}else Ef=!1;Og=Ef&&(!document.documentMode||9<document.documentMode)}function Lg(){Io&&(Io.detachEvent("onpropertychange",zg),Bo=Io=null)}function zg(t){if(t.propertyName==="value"&&Ns(Bo)){var a=[];jg(a,Bo,t,pf(t)),bg(iA,a)}}function oA(t,a,o){t==="focusin"?(Lg(),Io=a,Bo=o,Io.attachEvent("onpropertychange",zg)):t==="focusout"&&Lg()}function lA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ns(Bo)}function sA(t,a){if(t==="click")return Ns(a)}function uA(t,a){if(t==="input"||t==="change")return Ns(a)}function cA(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var wn=typeof Object.is=="function"?Object.is:cA;function Uo(t,a){if(wn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var o=Object.keys(t),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var p=o[u];if(!Xe.call(a,p)||!wn(t[p],a[p]))return!1}return!0}function Ig(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bg(t,a){var o=Ig(t);t=0;for(var u;o;){if(o.nodeType===3){if(u=t+o.textContent.length,t<=a&&u>=a)return{node:o,offset:a-t};t=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ig(o)}}function Ug(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Ug(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Hg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Ss(t.document);a instanceof t.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)t=a.contentWindow;else break;a=Ss(t.document)}return a}function kf(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var fA=Rr&&"documentMode"in document&&11>=document.documentMode,wi=null,Af=null,Ho=null,Tf=!1;function Fg(t,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Tf||wi==null||wi!==Ss(u)||(u=wi,"selectionStart"in u&&kf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ho&&Uo(Ho,u)||(Ho=u,u=pu(Af,"onSelect"),0<u.length&&(a=new Ts("onSelect","select",null,a,o),t.push({event:a,listeners:u}),a.target=wi)))}function Ia(t,a){var o={};return o[t.toLowerCase()]=a.toLowerCase(),o["Webkit"+t]="webkit"+a,o["Moz"+t]="moz"+a,o}var Si={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},Rf={},qg={};Rr&&(qg=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function Ba(t){if(Rf[t])return Rf[t];if(!Si[t])return t;var a=Si[t],o;for(o in a)if(a.hasOwnProperty(o)&&o in qg)return Rf[t]=a[o];return t}var Vg=Ba("animationend"),$g=Ba("animationiteration"),Gg=Ba("animationstart"),dA=Ba("transitionrun"),hA=Ba("transitionstart"),pA=Ba("transitioncancel"),Yg=Ba("transitionend"),Kg=new Map,Nf="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(" ");Nf.push("scrollEnd");function Jn(t,a){Kg.set(t,a),pn(a,[t])}var Xg=new WeakMap;function Pn(t,a){if(typeof t=="object"&&t!==null){var o=Xg.get(t);return o!==void 0?o:(a={value:t,source:a,stack:fg(a)},Xg.set(t,a),a)}return{value:t,source:a,stack:fg(a)}}var Ln=[],Ei=0,_f=0;function _s(){for(var t=Ei,a=_f=Ei=0;a<t;){var o=Ln[a];Ln[a++]=null;var u=Ln[a];Ln[a++]=null;var p=Ln[a];Ln[a++]=null;var v=Ln[a];if(Ln[a++]=null,u!==null&&p!==null){var C=u.pending;C===null?p.next=p:(p.next=C.next,C.next=p),u.pending=p}v!==0&&Qg(o,p,v)}}function Ms(t,a,o,u){Ln[Ei++]=t,Ln[Ei++]=a,Ln[Ei++]=o,Ln[Ei++]=u,_f|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Mf(t,a,o,u){return Ms(t,a,o,u),js(t)}function Ci(t,a){return Ms(t,null,null,a),js(t)}function Qg(t,a,o){t.lanes|=o;var u=t.alternate;u!==null&&(u.lanes|=o);for(var p=!1,v=t.return;v!==null;)v.childLanes|=o,u=v.alternate,u!==null&&(u.childLanes|=o),v.tag===22&&(t=v.stateNode,t===null||t._visibility&1||(p=!0)),t=v,v=v.return;return t.tag===3?(v=t.stateNode,p&&a!==null&&(p=31-Te(o),t=v.hiddenUpdates,u=t[p],u===null?t[p]=[a]:u.push(a),a.lane=o|536870912),v):null}function js(t){if(50<dl)throw dl=0,zd=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var ki={};function mA(t,a,o,u){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(t,a,o,u){return new mA(t,a,o,u)}function jf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Nr(t,a){var o=t.alternate;return o===null?(o=Sn(t.tag,a,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=a,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,a=t.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Zg(t,a){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,a=o.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Ds(t,a,o,u,p,v){var C=0;if(u=t,typeof t=="function")jf(t)&&(C=1);else if(typeof t=="string")C=yT(t,o,se.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Y:return t=Sn(31,o,a,p),t.elementType=Y,t.lanes=v,t;case E:return Ua(o.children,p,v,a);case S:C=8,p|=24;break;case A:return t=Sn(12,o,a,p|2),t.elementType=A,t.lanes=v,t;case P:return t=Sn(13,o,a,p),t.elementType=P,t.lanes=v,t;case j:return t=Sn(19,o,a,p),t.elementType=j,t.lanes=v,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case R:C=10;break e;case N:C=9;break e;case D:C=11;break e;case B:C=14;break e;case U:C=16,u=null;break e}C=29,o=Error(i(130,t===null?"null":typeof t,"")),u=null}return a=Sn(C,o,a,p),a.elementType=t,a.type=u,a.lanes=v,a}function Ua(t,a,o,u){return t=Sn(7,t,u,a),t.lanes=o,t}function Df(t,a,o){return t=Sn(6,t,null,a),t.lanes=o,t}function Of(t,a,o){return a=Sn(4,t.children!==null?t.children:[],t.key,a),a.lanes=o,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Ai=[],Ti=0,Os=null,Ps=0,zn=[],In=0,Ha=null,_r=1,Mr="";function Fa(t,a){Ai[Ti++]=Ps,Ai[Ti++]=Os,Os=t,Ps=a}function Wg(t,a,o){zn[In++]=_r,zn[In++]=Mr,zn[In++]=Ha,Ha=t;var u=_r;t=Mr;var p=32-Te(u)-1;u&=~(1<<p),o+=1;var v=32-Te(a)+p;if(30<v){var C=p-p%5;v=(u&(1<<C)-1).toString(32),u>>=C,p-=C,_r=1<<32-Te(a)+p|o<<p|u,Mr=v+t}else _r=1<<v|o<<p|u,Mr=t}function Pf(t){t.return!==null&&(Fa(t,1),Wg(t,1,0))}function Lf(t){for(;t===Os;)Os=Ai[--Ti],Ai[Ti]=null,Ps=Ai[--Ti],Ai[Ti]=null;for(;t===Ha;)Ha=zn[--In],zn[In]=null,Mr=zn[--In],zn[In]=null,_r=zn[--In],zn[In]=null}var on=null,bt=null,tt=!1,qa=null,cr=!1,zf=Error(i(519));function Va(t){var a=Error(i(418,""));throw Vo(Pn(a,t)),zf}function Jg(t){var a=t.stateNode,o=t.type,u=t.memoizedProps;switch(a[dt]=t,a[mt]=u,o){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(o=0;o<pl.length;o++)$e(pl[o],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),pg(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),ws(a);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),gg(a,u.value,u.defaultValue,u.children),ws(a)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||gx(a.textContent,o)?(u.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),u.onScroll!=null&&$e("scroll",a),u.onScrollEnd!=null&&$e("scrollend",a),u.onClick!=null&&(a.onclick=mu),a=!0):a=!1,a||Va(t)}function ey(t){for(on=t.return;on;)switch(on.tag){case 5:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:on=on.return}}function Fo(t){if(t!==on)return!1;if(!tt)return ey(t),tt=!0,!1;var a=t.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Jd(t.type,t.memoizedProps)),o=!o),o&&bt&&Va(t),ey(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(o=t.data,o==="/$"){if(a===0){bt=tr(t.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;t=t.nextSibling}bt=null}}else a===27?(a=bt,pa(t.type)?(t=rh,rh=null,bt=t):bt=a):bt=on?tr(t.stateNode.nextSibling):null;return!0}function qo(){bt=on=null,tt=!1}function ty(){var t=qa;return t!==null&&(vn===null?vn=t:vn.push.apply(vn,t),qa=null),t}function Vo(t){qa===null?qa=[t]:qa.push(t)}var If=Z(null),$a=null,jr=null;function Jr(t,a,o){M(If,a._currentValue),a._currentValue=o}function Dr(t){t._currentValue=If.current,ce(If)}function Bf(t,a,o){for(;t!==null;){var u=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),t===o)break;t=t.return}}function Uf(t,a,o,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var v=p.dependencies;if(v!==null){var C=p.child;v=v.firstContext;e:for(;v!==null;){var _=v;v=p;for(var O=0;O<a.length;O++)if(_.context===a[O]){v.lanes|=o,_=v.alternate,_!==null&&(_.lanes|=o),Bf(v.return,o,t),u||(C=null);break e}v=_.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=o,v=C.alternate,v!==null&&(v.lanes|=o),Bf(C,o,t),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===t){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function $o(t,a,o,u){t=null;for(var p=a,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var _=p.type;wn(p.pendingProps.value,C.value)||(t!==null?t.push(_):t=[_])}}else if(p===le.current){if(C=p.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(bl):t=[bl])}p=p.return}t!==null&&Uf(a,t,o,u),a.flags|=262144}function Ls(t){for(t=t.firstContext;t!==null;){if(!wn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ga(t){$a=t,jr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return ny($a,t)}function zs(t,a){return $a===null&&Ga(t),ny(t,a)}function ny(t,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},jr===null){if(t===null)throw Error(i(308));jr=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else jr=jr.next=a;return o}var gA=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(o,u){t.push(u)}};this.abort=function(){a.aborted=!0,t.forEach(function(o){return o()})}},yA=e.unstable_scheduleCallback,vA=e.unstable_NormalPriority,Lt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hf(){return{controller:new gA,data:new Map,refCount:0}}function Go(t){t.refCount--,t.refCount===0&&yA(vA,function(){t.controller.abort()})}var Yo=null,Ff=0,Ri=0,Ni=null;function xA(t,a){if(Yo===null){var o=Yo=[];Ff=0,Ri=Vd(),Ni={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Ff++,a.then(ry,ry),a}function ry(){if(--Ff===0&&Yo!==null){Ni!==null&&(Ni.status="fulfilled");var t=Yo;Yo=null,Ri=0,Ni=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function bA(t,a){var o=[],u={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<o.length;p++)(0,o[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),u}var ay=z.S;z.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&xA(t,a),ay!==null&&ay(t,a)};var Ya=Z(null);function qf(){var t=Ya.current;return t!==null?t:ht.pooledCache}function Is(t,a){a===null?M(Ya,Ya.current):M(Ya,a.pool)}function iy(){var t=qf();return t===null?null:{parent:Lt._currentValue,pool:t}}var Ko=Error(i(460)),oy=Error(i(474)),Bs=Error(i(542)),Vf={then:function(){}};function ly(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Us(){}function sy(t,a,o){switch(o=t[o],o===void 0?t.push(a):o!==a&&(a.then(Us,Us),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,cy(t),t;default:if(typeof a.status=="string")a.then(Us,Us);else{if(t=ht,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(u){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=u}},function(u){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,cy(t),t}throw Xo=a,Ko}}var Xo=null;function uy(){if(Xo===null)throw Error(i(459));var t=Xo;return Xo=null,t}function cy(t){if(t===Ko||t===Bs)throw Error(i(483))}var ea=!1;function $f(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gf(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ta(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function na(t,a,o){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(nt&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=js(t),Qg(t,null,o),a}return Ms(t,u,a,o),js(t)}function Qo(t,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,Me(t,o)}}function Yf(t,a){var o=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var p=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var C={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?p=v=C:v=v.next=C,o=o.next}while(o!==null);v===null?p=v=a:v=v.next=a}else p=v=a;o={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=a:t.next=a,o.lastBaseUpdate=a}var Kf=!1;function Zo(){if(Kf){var t=Ni;if(t!==null)throw t}}function Wo(t,a,o,u){Kf=!1;var p=t.updateQueue;ea=!1;var v=p.firstBaseUpdate,C=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var O=_,V=O.next;O.next=null,C===null?v=V:C.next=V,C=O;var te=t.alternate;te!==null&&(te=te.updateQueue,_=te.lastBaseUpdate,_!==C&&(_===null?te.firstBaseUpdate=V:_.next=V,te.lastBaseUpdate=O))}if(v!==null){var oe=p.baseState;C=0,te=V=O=null,_=v;do{var K=_.lane&-536870913,X=K!==_.lane;if(X?(Ze&K)===K:(u&K)===K){K!==0&&K===Ri&&(Kf=!0),te!==null&&(te=te.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var je=t,Re=_;K=a;var ot=o;switch(Re.tag){case 1:if(je=Re.payload,typeof je=="function"){oe=je.call(ot,oe,K);break e}oe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Re.payload,K=typeof je=="function"?je.call(ot,oe,K):je,K==null)break e;oe=m({},oe,K);break e;case 2:ea=!0}}K=_.callback,K!==null&&(t.flags|=64,X&&(t.flags|=8192),X=p.callbacks,X===null?p.callbacks=[K]:X.push(K))}else X={lane:K,tag:_.tag,payload:_.payload,callback:_.callback,next:null},te===null?(V=te=X,O=oe):te=te.next=X,C|=K;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;X=_,_=X.next,X.next=null,p.lastBaseUpdate=X,p.shared.pending=null}}while(!0);te===null&&(O=oe),p.baseState=O,p.firstBaseUpdate=V,p.lastBaseUpdate=te,v===null&&(p.shared.lanes=0),ca|=C,t.lanes=C,t.memoizedState=oe}}function fy(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function dy(t,a){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)fy(o[t],a)}var _i=Z(null),Hs=Z(0);function hy(t,a){t=Ur,M(Hs,t),M(_i,a),Ur=t|a.baseLanes}function Xf(){M(Hs,Ur),M(_i,_i.current)}function Qf(){Ur=Hs.current,ce(_i),ce(Hs)}var ra=0,Be=null,at=null,Dt=null,Fs=!1,Mi=!1,Ka=!1,qs=0,Jo=0,ji=null,wA=0;function Nt(){throw Error(i(321))}function Zf(t,a){if(a===null)return!1;for(var o=0;o<a.length&&o<t.length;o++)if(!wn(t[o],a[o]))return!1;return!0}function Wf(t,a,o,u,p,v){return ra=v,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=t===null||t.memoizedState===null?Qy:Zy,Ka=!1,v=o(u,p),Ka=!1,Mi&&(v=my(a,o,u,p)),py(t),v}function py(t){z.H=Xs;var a=at!==null&&at.next!==null;if(ra=0,Dt=at=Be=null,Fs=!1,Jo=0,ji=null,a)throw Error(i(300));t===null||Ft||(t=t.dependencies,t!==null&&Ls(t)&&(Ft=!0))}function my(t,a,o,u){Be=t;var p=0;do{if(Mi&&(ji=null),Jo=0,Mi=!1,25<=p)throw Error(i(301));if(p+=1,Dt=at=null,t.updateQueue!=null){var v=t.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}z.H=RA,v=a(o,u)}while(Mi);return v}function SA(){var t=z.H,a=t.useState()[0];return a=typeof a.then=="function"?el(a):a,t=t.useState()[0],(at!==null?at.memoizedState:null)!==t&&(Be.flags|=1024),a}function Jf(){var t=qs!==0;return qs=0,t}function ed(t,a,o){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~o}function td(t){if(Fs){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Fs=!1}ra=0,Dt=at=Be=null,Mi=!1,Jo=qs=0,ji=null}function gn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Be.memoizedState=Dt=t:Dt=Dt.next=t,Dt}function Ot(){if(at===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=at.next;var a=Dt===null?Be.memoizedState:Dt.next;if(a!==null)Dt=a,at=t;else{if(t===null)throw Be.alternate===null?Error(i(467)):Error(i(310));at=t,t={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Dt===null?Be.memoizedState=Dt=t:Dt=Dt.next=t}return Dt}function nd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function el(t){var a=Jo;return Jo+=1,ji===null&&(ji=[]),t=sy(ji,t,a),a=Be,(Dt===null?a.memoizedState:Dt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?Qy:Zy),t}function Vs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return el(t);if(t.$$typeof===R)return Jt(t)}throw Error(i(438,String(t)))}function rd(t){var a=null,o=Be.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=Be.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=nd(),Be.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(t),u=0;u<t;u++)o[u]=L;return a.index++,o}function Or(t,a){return typeof a=="function"?a(t):a}function $s(t){var a=Ot();return ad(a,at,t)}function ad(t,a,o){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=o;var p=t.baseQueue,v=u.pending;if(v!==null){if(p!==null){var C=p.next;p.next=v.next,v.next=C}a.baseQueue=p=v,u.pending=null}if(v=t.baseState,p===null)t.memoizedState=v;else{a=p.next;var _=C=null,O=null,V=a,te=!1;do{var oe=V.lane&-536870913;if(oe!==V.lane?(Ze&oe)===oe:(ra&oe)===oe){var K=V.revertLane;if(K===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),oe===Ri&&(te=!0);else if((ra&K)===K){V=V.next,K===Ri&&(te=!0);continue}else oe={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(_=O=oe,C=v):O=O.next=oe,Be.lanes|=K,ca|=K;oe=V.action,Ka&&o(v,oe),v=V.hasEagerState?V.eagerState:o(v,oe)}else K={lane:oe,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(_=O=K,C=v):O=O.next=K,Be.lanes|=oe,ca|=oe;V=V.next}while(V!==null&&V!==a);if(O===null?C=v:O.next=_,!wn(v,t.memoizedState)&&(Ft=!0,te&&(o=Ni,o!==null)))throw o;t.memoizedState=v,t.baseState=C,t.baseQueue=O,u.lastRenderedState=v}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function id(t){var a=Ot(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var u=o.dispatch,p=o.pending,v=a.memoizedState;if(p!==null){o.pending=null;var C=p=p.next;do v=t(v,C.action),C=C.next;while(C!==p);wn(v,a.memoizedState)||(Ft=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),o.lastRenderedState=v}return[v,u]}function gy(t,a,o){var u=Be,p=Ot(),v=tt;if(v){if(o===void 0)throw Error(i(407));o=o()}else o=a();var C=!wn((at||p).memoizedState,o);C&&(p.memoizedState=o,Ft=!0),p=p.queue;var _=xy.bind(null,u,p,t);if(tl(2048,8,_,[t]),p.getSnapshot!==a||C||Dt!==null&&Dt.memoizedState.tag&1){if(u.flags|=2048,Di(9,Gs(),vy.bind(null,u,p,o,a),null),ht===null)throw Error(i(349));v||(ra&124)!==0||yy(u,a,o)}return o}function yy(t,a,o){t.flags|=16384,t={getSnapshot:a,value:o},a=Be.updateQueue,a===null?(a=nd(),Be.updateQueue=a,a.stores=[t]):(o=a.stores,o===null?a.stores=[t]:o.push(t))}function vy(t,a,o,u){a.value=o,a.getSnapshot=u,by(a)&&wy(t)}function xy(t,a,o){return o(function(){by(a)&&wy(t)})}function by(t){var a=t.getSnapshot;t=t.value;try{var o=a();return!wn(t,o)}catch{return!0}}function wy(t){var a=Ci(t,2);a!==null&&Tn(a,t,2)}function od(t){var a=gn();if(typeof t=="function"){var o=t;if(t=o(),Ka){ke(!0);try{o()}finally{ke(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:t},a}function Sy(t,a,o,u){return t.baseState=o,ad(t,at,typeof u=="function"?u:Or)}function EA(t,a,o,u,p){if(Ks(t))throw Error(i(485));if(t=a.action,t!==null){var v={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){v.listeners.push(C)}};z.T!==null?o(!0):v.isTransition=!1,u(v),o=a.pending,o===null?(v.next=a.pending=v,Ey(a,v)):(v.next=o.next,a.pending=o.next=v)}}function Ey(t,a){var o=a.action,u=a.payload,p=t.state;if(a.isTransition){var v=z.T,C={};z.T=C;try{var _=o(p,u),O=z.S;O!==null&&O(C,_),Cy(t,a,_)}catch(V){ld(t,a,V)}finally{z.T=v}}else try{v=o(p,u),Cy(t,a,v)}catch(V){ld(t,a,V)}}function Cy(t,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){ky(t,a,u)},function(u){return ld(t,a,u)}):ky(t,a,o)}function ky(t,a,o){a.status="fulfilled",a.value=o,Ay(a),t.state=o,a=t.pending,a!==null&&(o=a.next,o===a?t.pending=null:(o=o.next,a.next=o,Ey(t,o)))}function ld(t,a,o){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,Ay(a),a=a.next;while(a!==u)}t.action=null}function Ay(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Ty(t,a){return a}function Ry(t,a){if(tt){var o=ht.formState;if(o!==null){e:{var u=Be;if(tt){if(bt){t:{for(var p=bt,v=cr;p.nodeType!==8;){if(!v){p=null;break t}if(p=tr(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){bt=tr(p.nextSibling),u=p.data==="F!";break e}}Va(u)}u=!1}u&&(a=o[0])}}return o=gn(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ty,lastRenderedState:a},o.queue=u,o=Yy.bind(null,Be,u),u.dispatch=o,u=od(!1),v=dd.bind(null,Be,!1,u.queue),u=gn(),p={state:a,dispatch:null,action:t,pending:null},u.queue=p,o=EA.bind(null,Be,p,v,o),p.dispatch=o,u.memoizedState=t,[a,o,!1]}function Ny(t){var a=Ot();return _y(a,at,t)}function _y(t,a,o){if(a=ad(t,a,Ty)[0],t=$s(Or)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=el(a)}catch(C){throw C===Ko?Bs:C}else u=a;a=Ot();var p=a.queue,v=p.dispatch;return o!==a.memoizedState&&(Be.flags|=2048,Di(9,Gs(),CA.bind(null,p,o),null)),[u,v,t]}function CA(t,a){t.action=a}function My(t){var a=Ot(),o=at;if(o!==null)return _y(a,o,t);Ot(),a=a.memoizedState,o=Ot();var u=o.queue.dispatch;return o.memoizedState=t,[a,u,!1]}function Di(t,a,o,u){return t={tag:t,create:o,deps:u,inst:a,next:null},a=Be.updateQueue,a===null&&(a=nd(),Be.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=t.next=t:(u=o.next,o.next=t,t.next=u,a.lastEffect=t),t}function Gs(){return{destroy:void 0,resource:void 0}}function jy(){return Ot().memoizedState}function Ys(t,a,o,u){var p=gn();u=u===void 0?null:u,Be.flags|=t,p.memoizedState=Di(1|a,Gs(),o,u)}function tl(t,a,o,u){var p=Ot();u=u===void 0?null:u;var v=p.memoizedState.inst;at!==null&&u!==null&&Zf(u,at.memoizedState.deps)?p.memoizedState=Di(a,v,o,u):(Be.flags|=t,p.memoizedState=Di(1|a,v,o,u))}function Dy(t,a){Ys(8390656,8,t,a)}function Oy(t,a){tl(2048,8,t,a)}function Py(t,a){return tl(4,2,t,a)}function Ly(t,a){return tl(4,4,t,a)}function zy(t,a){if(typeof a=="function"){t=t();var o=a(t);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Iy(t,a,o){o=o!=null?o.concat([t]):null,tl(4,4,zy.bind(null,a,t),o)}function sd(){}function By(t,a){var o=Ot();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Zf(a,u[1])?u[0]:(o.memoizedState=[t,a],t)}function Uy(t,a){var o=Ot();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Zf(a,u[1]))return u[0];if(u=t(),Ka){ke(!0);try{t()}finally{ke(!1)}}return o.memoizedState=[u,a],u}function ud(t,a,o){return o===void 0||(ra&1073741824)!==0?t.memoizedState=a:(t.memoizedState=o,t=qv(),Be.lanes|=t,ca|=t,o)}function Hy(t,a,o,u){return wn(o,a)?o:_i.current!==null?(t=ud(t,o,u),wn(t,a)||(Ft=!0),t):(ra&42)===0?(Ft=!0,t.memoizedState=o):(t=qv(),Be.lanes|=t,ca|=t,a)}function Fy(t,a,o,u,p){var v=Q.p;Q.p=v!==0&&8>v?v:8;var C=z.T,_={};z.T=_,dd(t,!1,a,o);try{var O=p(),V=z.S;if(V!==null&&V(_,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var te=bA(O,u);nl(t,a,te,An(t))}else nl(t,a,u,An(t))}catch(oe){nl(t,a,{then:function(){},status:"rejected",reason:oe},An())}finally{Q.p=v,z.T=C}}function kA(){}function cd(t,a,o,u){if(t.tag!==5)throw Error(i(476));var p=qy(t).queue;Fy(t,p,a,F,o===null?kA:function(){return Vy(t),o(u)})}function qy(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:F},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:o},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Vy(t){var a=qy(t).next.queue;nl(t,a,{},An())}function fd(){return Jt(bl)}function $y(){return Ot().memoizedState}function Gy(){return Ot().memoizedState}function AA(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var o=An();t=ta(o);var u=na(a,t,o);u!==null&&(Tn(u,a,o),Qo(u,a,o)),a={cache:Hf()},t.payload=a;return}a=a.return}}function TA(t,a,o){var u=An();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Ks(t)?Ky(a,o):(o=Mf(t,a,o,u),o!==null&&(Tn(o,t,u),Xy(o,a,u)))}function Yy(t,a,o){var u=An();nl(t,a,o,u)}function nl(t,a,o,u){var p={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ks(t))Ky(a,p);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var C=a.lastRenderedState,_=v(C,o);if(p.hasEagerState=!0,p.eagerState=_,wn(_,C))return Ms(t,a,p,0),ht===null&&_s(),!1}catch{}finally{}if(o=Mf(t,a,p,u),o!==null)return Tn(o,t,u),Xy(o,a,u),!0}return!1}function dd(t,a,o,u){if(u={lane:2,revertLane:Vd(),action:u,hasEagerState:!1,eagerState:null,next:null},Ks(t)){if(a)throw Error(i(479))}else a=Mf(t,o,u,2),a!==null&&Tn(a,t,2)}function Ks(t){var a=t.alternate;return t===Be||a!==null&&a===Be}function Ky(t,a){Mi=Fs=!0;var o=t.pending;o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a}function Xy(t,a,o){if((o&4194048)!==0){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,Me(t,o)}}var Xs={readContext:Jt,use:Vs,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt},Qy={readContext:Jt,use:Vs,useCallback:function(t,a){return gn().memoizedState=[t,a===void 0?null:a],t},useContext:Jt,useEffect:Dy,useImperativeHandle:function(t,a,o){o=o!=null?o.concat([t]):null,Ys(4194308,4,zy.bind(null,a,t),o)},useLayoutEffect:function(t,a){return Ys(4194308,4,t,a)},useInsertionEffect:function(t,a){Ys(4,2,t,a)},useMemo:function(t,a){var o=gn();a=a===void 0?null:a;var u=t();if(Ka){ke(!0);try{t()}finally{ke(!1)}}return o.memoizedState=[u,a],u},useReducer:function(t,a,o){var u=gn();if(o!==void 0){var p=o(a);if(Ka){ke(!0);try{o(a)}finally{ke(!1)}}}else p=a;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=TA.bind(null,Be,t),[u.memoizedState,t]},useRef:function(t){var a=gn();return t={current:t},a.memoizedState=t},useState:function(t){t=od(t);var a=t.queue,o=Yy.bind(null,Be,a);return a.dispatch=o,[t.memoizedState,o]},useDebugValue:sd,useDeferredValue:function(t,a){var o=gn();return ud(o,t,a)},useTransition:function(){var t=od(!1);return t=Fy.bind(null,Be,t.queue,!0,!1),gn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,o){var u=Be,p=gn();if(tt){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),ht===null)throw Error(i(349));(Ze&124)!==0||yy(u,a,o)}p.memoizedState=o;var v={value:o,getSnapshot:a};return p.queue=v,Dy(xy.bind(null,u,v,t),[t]),u.flags|=2048,Di(9,Gs(),vy.bind(null,u,v,o,a),null),o},useId:function(){var t=gn(),a=ht.identifierPrefix;if(tt){var o=Mr,u=_r;o=(u&~(1<<32-Te(u)-1)).toString(32)+o,a="«"+a+"R"+o,o=qs++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=wA++,a="«"+a+"r"+o.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:fd,useFormState:Ry,useActionState:Ry,useOptimistic:function(t){var a=gn();a.memoizedState=a.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=dd.bind(null,Be,!0,o),o.dispatch=a,[t,a]},useMemoCache:rd,useCacheRefresh:function(){return gn().memoizedState=AA.bind(null,Be)}},Zy={readContext:Jt,use:Vs,useCallback:By,useContext:Jt,useEffect:Oy,useImperativeHandle:Iy,useInsertionEffect:Py,useLayoutEffect:Ly,useMemo:Uy,useReducer:$s,useRef:jy,useState:function(){return $s(Or)},useDebugValue:sd,useDeferredValue:function(t,a){var o=Ot();return Hy(o,at.memoizedState,t,a)},useTransition:function(){var t=$s(Or)[0],a=Ot().memoizedState;return[typeof t=="boolean"?t:el(t),a]},useSyncExternalStore:gy,useId:$y,useHostTransitionStatus:fd,useFormState:Ny,useActionState:Ny,useOptimistic:function(t,a){var o=Ot();return Sy(o,at,t,a)},useMemoCache:rd,useCacheRefresh:Gy},RA={readContext:Jt,use:Vs,useCallback:By,useContext:Jt,useEffect:Oy,useImperativeHandle:Iy,useInsertionEffect:Py,useLayoutEffect:Ly,useMemo:Uy,useReducer:id,useRef:jy,useState:function(){return id(Or)},useDebugValue:sd,useDeferredValue:function(t,a){var o=Ot();return at===null?ud(o,t,a):Hy(o,at.memoizedState,t,a)},useTransition:function(){var t=id(Or)[0],a=Ot().memoizedState;return[typeof t=="boolean"?t:el(t),a]},useSyncExternalStore:gy,useId:$y,useHostTransitionStatus:fd,useFormState:My,useActionState:My,useOptimistic:function(t,a){var o=Ot();return at!==null?Sy(o,at,t,a):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:rd,useCacheRefresh:Gy},Oi=null,rl=0;function Qs(t){var a=rl;return rl+=1,Oi===null&&(Oi=[]),sy(Oi,t,a)}function al(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Zs(t,a){throw a.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Wy(t){var a=t._init;return a(t._payload)}function Jy(t){function a(H,I){if(t){var q=H.deletions;q===null?(H.deletions=[I],H.flags|=16):q.push(I)}}function o(H,I){if(!t)return null;for(;I!==null;)a(H,I),I=I.sibling;return null}function u(H){for(var I=new Map;H!==null;)H.key!==null?I.set(H.key,H):I.set(H.index,H),H=H.sibling;return I}function p(H,I){return H=Nr(H,I),H.index=0,H.sibling=null,H}function v(H,I,q){return H.index=q,t?(q=H.alternate,q!==null?(q=q.index,q<I?(H.flags|=67108866,I):q):(H.flags|=67108866,I)):(H.flags|=1048576,I)}function C(H){return t&&H.alternate===null&&(H.flags|=67108866),H}function _(H,I,q,ae){return I===null||I.tag!==6?(I=Df(q,H.mode,ae),I.return=H,I):(I=p(I,q),I.return=H,I)}function O(H,I,q,ae){var xe=q.type;return xe===E?te(H,I,q.props.children,ae,q.key):I!==null&&(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===U&&Wy(xe)===I.type)?(I=p(I,q.props),al(I,q),I.return=H,I):(I=Ds(q.type,q.key,q.props,null,H.mode,ae),al(I,q),I.return=H,I)}function V(H,I,q,ae){return I===null||I.tag!==4||I.stateNode.containerInfo!==q.containerInfo||I.stateNode.implementation!==q.implementation?(I=Of(q,H.mode,ae),I.return=H,I):(I=p(I,q.children||[]),I.return=H,I)}function te(H,I,q,ae,xe){return I===null||I.tag!==7?(I=Ua(q,H.mode,ae,xe),I.return=H,I):(I=p(I,q),I.return=H,I)}function oe(H,I,q){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Df(""+I,H.mode,q),I.return=H,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return q=Ds(I.type,I.key,I.props,null,H.mode,q),al(q,I),q.return=H,q;case w:return I=Of(I,H.mode,q),I.return=H,I;case U:var ae=I._init;return I=ae(I._payload),oe(H,I,q)}if(ne(I)||W(I))return I=Ua(I,H.mode,q,null),I.return=H,I;if(typeof I.then=="function")return oe(H,Qs(I),q);if(I.$$typeof===R)return oe(H,zs(H,I),q);Zs(H,I)}return null}function K(H,I,q,ae){var xe=I!==null?I.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return xe!==null?null:_(H,I,""+q,ae);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===xe?O(H,I,q,ae):null;case w:return q.key===xe?V(H,I,q,ae):null;case U:return xe=q._init,q=xe(q._payload),K(H,I,q,ae)}if(ne(q)||W(q))return xe!==null?null:te(H,I,q,ae,null);if(typeof q.then=="function")return K(H,I,Qs(q),ae);if(q.$$typeof===R)return K(H,I,zs(H,q),ae);Zs(H,q)}return null}function X(H,I,q,ae,xe){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return H=H.get(q)||null,_(I,H,""+ae,xe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return H=H.get(ae.key===null?q:ae.key)||null,O(I,H,ae,xe);case w:return H=H.get(ae.key===null?q:ae.key)||null,V(I,H,ae,xe);case U:var Fe=ae._init;return ae=Fe(ae._payload),X(H,I,q,ae,xe)}if(ne(ae)||W(ae))return H=H.get(q)||null,te(I,H,ae,xe,null);if(typeof ae.then=="function")return X(H,I,q,Qs(ae),xe);if(ae.$$typeof===R)return X(H,I,q,zs(I,ae),xe);Zs(I,ae)}return null}function je(H,I,q,ae){for(var xe=null,Fe=null,Ee=I,Ne=I=0,Vt=null;Ee!==null&&Ne<q.length;Ne++){Ee.index>Ne?(Vt=Ee,Ee=null):Vt=Ee.sibling;var Je=K(H,Ee,q[Ne],ae);if(Je===null){Ee===null&&(Ee=Vt);break}t&&Ee&&Je.alternate===null&&a(H,Ee),I=v(Je,I,Ne),Fe===null?xe=Je:Fe.sibling=Je,Fe=Je,Ee=Vt}if(Ne===q.length)return o(H,Ee),tt&&Fa(H,Ne),xe;if(Ee===null){for(;Ne<q.length;Ne++)Ee=oe(H,q[Ne],ae),Ee!==null&&(I=v(Ee,I,Ne),Fe===null?xe=Ee:Fe.sibling=Ee,Fe=Ee);return tt&&Fa(H,Ne),xe}for(Ee=u(Ee);Ne<q.length;Ne++)Vt=X(Ee,H,Ne,q[Ne],ae),Vt!==null&&(t&&Vt.alternate!==null&&Ee.delete(Vt.key===null?Ne:Vt.key),I=v(Vt,I,Ne),Fe===null?xe=Vt:Fe.sibling=Vt,Fe=Vt);return t&&Ee.forEach(function(xa){return a(H,xa)}),tt&&Fa(H,Ne),xe}function Re(H,I,q,ae){if(q==null)throw Error(i(151));for(var xe=null,Fe=null,Ee=I,Ne=I=0,Vt=null,Je=q.next();Ee!==null&&!Je.done;Ne++,Je=q.next()){Ee.index>Ne?(Vt=Ee,Ee=null):Vt=Ee.sibling;var xa=K(H,Ee,Je.value,ae);if(xa===null){Ee===null&&(Ee=Vt);break}t&&Ee&&xa.alternate===null&&a(H,Ee),I=v(xa,I,Ne),Fe===null?xe=xa:Fe.sibling=xa,Fe=xa,Ee=Vt}if(Je.done)return o(H,Ee),tt&&Fa(H,Ne),xe;if(Ee===null){for(;!Je.done;Ne++,Je=q.next())Je=oe(H,Je.value,ae),Je!==null&&(I=v(Je,I,Ne),Fe===null?xe=Je:Fe.sibling=Je,Fe=Je);return tt&&Fa(H,Ne),xe}for(Ee=u(Ee);!Je.done;Ne++,Je=q.next())Je=X(Ee,H,Ne,Je.value,ae),Je!==null&&(t&&Je.alternate!==null&&Ee.delete(Je.key===null?Ne:Je.key),I=v(Je,I,Ne),Fe===null?xe=Je:Fe.sibling=Je,Fe=Je);return t&&Ee.forEach(function(NT){return a(H,NT)}),tt&&Fa(H,Ne),xe}function ot(H,I,q,ae){if(typeof q=="object"&&q!==null&&q.type===E&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var xe=q.key;I!==null;){if(I.key===xe){if(xe=q.type,xe===E){if(I.tag===7){o(H,I.sibling),ae=p(I,q.props.children),ae.return=H,H=ae;break e}}else if(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===U&&Wy(xe)===I.type){o(H,I.sibling),ae=p(I,q.props),al(ae,q),ae.return=H,H=ae;break e}o(H,I);break}else a(H,I);I=I.sibling}q.type===E?(ae=Ua(q.props.children,H.mode,ae,q.key),ae.return=H,H=ae):(ae=Ds(q.type,q.key,q.props,null,H.mode,ae),al(ae,q),ae.return=H,H=ae)}return C(H);case w:e:{for(xe=q.key;I!==null;){if(I.key===xe)if(I.tag===4&&I.stateNode.containerInfo===q.containerInfo&&I.stateNode.implementation===q.implementation){o(H,I.sibling),ae=p(I,q.children||[]),ae.return=H,H=ae;break e}else{o(H,I);break}else a(H,I);I=I.sibling}ae=Of(q,H.mode,ae),ae.return=H,H=ae}return C(H);case U:return xe=q._init,q=xe(q._payload),ot(H,I,q,ae)}if(ne(q))return je(H,I,q,ae);if(W(q)){if(xe=W(q),typeof xe!="function")throw Error(i(150));return q=xe.call(q),Re(H,I,q,ae)}if(typeof q.then=="function")return ot(H,I,Qs(q),ae);if(q.$$typeof===R)return ot(H,I,zs(H,q),ae);Zs(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,I!==null&&I.tag===6?(o(H,I.sibling),ae=p(I,q),ae.return=H,H=ae):(o(H,I),ae=Df(q,H.mode,ae),ae.return=H,H=ae),C(H)):o(H,I)}return function(H,I,q,ae){try{rl=0;var xe=ot(H,I,q,ae);return Oi=null,xe}catch(Ee){if(Ee===Ko||Ee===Bs)throw Ee;var Fe=Sn(29,Ee,null,H.mode);return Fe.lanes=ae,Fe.return=H,Fe}finally{}}}var Pi=Jy(!0),ev=Jy(!1),Bn=Z(null),fr=null;function aa(t){var a=t.alternate;M(zt,zt.current&1),M(Bn,t),fr===null&&(a===null||_i.current!==null||a.memoizedState!==null)&&(fr=t)}function tv(t){if(t.tag===22){if(M(zt,zt.current),M(Bn,t),fr===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(fr=t)}}else ia()}function ia(){M(zt,zt.current),M(Bn,Bn.current)}function Pr(t){ce(Bn),fr===t&&(fr=null),ce(zt)}var zt=Z(0);function Ws(t){for(var a=t;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||nh(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function hd(t,a,o,u){a=t.memoizedState,o=o(u,a),o=o==null?a:m({},a,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var pd={enqueueSetState:function(t,a,o){t=t._reactInternals;var u=An(),p=ta(u);p.payload=a,o!=null&&(p.callback=o),a=na(t,p,u),a!==null&&(Tn(a,t,u),Qo(a,t,u))},enqueueReplaceState:function(t,a,o){t=t._reactInternals;var u=An(),p=ta(u);p.tag=1,p.payload=a,o!=null&&(p.callback=o),a=na(t,p,u),a!==null&&(Tn(a,t,u),Qo(a,t,u))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var o=An(),u=ta(o);u.tag=2,a!=null&&(u.callback=a),a=na(t,u,o),a!==null&&(Tn(a,t,o),Qo(a,t,o))}};function nv(t,a,o,u,p,v,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,v,C):a.prototype&&a.prototype.isPureReactComponent?!Uo(o,u)||!Uo(p,v):!0}function rv(t,a,o,u){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==t&&pd.enqueueReplaceState(a,a.state,null)}function Xa(t,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(t=t.defaultProps){o===a&&(o=m({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}var Js=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function av(t){Js(t)}function iv(t){console.error(t)}function ov(t){Js(t)}function eu(t,a){try{var o=t.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function lv(t,a,o){try{var u=t.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function md(t,a,o){return o=ta(o),o.tag=3,o.payload={element:null},o.callback=function(){eu(t,a)},o}function sv(t){return t=ta(t),t.tag=3,t}function uv(t,a,o,u){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;t.payload=function(){return p(v)},t.callback=function(){lv(a,o,u)}}var C=o.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){lv(a,o,u),typeof p!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var _=u.stack;this.componentDidCatch(u.value,{componentStack:_!==null?_:""})})}function NA(t,a,o,u,p){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&$o(a,o,p,!0),o=Bn.current,o!==null){switch(o.tag){case 13:return fr===null?Bd():o.alternate===null&&wt===0&&(wt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,u===Vf?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),Hd(t,u,p)),!1;case 22:return o.flags|=65536,u===Vf?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),Hd(t,u,p)),!1}throw Error(i(435,o.tag))}return Hd(t,u,p),Bd(),!1}if(tt)return a=Bn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==zf&&(t=Error(i(422),{cause:u}),Vo(Pn(t,o)))):(u!==zf&&(a=Error(i(423),{cause:u}),Vo(Pn(a,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=Pn(u,o),p=md(t.stateNode,u,p),Yf(t,p),wt!==4&&(wt=2)),!1;var v=Error(i(520),{cause:u});if(v=Pn(v,o),fl===null?fl=[v]:fl.push(v),wt!==4&&(wt=2),a===null)return!0;u=Pn(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=md(o.stateNode,u,t),Yf(o,t),!1;case 1:if(a=o.type,v=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(fa===null||!fa.has(v))))return o.flags|=65536,p&=-p,o.lanes|=p,p=sv(p),uv(p,t,o,u),Yf(o,p),!1}o=o.return}while(o!==null);return!1}var cv=Error(i(461)),Ft=!1;function Gt(t,a,o,u){a.child=t===null?ev(a,null,o,u):Pi(a,t.child,o,u)}function fv(t,a,o,u,p){o=o.render;var v=a.ref;if("ref"in u){var C={};for(var _ in u)_!=="ref"&&(C[_]=u[_])}else C=u;return Ga(a),u=Wf(t,a,o,C,v,p),_=Jf(),t!==null&&!Ft?(ed(t,a,p),Lr(t,a,p)):(tt&&_&&Pf(a),a.flags|=1,Gt(t,a,u,p),a.child)}function dv(t,a,o,u,p){if(t===null){var v=o.type;return typeof v=="function"&&!jf(v)&&v.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=v,hv(t,a,v,u,p)):(t=Ds(o.type,null,u,a,a.mode,p),t.ref=a.ref,t.return=a,a.child=t)}if(v=t.child,!Ed(t,p)){var C=v.memoizedProps;if(o=o.compare,o=o!==null?o:Uo,o(C,u)&&t.ref===a.ref)return Lr(t,a,p)}return a.flags|=1,t=Nr(v,u),t.ref=a.ref,t.return=a,a.child=t}function hv(t,a,o,u,p){if(t!==null){var v=t.memoizedProps;if(Uo(v,u)&&t.ref===a.ref)if(Ft=!1,a.pendingProps=u=v,Ed(t,p))(t.flags&131072)!==0&&(Ft=!0);else return a.lanes=t.lanes,Lr(t,a,p)}return gd(t,a,o,u,p)}function pv(t,a,o){var u=a.pendingProps,p=u.children,v=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((a.flags&128)!==0){if(u=v!==null?v.baseLanes|o:o,t!==null){for(p=a.child=t.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;a.childLanes=v&~u}else a.childLanes=0,a.child=null;return mv(t,a,u,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Is(a,v!==null?v.cachePool:null),v!==null?hy(a,v):Xf(),tv(a);else return a.lanes=a.childLanes=536870912,mv(t,a,v!==null?v.baseLanes|o:o,o)}else v!==null?(Is(a,v.cachePool),hy(a,v),ia(),a.memoizedState=null):(t!==null&&Is(a,null),Xf(),ia());return Gt(t,a,p,o),a.child}function mv(t,a,o,u){var p=qf();return p=p===null?null:{parent:Lt._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},t!==null&&Is(a,null),Xf(),tv(a),t!==null&&$o(t,a,u,!0),null}function tu(t,a){var o=a.ref;if(o===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(a.flags|=4194816)}}function gd(t,a,o,u,p){return Ga(a),o=Wf(t,a,o,u,void 0,p),u=Jf(),t!==null&&!Ft?(ed(t,a,p),Lr(t,a,p)):(tt&&u&&Pf(a),a.flags|=1,Gt(t,a,o,p),a.child)}function gv(t,a,o,u,p,v){return Ga(a),a.updateQueue=null,o=my(a,u,o,p),py(t),u=Jf(),t!==null&&!Ft?(ed(t,a,v),Lr(t,a,v)):(tt&&u&&Pf(a),a.flags|=1,Gt(t,a,o,v),a.child)}function yv(t,a,o,u,p){if(Ga(a),a.stateNode===null){var v=ki,C=o.contextType;typeof C=="object"&&C!==null&&(v=Jt(C)),v=new o(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=pd,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},$f(a),C=o.contextType,v.context=typeof C=="object"&&C!==null?Jt(C):ki,v.state=a.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(hd(a,o,C,u),v.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(C=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),C!==v.state&&pd.enqueueReplaceState(v,v.state,null),Wo(a,u,v,p),Zo(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(t===null){v=a.stateNode;var _=a.memoizedProps,O=Xa(o,_);v.props=O;var V=v.context,te=o.contextType;C=ki,typeof te=="object"&&te!==null&&(C=Jt(te));var oe=o.getDerivedStateFromProps;te=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,te||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_||V!==C)&&rv(a,v,u,C),ea=!1;var K=a.memoizedState;v.state=K,Wo(a,u,v,p),Zo(),V=a.memoizedState,_||K!==V||ea?(typeof oe=="function"&&(hd(a,o,oe,u),V=a.memoizedState),(O=ea||nv(a,o,O,u,K,V,C))?(te||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=V),v.props=u,v.state=V,v.context=C,u=O):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,Gf(t,a),C=a.memoizedProps,te=Xa(o,C),v.props=te,oe=a.pendingProps,K=v.context,V=o.contextType,O=ki,typeof V=="object"&&V!==null&&(O=Jt(V)),_=o.getDerivedStateFromProps,(V=typeof _=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==oe||K!==O)&&rv(a,v,u,O),ea=!1,K=a.memoizedState,v.state=K,Wo(a,u,v,p),Zo();var X=a.memoizedState;C!==oe||K!==X||ea||t!==null&&t.dependencies!==null&&Ls(t.dependencies)?(typeof _=="function"&&(hd(a,o,_,u),X=a.memoizedState),(te=ea||nv(a,o,te,u,K,X,O)||t!==null&&t.dependencies!==null&&Ls(t.dependencies))?(V||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,X,O),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,X,O)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=X),v.props=u,v.state=X,v.context=O,u=te):(typeof v.componentDidUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(a.flags|=1024),u=!1)}return v=u,tu(t,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,t!==null&&u?(a.child=Pi(a,t.child,null,p),a.child=Pi(a,null,o,p)):Gt(t,a,o,p),a.memoizedState=v.state,t=a.child):t=Lr(t,a,p),t}function vv(t,a,o,u){return qo(),a.flags|=256,Gt(t,a,o,u),a.child}var yd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vd(t){return{baseLanes:t,cachePool:iy()}}function xd(t,a,o){return t=t!==null?t.childLanes&~o:0,a&&(t|=Un),t}function xv(t,a,o){var u=a.pendingProps,p=!1,v=(a.flags&128)!==0,C;if((C=v)||(C=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),C&&(p=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,t===null){if(tt){if(p?aa(a):ia(),tt){var _=bt,O;if(O=_){e:{for(O=_,_=cr;O.nodeType!==8;){if(!_){_=null;break e}if(O=tr(O.nextSibling),O===null){_=null;break e}}_=O}_!==null?(a.memoizedState={dehydrated:_,treeContext:Ha!==null?{id:_r,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},O=Sn(18,null,null,0),O.stateNode=_,O.return=a,a.child=O,on=a,bt=null,O=!0):O=!1}O||Va(a)}if(_=a.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return nh(_)?a.lanes=32:a.lanes=536870912,null;Pr(a)}return _=u.children,u=u.fallback,p?(ia(),p=a.mode,_=nu({mode:"hidden",children:_},p),u=Ua(u,p,o,null),_.return=a,u.return=a,_.sibling=u,a.child=_,p=a.child,p.memoizedState=vd(o),p.childLanes=xd(t,C,o),a.memoizedState=yd,u):(aa(a),bd(a,_))}if(O=t.memoizedState,O!==null&&(_=O.dehydrated,_!==null)){if(v)a.flags&256?(aa(a),a.flags&=-257,a=wd(t,a,o)):a.memoizedState!==null?(ia(),a.child=t.child,a.flags|=128,a=null):(ia(),p=u.fallback,_=a.mode,u=nu({mode:"visible",children:u.children},_),p=Ua(p,_,o,null),p.flags|=2,u.return=a,p.return=a,u.sibling=p,a.child=u,Pi(a,t.child,null,o),u=a.child,u.memoizedState=vd(o),u.childLanes=xd(t,C,o),a.memoizedState=yd,a=p);else if(aa(a),nh(_)){if(C=_.nextSibling&&_.nextSibling.dataset,C)var V=C.dgst;C=V,u=Error(i(419)),u.stack="",u.digest=C,Vo({value:u,source:null,stack:null}),a=wd(t,a,o)}else if(Ft||$o(t,a,o,!1),C=(o&t.childLanes)!==0,Ft||C){if(C=ht,C!==null&&(u=o&-o,u=(u&42)!==0?1:Qe(u),u=(u&(C.suspendedLanes|o))!==0?0:u,u!==0&&u!==O.retryLane))throw O.retryLane=u,Ci(t,u),Tn(C,t,u),cv;_.data==="$?"||Bd(),a=wd(t,a,o)}else _.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=O.treeContext,bt=tr(_.nextSibling),on=a,tt=!0,qa=null,cr=!1,t!==null&&(zn[In++]=_r,zn[In++]=Mr,zn[In++]=Ha,_r=t.id,Mr=t.overflow,Ha=a),a=bd(a,u.children),a.flags|=4096);return a}return p?(ia(),p=u.fallback,_=a.mode,O=t.child,V=O.sibling,u=Nr(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,V!==null?p=Nr(V,p):(p=Ua(p,_,o,null),p.flags|=2),p.return=a,u.return=a,u.sibling=p,a.child=u,u=p,p=a.child,_=t.child.memoizedState,_===null?_=vd(o):(O=_.cachePool,O!==null?(V=Lt._currentValue,O=O.parent!==V?{parent:V,pool:V}:O):O=iy(),_={baseLanes:_.baseLanes|o,cachePool:O}),p.memoizedState=_,p.childLanes=xd(t,C,o),a.memoizedState=yd,u):(aa(a),o=t.child,t=o.sibling,o=Nr(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,t!==null&&(C=a.deletions,C===null?(a.deletions=[t],a.flags|=16):C.push(t)),a.child=o,a.memoizedState=null,o)}function bd(t,a){return a=nu({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function nu(t,a){return t=Sn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function wd(t,a,o){return Pi(a,t.child,null,o),t=bd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function bv(t,a,o){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a),Bf(t.return,a,o)}function Sd(t,a,o,u,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=o,v.tailMode=p)}function wv(t,a,o){var u=a.pendingProps,p=u.revealOrder,v=u.tail;if(Gt(t,a,u.children,o),u=zt.current,(u&2)!==0)u=u&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&bv(t,o,a);else if(t.tag===19)bv(t,o,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(M(zt,u),p){case"forwards":for(o=a.child,p=null;o!==null;)t=o.alternate,t!==null&&Ws(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=a.child,a.child=null):(p=o.sibling,o.sibling=null),Sd(a,!1,p,o,v);break;case"backwards":for(o=null,p=a.child,a.child=null;p!==null;){if(t=p.alternate,t!==null&&Ws(t)===null){a.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}Sd(a,!0,o,null,v);break;case"together":Sd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Lr(t,a,o){if(t!==null&&(a.dependencies=t.dependencies),ca|=a.lanes,(o&a.childLanes)===0)if(t!==null){if($o(t,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,o=Nr(t,t.pendingProps),a.child=o,o.return=a;t.sibling!==null;)t=t.sibling,o=o.sibling=Nr(t,t.pendingProps),o.return=a;o.sibling=null}return a.child}function Ed(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Ls(t)))}function _A(t,a,o){switch(a.tag){case 3:ve(a,a.stateNode.containerInfo),Jr(a,Lt,t.memoizedState.cache),qo();break;case 27:case 5:Ce(a);break;case 4:ve(a,a.stateNode.containerInfo);break;case 10:Jr(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(aa(a),a.flags|=128,null):(o&a.child.childLanes)!==0?xv(t,a,o):(aa(a),t=Lr(t,a,o),t!==null?t.sibling:null);aa(a);break;case 19:var p=(t.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||($o(t,a,o,!1),u=(o&a.childLanes)!==0),p){if(u)return wv(t,a,o);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),M(zt,zt.current),u)break;return null;case 22:case 23:return a.lanes=0,pv(t,a,o);case 24:Jr(a,Lt,t.memoizedState.cache)}return Lr(t,a,o)}function Sv(t,a,o){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ft=!0;else{if(!Ed(t,o)&&(a.flags&128)===0)return Ft=!1,_A(t,a,o);Ft=(t.flags&131072)!==0}else Ft=!1,tt&&(a.flags&1048576)!==0&&Wg(a,Ps,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var u=a.elementType,p=u._init;if(u=p(u._payload),a.type=u,typeof u=="function")jf(u)?(t=Xa(u,t),a.tag=1,a=yv(null,a,u,t,o)):(a.tag=0,a=gd(null,a,u,t,o));else{if(u!=null){if(p=u.$$typeof,p===D){a.tag=11,a=fv(null,a,u,t,o);break e}else if(p===B){a.tag=14,a=dv(null,a,u,t,o);break e}}throw a=G(u)||u,Error(i(306,a,""))}}return a;case 0:return gd(t,a,a.type,a.pendingProps,o);case 1:return u=a.type,p=Xa(u,a.pendingProps),yv(t,a,u,p,o);case 3:e:{if(ve(a,a.stateNode.containerInfo),t===null)throw Error(i(387));u=a.pendingProps;var v=a.memoizedState;p=v.element,Gf(t,a),Wo(a,u,null,o);var C=a.memoizedState;if(u=C.cache,Jr(a,Lt,u),u!==v.cache&&Uf(a,[Lt],o,!0),Zo(),u=C.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=vv(t,a,u,o);break e}else if(u!==p){p=Pn(Error(i(424)),a),Vo(p),a=vv(t,a,u,o);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=tr(t.firstChild),on=a,tt=!0,qa=null,cr=!0,o=ev(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(qo(),u===p){a=Lr(t,a,o);break e}Gt(t,a,u,o)}a=a.child}return a;case 26:return tu(t,a),t===null?(o=Ax(a.type,null,a.pendingProps,null))?a.memoizedState=o:tt||(o=a.type,t=a.pendingProps,u=gu(me.current).createElement(o),u[dt]=a,u[mt]=t,Kt(u,o,t),qe(u),a.stateNode=u):a.memoizedState=Ax(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ce(a),t===null&&tt&&(u=a.stateNode=Ex(a.type,a.pendingProps,me.current),on=a,cr=!0,p=bt,pa(a.type)?(rh=p,bt=tr(u.firstChild)):bt=p),Gt(t,a,a.pendingProps.children,o),tu(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&tt&&((p=u=bt)&&(u=aT(u,a.type,a.pendingProps,cr),u!==null?(a.stateNode=u,on=a,bt=tr(u.firstChild),cr=!1,p=!0):p=!1),p||Va(a)),Ce(a),p=a.type,v=a.pendingProps,C=t!==null?t.memoizedProps:null,u=v.children,Jd(p,v)?u=null:C!==null&&Jd(p,C)&&(a.flags|=32),a.memoizedState!==null&&(p=Wf(t,a,SA,null,null,o),bl._currentValue=p),tu(t,a),Gt(t,a,u,o),a.child;case 6:return t===null&&tt&&((t=o=bt)&&(o=iT(o,a.pendingProps,cr),o!==null?(a.stateNode=o,on=a,bt=null,t=!0):t=!1),t||Va(a)),null;case 13:return xv(t,a,o);case 4:return ve(a,a.stateNode.containerInfo),u=a.pendingProps,t===null?a.child=Pi(a,null,u,o):Gt(t,a,u,o),a.child;case 11:return fv(t,a,a.type,a.pendingProps,o);case 7:return Gt(t,a,a.pendingProps,o),a.child;case 8:return Gt(t,a,a.pendingProps.children,o),a.child;case 12:return Gt(t,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,Jr(a,a.type,u.value),Gt(t,a,u.children,o),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Ga(a),p=Jt(p),u=u(p),a.flags|=1,Gt(t,a,u,o),a.child;case 14:return dv(t,a,a.type,a.pendingProps,o);case 15:return hv(t,a,a.type,a.pendingProps,o);case 19:return wv(t,a,o);case 31:return u=a.pendingProps,o=a.mode,u={mode:u.mode,children:u.children},t===null?(o=nu(u,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=Nr(t.child,u),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return pv(t,a,o);case 24:return Ga(a),u=Jt(Lt),t===null?(p=qf(),p===null&&(p=ht,v=Hf(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=o),p=v),a.memoizedState={parent:u,cache:p},$f(a),Jr(a,Lt,p)):((t.lanes&o)!==0&&(Gf(t,a),Wo(a,null,null,o),Zo()),p=t.memoizedState,v=a.memoizedState,p.parent!==u?(p={parent:u,cache:u},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),Jr(a,Lt,u)):(u=v.cache,Jr(a,Lt,u),u!==p.cache&&Uf(a,[Lt],o,!0))),Gt(t,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function zr(t){t.flags|=4}function Ev(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Mx(a)){if(a=Bn.current,a!==null&&((Ze&4194048)===Ze?fr!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||a!==fr))throw Xo=Vf,oy;t.flags|=8192}}function ru(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?pi():536870912,t.lanes|=a,Bi|=a)}function il(t,a){if(!tt)switch(t.tailMode){case"hidden":a=t.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function xt(t){var a=t.alternate!==null&&t.alternate.child===t.child,o=0,u=0;if(a)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=o,a}function MA(t,a,o){var u=a.pendingProps;switch(Lf(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(a),null;case 1:return xt(a),null;case 3:return o=a.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Dr(Lt),He(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Fo(a)?zr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ty())),xt(a),null;case 26:return o=a.memoizedState,t===null?(zr(a),o!==null?(xt(a),Ev(a,o)):(xt(a),a.flags&=-16777217)):o?o!==t.memoizedState?(zr(a),xt(a),Ev(a,o)):(xt(a),a.flags&=-16777217):(t.memoizedProps!==u&&zr(a),xt(a),a.flags&=-16777217),null;case 27:Oe(a),o=me.current;var p=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==u&&zr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return xt(a),null}t=se.current,Fo(a)?Jg(a):(t=Ex(p,u,o),a.stateNode=t,zr(a))}return xt(a),null;case 5:if(Oe(a),o=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==u&&zr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return xt(a),null}if(t=se.current,Fo(a))Jg(a);else{switch(p=gu(me.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(o,{is:u.is}):p.createElement(o)}}t[dt]=a,t[mt]=u;e:for(p=a.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break e;for(;p.sibling===null;){if(p.return===null||p.return===a)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a.stateNode=t;e:switch(Kt(t,o,u),o){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&zr(a)}}return xt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==u&&zr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(t=me.current,Fo(a)){if(t=a.stateNode,o=a.memoizedProps,u=null,p=on,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[dt]=a,t=!!(t.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||gx(t.nodeValue,o)),t||Va(a)}else t=gu(t).createTextNode(u),t[dt]=a,a.stateNode=t}return xt(a),null;case 13:if(u=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Fo(a),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[dt]=a}else qo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xt(a),p=!1}else p=ty(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Pr(a),a):(Pr(a),null)}if(Pr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=u!==null,t=t!==null&&t.memoizedState!==null,o){u=a.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var v=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==p&&(u.flags|=2048)}return o!==t&&o&&(a.child.flags|=8192),ru(a,a.updateQueue),xt(a),null;case 4:return He(),t===null&&Kd(a.stateNode.containerInfo),xt(a),null;case 10:return Dr(a.type),xt(a),null;case 19:if(ce(zt),p=a.memoizedState,p===null)return xt(a),null;if(u=(a.flags&128)!==0,v=p.rendering,v===null)if(u)il(p,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(v=Ws(t),v!==null){for(a.flags|=128,il(p,!1),t=v.updateQueue,a.updateQueue=t,ru(a,t),a.subtreeFlags=0,t=o,o=a.child;o!==null;)Zg(o,t),o=o.sibling;return M(zt,zt.current&1|2),a.child}t=t.sibling}p.tail!==null&&ft()>ou&&(a.flags|=128,u=!0,il(p,!1),a.lanes=4194304)}else{if(!u)if(t=Ws(v),t!==null){if(a.flags|=128,u=!0,t=t.updateQueue,a.updateQueue=t,ru(a,t),il(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!tt)return xt(a),null}else 2*ft()-p.renderingStartTime>ou&&o!==536870912&&(a.flags|=128,u=!0,il(p,!1),a.lanes=4194304);p.isBackwards?(v.sibling=a.child,a.child=v):(t=p.last,t!==null?t.sibling=v:a.child=v,p.last=v)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=ft(),a.sibling=null,t=zt.current,M(zt,u?t&1|2:t&1),a):(xt(a),null);case 22:case 23:return Pr(a),Qf(),u=a.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(xt(a),a.subtreeFlags&6&&(a.flags|=8192)):xt(a),o=a.updateQueue,o!==null&&ru(a,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),t!==null&&ce(Ya),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Dr(Lt),xt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function jA(t,a){switch(Lf(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Dr(Lt),He(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Oe(a),null;case 13:if(Pr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));qo()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return ce(zt),null;case 4:return He(),null;case 10:return Dr(a.type),null;case 22:case 23:return Pr(a),Qf(),t!==null&&ce(Ya),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Dr(Lt),null;case 25:return null;default:return null}}function Cv(t,a){switch(Lf(a),a.tag){case 3:Dr(Lt),He();break;case 26:case 27:case 5:Oe(a);break;case 4:He();break;case 13:Pr(a);break;case 19:ce(zt);break;case 10:Dr(a.type);break;case 22:case 23:Pr(a),Qf(),t!==null&&ce(Ya);break;case 24:Dr(Lt)}}function ol(t,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next;o=p;do{if((o.tag&t)===t){u=void 0;var v=o.create,C=o.inst;u=v(),C.destroy=u}o=o.next}while(o!==p)}}catch(_){ut(a,a.return,_)}}function oa(t,a,o){try{var u=a.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&t)===t){var C=u.inst,_=C.destroy;if(_!==void 0){C.destroy=void 0,p=a;var O=o,V=_;try{V()}catch(te){ut(p,O,te)}}}u=u.next}while(u!==v)}}catch(te){ut(a,a.return,te)}}function kv(t){var a=t.updateQueue;if(a!==null){var o=t.stateNode;try{dy(a,o)}catch(u){ut(t,t.return,u)}}}function Av(t,a,o){o.props=Xa(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(u){ut(t,a,u)}}function ll(t,a){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof o=="function"?t.refCleanup=o(u):o.current=u}}catch(p){ut(t,a,p)}}function dr(t,a){var o=t.ref,u=t.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(p){ut(t,a,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ut(t,a,p)}else o.current=null}function Tv(t){var a=t.type,o=t.memoizedProps,u=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(p){ut(t,t.return,p)}}function Cd(t,a,o){try{var u=t.stateNode;JA(u,t.type,o,a),u[mt]=a}catch(p){ut(t,t.return,p)}}function Rv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&pa(t.type)||t.tag===4}function kd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Rv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&pa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ad(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(t),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=mu));else if(u!==4&&(u===27&&pa(t.type)&&(o=t.stateNode,a=null),t=t.child,t!==null))for(Ad(t,a,o),t=t.sibling;t!==null;)Ad(t,a,o),t=t.sibling}function au(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?o.insertBefore(t,a):o.appendChild(t);else if(u!==4&&(u===27&&pa(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(au(t,a,o),t=t.sibling;t!==null;)au(t,a,o),t=t.sibling}function Nv(t){var a=t.stateNode,o=t.memoizedProps;try{for(var u=t.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Kt(a,u,o),a[dt]=t,a[mt]=o}catch(v){ut(t,t.return,v)}}var Ir=!1,_t=!1,Td=!1,_v=typeof WeakSet=="function"?WeakSet:Set,qt=null;function DA(t,a){if(t=t.containerInfo,Zd=Su,t=Hg(t),kf(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var C=0,_=-1,O=-1,V=0,te=0,oe=t,K=null;t:for(;;){for(var X;oe!==o||p!==0&&oe.nodeType!==3||(_=C+p),oe!==v||u!==0&&oe.nodeType!==3||(O=C+u),oe.nodeType===3&&(C+=oe.nodeValue.length),(X=oe.firstChild)!==null;)K=oe,oe=X;for(;;){if(oe===t)break t;if(K===o&&++V===p&&(_=C),K===v&&++te===u&&(O=C),(X=oe.nextSibling)!==null)break;oe=K,K=oe.parentNode}oe=X}o=_===-1||O===-1?null:{start:_,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(Wd={focusedElem:t,selectionRange:o},Su=!1,qt=a;qt!==null;)if(a=qt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,qt=t;else for(;qt!==null;){switch(a=qt,v=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&v!==null){t=void 0,o=a,p=v.memoizedProps,v=v.memoizedState,u=o.stateNode;try{var je=Xa(o.type,p,o.elementType===o.type);t=u.getSnapshotBeforeUpdate(je,v),u.__reactInternalSnapshotBeforeUpdate=t}catch(Re){ut(o,o.return,Re)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,o=t.nodeType,o===9)th(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":th(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,qt=t;break}qt=a.return}}function Mv(t,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:la(t,o),u&4&&ol(5,o);break;case 1:if(la(t,o),u&4)if(t=o.stateNode,a===null)try{t.componentDidMount()}catch(C){ut(o,o.return,C)}else{var p=Xa(o.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(p,a,t.__reactInternalSnapshotBeforeUpdate)}catch(C){ut(o,o.return,C)}}u&64&&kv(o),u&512&&ll(o,o.return);break;case 3:if(la(t,o),u&64&&(t=o.updateQueue,t!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{dy(t,a)}catch(C){ut(o,o.return,C)}}break;case 27:a===null&&u&4&&Nv(o);case 26:case 5:la(t,o),a===null&&u&4&&Tv(o),u&512&&ll(o,o.return);break;case 12:la(t,o);break;case 13:la(t,o),u&4&&Ov(t,o),u&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=FA.bind(null,o),oT(t,o))));break;case 22:if(u=o.memoizedState!==null||Ir,!u){a=a!==null&&a.memoizedState!==null||_t,p=Ir;var v=_t;Ir=u,(_t=a)&&!v?sa(t,o,(o.subtreeFlags&8772)!==0):la(t,o),Ir=p,_t=v}break;case 30:break;default:la(t,o)}}function jv(t){var a=t.alternate;a!==null&&(t.alternate=null,jv(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&jo(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var gt=null,yn=!1;function Br(t,a,o){for(o=o.child;o!==null;)Dv(t,a,o),o=o.sibling}function Dv(t,a,o){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(ee,o)}catch{}switch(o.tag){case 26:_t||dr(o,a),Br(t,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:_t||dr(o,a);var u=gt,p=yn;pa(o.type)&&(gt=o.stateNode,yn=!1),Br(t,a,o),gl(o.stateNode),gt=u,yn=p;break;case 5:_t||dr(o,a);case 6:if(u=gt,p=yn,gt=null,Br(t,a,o),gt=u,yn=p,gt!==null)if(yn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(o.stateNode)}catch(v){ut(o,a,v)}else try{gt.removeChild(o.stateNode)}catch(v){ut(o,a,v)}break;case 18:gt!==null&&(yn?(t=gt,wx(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Cl(t)):wx(gt,o.stateNode));break;case 4:u=gt,p=yn,gt=o.stateNode.containerInfo,yn=!0,Br(t,a,o),gt=u,yn=p;break;case 0:case 11:case 14:case 15:_t||oa(2,o,a),_t||oa(4,o,a),Br(t,a,o);break;case 1:_t||(dr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Av(o,a,u)),Br(t,a,o);break;case 21:Br(t,a,o);break;case 22:_t=(u=_t)||o.memoizedState!==null,Br(t,a,o),_t=u;break;default:Br(t,a,o)}}function Ov(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Cl(t)}catch(o){ut(a,a.return,o)}}function OA(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new _v),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new _v),a;default:throw Error(i(435,t.tag))}}function Rd(t,a){var o=OA(t);a.forEach(function(u){var p=qA.bind(null,t,u);o.has(u)||(o.add(u),u.then(p,p))})}function En(t,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],v=t,C=a,_=C;e:for(;_!==null;){switch(_.tag){case 27:if(pa(_.type)){gt=_.stateNode,yn=!1;break e}break;case 5:gt=_.stateNode,yn=!1;break e;case 3:case 4:gt=_.stateNode.containerInfo,yn=!0;break e}_=_.return}if(gt===null)throw Error(i(160));Dv(v,C,p),gt=null,yn=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Pv(a,t),a=a.sibling}var er=null;function Pv(t,a){var o=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:En(a,t),Cn(t),u&4&&(oa(3,t,t.return),ol(3,t),oa(5,t,t.return));break;case 1:En(a,t),Cn(t),u&512&&(_t||o===null||dr(o,o.return)),u&64&&Ir&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var p=er;if(En(a,t),Cn(t),u&512&&(_t||o===null||dr(o,o.return)),u&4){var v=o!==null?o.memoizedState:null;if(u=t.memoizedState,o===null)if(u===null)if(t.stateNode===null){e:{u=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":v=p.getElementsByTagName("title")[0],(!v||v[kr]||v[dt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),Kt(v,u,o),v[dt]=t,qe(v),u=v;break e;case"link":var C=Nx("link","href",p).get(u+(o.href||""));if(C){for(var _=0;_<C.length;_++)if(v=C[_],v.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&v.getAttribute("rel")===(o.rel==null?null:o.rel)&&v.getAttribute("title")===(o.title==null?null:o.title)&&v.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){C.splice(_,1);break t}}v=p.createElement(u),Kt(v,u,o),p.head.appendChild(v);break;case"meta":if(C=Nx("meta","content",p).get(u+(o.content||""))){for(_=0;_<C.length;_++)if(v=C[_],v.getAttribute("content")===(o.content==null?null:""+o.content)&&v.getAttribute("name")===(o.name==null?null:o.name)&&v.getAttribute("property")===(o.property==null?null:o.property)&&v.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&v.getAttribute("charset")===(o.charSet==null?null:o.charSet)){C.splice(_,1);break t}}v=p.createElement(u),Kt(v,u,o),p.head.appendChild(v);break;default:throw Error(i(468,u))}v[dt]=t,qe(v),u=v}t.stateNode=u}else _x(p,t.type,t.stateNode);else t.stateNode=Rx(p,u,t.memoizedProps);else v!==u?(v===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):v.count--,u===null?_x(p,t.type,t.stateNode):Rx(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Cd(t,t.memoizedProps,o.memoizedProps)}break;case 27:En(a,t),Cn(t),u&512&&(_t||o===null||dr(o,o.return)),o!==null&&u&4&&Cd(t,t.memoizedProps,o.memoizedProps);break;case 5:if(En(a,t),Cn(t),u&512&&(_t||o===null||dr(o,o.return)),t.flags&32){p=t.stateNode;try{yi(p,"")}catch(X){ut(t,t.return,X)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Cd(t,p,o!==null?o.memoizedProps:p)),u&1024&&(Td=!0);break;case 6:if(En(a,t),Cn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,o=t.stateNode;try{o.nodeValue=u}catch(X){ut(t,t.return,X)}}break;case 3:if(xu=null,p=er,er=yu(a.containerInfo),En(a,t),er=p,Cn(t),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Cl(a.containerInfo)}catch(X){ut(t,t.return,X)}Td&&(Td=!1,Lv(t));break;case 4:u=er,er=yu(t.stateNode.containerInfo),En(a,t),Cn(t),er=u;break;case 12:En(a,t),Cn(t);break;case 13:En(a,t),Cn(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Od=ft()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Rd(t,u)));break;case 22:p=t.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,V=Ir,te=_t;if(Ir=V||p,_t=te||O,En(a,t),_t=te,Ir=V,Cn(t),u&8192)e:for(a=t.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(o===null||O||Ir||_t||Qa(t)),o=null,a=t;;){if(a.tag===5||a.tag===26){if(o===null){O=o=a;try{if(v=O.stateNode,p)C=v.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{_=O.stateNode;var oe=O.memoizedProps.style,K=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;_.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(X){ut(O,O.return,X)}}}else if(a.tag===6){if(o===null){O=a;try{O.stateNode.nodeValue=p?"":O.memoizedProps}catch(X){ut(O,O.return,X)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=t.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Rd(t,o))));break;case 19:En(a,t),Cn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Rd(t,u)));break;case 30:break;case 21:break;default:En(a,t),Cn(t)}}function Cn(t){var a=t.flags;if(a&2){try{for(var o,u=t.return;u!==null;){if(Rv(u)){o=u;break}u=u.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,v=kd(t);au(t,v,p);break;case 5:var C=o.stateNode;o.flags&32&&(yi(C,""),o.flags&=-33);var _=kd(t);au(t,_,C);break;case 3:case 4:var O=o.stateNode.containerInfo,V=kd(t);Ad(t,V,O);break;default:throw Error(i(161))}}catch(te){ut(t,t.return,te)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Lv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Lv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function la(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Mv(t,a.alternate,a),a=a.sibling}function Qa(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:oa(4,a,a.return),Qa(a);break;case 1:dr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Av(a,a.return,o),Qa(a);break;case 27:gl(a.stateNode);case 26:case 5:dr(a,a.return),Qa(a);break;case 22:a.memoizedState===null&&Qa(a);break;case 30:Qa(a);break;default:Qa(a)}t=t.sibling}}function sa(t,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=t,v=a,C=v.flags;switch(v.tag){case 0:case 11:case 15:sa(p,v,o),ol(4,v);break;case 1:if(sa(p,v,o),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(V){ut(u,u.return,V)}if(u=v,p=u.updateQueue,p!==null){var _=u.stateNode;try{var O=p.shared.hiddenCallbacks;if(O!==null)for(p.shared.hiddenCallbacks=null,p=0;p<O.length;p++)fy(O[p],_)}catch(V){ut(u,u.return,V)}}o&&C&64&&kv(v),ll(v,v.return);break;case 27:Nv(v);case 26:case 5:sa(p,v,o),o&&u===null&&C&4&&Tv(v),ll(v,v.return);break;case 12:sa(p,v,o);break;case 13:sa(p,v,o),o&&C&4&&Ov(p,v);break;case 22:v.memoizedState===null&&sa(p,v,o),ll(v,v.return);break;case 30:break;default:sa(p,v,o)}a=a.sibling}}function Nd(t,a){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&Go(o))}function _d(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Go(t))}function hr(t,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)zv(t,a,o,u),a=a.sibling}function zv(t,a,o,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:hr(t,a,o,u),p&2048&&ol(9,a);break;case 1:hr(t,a,o,u);break;case 3:hr(t,a,o,u),p&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Go(t)));break;case 12:if(p&2048){hr(t,a,o,u),t=a.stateNode;try{var v=a.memoizedProps,C=v.id,_=v.onPostCommit;typeof _=="function"&&_(C,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){ut(a,a.return,O)}}else hr(t,a,o,u);break;case 13:hr(t,a,o,u);break;case 23:break;case 22:v=a.stateNode,C=a.alternate,a.memoizedState!==null?v._visibility&2?hr(t,a,o,u):sl(t,a):v._visibility&2?hr(t,a,o,u):(v._visibility|=2,Li(t,a,o,u,(a.subtreeFlags&10256)!==0)),p&2048&&Nd(C,a);break;case 24:hr(t,a,o,u),p&2048&&_d(a.alternate,a);break;default:hr(t,a,o,u)}}function Li(t,a,o,u,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=t,C=a,_=o,O=u,V=C.flags;switch(C.tag){case 0:case 11:case 15:Li(v,C,_,O,p),ol(8,C);break;case 23:break;case 22:var te=C.stateNode;C.memoizedState!==null?te._visibility&2?Li(v,C,_,O,p):sl(v,C):(te._visibility|=2,Li(v,C,_,O,p)),p&&V&2048&&Nd(C.alternate,C);break;case 24:Li(v,C,_,O,p),p&&V&2048&&_d(C.alternate,C);break;default:Li(v,C,_,O,p)}a=a.sibling}}function sl(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=t,u=a,p=u.flags;switch(u.tag){case 22:sl(o,u),p&2048&&Nd(u.alternate,u);break;case 24:sl(o,u),p&2048&&_d(u.alternate,u);break;default:sl(o,u)}a=a.sibling}}var ul=8192;function zi(t){if(t.subtreeFlags&ul)for(t=t.child;t!==null;)Iv(t),t=t.sibling}function Iv(t){switch(t.tag){case 26:zi(t),t.flags&ul&&t.memoizedState!==null&&xT(er,t.memoizedState,t.memoizedProps);break;case 5:zi(t);break;case 3:case 4:var a=er;er=yu(t.stateNode.containerInfo),zi(t),er=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ul,ul=16777216,zi(t),ul=a):zi(t));break;default:zi(t)}}function Bv(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function cl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];qt=u,Hv(u,t)}Bv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Uv(t),t=t.sibling}function Uv(t){switch(t.tag){case 0:case 11:case 15:cl(t),t.flags&2048&&oa(9,t,t.return);break;case 3:cl(t);break;case 12:cl(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,iu(t)):cl(t);break;default:cl(t)}}function iu(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];qt=u,Hv(u,t)}Bv(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:oa(8,a,a.return),iu(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,iu(a));break;default:iu(a)}t=t.sibling}}function Hv(t,a){for(;qt!==null;){var o=qt;switch(o.tag){case 0:case 11:case 15:oa(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Go(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,qt=u;else e:for(o=t;qt!==null;){u=qt;var p=u.sibling,v=u.return;if(jv(u),u===o){qt=null;break e}if(p!==null){p.return=v,qt=p;break e}qt=v}}}var PA={getCacheForType:function(t){var a=Jt(Lt),o=a.data.get(t);return o===void 0&&(o=t(),a.data.set(t,o)),o}},LA=typeof WeakMap=="function"?WeakMap:Map,nt=0,ht=null,Ve=null,Ze=0,rt=0,kn=null,ua=!1,Ii=!1,Md=!1,Ur=0,wt=0,ca=0,Za=0,jd=0,Un=0,Bi=0,fl=null,vn=null,Dd=!1,Od=0,ou=1/0,lu=null,fa=null,Yt=0,da=null,Ui=null,Hi=0,Pd=0,Ld=null,Fv=null,dl=0,zd=null;function An(){if((nt&2)!==0&&Ze!==0)return Ze&-Ze;if(z.T!==null){var t=Ri;return t!==0?t:Vd()}return Tt()}function qv(){Un===0&&(Un=(Ze&536870912)===0||tt?Cr():536870912);var t=Bn.current;return t!==null&&(t.flags|=32),Un}function Tn(t,a,o){(t===ht&&(rt===2||rt===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),ha(t,Ze,Un,!1)),fe(t,o),((nt&2)===0||t!==ht)&&(t===ht&&((nt&2)===0&&(Za|=o),wt===4&&ha(t,Ze,Un,!1)),pr(t))}function Vv(t,a,o){if((nt&6)!==0)throw Error(i(327));var u=!o&&(a&124)===0&&(a&t.expiredLanes)===0||Zt(t,a),p=u?BA(t,a):Ud(t,a,!0),v=u;do{if(p===0){Ii&&!u&&ha(t,a,0,!1);break}else{if(o=t.current.alternate,v&&!zA(o)){p=Ud(t,a,!1),v=!1;continue}if(p===2){if(v=a,t.errorRecoveryDisabledLanes&v)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var _=t;p=fl;var O=_.current.memoizedState.isDehydrated;if(O&&(Fi(_,C).flags|=256),C=Ud(_,C,!1),C!==2){if(Md&&!O){_.errorRecoveryDisabledLanes|=v,Za|=v,p=4;break e}v=vn,vn=p,v!==null&&(vn===null?vn=v:vn.push.apply(vn,v))}p=C}if(v=!1,p!==2)continue}}if(p===1){Fi(t,0),ha(t,a,0,!0);break}e:{switch(u=t,v=p,v){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:ha(u,a,Un,!ua);break e;case 2:vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=Od+300-ft(),10<p)){if(ha(u,a,Un,!ua),At(u,0,!0)!==0)break e;u.timeoutHandle=xx($v.bind(null,u,o,vn,lu,Dd,a,Un,Za,Bi,ua,v,2,-0,0),p);break e}$v(u,o,vn,lu,Dd,a,Un,Za,Bi,ua,v,0,-0,0)}}break}while(!0);pr(t)}function $v(t,a,o,u,p,v,C,_,O,V,te,oe,K,X){if(t.timeoutHandle=-1,oe=a.subtreeFlags,(oe&8192||(oe&16785408)===16785408)&&(xl={stylesheets:null,count:0,unsuspend:vT},Iv(a),oe=bT(),oe!==null)){t.cancelPendingCommit=oe(Wv.bind(null,t,a,v,o,u,p,C,_,O,te,1,K,X)),ha(t,v,C,!V);return}Wv(t,a,v,o,u,p,C,_,O)}function zA(t){for(var a=t;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var p=o[u],v=p.getSnapshot;p=p.value;try{if(!wn(v(),p))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ha(t,a,o,u){a&=~jd,a&=~Za,t.suspendedLanes|=a,t.pingedLanes&=~a,u&&(t.warmLanes|=a),u=t.expirationTimes;for(var p=a;0<p;){var v=31-Te(p),C=1<<v;u[v]=-1,p&=~C}o!==0&&ye(t,o,a)}function su(){return(nt&6)===0?(hl(0),!1):!0}function Id(){if(Ve!==null){if(rt===0)var t=Ve.return;else t=Ve,jr=$a=null,td(t),Oi=null,rl=0,t=Ve;for(;t!==null;)Cv(t.alternate,t),t=t.return;Ve=null}}function Fi(t,a){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,tT(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Id(),ht=t,Ve=o=Nr(t.current,null),Ze=a,rt=0,kn=null,ua=!1,Ii=Zt(t,a),Md=!1,Bi=Un=jd=Za=ca=wt=0,vn=fl=null,Dd=!1,(a&8)!==0&&(a|=a&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=a;0<u;){var p=31-Te(u),v=1<<p;a|=t[p],u&=~v}return Ur=a,_s(),o}function Gv(t,a){Be=null,z.H=Xs,a===Ko||a===Bs?(a=uy(),rt=3):a===oy?(a=uy(),rt=4):rt=a===cv?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,kn=a,Ve===null&&(wt=1,eu(t,Pn(a,t.current)))}function Yv(){var t=z.H;return z.H=Xs,t===null?Xs:t}function Kv(){var t=z.A;return z.A=PA,t}function Bd(){wt=4,ua||(Ze&4194048)!==Ze&&Bn.current!==null||(Ii=!0),(ca&134217727)===0&&(Za&134217727)===0||ht===null||ha(ht,Ze,Un,!1)}function Ud(t,a,o){var u=nt;nt|=2;var p=Yv(),v=Kv();(ht!==t||Ze!==a)&&(lu=null,Fi(t,a)),a=!1;var C=wt;e:do try{if(rt!==0&&Ve!==null){var _=Ve,O=kn;switch(rt){case 8:Id(),C=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(a=!0);var V=rt;if(rt=0,kn=null,qi(t,_,O,V),o&&Ii){C=0;break e}break;default:V=rt,rt=0,kn=null,qi(t,_,O,V)}}IA(),C=wt;break}catch(te){Gv(t,te)}while(!0);return a&&t.shellSuspendCounter++,jr=$a=null,nt=u,z.H=p,z.A=v,Ve===null&&(ht=null,Ze=0,_s()),C}function IA(){for(;Ve!==null;)Xv(Ve)}function BA(t,a){var o=nt;nt|=2;var u=Yv(),p=Kv();ht!==t||Ze!==a?(lu=null,ou=ft()+500,Fi(t,a)):Ii=Zt(t,a);e:do try{if(rt!==0&&Ve!==null){a=Ve;var v=kn;t:switch(rt){case 1:rt=0,kn=null,qi(t,a,v,1);break;case 2:case 9:if(ly(v)){rt=0,kn=null,Qv(a);break}a=function(){rt!==2&&rt!==9||ht!==t||(rt=7),pr(t)},v.then(a,a);break e;case 3:rt=7;break e;case 4:rt=5;break e;case 7:ly(v)?(rt=0,kn=null,Qv(a)):(rt=0,kn=null,qi(t,a,v,7));break;case 5:var C=null;switch(Ve.tag){case 26:C=Ve.memoizedState;case 5:case 27:var _=Ve;if(!C||Mx(C)){rt=0,kn=null;var O=_.sibling;if(O!==null)Ve=O;else{var V=_.return;V!==null?(Ve=V,uu(V)):Ve=null}break t}}rt=0,kn=null,qi(t,a,v,5);break;case 6:rt=0,kn=null,qi(t,a,v,6);break;case 8:Id(),wt=6;break e;default:throw Error(i(462))}}UA();break}catch(te){Gv(t,te)}while(!0);return jr=$a=null,z.H=u,z.A=p,nt=o,Ve!==null?0:(ht=null,Ze=0,_s(),wt)}function UA(){for(;Ve!==null&&!Xt();)Xv(Ve)}function Xv(t){var a=Sv(t.alternate,t,Ur);t.memoizedProps=t.pendingProps,a===null?uu(t):Ve=a}function Qv(t){var a=t,o=a.alternate;switch(a.tag){case 15:case 0:a=gv(o,a,a.pendingProps,a.type,void 0,Ze);break;case 11:a=gv(o,a,a.pendingProps,a.type.render,a.ref,Ze);break;case 5:td(a);default:Cv(o,a),a=Ve=Zg(a,Ur),a=Sv(o,a,Ur)}t.memoizedProps=t.pendingProps,a===null?uu(t):Ve=a}function qi(t,a,o,u){jr=$a=null,td(a),Oi=null,rl=0;var p=a.return;try{if(NA(t,p,a,o,Ze)){wt=1,eu(t,Pn(o,t.current)),Ve=null;return}}catch(v){if(p!==null)throw Ve=p,v;wt=1,eu(t,Pn(o,t.current)),Ve=null;return}a.flags&32768?(tt||u===1?t=!0:Ii||(Ze&536870912)!==0?t=!1:(ua=t=!0,(u===2||u===9||u===3||u===6)&&(u=Bn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Zv(a,t)):uu(a)}function uu(t){var a=t;do{if((a.flags&32768)!==0){Zv(a,ua);return}t=a.return;var o=MA(a.alternate,a,Ur);if(o!==null){Ve=o;return}if(a=a.sibling,a!==null){Ve=a;return}Ve=a=t}while(a!==null);wt===0&&(wt=5)}function Zv(t,a){do{var o=jA(t.alternate,t);if(o!==null){o.flags&=32767,Ve=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(t=t.sibling,t!==null)){Ve=t;return}Ve=t=o}while(t!==null);wt=6,Ve=null}function Wv(t,a,o,u,p,v,C,_,O){t.cancelPendingCommit=null;do cu();while(Yt!==0);if((nt&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(v=a.lanes|a.childLanes,v|=_f,ge(t,o,v,C,_,O),t===ht&&(Ve=ht=null,Ze=0),Ui=a,da=t,Hi=o,Pd=v,Ld=p,Fv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,VA(Qr,function(){return rx(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,p=Q.p,Q.p=2,C=nt,nt|=4;try{DA(t,a,o)}finally{nt=C,Q.p=p,z.T=u}}Yt=1,Jv(),ex(),tx()}}function Jv(){if(Yt===1){Yt=0;var t=da,a=Ui,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=z.T,z.T=null;var u=Q.p;Q.p=2;var p=nt;nt|=4;try{Pv(a,t);var v=Wd,C=Hg(t.containerInfo),_=v.focusedElem,O=v.selectionRange;if(C!==_&&_&&_.ownerDocument&&Ug(_.ownerDocument.documentElement,_)){if(O!==null&&kf(_)){var V=O.start,te=O.end;if(te===void 0&&(te=V),"selectionStart"in _)_.selectionStart=V,_.selectionEnd=Math.min(te,_.value.length);else{var oe=_.ownerDocument||document,K=oe&&oe.defaultView||window;if(K.getSelection){var X=K.getSelection(),je=_.textContent.length,Re=Math.min(O.start,je),ot=O.end===void 0?Re:Math.min(O.end,je);!X.extend&&Re>ot&&(C=ot,ot=Re,Re=C);var H=Bg(_,Re),I=Bg(_,ot);if(H&&I&&(X.rangeCount!==1||X.anchorNode!==H.node||X.anchorOffset!==H.offset||X.focusNode!==I.node||X.focusOffset!==I.offset)){var q=oe.createRange();q.setStart(H.node,H.offset),X.removeAllRanges(),Re>ot?(X.addRange(q),X.extend(I.node,I.offset)):(q.setEnd(I.node,I.offset),X.addRange(q))}}}}for(oe=[],X=_;X=X.parentNode;)X.nodeType===1&&oe.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<oe.length;_++){var ae=oe[_];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Su=!!Zd,Wd=Zd=null}finally{nt=p,Q.p=u,z.T=o}}t.current=a,Yt=2}}function ex(){if(Yt===2){Yt=0;var t=da,a=Ui,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=z.T,z.T=null;var u=Q.p;Q.p=2;var p=nt;nt|=4;try{Mv(t,a.alternate,a)}finally{nt=p,Q.p=u,z.T=o}}Yt=3}}function tx(){if(Yt===4||Yt===3){Yt=0,Xn();var t=da,a=Ui,o=Hi,u=Fv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Yt=5:(Yt=0,Ui=da=null,nx(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(fa=null),Wt(o),a=a.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(ee,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=z.T,p=Q.p,Q.p=2,z.T=null;try{for(var v=t.onRecoverableError,C=0;C<u.length;C++){var _=u[C];v(_.value,{componentStack:_.stack})}}finally{z.T=a,Q.p=p}}(Hi&3)!==0&&cu(),pr(t),p=t.pendingLanes,(o&4194090)!==0&&(p&42)!==0?t===zd?dl++:(dl=0,zd=t):dl=0,hl(0)}}function nx(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Go(a)))}function cu(t){return Jv(),ex(),tx(),rx()}function rx(){if(Yt!==5)return!1;var t=da,a=Pd;Pd=0;var o=Wt(Hi),u=z.T,p=Q.p;try{Q.p=32>o?32:o,z.T=null,o=Ld,Ld=null;var v=da,C=Hi;if(Yt=0,Ui=da=null,Hi=0,(nt&6)!==0)throw Error(i(331));var _=nt;if(nt|=4,Uv(v.current),zv(v,v.current,C,o),nt=_,hl(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(ee,v)}catch{}return!0}finally{Q.p=p,z.T=u,nx(t,a)}}function ax(t,a,o){a=Pn(o,a),a=md(t.stateNode,a,2),t=na(t,a,2),t!==null&&(fe(t,2),pr(t))}function ut(t,a,o){if(t.tag===3)ax(t,t,o);else for(;a!==null;){if(a.tag===3){ax(a,t,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(fa===null||!fa.has(u))){t=Pn(o,t),o=sv(2),u=na(a,o,2),u!==null&&(uv(o,u,a,t),fe(u,2),pr(u));break}}a=a.return}}function Hd(t,a,o){var u=t.pingCache;if(u===null){u=t.pingCache=new LA;var p=new Set;u.set(a,p)}else p=u.get(a),p===void 0&&(p=new Set,u.set(a,p));p.has(o)||(Md=!0,p.add(o),t=HA.bind(null,t,a,o),a.then(t,t))}function HA(t,a,o){var u=t.pingCache;u!==null&&u.delete(a),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,ht===t&&(Ze&o)===o&&(wt===4||wt===3&&(Ze&62914560)===Ze&&300>ft()-Od?(nt&2)===0&&Fi(t,0):jd|=o,Bi===Ze&&(Bi=0)),pr(t)}function ix(t,a){a===0&&(a=pi()),t=Ci(t,a),t!==null&&(fe(t,a),pr(t))}function FA(t){var a=t.memoizedState,o=0;a!==null&&(o=a.retryLane),ix(t,o)}function qA(t,a){var o=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),ix(t,o)}function VA(t,a){return Ct(t,a)}var fu=null,Vi=null,Fd=!1,du=!1,qd=!1,Wa=0;function pr(t){t!==Vi&&t.next===null&&(Vi===null?fu=Vi=t:Vi=Vi.next=t),du=!0,Fd||(Fd=!0,GA())}function hl(t,a){if(!qd&&du){qd=!0;do for(var o=!1,u=fu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var C=u.suspendedLanes,_=u.pingedLanes;v=(1<<31-Te(42|t)+1)-1,v&=p&~(C&~_),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,ux(u,v))}else v=Ze,v=At(u,u===ht?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Zt(u,v)||(o=!0,ux(u,v));u=u.next}while(o);qd=!1}}function $A(){ox()}function ox(){du=Fd=!1;var t=0;Wa!==0&&(eT()&&(t=Wa),Wa=0);for(var a=ft(),o=null,u=fu;u!==null;){var p=u.next,v=lx(u,a);v===0?(u.next=null,o===null?fu=p:o.next=p,p===null&&(Vi=o)):(o=u,(t!==0||(v&3)!==0)&&(du=!0)),u=p}hl(t)}function lx(t,a){for(var o=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var C=31-Te(v),_=1<<C,O=p[C];O===-1?((_&o)===0||(_&u)!==0)&&(p[C]=fn(_,a)):O<=a&&(t.expiredLanes|=_),v&=~_}if(a=ht,o=Ze,o=At(t,t===a?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,o===0||t===a&&(rt===2||rt===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&kt(u),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||Zt(t,o)){if(a=o&-o,a===t.callbackPriority)return a;switch(u!==null&&kt(u),Wt(o)){case 2:case 8:o=ja;break;case 32:o=Qr;break;case 268435456:o=Da;break;default:o=Qr}return u=sx.bind(null,t),o=Ct(o,u),t.callbackPriority=a,t.callbackNode=o,a}return u!==null&&u!==null&&kt(u),t.callbackPriority=2,t.callbackNode=null,2}function sx(t,a){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(cu()&&t.callbackNode!==o)return null;var u=Ze;return u=At(t,t===ht?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Vv(t,u,a),lx(t,ft()),t.callbackNode!=null&&t.callbackNode===o?sx.bind(null,t):null)}function ux(t,a){if(cu())return null;Vv(t,a,!0)}function GA(){nT(function(){(nt&6)!==0?Ct(Qn,$A):ox()})}function Vd(){return Wa===0&&(Wa=Cr()),Wa}function cx(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Es(""+t)}function fx(t,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,t.id&&o.setAttribute("form",t.id),a.parentNode.insertBefore(o,a),t=new FormData(t),o.parentNode.removeChild(o),t}function YA(t,a,o,u,p){if(a==="submit"&&o&&o.stateNode===p){var v=cx((p[mt]||null).action),C=u.submitter;C&&(a=(a=C[mt]||null)?cx(a.formAction):C.getAttribute("formAction"),a!==null&&(v=a,C=null));var _=new Ts("action","action",null,u,p);t.push({event:_,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Wa!==0){var O=C?fx(p,C):new FormData(p);cd(o,{pending:!0,data:O,method:p.method,action:v},null,O)}}else typeof v=="function"&&(_.preventDefault(),O=C?fx(p,C):new FormData(p),cd(o,{pending:!0,data:O,method:p.method,action:v},v,O))},currentTarget:p}]})}}for(var $d=0;$d<Nf.length;$d++){var Gd=Nf[$d],KA=Gd.toLowerCase(),XA=Gd[0].toUpperCase()+Gd.slice(1);Jn(KA,"on"+XA)}Jn(Vg,"onAnimationEnd"),Jn($g,"onAnimationIteration"),Jn(Gg,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(dA,"onTransitionRun"),Jn(hA,"onTransitionStart"),Jn(pA,"onTransitionCancel"),Jn(Yg,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="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(" "),QA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function dx(t,a){a=(a&4)!==0;for(var o=0;o<t.length;o++){var u=t[o],p=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var C=u.length-1;0<=C;C--){var _=u[C],O=_.instance,V=_.currentTarget;if(_=_.listener,O!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=V;try{v(p)}catch(te){Js(te)}p.currentTarget=null,v=O}else for(C=0;C<u.length;C++){if(_=u[C],O=_.instance,V=_.currentTarget,_=_.listener,O!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=V;try{v(p)}catch(te){Js(te)}p.currentTarget=null,v=O}}}}function $e(t,a){var o=a[dn];o===void 0&&(o=a[dn]=new Set);var u=t+"__bubble";o.has(u)||(hx(a,t,2,!1),o.add(u))}function Yd(t,a,o){var u=0;a&&(u|=4),hx(o,t,u,a)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Kd(t){if(!t[hu]){t[hu]=!0,Rt.forEach(function(o){o!=="selectionchange"&&(QA.has(o)||Yd(o,!1,t),Yd(o,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[hu]||(a[hu]=!0,Yd("selectionchange",!1,a))}}function hx(t,a,o,u){switch(zx(a)){case 2:var p=ET;break;case 8:p=CT;break;default:p=sh}o=p.bind(null,a,o,t),p=void 0,!gf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(a,o,{capture:!0,passive:p}):t.addEventListener(a,o,!0):p!==void 0?t.addEventListener(a,o,{passive:p}):t.addEventListener(a,o,!1)}function Xd(t,a,o,u,p){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var _=u.stateNode.containerInfo;if(_===p)break;if(C===4)for(C=u.return;C!==null;){var O=C.tag;if((O===3||O===4)&&C.stateNode.containerInfo===p)return;C=C.return}for(;_!==null;){if(C=Bt(_),C===null)return;if(O=C.tag,O===5||O===6||O===26||O===27){u=v=C;continue e}_=_.parentNode}}u=u.return}bg(function(){var V=v,te=pf(o),oe=[];e:{var K=Kg.get(t);if(K!==void 0){var X=Ts,je=t;switch(t){case"keypress":if(ks(o)===0)break e;case"keydown":case"keyup":X=V2;break;case"focusin":je="focus",X=bf;break;case"focusout":je="blur",X=bf;break;case"beforeblur":case"afterblur":X=bf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=j2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Y2;break;case Vg:case $g:case Gg:X=P2;break;case Yg:X=X2;break;case"scroll":case"scrollend":X=_2;break;case"wheel":X=Z2;break;case"copy":case"cut":case"paste":X=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=kg;break;case"toggle":case"beforetoggle":X=J2}var Re=(a&4)!==0,ot=!Re&&(t==="scroll"||t==="scrollend"),H=Re?K!==null?K+"Capture":null:K;Re=[];for(var I=V,q;I!==null;){var ae=I;if(q=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||q===null||H===null||(ae=Do(I,H),ae!=null&&Re.push(ml(I,ae,q))),ot)break;I=I.return}0<Re.length&&(K=new X(K,je,null,o,te),oe.push({event:K,listeners:Re}))}}if((a&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",K&&o!==hf&&(je=o.relatedTarget||o.fromElement)&&(Bt(je)||je[lt]))break e;if((X||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,X?(je=o.relatedTarget||o.toElement,X=V,je=je?Bt(je):null,je!==null&&(ot=s(je),Re=je.tag,je!==ot||Re!==5&&Re!==27&&Re!==6)&&(je=null)):(X=null,je=V),X!==je)){if(Re=Eg,ae="onMouseLeave",H="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Re=kg,ae="onPointerLeave",H="onPointerEnter",I="pointer"),ot=X==null?K:st(X),q=je==null?K:st(je),K=new Re(ae,I+"leave",X,o,te),K.target=ot,K.relatedTarget=q,ae=null,Bt(te)===V&&(Re=new Re(H,I+"enter",je,o,te),Re.target=q,Re.relatedTarget=ot,ae=Re),ot=ae,X&&je)t:{for(Re=X,H=je,I=0,q=Re;q;q=$i(q))I++;for(q=0,ae=H;ae;ae=$i(ae))q++;for(;0<I-q;)Re=$i(Re),I--;for(;0<q-I;)H=$i(H),q--;for(;I--;){if(Re===H||H!==null&&Re===H.alternate)break t;Re=$i(Re),H=$i(H)}Re=null}else Re=null;X!==null&&px(oe,K,X,Re,!1),je!==null&&ot!==null&&px(oe,ot,je,Re,!0)}}e:{if(K=V?st(V):window,X=K.nodeName&&K.nodeName.toLowerCase(),X==="select"||X==="input"&&K.type==="file")var xe=Dg;else if(Mg(K))if(Og)xe=uA;else{xe=lA;var Fe=oA}else X=K.nodeName,!X||X.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?V&&df(V.elementType)&&(xe=Dg):xe=sA;if(xe&&(xe=xe(t,V))){jg(oe,xe,o,te);break e}Fe&&Fe(t,K,V),t==="focusout"&&V&&K.type==="number"&&V.memoizedProps.value!=null&&ff(K,"number",K.value)}switch(Fe=V?st(V):window,t){case"focusin":(Mg(Fe)||Fe.contentEditable==="true")&&(wi=Fe,Af=V,Ho=null);break;case"focusout":Ho=Af=wi=null;break;case"mousedown":Tf=!0;break;case"contextmenu":case"mouseup":case"dragend":Tf=!1,Fg(oe,o,te);break;case"selectionchange":if(fA)break;case"keydown":case"keyup":Fg(oe,o,te)}var Ee;if(Sf)e:{switch(t){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else bi?Ng(t,o)&&(Ne="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Ne="onCompositionStart");Ne&&(Ag&&o.locale!=="ko"&&(bi||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&bi&&(Ee=wg()):(Wr=te,yf="value"in Wr?Wr.value:Wr.textContent,bi=!0)),Fe=pu(V,Ne),0<Fe.length&&(Ne=new Cg(Ne,t,null,o,te),oe.push({event:Ne,listeners:Fe}),Ee?Ne.data=Ee:(Ee=_g(o),Ee!==null&&(Ne.data=Ee)))),(Ee=tA?nA(t,o):rA(t,o))&&(Ne=pu(V,"onBeforeInput"),0<Ne.length&&(Fe=new Cg("onBeforeInput","beforeinput",null,o,te),oe.push({event:Fe,listeners:Ne}),Fe.data=Ee)),YA(oe,t,V,o,te)}dx(oe,a)})}function ml(t,a,o){return{instance:t,listener:a,currentTarget:o}}function pu(t,a){for(var o=a+"Capture",u=[];t!==null;){var p=t,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=Do(t,o),p!=null&&u.unshift(ml(t,p,v)),p=Do(t,a),p!=null&&u.push(ml(t,p,v))),t.tag===3)return u;t=t.return}return[]}function $i(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function px(t,a,o,u,p){for(var v=a._reactName,C=[];o!==null&&o!==u;){var _=o,O=_.alternate,V=_.stateNode;if(_=_.tag,O!==null&&O===u)break;_!==5&&_!==26&&_!==27||V===null||(O=V,p?(V=Do(o,v),V!=null&&C.unshift(ml(o,V,O))):p||(V=Do(o,v),V!=null&&C.push(ml(o,V,O)))),o=o.return}C.length!==0&&t.push({event:a,listeners:C})}var ZA=/\r\n?/g,WA=/\u0000|\uFFFD/g;function mx(t){return(typeof t=="string"?t:""+t).replace(ZA,`
|
|
50
|
+
`).replace(WA,"")}function gx(t,a){return a=mx(a),mx(t)===a}function mu(){}function it(t,a,o,u,p,v){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||yi(t,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&yi(t,""+u);break;case"className":bs(t,"class",u);break;case"tabIndex":bs(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":bs(t,o,u);break;case"style":vg(t,u,v);break;case"data":if(a!=="object"){bs(t,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){t.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=Es(""+u),t.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(o==="formAction"?(a!=="input"&&it(t,a,"name",p.name,p,null),it(t,a,"formEncType",p.formEncType,p,null),it(t,a,"formMethod",p.formMethod,p,null),it(t,a,"formTarget",p.formTarget,p,null)):(it(t,a,"encType",p.encType,p,null),it(t,a,"method",p.method,p,null),it(t,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=Es(""+u),t.setAttribute(o,u);break;case"onClick":u!=null&&(t.onclick=mu);break;case"onScroll":u!=null&&$e("scroll",t);break;case"onScrollEnd":u!=null&&$e("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}o=Es(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""+u):t.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":u===!0?t.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,u):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(o,u):t.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(o):t.setAttribute(o,u);break;case"popover":$e("beforetoggle",t),$e("toggle",t),xs(t,"popover",u);break;case"xlinkActuate":Tr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Tr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Tr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Tr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Tr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Tr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Tr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Tr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Tr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":xs(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=R2.get(o)||o,xs(t,o,u))}}function Qd(t,a,o,u,p,v){switch(o){case"style":vg(t,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof u=="string"?yi(t,u):(typeof u=="number"||typeof u=="bigint")&&yi(t,""+u);break;case"onScroll":u!=null&&$e("scroll",t);break;case"onScrollEnd":u!=null&&$e("scrollend",t);break;case"onClick":u!=null&&(t.onclick=mu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jt.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),a=o.slice(2,p?o.length-7:void 0),v=t[mt]||null,v=v!=null?v[o]:null,typeof v=="function"&&t.removeEventListener(a,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(a,u,p);break e}o in t?t[o]=u:u===!0?t.setAttribute(o,""):xs(t,o,u)}}}function Kt(t,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var u=!1,p=!1,v;for(v in o)if(o.hasOwnProperty(v)){var C=o[v];if(C!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:it(t,a,v,C,o,null)}}p&&it(t,a,"srcSet",o.srcSet,o,null),u&&it(t,a,"src",o.src,o,null);return;case"input":$e("invalid",t);var _=v=C=p=null,O=null,V=null;for(u in o)if(o.hasOwnProperty(u)){var te=o[u];if(te!=null)switch(u){case"name":p=te;break;case"type":C=te;break;case"checked":O=te;break;case"defaultChecked":V=te;break;case"value":v=te;break;case"defaultValue":_=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:it(t,a,u,te,o,null)}}pg(t,v,_,O,V,C,p,!1),ws(t);return;case"select":$e("invalid",t),u=C=v=null;for(p in o)if(o.hasOwnProperty(p)&&(_=o[p],_!=null))switch(p){case"value":v=_;break;case"defaultValue":C=_;break;case"multiple":u=_;default:it(t,a,p,_,o,null)}a=v,o=C,t.multiple=!!u,a!=null?gi(t,!!u,a,!1):o!=null&&gi(t,!!u,o,!0);return;case"textarea":$e("invalid",t),v=p=u=null;for(C in o)if(o.hasOwnProperty(C)&&(_=o[C],_!=null))switch(C){case"value":u=_;break;case"defaultValue":p=_;break;case"children":v=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:it(t,a,C,_,o,null)}gg(t,u,p,v),ws(t);return;case"option":for(O in o)if(o.hasOwnProperty(O)&&(u=o[O],u!=null))switch(O){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:it(t,a,O,u,o,null)}return;case"dialog":$e("beforetoggle",t),$e("toggle",t),$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(u=0;u<pl.length;u++)$e(pl[u],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in o)if(o.hasOwnProperty(V)&&(u=o[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:it(t,a,V,u,o,null)}return;default:if(df(a)){for(te in o)o.hasOwnProperty(te)&&(u=o[te],u!==void 0&&Qd(t,a,te,u,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(u=o[_],u!=null&&it(t,a,_,u,o,null))}function JA(t,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,C=null,_=null,O=null,V=null,te=null;for(X in o){var oe=o[X];if(o.hasOwnProperty(X)&&oe!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":O=oe;default:u.hasOwnProperty(X)||it(t,a,X,null,u,oe)}}for(var K in u){var X=u[K];if(oe=o[K],u.hasOwnProperty(K)&&(X!=null||oe!=null))switch(K){case"type":v=X;break;case"name":p=X;break;case"checked":V=X;break;case"defaultChecked":te=X;break;case"value":C=X;break;case"defaultValue":_=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,a));break;default:X!==oe&&it(t,a,K,X,u,oe)}}cf(t,C,_,O,V,te,v,p);return;case"select":X=C=_=K=null;for(v in o)if(O=o[v],o.hasOwnProperty(v)&&O!=null)switch(v){case"value":break;case"multiple":X=O;default:u.hasOwnProperty(v)||it(t,a,v,null,u,O)}for(p in u)if(v=u[p],O=o[p],u.hasOwnProperty(p)&&(v!=null||O!=null))switch(p){case"value":K=v;break;case"defaultValue":_=v;break;case"multiple":C=v;default:v!==O&&it(t,a,p,v,u,O)}a=_,o=C,u=X,K!=null?gi(t,!!o,K,!1):!!u!=!!o&&(a!=null?gi(t,!!o,a,!0):gi(t,!!o,o?[]:"",!1));return;case"textarea":X=K=null;for(_ in o)if(p=o[_],o.hasOwnProperty(_)&&p!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:it(t,a,_,null,u,p)}for(C in u)if(p=u[C],v=o[C],u.hasOwnProperty(C)&&(p!=null||v!=null))switch(C){case"value":K=p;break;case"defaultValue":X=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==v&&it(t,a,C,p,u,v)}mg(t,K,X);return;case"option":for(var je in o)if(K=o[je],o.hasOwnProperty(je)&&K!=null&&!u.hasOwnProperty(je))switch(je){case"selected":t.selected=!1;break;default:it(t,a,je,null,u,K)}for(O in u)if(K=u[O],X=o[O],u.hasOwnProperty(O)&&K!==X&&(K!=null||X!=null))switch(O){case"selected":t.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:it(t,a,O,K,u,X)}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 Re in o)K=o[Re],o.hasOwnProperty(Re)&&K!=null&&!u.hasOwnProperty(Re)&&it(t,a,Re,null,u,K);for(V in u)if(K=u[V],X=o[V],u.hasOwnProperty(V)&&K!==X&&(K!=null||X!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:it(t,a,V,K,u,X)}return;default:if(df(a)){for(var ot in o)K=o[ot],o.hasOwnProperty(ot)&&K!==void 0&&!u.hasOwnProperty(ot)&&Qd(t,a,ot,void 0,u,K);for(te in u)K=u[te],X=o[te],!u.hasOwnProperty(te)||K===X||K===void 0&&X===void 0||Qd(t,a,te,K,u,X);return}}for(var H in o)K=o[H],o.hasOwnProperty(H)&&K!=null&&!u.hasOwnProperty(H)&&it(t,a,H,null,u,K);for(oe in u)K=u[oe],X=o[oe],!u.hasOwnProperty(oe)||K===X||K==null&&X==null||it(t,a,oe,K,u,X)}var Zd=null,Wd=null;function gu(t){return t.nodeType===9?t:t.ownerDocument}function yx(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vx(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Jd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var eh=null;function eT(){var t=window.event;return t&&t.type==="popstate"?t===eh?!1:(eh=t,!0):(eh=null,!1)}var xx=typeof setTimeout=="function"?setTimeout:void 0,tT=typeof clearTimeout=="function"?clearTimeout:void 0,bx=typeof Promise=="function"?Promise:void 0,nT=typeof queueMicrotask=="function"?queueMicrotask:typeof bx<"u"?function(t){return bx.resolve(null).then(t).catch(rT)}:xx;function rT(t){setTimeout(function(){throw t})}function pa(t){return t==="head"}function wx(t,a){var o=a,u=0,p=0;do{var v=o.nextSibling;if(t.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"){if(0<u&&8>u){o=u;var C=t.ownerDocument;if(o&1&&gl(C.documentElement),o&2&&gl(C.body),o&4)for(o=C.head,gl(o),C=o.firstChild;C;){var _=C.nextSibling,O=C.nodeName;C[kr]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&C.rel.toLowerCase()==="stylesheet"||o.removeChild(C),C=_}}if(p===0){t.removeChild(v),Cl(a);return}p--}else o==="$"||o==="$?"||o==="$!"?p++:u=o.charCodeAt(0)-48;else u=0;o=v}while(o);Cl(a)}function th(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":th(o),jo(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function aT(t,a,o,u){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[kr])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(v=t.getAttribute("rel"),v==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(v!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(v=t.getAttribute("src"),(v!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===v)return t}else return t;if(t=tr(t.nextSibling),t===null)break}return null}function iT(t,a,o){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=tr(t.nextSibling),t===null))return null;return t}function nh(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function oT(t,a){var o=t.ownerDocument;if(t.data!=="$?"||o.readyState==="complete")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function tr(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var rh=null;function Sx(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return t;a--}else o==="/$"&&a++}t=t.previousSibling}return null}function Ex(t,a,o){switch(a=gu(o),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function gl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);jo(t)}var Hn=new Map,Cx=new Set;function yu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Hr=Q.d;Q.d={f:lT,r:sT,D:uT,C:cT,L:fT,m:dT,X:pT,S:hT,M:mT};function lT(){var t=Hr.f(),a=su();return t||a}function sT(t){var a=Ut(t);a!==null&&a.tag===5&&a.type==="form"?Vy(a):Hr.r(t)}var Gi=typeof document>"u"?null:document;function kx(t,a,o){var u=Gi;if(u&&typeof a=="string"&&a){var p=On(a);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),Cx.has(p)||(Cx.add(p),t={rel:t,crossOrigin:o,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),Kt(a,"link",t),qe(a),u.head.appendChild(a)))}}function uT(t){Hr.D(t),kx("dns-prefetch",t,null)}function cT(t,a){Hr.C(t,a),kx("preconnect",t,a)}function fT(t,a,o){Hr.L(t,a,o);var u=Gi;if(u&&t&&a){var p='link[rel="preload"][as="'+On(a)+'"]';a==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+On(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+On(o.imageSizes)+'"]')):p+='[href="'+On(t)+'"]';var v=p;switch(a){case"style":v=Yi(t);break;case"script":v=Ki(t)}Hn.has(v)||(t=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:t,as:a},o),Hn.set(v,t),u.querySelector(p)!==null||a==="style"&&u.querySelector(yl(v))||a==="script"&&u.querySelector(vl(v))||(a=u.createElement("link"),Kt(a,"link",t),qe(a),u.head.appendChild(a)))}}function dT(t,a){Hr.m(t,a);var o=Gi;if(o&&t){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+On(u)+'"][href="'+On(t)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Ki(t)}if(!Hn.has(v)&&(t=m({rel:"modulepreload",href:t},a),Hn.set(v,t),o.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(vl(v)))return}u=o.createElement("link"),Kt(u,"link",t),qe(u),o.head.appendChild(u)}}}function hT(t,a,o){Hr.S(t,a,o);var u=Gi;if(u&&t){var p=Wn(u).hoistableStyles,v=Yi(t);a=a||"default";var C=p.get(v);if(!C){var _={loading:0,preload:null};if(C=u.querySelector(yl(v)))_.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":a},o),(o=Hn.get(v))&&ah(t,o);var O=C=u.createElement("link");qe(O),Kt(O,"link",t),O._p=new Promise(function(V,te){O.onload=V,O.onerror=te}),O.addEventListener("load",function(){_.loading|=1}),O.addEventListener("error",function(){_.loading|=2}),_.loading|=4,vu(C,a,u)}C={type:"stylesheet",instance:C,count:1,state:_},p.set(v,C)}}}function pT(t,a){Hr.X(t,a);var o=Gi;if(o&&t){var u=Wn(o).hoistableScripts,p=Ki(t),v=u.get(p);v||(v=o.querySelector(vl(p)),v||(t=m({src:t,async:!0},a),(a=Hn.get(p))&&ih(t,a),v=o.createElement("script"),qe(v),Kt(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function mT(t,a){Hr.M(t,a);var o=Gi;if(o&&t){var u=Wn(o).hoistableScripts,p=Ki(t),v=u.get(p);v||(v=o.querySelector(vl(p)),v||(t=m({src:t,async:!0,type:"module"},a),(a=Hn.get(p))&&ih(t,a),v=o.createElement("script"),qe(v),Kt(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function Ax(t,a,o,u){var p=(p=me.current)?yu(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Yi(o.href),o=Wn(p).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Yi(o.href);var v=Wn(p).hoistableStyles,C=v.get(t);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,C),(v=p.querySelector(yl(t)))&&!v._p&&(C.instance=v,C.state.loading=5),Hn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Hn.set(t,o),v||gT(p,t,o,C.state))),a&&u===null)throw Error(i(528,""));return C}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ki(o),o=Wn(p).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Yi(t){return'href="'+On(t)+'"'}function yl(t){return'link[rel="stylesheet"]['+t+"]"}function Tx(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function gT(t,a,o,u){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=t.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Kt(a,"link",o),qe(a),t.head.appendChild(a))}function Ki(t){return'[src="'+On(t)+'"]'}function vl(t){return"script[async]"+t}function Rx(t,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=t.querySelector('style[data-href~="'+On(o.href)+'"]');if(u)return a.instance=u,qe(u),u;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),qe(u),Kt(u,"style",p),vu(u,o.precedence,t),a.instance=u;case"stylesheet":p=Yi(o.href);var v=t.querySelector(yl(p));if(v)return a.state.loading|=4,a.instance=v,qe(v),v;u=Tx(o),(p=Hn.get(p))&&ah(u,p),v=(t.ownerDocument||t).createElement("link"),qe(v);var C=v;return C._p=new Promise(function(_,O){C.onload=_,C.onerror=O}),Kt(v,"link",u),a.state.loading|=4,vu(v,o.precedence,t),a.instance=v;case"script":return v=Ki(o.src),(p=t.querySelector(vl(v)))?(a.instance=p,qe(p),p):(u=o,(p=Hn.get(v))&&(u=m({},o),ih(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),qe(p),Kt(p,"link",u),t.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,vu(u,o.precedence,t));return a.instance}function vu(t,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,C=0;C<u.length;C++){var _=u[C];if(_.dataset.precedence===a)v=_;else if(v!==p)break}v?v.parentNode.insertBefore(t,v.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(t,a.firstChild))}function ah(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function ih(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var xu=null;function Nx(t,a,o){if(xu===null){var u=new Map,p=xu=new Map;p.set(o,u)}else p=xu,u=p.get(o),u||(u=new Map,p.set(o,u));if(u.has(t))return u;for(u.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var v=o[p];if(!(v[kr]||v[dt]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var C=v.getAttribute(a)||"";C=t+C;var _=u.get(C);_?_.push(v):u.set(C,[v])}}return u}function _x(t,a,o){t=t.ownerDocument||t,t.head.insertBefore(o,a==="title"?t.querySelector("head > title"):null)}function yT(t,a,o){if(o===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Mx(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var xl=null;function vT(){}function xT(t,a,o){if(xl===null)throw Error(i(475));var u=xl;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Yi(o.href),v=t.querySelector(yl(p));if(v){t=v._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=bu.bind(u),t.then(u,u)),a.state.loading|=4,a.instance=v,qe(v);return}v=t.ownerDocument||t,o=Tx(o),(p=Hn.get(p))&&ah(o,p),v=v.createElement("link"),qe(v);var C=v;C._p=new Promise(function(_,O){C.onload=_,C.onerror=O}),Kt(v,"link",o),a.instance=v}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(u.count++,a=bu.bind(u),t.addEventListener("load",a),t.addEventListener("error",a))}}function bT(){if(xl===null)throw Error(i(475));var t=xl;return t.stylesheets&&t.count===0&&oh(t,t.stylesheets),0<t.count?function(a){var o=setTimeout(function(){if(t.stylesheets&&oh(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(o)}}:null}function bu(){if(this.count--,this.count===0){if(this.stylesheets)oh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var wu=null;function oh(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,wu=new Map,a.forEach(wT,t),wu=null,bu.call(t))}function wT(t,a){if(!(a.state.loading&4)){var o=wu.get(t);if(o)var u=o.get(null);else{o=new Map,wu.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var C=p[v];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(o.set(C.dataset.precedence,C),u=C)}u&&o.set(null,u)}p=a.instance,C=p.getAttribute("data-precedence"),v=o.get(C)||u,v===u&&o.set(null,p),o.set(C,p),this.count++,u=bu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),v?v.parentNode.insertBefore(p,v.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),a.state.loading|=4}}var bl={$$typeof:R,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function ST(t,a,o,u,p,v,C,_){this.tag=1,this.containerInfo=t,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=$(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$(0),this.hiddenUpdates=$(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function jx(t,a,o,u,p,v,C,_,O,V,te,oe){return t=new ST(t,a,o,C,_,O,V,oe),a=1,v===!0&&(a|=24),v=Sn(3,null,null,a),t.current=v,v.stateNode=t,a=Hf(),a.refCount++,t.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:o,cache:a},$f(v),t}function Dx(t){return t?(t=ki,t):ki}function Ox(t,a,o,u,p,v){p=Dx(p),u.context===null?u.context=p:u.pendingContext=p,u=ta(a),u.payload={element:o},v=v===void 0?null:v,v!==null&&(u.callback=v),o=na(t,u,a),o!==null&&(Tn(o,t,a),Qo(o,t,a))}function Px(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<a?o:a}}function lh(t,a){Px(t,a),(t=t.alternate)&&Px(t,a)}function Lx(t){if(t.tag===13){var a=Ci(t,67108864);a!==null&&Tn(a,t,67108864),lh(t,67108864)}}var Su=!0;function ET(t,a,o,u){var p=z.T;z.T=null;var v=Q.p;try{Q.p=2,sh(t,a,o,u)}finally{Q.p=v,z.T=p}}function CT(t,a,o,u){var p=z.T;z.T=null;var v=Q.p;try{Q.p=8,sh(t,a,o,u)}finally{Q.p=v,z.T=p}}function sh(t,a,o,u){if(Su){var p=uh(u);if(p===null)Xd(t,a,u,Eu,o),Ix(t,u);else if(AT(p,t,a,o,u))u.stopPropagation();else if(Ix(t,u),a&4&&-1<kT.indexOf(t)){for(;p!==null;){var v=Ut(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var C=an(v.pendingLanes);if(C!==0){var _=v;for(_.pendingLanes|=2,_.entangledLanes|=2;C;){var O=1<<31-Te(C);_.entanglements[1]|=O,C&=~O}pr(v),(nt&6)===0&&(ou=ft()+500,hl(0))}}break;case 13:_=Ci(v,2),_!==null&&Tn(_,v,2),su(),lh(v,2)}if(v=uh(u),v===null&&Xd(t,a,u,Eu,o),v===p)break;p=v}p!==null&&u.stopPropagation()}else Xd(t,a,u,null,o)}}function uh(t){return t=pf(t),ch(t)}var Eu=null;function ch(t){if(Eu=null,t=Bt(t),t!==null){var a=s(t);if(a===null)t=null;else{var o=a.tag;if(o===13){if(t=c(a),t!==null)return t;t=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Eu=t,null}function zx(t){switch(t){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(_o()){case Qn:return 2;case ja:return 8;case Qr:case di:return 32;case Da:return 268435456;default:return 32}default:return 32}}var fh=!1,ma=null,ga=null,ya=null,wl=new Map,Sl=new Map,va=[],kT="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 Ix(t,a){switch(t){case"focusin":case"focusout":ma=null;break;case"dragenter":case"dragleave":ga=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":wl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(a.pointerId)}}function El(t,a,o,u,p,v){return t===null||t.nativeEvent!==v?(t={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},a!==null&&(a=Ut(a),a!==null&&Lx(a)),t):(t.eventSystemFlags|=u,a=t.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),t)}function AT(t,a,o,u,p){switch(a){case"focusin":return ma=El(ma,t,a,o,u,p),!0;case"dragenter":return ga=El(ga,t,a,o,u,p),!0;case"mouseover":return ya=El(ya,t,a,o,u,p),!0;case"pointerover":var v=p.pointerId;return wl.set(v,El(wl.get(v)||null,t,a,o,u,p)),!0;case"gotpointercapture":return v=p.pointerId,Sl.set(v,El(Sl.get(v)||null,t,a,o,u,p)),!0}return!1}function Bx(t){var a=Bt(t.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){t.blockedOn=a,Ke(t.priority,function(){if(o.tag===13){var u=An();u=Qe(u);var p=Ci(o,u);p!==null&&Tn(p,o,u),lh(o,u)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Cu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var o=uh(t.nativeEvent);if(o===null){o=t.nativeEvent;var u=new o.constructor(o.type,o);hf=u,o.target.dispatchEvent(u),hf=null}else return a=Ut(o),a!==null&&Lx(a),t.blockedOn=o,!1;a.shift()}return!0}function Ux(t,a,o){Cu(t)&&o.delete(a)}function TT(){fh=!1,ma!==null&&Cu(ma)&&(ma=null),ga!==null&&Cu(ga)&&(ga=null),ya!==null&&Cu(ya)&&(ya=null),wl.forEach(Ux),Sl.forEach(Ux)}function ku(t,a){t.blockedOn===a&&(t.blockedOn=null,fh||(fh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,TT)))}var Au=null;function Hx(t){Au!==t&&(Au=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Au===t&&(Au=null);for(var a=0;a<t.length;a+=3){var o=t[a],u=t[a+1],p=t[a+2];if(typeof u!="function"){if(ch(u||o)===null)continue;break}var v=Ut(o);v!==null&&(t.splice(a,3),a-=3,cd(v,{pending:!0,data:p,method:o.method,action:u},u,p))}}))}function Cl(t){function a(O){return ku(O,t)}ma!==null&&ku(ma,t),ga!==null&&ku(ga,t),ya!==null&&ku(ya,t),wl.forEach(a),Sl.forEach(a);for(var o=0;o<va.length;o++){var u=va[o];u.blockedOn===t&&(u.blockedOn=null)}for(;0<va.length&&(o=va[0],o.blockedOn===null);)Bx(o),o.blockedOn===null&&va.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var p=o[u],v=o[u+1],C=p[mt]||null;if(typeof v=="function")C||Hx(o);else if(C){var _=null;if(v&&v.hasAttribute("formAction")){if(p=v,C=v[mt]||null)_=C.formAction;else if(ch(p)!==null)continue}else _=C.action;typeof _=="function"?o[u+1]=_:(o.splice(u,3),u-=3),Hx(o)}}}function dh(t){this._internalRoot=t}Tu.prototype.render=dh.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,u=An();Ox(o,u,t,a,null,null)},Tu.prototype.unmount=dh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ox(t.current,2,null,t,null,null),su(),a[lt]=null}};function Tu(t){this._internalRoot=t}Tu.prototype.unstable_scheduleHydration=function(t){if(t){var a=Tt();t={blockedOn:null,target:t,priority:a};for(var o=0;o<va.length&&a!==0&&a<va[o].priority;o++);va.splice(o,0,t),o===0&&Bx(t)}};var Fx=n.version;if(Fx!=="19.1.1")throw Error(i(527,Fx,"19.1.1"));Q.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=d(a),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var RT={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{ee=Ru.inject(RT),de=Ru}catch{}}return Al.createRoot=function(t,a){if(!l(t))throw Error(i(299));var o=!1,u="",p=av,v=iv,C=ov,_=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_=a.unstable_transitionCallbacks)),a=jx(t,1,!1,null,null,o,u,p,v,C,_,null),t[lt]=a.current,Kd(t),new dh(a)},Al.hydrateRoot=function(t,a,o){if(!l(t))throw Error(i(299));var u=!1,p="",v=av,C=iv,_=ov,O=null,V=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(C=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks),o.formState!==void 0&&(V=o.formState)),a=jx(t,1,!0,a,o??null,u,p,v,C,_,O,V),a.context=Dx(null),o=a.current,u=An(),u=Qe(u),p=ta(u),p.callback=null,na(o,p,u),o=u,a.current.lanes=o,fe(a,o),pr(a),t[lt]=a.current,Kd(t),new Tu(a)},Al.version="19.1.1",Al}var Wx;function IT(){if(Wx)return mh.exports;Wx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),mh.exports=zT(),mh.exports}var BT=IT();const UT="modulepreload",HT=function(e){return"/"+e},Jx={},Ye=function(n,r,i){let l=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");l=d(r.map(h=>{if(h=HT(h),h in Jx)return;Jx[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":UT,m||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return l.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return n().catch(s)})};/**
|
|
51
|
+
* react-router v7.8.2
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var eb="popstate";function FT(e={}){function n(i,l){let{pathname:s,search:c,hash:f}=i.location;return tp("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(i,l){return typeof l=="string"?l:Hl(l)}return VT(n,r,null,e)}function yt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Vn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function qT(){return Math.random().toString(36).substring(2,10)}function tb(e,n){return{usr:e.state,key:e.key,idx:n}}function tp(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?go(n):n,state:r,key:n&&n.key||i||qT()}}function Hl({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function go(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function VT(e,n,r,i={}){let{window:l=document.defaultView,v5Compat:s=!1}=i,c=l.history,f="POP",d=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let A=m(),T=A==null?null:A-h;h=A,d&&d({action:f,location:S.location,delta:T})}function b(A,T){f="PUSH";let N=tp(S.location,A,T);h=m()+1;let R=tb(N,h),D=S.createHref(N);try{c.pushState(R,"",D)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(D)}s&&d&&d({action:f,location:S.location,delta:1})}function w(A,T){f="REPLACE";let N=tp(S.location,A,T);h=m();let R=tb(N,h),D=S.createHref(N);c.replaceState(R,"",D),s&&d&&d({action:f,location:S.location,delta:0})}function E(A){return $T(A)}let S={get action(){return f},get location(){return e(l,c)},listen(A){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(eb,y),d=A,()=>{l.removeEventListener(eb,y),d=null}},createHref(A){return n(l,A)},createURL:E,encodeLocation(A){let T=E(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:w,go(A){return c.go(A)}};return S}function $T(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),yt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Hl(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Y0(e,n,r="/"){return GT(e,n,r,!1)}function GT(e,n,r,i){let l=typeof n=="string"?go(n):n,s=$r(l.pathname||"/",r);if(s==null)return null;let c=K0(e);YT(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=aR(s);f=nR(c[d],h,i)}return f}function K0(e,n=[],r=[],i="",l=!1){let s=(c,f,d=l,h)=>{let m={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&d)return;yt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let y=Vr([i,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(yt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),K0(c.children,n,b,y,d)),!(c.path==null&&!c.index)&&n.push({path:y,score:eR(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let d of X0(c.path))s(c,f,!0,d)}),n}function X0(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return l?[s,""]:[s];let c=X0(i.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function YT(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:tR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var KT=/^:[\w-]+$/,XT=3,QT=2,ZT=1,WT=10,JT=-2,nb=e=>e==="*";function eR(e,n){let r=e.split("/"),i=r.length;return r.some(nb)&&(i+=JT),n&&(i+=QT),r.filter(l=>!nb(l)).reduce((l,s)=>l+(KT.test(s)?XT:s===""?ZT:WT),i)}function tR(e,n){return e.length===n.length&&e.slice(0,-1).every((i,l)=>i===n[l])?e[e.length-1]-n[n.length-1]:0}function nR(e,n,r=!1){let{routesMeta:i}=e,l={},s="/",c=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,m=s==="/"?n:n.slice(s.length)||"/",y=rc({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),b=d.route;if(!y&&h&&r&&!i[i.length-1].route.index&&(y=rc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:Vr([s,y.pathname]),pathnameBase:sR(Vr([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=Vr([s,y.pathnameBase]))}return c}function rc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=rR(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let s=l[0],c=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((h,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=f[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const w=f[b];return y&&!w?h[m]=void 0:h[m]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function rR(e,n=!1,r=!0){Vn(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 i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function aR(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Vn(!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 (${n}).`),e}}function $r(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function iR(e,n="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?go(e):e;return{pathname:r?r.startsWith("/")?r:oR(r,n):n,search:uR(i),hash:cR(l)}}function oR(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function xh(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lR(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Yp(e){let n=lR(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function Kp(e,n,r,i=!1){let l;typeof e=="string"?l=go(e):(l={...e},yt(!l.pathname||!l.pathname.includes("?"),xh("?","pathname","search",l)),yt(!l.pathname||!l.pathname.includes("#"),xh("#","pathname","hash",l)),yt(!l.search||!l.search.includes("#"),xh("#","search","hash",l)));let s=e===""||l.pathname==="",c=s?"/":l.pathname,f;if(c==null)f=r;else{let y=n.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}f=y>=0?n[y]:"/"}let d=iR(l,f),h=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var Vr=e=>e.join("/").replace(/\/\/+/g,"/"),sR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Q0=["POST","PUT","PATCH","DELETE"];new Set(Q0);var dR=["GET",...Q0];new Set(dR);var yo=x.createContext(null);yo.displayName="DataRouter";var wc=x.createContext(null);wc.displayName="DataRouterState";x.createContext(!1);var Z0=x.createContext({isTransitioning:!1});Z0.displayName="ViewTransition";var hR=x.createContext(new Map);hR.displayName="Fetchers";var pR=x.createContext(null);pR.displayName="Await";var lr=x.createContext(null);lr.displayName="Navigation";var Jl=x.createContext(null);Jl.displayName="Location";var $n=x.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var Xp=x.createContext(null);Xp.displayName="RouteError";function mR(e,{relative:n}={}){yt(vo(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=x.useContext(lr),{hash:l,pathname:s,search:c}=es(e,{relative:n}),f=s;return r!=="/"&&(f=s==="/"?r:Vr([r,s])),i.createHref({pathname:f,search:c,hash:l})}function vo(){return x.useContext(Jl)!=null}function Gn(){return yt(vo(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Jl).location}var W0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function J0(e){x.useContext(lr).static||x.useLayoutEffect(e)}function Sc(){let{isDataRoute:e}=x.useContext($n);return e?_R():gR()}function gR(){yt(vo(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(yo),{basename:n,navigator:r}=x.useContext(lr),{matches:i}=x.useContext($n),{pathname:l}=Gn(),s=JSON.stringify(Yp(i)),c=x.useRef(!1);return J0(()=>{c.current=!0}),x.useCallback((d,h={})=>{if(Vn(c.current,W0),!c.current)return;if(typeof d=="number"){r.go(d);return}let m=Kp(d,JSON.parse(s),l,h.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Vr([n,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[n,r,s,l,e])}var yR=x.createContext(null);function vR(e){let n=x.useContext($n).outlet;return n&&x.createElement(yR.Provider,{value:e},n)}function UU(){let{matches:e}=x.useContext($n),n=e[e.length-1];return n?n.params:{}}function es(e,{relative:n}={}){let{matches:r}=x.useContext($n),{pathname:i}=Gn(),l=JSON.stringify(Yp(r));return x.useMemo(()=>Kp(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function xR(e,n){return ew(e,n)}function ew(e,n,r,i,l){yt(vo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(lr),{matches:c}=x.useContext($n),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let N=y&&y.path||"";tw(h,!y||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) 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.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=Gn(),w;if(n){let N=typeof n=="string"?go(n):n;yt(m==="/"||N.pathname?.startsWith(m),`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 "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),w=N}else w=b;let E=w.pathname||"/",S=E;if(m!=="/"){let N=m.replace(/^\//,"").split("/");S="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=Y0(e,{pathname:S});Vn(y||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Vn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 T=CR(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},d,N.params),pathname:Vr([m,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:Vr([m,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),c,r,i,l);return n&&T?x.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},T):T}function bR(){let e=NR(),n=fR(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:s},"ErrorBoundary")," or"," ",x.createElement("code",{style:s},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},n),r?x.createElement("pre",{style:l},r):null,c)}var wR=x.createElement(bR,null),SR=class extends x.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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?x.createElement($n.Provider,{value:this.props.routeContext},x.createElement(Xp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ER({routeContext:e,match:n,children:r}){let i=x.useContext(yo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement($n.Provider,{value:e},r)}function CR(e,n=[],r=null,i=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r?.errors;if(c!=null){let h=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);yt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,d=-1;if(r)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:y,errors:b}=r,w=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,m,y)=>{let b,w=!1,E=null,S=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||wR,f&&(d<0&&y===0?(tw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):d===y&&(w=!0,S=m.route.hydrateFallbackElement||null)));let A=n.concat(s.slice(0,y+1)),T=()=>{let N;return b?N=E:w?N=S:m.route.Component?N=x.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=h,x.createElement(ER,{match:m,routeContext:{outlet:h,matches:A,isDataRoute:r!=null},children:N})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?x.createElement(SR,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:i}):T()},null)}function Qp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kR(e){let n=x.useContext(yo);return yt(n,Qp(e)),n}function AR(e){let n=x.useContext(wc);return yt(n,Qp(e)),n}function TR(e){let n=x.useContext($n);return yt(n,Qp(e)),n}function Zp(e){let n=TR(e),r=n.matches[n.matches.length-1];return yt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function RR(){return Zp("useRouteId")}function NR(){let e=x.useContext(Xp),n=AR("useRouteError"),r=Zp("useRouteError");return e!==void 0?e:n.errors?.[r]}function _R(){let{router:e}=kR("useNavigate"),n=Zp("useNavigate"),r=x.useRef(!1);return J0(()=>{r.current=!0}),x.useCallback(async(l,s={})=>{Vn(r.current,W0),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:n,...s}))},[e,n])}var rb={};function tw(e,n,r){!n&&!rb[e]&&(rb[e]=!0,Vn(!1,r))}x.memo(MR);function MR({routes:e,future:n,state:r,unstable_onError:i}){return ew(e,void 0,r,i,n)}function jR({to:e,replace:n,state:r,relative:i}){yt(vo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=x.useContext(lr);Vn(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=x.useContext($n),{pathname:c}=Gn(),f=Sc(),d=Kp(e,Yp(s),c,i==="path"),h=JSON.stringify(d);return x.useEffect(()=>{f(JSON.parse(h),{replace:n,state:r,relative:i})},[f,h,i,n,r]),null}function nw(e){return vR(e.context)}function Le(e){yt(!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 DR({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:l,static:s=!1}){yt(!vo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=x.useMemo(()=>({basename:c,navigator:l,static:s,future:{}}),[c,l,s]);typeof r=="string"&&(r=go(r));let{pathname:d="/",search:h="",hash:m="",state:y=null,key:b="default"}=r,w=x.useMemo(()=>{let E=$r(d,c);return E==null?null:{location:{pathname:E,search:h,hash:m,state:y,key:b},navigationType:i}},[c,d,h,m,y,b,i]);return Vn(w!=null,`<Router basename="${c}"> is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:x.createElement(lr.Provider,{value:f},x.createElement(Jl.Provider,{children:n,value:w}))}function OR({children:e,location:n}){return xR(np(e),n)}function np(e,n=[]){let r=[];return x.Children.forEach(e,(i,l)=>{if(!x.isValidElement(i))return;let s=[...n,l];if(i.type===x.Fragment){r.push.apply(r,np(i.props.children,s));return}yt(i.type===Le,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=np(i.props.children,s)),r.push(c)}),r}var Vu="get",$u="application/x-www-form-urlencoded";function Ec(e){return e!=null&&typeof e.tagName=="string"}function PR(e){return Ec(e)&&e.tagName.toLowerCase()==="button"}function LR(e){return Ec(e)&&e.tagName.toLowerCase()==="form"}function zR(e){return Ec(e)&&e.tagName.toLowerCase()==="input"}function IR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BR(e,n){return e.button===0&&(!n||n==="_self")&&!IR(e)}function rp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function UR(e,n){let r=rp(e);return n&&n.forEach((i,l)=>{r.has(l)||n.getAll(l).forEach(s=>{r.append(l,s)})}),r}var Nu=null;function HR(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var FR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bh(e){return e!=null&&!FR.has(e)?(Vn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$u}"`),null):e}function qR(e,n){let r,i,l,s,c;if(LR(e)){let f=e.getAttribute("action");i=f?$r(f,n):null,r=e.getAttribute("method")||Vu,l=bh(e.getAttribute("enctype"))||$u,s=new FormData(e)}else if(PR(e)||zR(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?$r(d,n):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Vu,l=bh(e.getAttribute("formenctype"))||bh(f.getAttribute("enctype"))||$u,s=new FormData(f,e),!HR()){let{name:h,type:m,value:y}=e;if(m==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,y)}}else{if(Ec(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Vu,i=null,l=$u,c=e}return s&&l==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:l,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function VR(e,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:n&&$r(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function $R(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GR(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 YR(e,n,r){let i=await Promise.all(e.map(async l=>{let s=n.routes[l.route.id];if(s){let c=await $R(s,r);return c.links?c.links():[]}return[]}));return ZR(i.flat(1).filter(GR).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function ab(e,n,r,i,l,s){let c=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>r[h].pathname!==d.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==d.params["*"];return s==="assets"?n.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?n.filter((d,h)=>{let m=i.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function KR(e,n,{includeHydrateFallback:r}={}){return XR(e.map(i=>{let l=n.routes[i.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function XR(e){return[...new Set(e)]}function QR(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function ZR(e,n){let r=new Set;return new Set(n),e.reduce((i,l)=>{let s=JSON.stringify(QR(l));return r.has(s)||(r.add(s),i.push({key:s,link:l})),i},[])}function rw(){let e=x.useContext(yo);return Wp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function WR(){let e=x.useContext(wc);return Wp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jp=x.createContext(void 0);Jp.displayName="FrameworkContext";function aw(){let e=x.useContext(Jp);return Wp(e,"You must render this element inside a <HydratedRouter> element"),e}function JR(e,n){let r=x.useContext(Jp),[i,l]=x.useState(!1),[s,c]=x.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=n,b=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=T=>{T.forEach(N=>{c(N.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),x.useEffect(()=>{if(i){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[i]);let w=()=>{l(!0)},E=()=>{l(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Tl(f,w),onBlur:Tl(d,E),onMouseEnter:Tl(h,w),onMouseLeave:Tl(m,E),onTouchStart:Tl(y,w)}]:[!1,b,{}]}function Tl(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function eN({page:e,...n}){let{router:r}=rw(),i=x.useMemo(()=>Y0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?x.createElement(nN,{page:e,matches:i,...n}):null}function tN(e){let{manifest:n,routeModules:r}=aw(),[i,l]=x.useState([]);return x.useEffect(()=>{let s=!1;return YR(e,n,r).then(c=>{s||l(c)}),()=>{s=!0}},[e,n,r]),i}function nN({page:e,matches:n,...r}){let i=Gn(),{manifest:l,routeModules:s}=aw(),{basename:c}=rw(),{loaderData:f,matches:d}=WR(),h=x.useMemo(()=>ab(e,n,d,l,i,"data"),[e,n,d,l,i]),m=x.useMemo(()=>ab(e,n,d,l,i,"assets"),[e,n,d,l,i]),y=x.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(n.forEach(T=>{let N=l.routes[T.route.id];!N||!N.hasLoader||(!h.some(R=>R.route.id===T.route.id)&&T.route.id in f&&s[T.route.id]?.shouldRevalidate||N.hasClientLoader?S=!0:E.add(T.route.id))}),E.size===0)return[];let A=VR(e,c,"data");return S&&E.size>0&&A.searchParams.set("_routes",n.filter(T=>E.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[c,f,i,l,h,n,e,s]),b=x.useMemo(()=>KR(m,l),[m,l]),w=tN(m);return x.createElement(x.Fragment,null,y.map(E=>x.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>x.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:S})=>x.createElement("link",{key:E,nonce:r.nonce,...S})))}function rN(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var iw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iw&&(window.__reactRouterVersion="7.8.2")}catch{}function aN({basename:e,children:n,window:r}){let i=x.useRef();i.current==null&&(i.current=FT({window:r,v5Compat:!0}));let l=i.current,[s,c]=x.useState({action:l.action,location:l.location}),f=x.useCallback(d=>{x.startTransition(()=>c(d))},[c]);return x.useLayoutEffect(()=>l.listen(f),[l,f]),x.createElement(DR,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:l})}var ow=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qr=x.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:l,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:m,viewTransition:y,...b},w){let{basename:E}=x.useContext(lr),S=typeof h=="string"&&ow.test(h),A,T=!1;if(typeof h=="string"&&S&&(A=h,iw))try{let Y=new URL(window.location.href),L=h.startsWith("//")?new URL(Y.protocol+h):new URL(h),J=$r(L.pathname,E);L.origin===Y.origin&&J!=null?h=J+L.search+L.hash:T=!0}catch{Vn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=mR(h,{relative:l}),[R,D,P]=JR(i,b),j=sN(h,{replace:c,state:f,target:d,preventScrollReset:m,relative:l,viewTransition:y});function B(Y){n&&n(Y),Y.defaultPrevented||j(Y)}let U=x.createElement("a",{...b,...P,href:A||N,onClick:T||s?n:B,ref:rN(w,D),target:d,"data-discover":!S&&r==="render"?"true":void 0});return R&&!S?x.createElement(x.Fragment,null,U,x.createElement(eN,{page:N})):U});qr.displayName="Link";var iN=x.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:l=!1,style:s,to:c,viewTransition:f,children:d,...h},m){let y=es(c,{relative:h.relative}),b=Gn(),w=x.useContext(wc),{navigator:E,basename:S}=x.useContext(lr),A=w!=null&&hN(y)&&f===!0,T=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,N=b.pathname,R=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(N=N.toLowerCase(),R=R?R.toLowerCase():null,T=T.toLowerCase()),R&&S&&(R=$r(R,S)||R);const D=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=N===T||!l&&N.startsWith(T)&&N.charAt(D)==="/",j=R!=null&&(R===T||!l&&R.startsWith(T)&&R.charAt(T.length)==="/"),B={isActive:P,isPending:j,isTransitioning:A},U=P?n:void 0,Y;typeof i=="function"?Y=i(B):Y=[i,P?"active":null,j?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let L=typeof s=="function"?s(B):s;return x.createElement(qr,{...h,"aria-current":U,className:Y,ref:m,style:L,to:c,viewTransition:f},typeof d=="function"?d(B):d)});iN.displayName="NavLink";var oN=x.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:l,state:s,method:c=Vu,action:f,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:y,...b},w)=>{let E=fN(),S=dN(f,{relative:h}),A=c.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&ow.test(f),N=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,P=D?.getAttribute("formmethod")||c;E(D||R.currentTarget,{fetcherKey:n,method:P,navigate:r,replace:l,state:s,relative:h,preventScrollReset:m,viewTransition:y})};return x.createElement("form",{ref:w,method:A,action:S,onSubmit:i?d:N,...b,"data-discover":!T&&e==="render"?"true":void 0})});oN.displayName="Form";function lN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lw(e){let n=x.useContext(yo);return yt(n,lN(e)),n}function sN(e,{target:n,replace:r,state:i,preventScrollReset:l,relative:s,viewTransition:c}={}){let f=Sc(),d=Gn(),h=es(e,{relative:s});return x.useCallback(m=>{if(BR(m,n)){m.preventDefault();let y=r!==void 0?r:Hl(d)===Hl(h);f(e,{replace:y,state:i,preventScrollReset:l,relative:s,viewTransition:c})}},[d,f,h,r,i,n,e,l,s,c])}function HU(e){Vn(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 n=x.useRef(rp(e)),r=x.useRef(!1),i=Gn(),l=x.useMemo(()=>UR(i.search,r.current?null:n.current),[i.search]),s=Sc(),c=x.useCallback((f,d)=>{const h=rp(typeof f=="function"?f(new URLSearchParams(l)):f);r.current=!0,s("?"+h,d)},[s,l]);return[l,c]}var uN=0,cN=()=>`__${String(++uN)}__`;function fN(){let{router:e}=lw("useSubmit"),{basename:n}=x.useContext(lr),r=RR();return x.useCallback(async(i,l={})=>{let{action:s,method:c,encType:f,formData:d,body:h}=qR(i,n);if(l.navigate===!1){let m=l.fetcherKey||cN();await e.fetch(m,r,l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,n,r])}function dN(e,{relative:n}={}){let{basename:r}=x.useContext(lr),i=x.useContext($n);yt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),s={...es(e||".",{relative:n})},c=Gn();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Vr([r,s.pathname])),Hl(s)}function hN(e,{relative:n}={}){let r=x.useContext(Z0);yt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=lw("useViewTransitionState"),l=es(e,{relative:n});if(!r.isTransitioning)return!1;let s=$r(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=$r(r.nextLocation.pathname,i)||r.nextLocation.pathname;return rc(l.pathname,c)!=null||rc(l.pathname,s)!=null}var xo=G0();const pN=bc(xo);var Cc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kc=typeof window>"u"||"Deno"in globalThis;function rr(){}function mN(e,n){return typeof e=="function"?e(n):e}function gN(e){return typeof e=="number"&&e>=0&&e!==1/0}function yN(e,n){return Math.max(e+(n||0)-Date.now(),0)}function ap(e,n){return typeof e=="function"?e(n):e}function vN(e,n){return typeof e=="function"?e(n):e}function ib(e,n){const{type:r="all",exact:i,fetchStatus:l,predicate:s,queryKey:c,stale:f}=e;if(c){if(i){if(n.queryHash!==em(c,n.options))return!1}else if(!ql(n.queryKey,c))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||s&&!s(n))}function ob(e,n){const{exact:r,status:i,predicate:l,mutationKey:s}=e;if(s){if(!n.options.mutationKey)return!1;if(r){if(Fl(n.options.mutationKey)!==Fl(s))return!1}else if(!ql(n.options.mutationKey,s))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function em(e,n){return(n?.queryKeyHashFn||Fl)(e)}function Fl(e){return JSON.stringify(e,(n,r)=>ip(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function ql(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>ql(e[r],n[r])):!1}function sw(e,n){if(e===n)return e;const r=lb(e)&&lb(n);if(r||ip(e)&&ip(n)){const i=r?e:Object.keys(e),l=i.length,s=r?n:Object.keys(n),c=s.length,f=r?[]:{},d=new Set(i);let h=0;for(let m=0;m<c;m++){const y=r?m:s[m];(!r&&d.has(y)||r)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,h++):(f[y]=sw(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&h++)}return l===c&&h===l?e:f}return n}function lb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ip(e){if(!sb(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!sb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sb(e){return Object.prototype.toString.call(e)==="[object Object]"}function xN(e){return new Promise(n=>{setTimeout(n,e)})}function bN(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?sw(e,n):n}function wN(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function SN(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var tm=Symbol();function uw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===tm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var EN=class extends Cc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!kc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},cw=new EN,CN=class extends Cc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!kc&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},ac=new CN;function kN(){let e,n;const r=new Promise((l,s)=>{e=l,n=s});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),n(l)},r}function AN(e){return Math.min(1e3*2**e,3e4)}function fw(e){return(e??"online")==="online"?ac.isOnline():!0}var dw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function hw(e){let n=!1,r=0,i;const l=kN(),s=()=>l.status!=="pending",c=S=>{s()||(b(new dw(S)),e.abort?.())},f=()=>{n=!0},d=()=>{n=!1},h=()=>cw.isFocused()&&(e.networkMode==="always"||ac.isOnline())&&e.canRun(),m=()=>fw(e.networkMode)&&e.canRun(),y=S=>{s()||(i?.(),l.resolve(S))},b=S=>{s()||(i?.(),l.reject(S))},w=()=>new Promise(S=>{i=A=>{(s()||h())&&S(A)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),E=()=>{if(s())return;let S;const A=r===0?e.initialPromise:void 0;try{S=A??e.fn()}catch(T){S=Promise.reject(T)}Promise.resolve(S).then(y).catch(T=>{if(s())return;const N=e.retry??(kc?0:3),R=e.retryDelay??AN,D=typeof R=="function"?R(r,T):R,P=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,T);if(n||!P){b(T);return}r++,e.onFail?.(r,T),xN(D).then(()=>h()?void 0:w()).then(()=>{n?b(T):E()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(i?.(),l),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?E():w().then(E),l)}}var TN=e=>setTimeout(e,0);function RN(){let e=[],n=0,r=f=>{f()},i=f=>{f()},l=TN;const s=f=>{n?e.push(f):l(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&l(()=>{i(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;n++;try{d=f()}finally{n--,n||c()}return d},batchCalls:f=>(...d)=>{s(()=>{f(...d)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{l=f}}}var ln=RN(),pw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gN(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},NN=class extends pw{#e;#t;#n;#a;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=MN(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=bN(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(rr).catch(rr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>vN(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ap(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},l=()=>{const f=uw(this.options,n),h=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#l=!1,this.options.persister?this.options.persister(f,h,this):f(h)},c=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=hw({initialPromise:n?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onFail:(f,d)=>{this.#i({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof dw){if(f.silent)return this.#r.promise;if(f.revert){if(this.setState({...this.#t,fetchStatus:"idle"}),this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._N(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),ln.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function _N(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function MN(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jN=class extends Cc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,l=n.queryHash??em(i,n);let s=this.get(l);return s||(s=new NN({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ln.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ib(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>ib(e,r)):n}notify(e){ln.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){ln.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ln.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},DN=class extends pw{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||ON(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#a({type:"continue"})};this.#n=hw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,s)=>{this.#a({type:"failed",failureCount:l,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)n();else{this.#a({type:"pending",variables:e,isPaused:i}),await this.#t.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#a({type:"pending",context:s,variables:e,isPaused:i})}const l=await this.#n.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#a({type:"success",data:l}),l}catch(l){try{throw await this.#t.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#a({type:"error",error:l})}}finally{this.#t.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ln.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function ON(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var PN=class extends Cc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const i=new DN({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=_u(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=_u(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=_u(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=_u(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ln.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ob(n,r))}findAll(e={}){return this.getAll().filter(n=>ob(e,n))}notify(e){ln.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return ln.batch(()=>Promise.all(e.map(n=>n.continue().catch(rr))))}};function _u(e){return e.options.scope?.id}function ub(e){return{onFetch:(n,r)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,s=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let m=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(n.signal.aborted?m=!0:n.signal.addEventListener("abort",()=>{m=!0}),n.signal)})},b=uw(n.options,n.fetchOptions),w=async(E,S,A)=>{if(m)return Promise.reject();if(S==null&&E.pages.length)return Promise.resolve(E);const N=(()=>{const j={client:n.client,queryKey:n.queryKey,pageParam:S,direction:A?"backward":"forward",meta:n.options.meta};return y(j),j})(),R=await b(N),{maxPages:D}=n.options,P=A?SN:wN;return{pages:P(E.pages,R,D),pageParams:P(E.pageParams,S,D)}};if(l&&s.length){const E=l==="backward",S=E?LN:cb,A={pages:s,pageParams:c},T=S(i,A);f=await w(A,T,E)}else{const E=e??s.length;do{const S=d===0?c[0]??i.initialPageParam:cb(i,f);if(d>0&&S==null)break;f=await w(f,S),d++}while(d<E)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=h}}}function cb(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function LN(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var zN=class{#e;#t;#n;#a;#r;#o;#l;#i;constructor(e={}){this.#e=e.queryCache||new jN,this.#t=e.mutationCache||new PN,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=cw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ac.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ap(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,c=mN(n,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return ln.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;ln.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return ln.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=ln.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(rr).catch(rr)}invalidateQueries(e,n={}){return ln.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=ln.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let s=l.fetch(void 0,r);return r.throwOnError||(s=s.catch(rr)),l.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(rr)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(ap(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rr).catch(rr)}fetchInfiniteQuery(e){return e.behavior=ub(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rr).catch(rr)}ensureInfiniteQueryData(e){return e.behavior=ub(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ac.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(Fl(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(i=>{ql(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Fl(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{ql(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=em(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===tm&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},IN=x.createContext(void 0),BN=({client:e,children:n})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(IN.Provider,{value:e,children:n}));const UN={theme:"system",setTheme:()=>null},mw=x.createContext(UN);function HN({children:e,defaultTheme:n="system",storageKey:r="ui-theme",...i}){const[l,s]=x.useState(n);x.useEffect(()=>{const f=localStorage?.getItem(r);f&&s(f)},[r]),x.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark","coconut"),l==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(d);return}f.classList.add(l)},[l]);const c={theme:l,setTheme:f=>{localStorage?.setItem(r,f),s(f)}};return g.jsx(mw.Provider,{...i,value:c,children:e})}const FU=()=>{const e=x.useContext(mw);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Et="",qU="https://app.coconut.dev";async function Xi(e,n={}){const r=`${Et}${e}`,i={headers:{"Content-Type":"application/json",...n.headers},...n},l=await fetch(r,i);if(!l.ok)throw new Error(`API request failed: ${l.status} ${l.statusText}`);return l.json()}const VU=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`,gw=x.createContext(void 0);function FN({children:e}){const[n,r]=x.useState({user:null,isAuthenticated:!1,isLoading:!0,authEnabled:!1}),i=x.useCallback(async()=>{try{const d=await Xi("/api/v1/auth/status");if(!d.success){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}if(!(d.data?.enabled||!1)){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}try{const m=await Xi("/api/v1/auth/me");m.success&&m.data?.user?r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0}):r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}catch{r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}}catch(d){console.error("Failed to check auth status:",d),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1})}},[]);x.useEffect(()=>{i()},[i]);const l=x.useCallback(async(d,h)=>{const m=await Xi("/api/v1/auth/login",{method:"POST",body:JSON.stringify({email:d,password:h})});if(!m.success)throw new Error(m.error||"Login failed");r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),s=x.useCallback(async(d,h,m)=>{const y=await Xi("/api/v1/auth/register",{method:"POST",body:JSON.stringify({email:d,password:h,name:m})});if(!y.success)throw new Error(y.error||"Registration failed");r({user:y.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),c=x.useCallback(async()=>{await Xi("/api/v1/auth/logout",{method:"POST"}),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})},[]),f=x.useCallback(async()=>{try{const d=await Xi("/api/v1/auth/me");d.success&&d.data?.user&&r(h=>({...h,user:d.data.user,isAuthenticated:!0}))}catch(d){console.error("Failed to refresh user:",d)}},[]);return g.jsx(gw.Provider,{value:{...n,login:l,register:s,logout:c,refreshUser:f,checkAuthStatus:i},children:e})}function yw(){const e=x.useContext(gw);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const vw=x.createContext(null);function qN(){const e=x.useContext(vw);if(!e)throw new Error("useSidebarBadges must be used within SidebarBadgeProvider");return e}function VN({children:e,pollInterval:n=1e4}){const[r,i]=x.useState({codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0}),[l,s]=x.useState(!0),c=x.useCallback(async()=>{try{const[d,h,m]=await Promise.allSettled([fetch(`${Et}/api/v1/terminal/sessions`).then(b=>b.json()),fetch(`${Et}/api/v1/git/status`).then(b=>b.json()),fetch(`${Et}/api/v1/jobs`).then(b=>b.json())]),y={codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0};if(d.status==="fulfilled"&&d.value?.sessions){const b=d.value.sessions;y.codeSessions=b.filter(w=>w.proposalId?.startsWith("cp-")||w.proposalId?.startsWith("ag-")).length,y.terminalSessions=b.filter(w=>!w.proposalId?.startsWith("cp-")&&!w.proposalId?.startsWith("ag-")).length}if(h.status==="fulfilled"&&h.value?.success&&h.value?.data?.changes&&(y.gitChanges=h.value.data.changes.length),m.status==="fulfilled"&&m.value?.success&&m.value?.data){const b=Array.isArray(m.value.data)?m.value.data:[],w=b.filter(E=>{if(!E.runs||!Array.isArray(E.runs)||E.runs.length===0)return!1;const S=E.runs[0],A=S&&S.status==="running";return A&&console.log("[SidebarBadge] Running job detected:",{name:E.name,status:S.status,startedAt:S.startedAt,finishedAt:S.finishedAt}),A});y.runningScheduledJobs=w.length,(w.length>0||b.length>0)&&console.log("[SidebarBadge] Jobs summary:",{total:b.length,running:w.length,runningJobNames:w.map(E=>E.name)})}i(y)}catch(d){console.error("Failed to fetch sidebar badges:",d)}finally{s(!1)}},[]);x.useEffect(()=>{c()},[c]),x.useEffect(()=>{const d=setInterval(c,n);return()=>clearInterval(d)},[c,n]),x.useEffect(()=>{const d=()=>{console.log("[SidebarBadge] Tab focused, refreshing badges..."),c()};return window.addEventListener("focus",d),()=>window.removeEventListener("focus",d)},[c]);const f={badges:r,loading:l,refresh:c};return g.jsx(vw.Provider,{value:f,children:e})}function $N({children:e}){const[n]=x.useState(()=>new zN({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return g.jsx(BN,{client:n,children:g.jsx(HN,{defaultTheme:"system",storageKey:"coconut-ui-theme",children:g.jsx(FN,{children:g.jsx(VN,{children:e})})})})}const GN=1,YN=1e6;let wh=0;function KN(){return wh=(wh+1)%Number.MAX_SAFE_INTEGER,wh.toString()}const Sh=new Map,fb=e=>{if(Sh.has(e))return;const n=setTimeout(()=>{Sh.delete(e),Ll({type:"REMOVE_TOAST",toastId:e})},YN);Sh.set(e,n)},XN=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,GN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?fb(r):e.toasts.forEach(i=>{fb(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},Gu=[];let Yu={toasts:[]};function Ll(e){Yu=XN(Yu,e),Gu.forEach(n=>{n(Yu)})}function op({...e}){const n=KN(),r=l=>Ll({type:"UPDATE_TOAST",toast:{...l,id:n}}),i=()=>Ll({type:"DISMISS_TOAST",toastId:n});return Ll({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:l=>{l||i()}}}),{id:n,dismiss:i,update:r}}function QN(){const[e,n]=x.useState(Yu);return x.useEffect(()=>(Gu.push(n),()=>{const r=Gu.indexOf(n);r>-1&&Gu.splice(r,1)}),[e]),{...e,toast:op,dismiss:r=>Ll({type:"DISMISS_TOAST",toastId:r})}}function pe(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return n?.(l)}}function db(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Ac(...e){return n=>{let r=!1;const i=e.map(l=>{const s=db(l,n);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let l=0;l<i.length;l++){const s=i[l];typeof s=="function"?s():db(e[l],null)}}}}function Ie(...e){return x.useCallback(Ac(...e),e)}function ZN(e,n){const r=x.createContext(n),i=s=>{const{children:c,...f}=s,d=x.useMemo(()=>f,Object.values(f));return g.jsx(r.Provider,{value:d,children:c})};i.displayName=e+"Provider";function l(s){const c=x.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,l]}function Yn(e,n=[]){let r=[];function i(s,c){const f=x.createContext(c),d=r.length;r=[...r,c];const h=y=>{const{scope:b,children:w,...E}=y,S=b?.[e]?.[d]||f,A=x.useMemo(()=>E,Object.values(E));return g.jsx(S.Provider,{value:A,children:w})};h.displayName=s+"Provider";function m(y,b){const w=b?.[e]?.[d]||f,E=x.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return[h,m]}const l=()=>{const s=r.map(c=>x.createContext(c));return function(f){const d=f?.[e]||s;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[i,WN(l,...n)]}function WN(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const c=i.reduce((f,{useScope:d,scopeName:h})=>{const y=d(s)[`__scope${h}`];return{...f,...y}},{});return x.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function ri(e){const n=JN(e),r=x.forwardRef((i,l)=>{const{children:s,...c}=i,f=x.Children.toArray(s),d=f.find(e_);if(d){const h=d.props.children,m=f.map(y=>y===d?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:y);return g.jsx(n,{...c,ref:l,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(n,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}var bo=ri("Slot");function JN(e){const n=x.forwardRef((r,i)=>{const{children:l,...s}=r;if(x.isValidElement(l)){const c=n_(l),f=t_(s,l.props);return l.type!==x.Fragment&&(f.ref=i?Ac(i,c):c),x.cloneElement(l,f)}return x.Children.count(l)>1?x.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var xw=Symbol("radix.slottable");function bw(e){const n=({children:r})=>g.jsx(g.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=xw,n}function e_(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xw}function t_(e,n){const r={...n};for(const i in n){const l=e[i],s=n[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function n_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Tc(e){const n=e+"CollectionProvider",[r,i]=Yn(n),[l,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:A,children:T}=S,N=Sa.useRef(null),R=Sa.useRef(new Map).current;return g.jsx(l,{scope:A,itemMap:R,collectionRef:N,children:T})};c.displayName=n;const f=e+"CollectionSlot",d=ri(f),h=Sa.forwardRef((S,A)=>{const{scope:T,children:N}=S,R=s(f,T),D=Ie(A,R.collectionRef);return g.jsx(d,{ref:D,children:N})});h.displayName=f;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=ri(m),w=Sa.forwardRef((S,A)=>{const{scope:T,children:N,...R}=S,D=Sa.useRef(null),P=Ie(A,D),j=s(m,T);return Sa.useEffect(()=>(j.itemMap.set(D,{ref:D,...R}),()=>void j.itemMap.delete(D))),g.jsx(b,{[y]:"",ref:P,children:N})});w.displayName=m;function E(S){const A=s(e+"CollectionConsumer",S);return Sa.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const R=Array.from(N.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((j,B)=>R.indexOf(j.ref.current)-R.indexOf(B.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:c,Slot:h,ItemSlot:w},E,i]}var r_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_e=r_.reduce((e,n)=>{const r=ri(`Primitive.${n}`),i=x.forwardRef((l,s)=>{const{asChild:c,...f}=l,d=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...f,ref:s})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function nm(e,n){e&&xo.flushSync(()=>e.dispatchEvent(n))}function Mt(e){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useMemo(()=>(...r)=>n.current?.(...r),[])}function a_(e,n=globalThis?.document){const r=Mt(e);x.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var i_="DismissableLayer",lp="dismissableLayer.update",o_="dismissableLayer.pointerDownOutside",l_="dismissableLayer.focusOutside",hb,ww=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wo=x.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,h=x.useContext(ww),[m,y]=x.useState(null),b=m?.ownerDocument??globalThis?.document,[,w]=x.useState({}),E=Ie(n,B=>y(B)),S=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(A),N=m?S.indexOf(m):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,D=N>=T,P=u_(B=>{const U=B.target,Y=[...h.branches].some(L=>L.contains(U));!D||Y||(l?.(B),c?.(B),B.defaultPrevented||f?.())},b),j=c_(B=>{const U=B.target;[...h.branches].some(L=>L.contains(U))||(s?.(B),c?.(B),B.defaultPrevented||f?.())},b);return a_(B=>{N===h.layers.size-1&&(i?.(B),!B.defaultPrevented&&f&&(B.preventDefault(),f()))},b),x.useEffect(()=>{if(m)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(hb=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),pb(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=hb)}},[m,b,r,h]),x.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),pb())},[m,h]),x.useEffect(()=>{const B=()=>w({});return document.addEventListener(lp,B),()=>document.removeEventListener(lp,B)},[]),g.jsx(_e.div,{...d,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,j.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,P.onPointerDownCapture)})});wo.displayName=i_;var s_="DismissableLayerBranch",Sw=x.forwardRef((e,n)=>{const r=x.useContext(ww),i=x.useRef(null),l=Ie(n,i);return x.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),g.jsx(_e.div,{...e,ref:l})});Sw.displayName=s_;function u_(e,n=globalThis?.document){const r=Mt(e),i=x.useRef(!1),l=x.useRef(()=>{});return x.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let d=function(){Ew(o_,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=d,n.addEventListener("click",l.current,{once:!0})):d()}else n.removeEventListener("click",l.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function c_(e,n=globalThis?.document){const r=Mt(e),i=x.useRef(!1);return x.useEffect(()=>{const l=s=>{s.target&&!i.current&&Ew(l_,r,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function pb(){const e=new CustomEvent(lp);document.dispatchEvent(e)}function Ew(e,n,r,{discrete:i}){const l=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?nm(l,s):l.dispatchEvent(s)}var f_=wo,d_=Sw,$t=globalThis?.document?x.useLayoutEffect:()=>{},h_="Portal",ts=x.forwardRef((e,n)=>{const{container:r,...i}=e,[l,s]=x.useState(!1);$t(()=>s(!0),[]);const c=r||l&&globalThis?.document?.body;return c?pN.createPortal(g.jsx(_e.div,{...i,ref:n}),c):null});ts.displayName=h_;function p_(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var un=e=>{const{present:n,children:r}=e,i=m_(n),l=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),s=Ie(i.ref,g_(l));return typeof r=="function"||i.isPresent?x.cloneElement(l,{ref:s}):null};un.displayName="Presence";function m_(e){const[n,r]=x.useState(),i=x.useRef(null),l=x.useRef(e),s=x.useRef("none"),c=e?"mounted":"unmounted",[f,d]=p_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Mu(i.current);s.current=f==="mounted"?h:"none"},[f]),$t(()=>{const h=i.current,m=l.current;if(m!==e){const b=s.current,w=Mu(h);e?d("MOUNT"):w==="none"||h?.display==="none"?d("UNMOUNT"):d(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),$t(()=>{if(n){let h;const m=n.ownerDocument.defaultView??window,y=w=>{const S=Mu(i.current).includes(CSS.escape(w.animationName));if(w.target===n&&S&&(d("ANIMATION_END"),!l.current)){const A=n.style.animationFillMode;n.style.animationFillMode="forwards",h=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=A)})}},b=w=>{w.target===n&&(s.current=Mu(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(h),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Mu(e){return e?.animationName||"none"}function g_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var y_=$0[" useInsertionEffect ".trim().toString()]||$t;function Aa({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[l,s,c]=v_({defaultProp:n,onChange:r}),f=e!==void 0,d=f?e:l;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const y=m.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,i])}const h=x.useCallback(m=>{if(f){const y=x_(m)?m(e):m;y!==e&&c.current?.(y)}else s(m)},[f,e,s,c]);return[d,h]}function v_({defaultProp:e,onChange:n}){const[r,i]=x.useState(e),l=x.useRef(r),s=x.useRef(n);return y_(()=>{s.current=n},[n]),x.useEffect(()=>{l.current!==r&&(s.current?.(r),l.current=r)},[r,l]),[r,i,s]}function x_(e){return typeof e=="function"}var Cw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),b_="VisuallyHidden",Rc=x.forwardRef((e,n)=>g.jsx(_e.span,{...e,ref:n,style:{...Cw,...e.style}}));Rc.displayName=b_;var w_=Rc,rm="ToastProvider",[am,S_,E_]=Tc("Toast"),[kw,$U]=Yn("Toast",[E_]),[C_,Nc]=kw(rm),Aw=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:l="right",swipeThreshold:s=50,children:c}=e,[f,d]=x.useState(null),[h,m]=x.useState(0),y=x.useRef(!1),b=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${rm}\`. Expected non-empty \`string\`.`),g.jsx(am.Provider,{scope:n,children:g.jsx(C_,{scope:n,label:r,duration:i,swipeDirection:l,swipeThreshold:s,toastCount:h,viewport:f,onViewportChange:d,onToastAdd:x.useCallback(()=>m(w=>w+1),[]),onToastRemove:x.useCallback(()=>m(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};Aw.displayName=rm;var Tw="ToastViewport",k_=["F8"],sp="toast.viewportPause",up="toast.viewportResume",Rw=x.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=k_,label:l="Notifications ({hotkey})",...s}=e,c=Nc(Tw,r),f=S_(r),d=x.useRef(null),h=x.useRef(null),m=x.useRef(null),y=x.useRef(null),b=Ie(n,y,c.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=c.toastCount>0;x.useEffect(()=>{const A=T=>{i.length!==0&&i.every(R=>T[R]||T.code===R)&&y.current?.focus()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[i]),x.useEffect(()=>{const A=d.current,T=y.current;if(E&&A&&T){const N=()=>{if(!c.isClosePausedRef.current){const j=new CustomEvent(sp);T.dispatchEvent(j),c.isClosePausedRef.current=!0}},R=()=>{if(c.isClosePausedRef.current){const j=new CustomEvent(up);T.dispatchEvent(j),c.isClosePausedRef.current=!1}},D=j=>{!A.contains(j.relatedTarget)&&R()},P=()=>{A.contains(document.activeElement)||R()};return A.addEventListener("focusin",N),A.addEventListener("focusout",D),A.addEventListener("pointermove",N),A.addEventListener("pointerleave",P),window.addEventListener("blur",N),window.addEventListener("focus",R),()=>{A.removeEventListener("focusin",N),A.removeEventListener("focusout",D),A.removeEventListener("pointermove",N),A.removeEventListener("pointerleave",P),window.removeEventListener("blur",N),window.removeEventListener("focus",R)}}},[E,c.isClosePausedRef]);const S=x.useCallback(({tabbingDirection:A})=>{const N=f().map(R=>{const D=R.ref.current,P=[D,...I_(D)];return A==="forwards"?P:P.reverse()});return(A==="forwards"?N.reverse():N).flat()},[f]);return x.useEffect(()=>{const A=y.current;if(A){const T=N=>{const R=N.altKey||N.ctrlKey||N.metaKey;if(N.key==="Tab"&&!R){const P=document.activeElement,j=N.shiftKey;if(N.target===A&&j){h.current?.focus();return}const Y=S({tabbingDirection:j?"backwards":"forwards"}),L=Y.findIndex(J=>J===P);Eh(Y.slice(L+1))?N.preventDefault():j?h.current?.focus():m.current?.focus()}};return A.addEventListener("keydown",T),()=>A.removeEventListener("keydown",T)}},[f,S]),g.jsxs(d_,{ref:d,role:"region","aria-label":l.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&g.jsx(cp,{ref:h,onFocusFromOutsideViewport:()=>{const A=S({tabbingDirection:"forwards"});Eh(A)}}),g.jsx(am.Slot,{scope:r,children:g.jsx(_e.ol,{tabIndex:-1,...s,ref:b})}),E&&g.jsx(cp,{ref:m,onFocusFromOutsideViewport:()=>{const A=S({tabbingDirection:"backwards"});Eh(A)}})]})});Rw.displayName=Tw;var Nw="ToastFocusProxy",cp=x.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...l}=e,s=Nc(Nw,r);return g.jsx(Rc,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!s.viewport?.contains(f)&&i()}})});cp.displayName=Nw;var ns="Toast",A_="toast.swipeStart",T_="toast.swipeMove",R_="toast.swipeCancel",N_="toast.swipeEnd",_w=x.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:l,onOpenChange:s,...c}=e,[f,d]=Aa({prop:i,defaultProp:l??!0,onChange:s,caller:ns});return g.jsx(un,{present:r||f,children:g.jsx(j_,{open:f,...c,ref:n,onClose:()=>d(!1),onPause:Mt(e.onPause),onResume:Mt(e.onResume),onSwipeStart:pe(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:pe(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),d(!1)})})})});_w.displayName=ns;var[__,M_]=kw(ns,{onClose(){}}),j_=x.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:l,open:s,onClose:c,onEscapeKeyDown:f,onPause:d,onResume:h,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...E}=e,S=Nc(ns,r),[A,T]=x.useState(null),N=Ie(n,G=>T(G)),R=x.useRef(null),D=x.useRef(null),P=l||S.duration,j=x.useRef(0),B=x.useRef(P),U=x.useRef(0),{onToastAdd:Y,onToastRemove:L}=S,J=Mt(()=>{A?.contains(document.activeElement)&&S.viewport?.focus(),c()}),W=x.useCallback(G=>{!G||G===1/0||(window.clearTimeout(U.current),j.current=new Date().getTime(),U.current=window.setTimeout(J,G))},[J]);x.useEffect(()=>{const G=S.viewport;if(G){const ne=()=>{W(B.current),h?.()},z=()=>{const Q=new Date().getTime()-j.current;B.current=B.current-Q,window.clearTimeout(U.current),d?.()};return G.addEventListener(sp,z),G.addEventListener(up,ne),()=>{G.removeEventListener(sp,z),G.removeEventListener(up,ne)}}},[S.viewport,P,d,h,W]),x.useEffect(()=>{s&&!S.isClosePausedRef.current&&W(P)},[s,P,S.isClosePausedRef,W]),x.useEffect(()=>(Y(),()=>L()),[Y,L]);const ie=x.useMemo(()=>A?zw(A):null,[A]);return S.viewport?g.jsxs(g.Fragment,{children:[ie&&g.jsx(D_,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:ie}),g.jsx(__,{scope:r,onClose:J,children:xo.createPortal(g.jsx(am.ItemSlot,{scope:r,children:g.jsx(f_,{asChild:!0,onEscapeKeyDown:pe(f,()=>{S.isFocusedToastEscapeKeyDownRef.current||J(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(_e.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":S.swipeDirection,...E,ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,G=>{G.key==="Escape"&&(f?.(G.nativeEvent),G.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:pe(e.onPointerDown,G=>{G.button===0&&(R.current={x:G.clientX,y:G.clientY})}),onPointerMove:pe(e.onPointerMove,G=>{if(!R.current)return;const ne=G.clientX-R.current.x,z=G.clientY-R.current.y,Q=!!D.current,F=["left","right"].includes(S.swipeDirection),re=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,k=F?re(0,ne):0,Z=F?0:re(0,z),ce=G.pointerType==="touch"?10:2,M={x:k,y:Z},se={originalEvent:G,delta:M};Q?(D.current=M,ju(T_,y,se,{discrete:!1})):mb(M,S.swipeDirection,ce)?(D.current=M,ju(A_,m,se,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(ne)>ce||Math.abs(z)>ce)&&(R.current=null)}),onPointerUp:pe(e.onPointerUp,G=>{const ne=D.current,z=G.target;if(z.hasPointerCapture(G.pointerId)&&z.releasePointerCapture(G.pointerId),D.current=null,R.current=null,ne){const Q=G.currentTarget,F={originalEvent:G,delta:ne};mb(ne,S.swipeDirection,S.swipeThreshold)?ju(N_,w,F,{discrete:!0}):ju(R_,b,F,{discrete:!0}),Q.addEventListener("click",re=>re.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),D_=e=>{const{__scopeToast:n,children:r,...i}=e,l=Nc(ns,n),[s,c]=x.useState(!1),[f,d]=x.useState(!1);return L_(()=>c(!0)),x.useEffect(()=>{const h=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(h)},[]),f?null:g.jsx(ts,{asChild:!0,children:g.jsx(Rc,{...i,children:s&&g.jsxs(g.Fragment,{children:[l.label," ",r]})})})},O_="ToastTitle",Mw=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(_e.div,{...i,ref:n})});Mw.displayName=O_;var P_="ToastDescription",jw=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(_e.div,{...i,ref:n})});jw.displayName=P_;var Dw="ToastAction",Ow=x.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?g.jsx(Lw,{altText:r,asChild:!0,children:g.jsx(im,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${Dw}\`. Expected non-empty \`string\`.`),null)});Ow.displayName=Dw;var Pw="ToastClose",im=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,l=M_(Pw,r);return g.jsx(Lw,{asChild:!0,children:g.jsx(_e.button,{type:"button",...i,ref:n,onClick:pe(e.onClick,l.onClose)})})});im.displayName=Pw;var Lw=x.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...l}=e;return g.jsx(_e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...l,ref:n})});function zw(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),z_(i)){const l=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!l)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...zw(i))}}),n}function ju(e,n,r,{discrete:i}){const l=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?nm(l,s):l.dispatchEvent(s)}var mb=(e,n,r=0)=>{const i=Math.abs(e.x),l=Math.abs(e.y),s=i>l;return n==="left"||n==="right"?s&&i>r:!s&&l>r};function L_(e=()=>{}){const n=Mt(e);$t(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function z_(e){return e.nodeType===e.ELEMENT_NODE}function I_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Eh(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var B_=Aw,Iw=Rw,Bw=_w,Uw=Mw,Hw=jw,Fw=Ow,qw=im;function Vw(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Vw(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function $w(){for(var e,n,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Vw(e))&&(i&&(i+=" "),i+=n);return i}const gb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yb=$w,_c=(e,n)=>r=>{var i;if(n?.variants==null)return yb(e,r?.class,r?.className);const{variants:l,defaultVariants:s}=n,c=Object.keys(l).map(h=>{const m=r?.[h],y=s?.[h];if(m===null)return null;const b=gb(m)||gb(y);return l[h][b]}),f=r&&Object.entries(r).reduce((h,m)=>{let[y,b]=m;return b===void 0||(h[y]=b),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:y,className:b,...w}=m;return Object.entries(w).every(E=>{let[S,A]=E;return Array.isArray(A)?A.includes({...s,...f}[S]):{...s,...f}[S]===A})?[...h,y,b]:h},[]);return yb(e,c,d,r?.class,r?.className)};/**
|
|
62
|
+
* @license lucide-react v0.542.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const U_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),vb=e=>{const n=H_(e);return n.charAt(0).toUpperCase()+n.slice(1)},Gw=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),F_=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
67
|
+
* @license lucide-react v0.542.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var q_={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"};/**
|
|
72
|
+
* @license lucide-react v0.542.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const V_=x.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:c,...f},d)=>x.createElement("svg",{ref:d,...q_,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:Gw("lucide",l),...!s&&!F_(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,m])=>x.createElement(h,m)),...Array.isArray(s)?s:[s]]));/**
|
|
77
|
+
* @license lucide-react v0.542.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const De=(e,n)=>{const r=x.forwardRef(({className:i,...l},s)=>x.createElement(V_,{ref:s,iconNode:n,className:Gw(`lucide-${U_(vb(e))}`,`lucide-${e}`,i),...l}));return r.displayName=vb(e),r};/**
|
|
82
|
+
* @license lucide-react v0.542.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const $_=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],zl=De("bot",$_);/**
|
|
87
|
+
* @license lucide-react v0.542.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const G_=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Y_=De("brain",G_);/**
|
|
92
|
+
* @license lucide-react v0.542.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const K_=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],X_=De("calendar-clock",K_);/**
|
|
97
|
+
* @license lucide-react v0.542.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Q_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mc=De("check",Q_);/**
|
|
102
|
+
* @license lucide-react v0.542.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Z_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yw=De("chevron-down",Z_);/**
|
|
107
|
+
* @license lucide-react v0.542.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const W_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],J_=De("chevron-right",W_);/**
|
|
112
|
+
* @license lucide-react v0.542.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const eM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],tM=De("chevron-up",eM);/**
|
|
117
|
+
* @license lucide-react v0.542.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const nM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rM=De("circle",nM);/**
|
|
122
|
+
* @license lucide-react v0.542.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const aM=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],iM=De("code",aM);/**
|
|
127
|
+
* @license lucide-react v0.542.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const oM=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lM=De("copy",oM);/**
|
|
132
|
+
* @license lucide-react v0.542.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const sM=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],uM=De("expand",sM);/**
|
|
137
|
+
* @license lucide-react v0.542.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const cM=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fM=De("external-link",cM);/**
|
|
142
|
+
* @license lucide-react v0.542.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const dM=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]],hM=De("file-plus-2",dM);/**
|
|
147
|
+
* @license lucide-react v0.542.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const pM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ic=De("file-text",pM);/**
|
|
152
|
+
* @license lucide-react v0.542.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const mM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],xb=De("file",mM);/**
|
|
157
|
+
* @license lucide-react v0.542.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const gM=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],yM=De("files",gM);/**
|
|
162
|
+
* @license lucide-react v0.542.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const vM=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],xM=De("folder-open",vM);/**
|
|
167
|
+
* @license lucide-react v0.542.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const bM=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Ku=De("folder",bM);/**
|
|
172
|
+
* @license lucide-react v0.542.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const wM=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Kw=De("git-branch",wM);/**
|
|
177
|
+
* @license lucide-react v0.542.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const SM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],EM=De("history",SM);/**
|
|
182
|
+
* @license lucide-react v0.542.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const CM=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],kM=De("house",CM);/**
|
|
187
|
+
* @license lucide-react v0.542.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const AM=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],TM=De("id-card",AM);/**
|
|
192
|
+
* @license lucide-react v0.542.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const RM=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],NM=De("key",RM);/**
|
|
197
|
+
* @license lucide-react v0.542.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const _M=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],oc=De("loader-circle",_M);/**
|
|
202
|
+
* @license lucide-react v0.542.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const MM=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],jM=De("log-out",MM);/**
|
|
207
|
+
* @license lucide-react v0.542.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const DM=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],OM=De("menu",DM);/**
|
|
212
|
+
* @license lucide-react v0.542.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const PM=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],LM=De("message-circle",PM);/**
|
|
217
|
+
* @license lucide-react v0.542.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const zM=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],IM=De("network",zM);/**
|
|
222
|
+
* @license lucide-react v0.542.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const BM=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]],UM=De("notebook",BM);/**
|
|
227
|
+
* @license lucide-react v0.542.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const HM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],FM=De("panel-left",HM);/**
|
|
232
|
+
* @license lucide-react v0.542.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const qM=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],VM=De("plug",qM);/**
|
|
237
|
+
* @license lucide-react v0.542.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const $M=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],GM=De("save",$M);/**
|
|
242
|
+
* @license lucide-react v0.542.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const YM=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],KM=De("send",YM);/**
|
|
247
|
+
* @license lucide-react v0.542.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const XM=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],QM=De("server",XM);/**
|
|
252
|
+
* @license lucide-react v0.542.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const ZM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],WM=De("settings",ZM);/**
|
|
257
|
+
* @license lucide-react v0.542.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const JM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ej=De("shield",JM);/**
|
|
262
|
+
* @license lucide-react v0.542.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const tj=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],nj=De("sliders-horizontal",tj);/**
|
|
267
|
+
* @license lucide-react v0.542.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const rj=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],fp=De("sparkles",rj);/**
|
|
272
|
+
* @license lucide-react v0.542.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const aj=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],ij=De("square-pen",aj);/**
|
|
277
|
+
* @license lucide-react v0.542.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const oj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],lj=De("square",oj);/**
|
|
282
|
+
* @license lucide-react v0.542.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const sj=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],uj=De("terminal",sj);/**
|
|
287
|
+
* @license lucide-react v0.542.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const cj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],fj=De("trash-2",cj);/**
|
|
292
|
+
* @license lucide-react v0.542.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const dj=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],hj=De("tree-palm",dj);/**
|
|
297
|
+
* @license lucide-react v0.542.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const pj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],mj=De("user",pj);/**
|
|
302
|
+
* @license lucide-react v0.542.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const gj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],yj=De("wrench",gj);/**
|
|
307
|
+
* @license lucide-react v0.542.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const vj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oo=De("x",vj),om="-",xj=e=>{const n=wj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const f=c.split(om);return f[0]===""&&f.length!==1&&f.shift(),Xw(f,n)||bj(c)},getConflictingClassGroupIds:(c,f)=>{const d=r[c]||[];return f&&i[c]?[...d,...i[c]]:d}}},Xw=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),l=i?Xw(e.slice(1),i):void 0;if(l)return l;if(n.validators.length===0)return;const s=e.join(om);return n.validators.find(({validator:c})=>c(s))?.classGroupId},bb=/^\[(.+)\]$/,bj=e=>{if(bb.test(e)){const n=bb.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},wj=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const l in r)dp(r[l],i,l,n);return i},dp=(e,n,r,i)=>{e.forEach(l=>{if(typeof l=="string"){const s=l===""?n:wb(n,l);s.classGroupId=r;return}if(typeof l=="function"){if(Sj(l)){dp(l(i),n,r,i);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{dp(c,wb(n,s),r,i)})})},wb=(e,n)=>{let r=e;return n.split(om).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},Sj=e=>e.isThemeGetter,Ej=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const l=(s,c)=>{r.set(s,c),n++,n>e&&(n=0,i=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},hp="!",pp=":",Cj=pp.length,kj=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=l=>{const s=[];let c=0,f=0,d=0,h;for(let E=0;E<l.length;E++){let S=l[E];if(c===0&&f===0){if(S===pp){s.push(l.slice(d,E)),d=E+Cj;continue}if(S==="/"){h=E;continue}}S==="["?c++:S==="]"?c--:S==="("?f++:S===")"&&f--}const m=s.length===0?l:l.substring(d),y=Aj(m),b=y!==m,w=h&&h>d?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(n){const l=n+pp,s=i;i=c=>c.startsWith(l)?s(c.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=s=>r({className:s,parseClassName:l})}return i},Aj=e=>e.endsWith(hp)?e.substring(0,e.length-1):e.startsWith(hp)?e.substring(1):e,Tj=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let s=[];return i.forEach(c=>{c[0]==="["||n[c]?(l.push(...s.sort(),c),s=[]):s.push(c)}),l.push(...s.sort()),l}},Rj=e=>({cache:Ej(e.cacheSize),parseClassName:kj(e),sortModifiers:Tj(e),...xj(e)}),Nj=/\s+/,_j=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:s}=n,c=[],f=e.trim().split(Nj);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:S}=r(m);if(y){d=m+(d.length>0?" "+d:d);continue}let A=!!S,T=i(A?E.substring(0,S):E);if(!T){if(!A){d=m+(d.length>0?" "+d:d);continue}if(T=i(E),!T){d=m+(d.length>0?" "+d:d);continue}A=!1}const N=s(b).join(":"),R=w?N+hp:N,D=R+T;if(c.includes(D))continue;c.push(D);const P=l(T,A);for(let j=0;j<P.length;++j){const B=P[j];c.push(R+B)}d=m+(d.length>0?" "+d:d)}return d};function Mj(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=Qw(n))&&(i&&(i+=" "),i+=r);return i}const Qw=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=Qw(e[i]))&&(r&&(r+=" "),r+=n);return r};function jj(e,...n){let r,i,l,s=c;function c(d){const h=n.reduce((m,y)=>y(m),e());return r=Rj(h),i=r.cache.get,l=r.cache.set,s=f,f(d)}function f(d){const h=i(d);if(h)return h;const m=_j(d,r);return l(d,m),m}return function(){return s(Mj.apply(null,arguments))}}const It=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Zw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ww=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dj=/^\d+\/\d+$/,Oj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ij=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qi=e=>Dj.test(e),Ue=e=>!!e&&!Number.isNaN(Number(e)),ba=e=>!!e&&Number.isInteger(Number(e)),Ch=e=>e.endsWith("%")&&Ue(e.slice(0,-1)),Fr=e=>Oj.test(e),Bj=()=>!0,Uj=e=>Pj.test(e)&&!Lj.test(e),Jw=()=>!1,Hj=e=>zj.test(e),Fj=e=>Ij.test(e),qj=e=>!be(e)&&!we(e),Vj=e=>So(e,n1,Jw),be=e=>Zw.test(e),Ja=e=>So(e,r1,Uj),kh=e=>So(e,Xj,Ue),Sb=e=>So(e,e1,Jw),$j=e=>So(e,t1,Fj),Du=e=>So(e,a1,Hj),we=e=>Ww.test(e),Rl=e=>Eo(e,r1),Gj=e=>Eo(e,Qj),Eb=e=>Eo(e,e1),Yj=e=>Eo(e,n1),Kj=e=>Eo(e,t1),Ou=e=>Eo(e,a1,!0),So=(e,n,r)=>{const i=Zw.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},Eo=(e,n,r=!1)=>{const i=Ww.exec(e);return i?i[1]?n(i[1]):r:!1},e1=e=>e==="position"||e==="percentage",t1=e=>e==="image"||e==="url",n1=e=>e==="length"||e==="size"||e==="bg-size",r1=e=>e==="length",Xj=e=>e==="number",Qj=e=>e==="family-name",a1=e=>e==="shadow",Zj=()=>{const e=It("color"),n=It("font"),r=It("text"),i=It("font-weight"),l=It("tracking"),s=It("leading"),c=It("breakpoint"),f=It("container"),d=It("spacing"),h=It("radius"),m=It("shadow"),y=It("inset-shadow"),b=It("text-shadow"),w=It("drop-shadow"),E=It("blur"),S=It("perspective"),A=It("aspect"),T=It("ease"),N=It("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...D(),we,be],j=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],U=()=>[we,be,d],Y=()=>[Qi,"full","auto",...U()],L=()=>[ba,"none","subgrid",we,be],J=()=>["auto",{span:["full",ba,we,be]},ba,we,be],W=()=>[ba,"auto",we,be],ie=()=>["auto","min","max","fr",we,be],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...U()],Q=()=>[Qi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],F=()=>[e,we,be],re=()=>[...D(),Eb,Sb,{position:[we,be]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",Yj,Vj,{size:[we,be]}],ce=()=>[Ch,Rl,Ja],M=()=>["","none","full",h,we,be],se=()=>["",Ue,Rl,Ja],Se=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Ue,Ch,Eb,Sb],ve=()=>["","none",E,we,be],He=()=>["none",Ue,we,be],Ce=()=>["none",Ue,we,be],Oe=()=>[Ue,we,be],Xe=()=>[Qi,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fr],breakpoint:[Fr],color:[Bj],container:[Fr],"drop-shadow":[Fr],ease:["in","out","in-out"],font:[qj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fr],shadow:[Fr],spacing:["px",Ue],text:[Fr],"text-shadow":[Fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qi,be,we,A]}],container:["container"],columns:[{columns:[Ue,be,we,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[ba,"auto",we,be]}],basis:[{basis:[Qi,"full","auto",f,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,Qi,"auto","initial","none",be]}],grow:[{grow:["",Ue,we,be]}],shrink:[{shrink:["",Ue,we,be]}],order:[{order:[ba,"first","last","none",we,be]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[f,"screen",...Q()]}],"min-w":[{"min-w":[f,"screen","none",...Q()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",r,Rl,Ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,we,kh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ch,be]}],"font-family":[{font:[Gj,be,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,we,be]}],"line-clamp":[{"line-clamp":[Ue,"none",we,kh]}],leading:[{leading:[s,...U()]}],"list-image":[{"list-image":["none",we,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",we,Ja]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ue,"auto",we,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ba,we,be],radial:["",we,be],conic:[ba,we,be]},Kj,$j]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,we,be]}],"outline-w":[{outline:["",Ue,Rl,Ja]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",m,Ou,Du]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",y,Ou,Du]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ue,Ja]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",b,Ou,Du]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ue,we,be]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[we,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,be]}],filter:[{filter:["","none",we,be]}],blur:[{blur:ve()}],brightness:[{brightness:[Ue,we,be]}],contrast:[{contrast:[Ue,we,be]}],"drop-shadow":[{"drop-shadow":["","none",w,Ou,Du]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ue,we,be]}],"hue-rotate":[{"hue-rotate":[Ue,we,be]}],invert:[{invert:["",Ue,we,be]}],saturate:[{saturate:[Ue,we,be]}],sepia:[{sepia:["",Ue,we,be]}],"backdrop-filter":[{"backdrop-filter":["","none",we,be]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,we,be]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,we,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,we,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,we,be]}],"backdrop-invert":[{"backdrop-invert":["",Ue,we,be]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,we,be]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,we,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,we,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",we,be]}],ease:[{ease:["linear","initial",T,we,be]}],delay:[{delay:[Ue,we,be]}],animate:[{animate:["none",N,we,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,we,be]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[we,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,be]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ue,Rl,Ja,kh]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wj=jj(Zj);function ue(...e){return Wj($w(e))}const Jj=B_,i1=x.forwardRef(({className:e,...n},r)=>g.jsx(Iw,{ref:r,className:ue("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...n}));i1.displayName=Iw.displayName;const eD=_c("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),o1=x.forwardRef(({className:e,variant:n,...r},i)=>g.jsx(Bw,{ref:i,className:ue(eD({variant:n}),e),...r}));o1.displayName=Bw.displayName;const tD=x.forwardRef(({className:e,...n},r)=>g.jsx(Fw,{ref:r,className:ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));tD.displayName=Fw.displayName;const l1=x.forwardRef(({className:e,...n},r)=>g.jsx(qw,{ref:r,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:g.jsx(oo,{className:"h-4 w-4"})}));l1.displayName=qw.displayName;const s1=x.forwardRef(({className:e,...n},r)=>g.jsx(Uw,{ref:r,className:ue("text-sm font-semibold",e),...n}));s1.displayName=Uw.displayName;const u1=x.forwardRef(({className:e,...n},r)=>g.jsx(Hw,{ref:r,className:ue("text-sm opacity-90",e),...n}));u1.displayName=Hw.displayName;function nD(){const{toasts:e}=QN();return g.jsxs(Jj,{children:[e.map(function({id:n,title:r,description:i,action:l,...s}){return g.jsxs(o1,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[r&&g.jsx(s1,{children:r}),i&&g.jsx(u1,{children:i})]}),l,g.jsx(l1,{})]},n)}),g.jsx(i1,{})]})}function rD({children:e}){const{isAuthenticated:n,authEnabled:r,isLoading:i}=yw(),l=Gn();return i?g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx(oc,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?n?g.jsx(g.Fragment,{children:e}):g.jsx(jR,{to:"/login",state:{from:l},replace:!0}):g.jsx(g.Fragment,{children:e})}function aD(){return g.jsx("div",{className:"flex items-center justify-center min-h-screen",children:g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[g.jsx(oc,{className:"h-8 w-8 animate-spin text-primary"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}const Ah=768;function c1(){const[e,n]=x.useState(void 0);return x.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Ah-1}px)`),i=()=>{n(window.innerWidth<Ah)};return r.addEventListener("change",i),n(window.innerWidth<Ah),()=>r.removeEventListener("change",i)},[]),!!e}const lm=_c("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),St=x.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...l},s)=>{const c=i?bo:"button";return g.jsx(c,{className:ue(lm({variant:n,size:r,className:e})),ref:s,...l})});St.displayName="Button";const f1=x.forwardRef(({className:e,type:n,...r},i)=>g.jsx("input",{type:n,className:ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));f1.displayName="Input";var iD="Separator",Cb="horizontal",oD=["horizontal","vertical"],d1=x.forwardRef((e,n)=>{const{decorative:r,orientation:i=Cb,...l}=e,s=lD(i)?i:Cb,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(_e.div,{"data-orientation":s,...f,...l,ref:n})});d1.displayName=iD;function lD(e){return oD.includes(e)}var h1=d1;const p1=x.forwardRef(({className:e,orientation:n="horizontal",decorative:r=!0,...i},l)=>g.jsx(h1,{ref:l,decorative:r,orientation:n,className:ue("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));p1.displayName=h1.displayName;var sD=$0[" useId ".trim().toString()]||(()=>{}),uD=0;function vr(e){const[n,r]=x.useState(sD());return $t(()=>{r(i=>i??String(uD++))},[e]),e||(n?`radix-${n}`:"")}var Th="focusScope.autoFocusOnMount",Rh="focusScope.autoFocusOnUnmount",kb={bubbles:!1,cancelable:!0},cD="FocusScope",jc=x.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...c}=e,[f,d]=x.useState(null),h=Mt(l),m=Mt(s),y=x.useRef(null),b=Ie(n,S=>d(S)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(i){let S=function(R){if(w.paused||!f)return;const D=R.target;f.contains(D)?y.current=D:Ea(y.current,{select:!0})},A=function(R){if(w.paused||!f)return;const D=R.relatedTarget;D!==null&&(f.contains(D)||Ea(y.current,{select:!0}))},T=function(R){if(document.activeElement===document.body)for(const P of R)P.removedNodes.length>0&&Ea(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",A);const N=new MutationObserver(T);return f&&N.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",A),N.disconnect()}}},[i,f,w.paused]),x.useEffect(()=>{if(f){Tb.add(w);const S=document.activeElement;if(!f.contains(S)){const T=new CustomEvent(Th,kb);f.addEventListener(Th,h),f.dispatchEvent(T),T.defaultPrevented||(fD(gD(m1(f)),{select:!0}),document.activeElement===S&&Ea(f))}return()=>{f.removeEventListener(Th,h),setTimeout(()=>{const T=new CustomEvent(Rh,kb);f.addEventListener(Rh,m),f.dispatchEvent(T),T.defaultPrevented||Ea(S??document.body,{select:!0}),f.removeEventListener(Rh,m),Tb.remove(w)},0)}}},[f,h,m,w]);const E=x.useCallback(S=>{if(!r&&!i||w.paused)return;const A=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(A&&T){const N=S.currentTarget,[R,D]=dD(N);R&&D?!S.shiftKey&&T===D?(S.preventDefault(),r&&Ea(R,{select:!0})):S.shiftKey&&T===R&&(S.preventDefault(),r&&Ea(D,{select:!0})):T===N&&S.preventDefault()}},[r,i,w.paused]);return g.jsx(_e.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});jc.displayName=cD;function fD(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(Ea(i,{select:n}),document.activeElement!==r)return}function dD(e){const n=m1(e),r=Ab(n,e),i=Ab(n.reverse(),e);return[r,i]}function m1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Ab(e,n){for(const r of e)if(!hD(r,{upTo:n}))return r}function hD(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pD(e){return e instanceof HTMLInputElement&&"select"in e}function Ea(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pD(e)&&n&&e.select()}}var Tb=mD();function mD(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Rb(e,n),e.unshift(n)},remove(n){e=Rb(e,n),e[0]?.resume()}}}function Rb(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function gD(e){return e.filter(n=>n.tagName!=="A")}var Nh=0;function sm(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nb()),document.body.insertAdjacentElement("beforeend",e[1]??Nb()),Nh++,()=>{Nh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Nh--}},[])}function Nb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gr=function(){return gr=Object.assign||function(n){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},gr.apply(this,arguments)};function g1(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function yD(e,n,r){if(r||arguments.length===2)for(var i=0,l=n.length,s;i<l;i++)(s||!(i in n))&&(s||(s=Array.prototype.slice.call(n,0,i)),s[i]=n[i]);return e.concat(s||Array.prototype.slice.call(n))}var Xu="right-scroll-bar-position",Qu="width-before-scroll-bar",vD="with-scroll-bars-hidden",xD="--removed-body-scroll-bar-size";function _h(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function bD(e,n){var r=x.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=n,r.facade}var wD=typeof window<"u"?x.useLayoutEffect:x.useEffect,_b=new WeakMap;function SD(e,n){var r=bD(null,function(i){return e.forEach(function(l){return _h(l,i)})});return wD(function(){var i=_b.get(r);if(i){var l=new Set(i),s=new Set(e),c=r.current;l.forEach(function(f){s.has(f)||_h(f,null)}),s.forEach(function(f){l.has(f)||_h(f,c)})}_b.set(r,e)},[e]),r}function ED(e){return e}function CD(e,n){n===void 0&&(n=ED);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=n(s,i);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(i=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var d=function(){var m=c;c=[],m.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),r}}}};return l}function kD(e){e===void 0&&(e={});var n=CD(null);return n.options=gr({async:!0,ssr:!1},e),n}var y1=function(e){var n=e.sideCar,r=g1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return x.createElement(i,gr({},r))};y1.isSideCarExport=!0;function AD(e,n){return e.useMedium(n),y1}var v1=kD(),Mh=function(){},Dc=x.forwardRef(function(e,n){var r=x.useRef(null),i=x.useState({onScrollCapture:Mh,onWheelCapture:Mh,onTouchMoveCapture:Mh}),l=i[0],s=i[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noRelative,E=e.noIsolation,S=e.inert,A=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,R=e.gapMode,D=g1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,j=SD([r,n]),B=gr(gr({},D),l);return x.createElement(x.Fragment,null,m&&x.createElement(P,{sideCar:v1,removeScrollBar:h,shards:y,noRelative:w,noIsolation:E,inert:S,setCallbacks:s,allowPinchZoom:!!A,lockRef:r,gapMode:R}),c?x.cloneElement(x.Children.only(f),gr(gr({},B),{ref:j})):x.createElement(N,gr({},B,{className:d,ref:j}),f))});Dc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Dc.classNames={fullWidth:Qu,zeroRight:Xu};var TD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=TD();return n&&e.setAttribute("nonce",n),e}function ND(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function _D(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var MD=function(){var e=0,n=null;return{add:function(r){e==0&&(n=RD())&&(ND(n,r),_D(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},jD=function(){var e=MD();return function(n,r){x.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},x1=function(){var e=jD(),n=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return n},DD={left:0,top:0,right:0,gap:0},jh=function(e){return parseInt(e||"",10)||0},OD=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],l=n[e==="padding"?"paddingRight":"marginRight"];return[jh(r),jh(i),jh(l)]},PD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DD;var n=OD(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},LD=x1(),lo="data-scroll-locked",zD=function(e,n,r,i){var l=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
312
|
+
.`.concat(vD,` {
|
|
313
|
+
overflow: hidden `).concat(i,`;
|
|
314
|
+
padding-right: `).concat(f,"px ").concat(i,`;
|
|
315
|
+
}
|
|
316
|
+
body[`).concat(lo,`] {
|
|
317
|
+
overflow: hidden `).concat(i,`;
|
|
318
|
+
overscroll-behavior: contain;
|
|
319
|
+
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
320
|
+
padding-left: `.concat(l,`px;
|
|
321
|
+
padding-top: `).concat(s,`px;
|
|
322
|
+
padding-right: `).concat(c,`px;
|
|
323
|
+
margin-left:0;
|
|
324
|
+
margin-top:0;
|
|
325
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
326
|
+
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.`).concat(Xu,` {
|
|
330
|
+
right: `).concat(f,"px ").concat(i,`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.`).concat(Qu,` {
|
|
334
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.`).concat(Xu," .").concat(Xu,` {
|
|
338
|
+
right: 0 `).concat(i,`;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.`).concat(Qu," .").concat(Qu,` {
|
|
342
|
+
margin-right: 0 `).concat(i,`;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
body[`).concat(lo,`] {
|
|
346
|
+
`).concat(xD,": ").concat(f,`px;
|
|
347
|
+
}
|
|
348
|
+
`)},Mb=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},ID=function(){x.useEffect(function(){return document.body.setAttribute(lo,(Mb()+1).toString()),function(){var e=Mb()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},BD=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;ID();var s=x.useMemo(function(){return PD(l)},[l]);return x.createElement(LD,{styles:zD(s,!n,l,r?"":"!important")})},mp=!1;if(typeof window<"u")try{var Pu=Object.defineProperty({},"passive",{get:function(){return mp=!0,!0}});window.addEventListener("test",Pu,Pu),window.removeEventListener("test",Pu,Pu)}catch{mp=!1}var Zi=mp?{passive:!1}:!1,UD=function(e){return e.tagName==="TEXTAREA"},b1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!UD(e)&&r[n]==="visible")},HD=function(e){return b1(e,"overflowY")},FD=function(e){return b1(e,"overflowX")},jb=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=w1(e,i);if(l){var s=S1(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},qD=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},VD=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},w1=function(e,n){return e==="v"?HD(n):FD(n)},S1=function(e,n){return e==="v"?qD(n):VD(n)},$D=function(e,n){return e==="h"&&n==="rtl"?-1:1},GD=function(e,n,r,i,l){var s=$D(e,window.getComputedStyle(n).direction),c=s*i,f=r.target,d=n.contains(f),h=!1,m=c>0,y=0,b=0;do{if(!f)break;var w=S1(e,f),E=w[0],S=w[1],A=w[2],T=S-A-s*E;(E||T)&&w1(e,f)&&(y+=T,b+=E);var N=f.parentNode;f=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&f!==document.body||d&&(n.contains(f)||n===f));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(h=!0),h},Lu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Db=function(e){return[e.deltaX,e.deltaY]},Ob=function(e){return e&&"current"in e?e.current:e},YD=function(e,n){return e[0]===n[0]&&e[1]===n[1]},KD=function(e){return`
|
|
349
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
350
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
351
|
+
`)},XD=0,Wi=[];function QD(e){var n=x.useRef([]),r=x.useRef([0,0]),i=x.useRef(),l=x.useState(XD++)[0],s=x.useState(x1)[0],c=x.useRef(e);x.useEffect(function(){c.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var S=yD([e.lockRef.current],(e.shards||[]).map(Ob),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var T=Lu(S),N=r.current,R="deltaX"in S?S.deltaX:N[0]-T[0],D="deltaY"in S?S.deltaY:N[1]-T[1],P,j=S.target,B=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in S&&B==="h"&&j.type==="range")return!1;var U=jb(B,j);if(!U)return!0;if(U?P=B:(P=B==="v"?"h":"v",U=jb(B,j)),!U)return!1;if(!i.current&&"changedTouches"in S&&(R||D)&&(i.current=P),!P)return!0;var Y=i.current||P;return GD(Y,A,S,Y==="h"?R:D)},[]),d=x.useCallback(function(S){var A=S;if(!(!Wi.length||Wi[Wi.length-1]!==s)){var T="deltaY"in A?Db(A):Lu(A),N=n.current.filter(function(P){return P.name===A.type&&(P.target===A.target||A.target===P.shadowParent)&&YD(P.delta,T)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var R=(c.current.shards||[]).map(Ob).filter(Boolean).filter(function(P){return P.contains(A.target)}),D=R.length>0?f(A,R[0]):!c.current.noIsolation;D&&A.cancelable&&A.preventDefault()}}},[]),h=x.useCallback(function(S,A,T,N){var R={name:S,delta:A,target:T,should:N,shadowParent:ZD(T)};n.current.push(R),setTimeout(function(){n.current=n.current.filter(function(D){return D!==R})},1)},[]),m=x.useCallback(function(S){r.current=Lu(S),i.current=void 0},[]),y=x.useCallback(function(S){h(S.type,Db(S),S.target,f(S,e.lockRef.current))},[]),b=x.useCallback(function(S){h(S.type,Lu(S),S.target,f(S,e.lockRef.current))},[]);x.useEffect(function(){return Wi.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",d,Zi),document.addEventListener("touchmove",d,Zi),document.addEventListener("touchstart",m,Zi),function(){Wi=Wi.filter(function(S){return S!==s}),document.removeEventListener("wheel",d,Zi),document.removeEventListener("touchmove",d,Zi),document.removeEventListener("touchstart",m,Zi)}},[]);var w=e.removeScrollBar,E=e.inert;return x.createElement(x.Fragment,null,E?x.createElement(s,{styles:KD(l)}):null,w?x.createElement(BD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZD(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const WD=AD(v1,QD);var Oc=x.forwardRef(function(e,n){return x.createElement(Dc,gr({},e,{ref:n,sideCar:WD}))});Oc.classNames=Dc.classNames;var JD=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ji=new WeakMap,zu=new WeakMap,Iu={},Dh=0,E1=function(e){return e&&(e.host||E1(e.parentNode))},eO=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=E1(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},tO=function(e,n,r,i){var l=eO(n,Array.isArray(e)?e:[e]);Iu[r]||(Iu[r]=new WeakMap);var s=Iu[r],c=[],f=new Set,d=new Set(l),h=function(y){!y||f.has(y)||(f.add(y),h(y.parentNode))};l.forEach(h);var m=function(y){!y||d.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))m(b);else try{var w=b.getAttribute(i),E=w!==null&&w!=="false",S=(Ji.get(b)||0)+1,A=(s.get(b)||0)+1;Ji.set(b,S),s.set(b,A),c.push(b),S===1&&E&&zu.set(b,!0),A===1&&b.setAttribute(r,"true"),E||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return m(n),f.clear(),Dh++,function(){c.forEach(function(y){var b=Ji.get(y)-1,w=s.get(y)-1;Ji.set(y,b),s.set(y,w),b||(zu.has(y)||y.removeAttribute(i),zu.delete(y)),w||y.removeAttribute(r)}),Dh--,Dh||(Ji=new WeakMap,Ji=new WeakMap,zu=new WeakMap,Iu={})}},um=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=JD(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),tO(i,l,r,"aria-hidden")):function(){return null}},Pc="Dialog",[C1,k1]=Yn(Pc),[nO,sr]=C1(Pc),A1=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=x.useRef(null),d=x.useRef(null),[h,m]=Aa({prop:i,defaultProp:l??!1,onChange:s,caller:Pc});return g.jsx(nO,{scope:n,triggerRef:f,contentRef:d,contentId:vr(),titleId:vr(),descriptionId:vr(),open:h,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};A1.displayName=Pc;var T1="DialogTrigger",R1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=sr(T1,r),s=Ie(n,l.triggerRef);return g.jsx(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":dm(l.open),...i,ref:s,onClick:pe(e.onClick,l.onOpenToggle)})});R1.displayName=T1;var cm="DialogPortal",[rO,N1]=C1(cm,{forceMount:void 0}),_1=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:l}=e,s=sr(cm,n);return g.jsx(rO,{scope:n,forceMount:r,children:x.Children.map(i,c=>g.jsx(un,{present:r||s.open,children:g.jsx(ts,{asChild:!0,container:l,children:c})}))})};_1.displayName=cm;var lc="DialogOverlay",M1=x.forwardRef((e,n)=>{const r=N1(lc,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=sr(lc,e.__scopeDialog);return s.modal?g.jsx(un,{present:i||s.open,children:g.jsx(iO,{...l,ref:n})}):null});M1.displayName=lc;var aO=ri("DialogOverlay.RemoveScroll"),iO=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=sr(lc,r);return g.jsx(Oc,{as:aO,allowPinchZoom:!0,shards:[l.contentRef],children:g.jsx(_e.div,{"data-state":dm(l.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),ai="DialogContent",j1=x.forwardRef((e,n)=>{const r=N1(ai,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=sr(ai,e.__scopeDialog);return g.jsx(un,{present:i||s.open,children:s.modal?g.jsx(oO,{...l,ref:n}):g.jsx(lO,{...l,ref:n})})});j1.displayName=ai;var oO=x.forwardRef((e,n)=>{const r=sr(ai,e.__scopeDialog),i=x.useRef(null),l=Ie(n,r.contentRef,i);return x.useEffect(()=>{const s=i.current;if(s)return um(s)},[]),g.jsx(D1,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault())})}),lO=x.forwardRef((e,n)=>{const r=sr(ai,e.__scopeDialog),i=x.useRef(!1),l=x.useRef(!1);return g.jsx(D1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(i.current||r.triggerRef.current?.focus(),s.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&l.current&&s.preventDefault()}})}),D1=x.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,...c}=e,f=sr(ai,r),d=x.useRef(null),h=Ie(n,d);return sm(),g.jsxs(g.Fragment,{children:[g.jsx(jc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s,children:g.jsx(wo,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":dm(f.open),...c,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(uO,{titleId:f.titleId}),g.jsx(fO,{contentRef:d,descriptionId:f.descriptionId})]})]})}),fm="DialogTitle",O1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=sr(fm,r);return g.jsx(_e.h2,{id:l.titleId,...i,ref:n})});O1.displayName=fm;var P1="DialogDescription",L1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=sr(P1,r);return g.jsx(_e.p,{id:l.descriptionId,...i,ref:n})});L1.displayName=P1;var z1="DialogClose",I1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=sr(z1,r);return g.jsx(_e.button,{type:"button",...i,ref:n,onClick:pe(e.onClick,()=>l.onOpenChange(!1))})});I1.displayName=z1;function dm(e){return e?"open":"closed"}var B1="DialogTitleWarning",[sO,U1]=ZN(B1,{contentName:ai,titleName:fm,docsSlug:"dialog"}),uO=({titleId:e})=>{const n=U1(B1),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
352
|
+
|
|
353
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
354
|
+
|
|
355
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cO="DialogDescriptionWarning",fO=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${U1(cO).contentName}}.`;return x.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},hm=A1,H1=R1,pm=_1,rs=M1,as=j1,is=O1,os=L1,Lc=I1;const F1=hm,dO=pm,q1=x.forwardRef(({className:e,...n},r)=>g.jsx(rs,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));q1.displayName=rs.displayName;const hO=_c("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),mm=x.forwardRef(({side:e="right",className:n,children:r,...i},l)=>g.jsxs(dO,{children:[g.jsx(q1,{}),g.jsxs(as,{ref:l,className:ue(hO({side:e}),n),...i,children:[r,g.jsxs(Lc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(oo,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mm.displayName=as.displayName;const gm=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});gm.displayName="SheetHeader";const ym=x.forwardRef(({className:e,...n},r)=>g.jsx(is,{ref:r,className:ue("text-lg font-semibold text-foreground",e),...n}));ym.displayName=is.displayName;const V1=x.forwardRef(({className:e,...n},r)=>g.jsx(os,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));V1.displayName=os.displayName;function Pb({className:e,...n}){return g.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...n})}const pO=["top","right","bottom","left"],Ta=Math.min,Nn=Math.max,sc=Math.round,Bu=Math.floor,xr=e=>({x:e,y:e}),mO={left:"right",right:"left",bottom:"top",top:"bottom"},gO={start:"end",end:"start"};function gp(e,n,r){return Nn(e,Ta(n,r))}function Gr(e,n){return typeof e=="function"?e(n):e}function Yr(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function vm(e){return e==="x"?"y":"x"}function xm(e){return e==="y"?"height":"width"}const yO=new Set(["top","bottom"]);function yr(e){return yO.has(Yr(e))?"y":"x"}function bm(e){return vm(yr(e))}function vO(e,n,r){r===void 0&&(r=!1);const i=Co(e),l=bm(e),s=xm(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=uc(c)),[c,uc(c)]}function xO(e){const n=uc(e);return[yp(e),n,yp(n)]}function yp(e){return e.replace(/start|end/g,n=>gO[n])}const Lb=["left","right"],zb=["right","left"],bO=["top","bottom"],wO=["bottom","top"];function SO(e,n,r){switch(e){case"top":case"bottom":return r?n?zb:Lb:n?Lb:zb;case"left":case"right":return n?bO:wO;default:return[]}}function EO(e,n,r,i){const l=Co(e);let s=SO(Yr(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),n&&(s=s.concat(s.map(yp)))),s}function uc(e){return e.replace(/left|right|bottom|top/g,n=>mO[n])}function CO(e){return{top:0,right:0,bottom:0,left:0,...e}}function $1(e){return typeof e!="number"?CO(e):{top:e,right:e,bottom:e,left:e}}function cc(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function Ib(e,n,r){let{reference:i,floating:l}=e;const s=yr(n),c=bm(n),f=xm(c),d=Yr(n),h=s==="y",m=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,b=i[f]/2-l[f]/2;let w;switch(d){case"top":w={x:m,y:i.y-l.height};break;case"bottom":w={x:m,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-l.width,y};break;default:w={x:i.x,y:i.y}}switch(Co(n)){case"start":w[c]-=b*(r&&h?-1:1);break;case"end":w[c]+=b*(r&&h?-1:1);break}return w}const kO=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:l}),{x:m,y}=Ib(h,i,d),b=i,w={},E=0;for(let S=0;S<f.length;S++){const{name:A,fn:T}=f[S],{x:N,y:R,data:D,reset:P}=await T({x:m,y,initialPlacement:i,placement:b,strategy:l,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:n}});m=N??m,y=R??y,w={...w,[A]:{...w[A],...D}},P&&E<=50&&(E++,typeof P=="object"&&(P.placement&&(b=P.placement),P.rects&&(h=P.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:l}):P.rects),{x:m,y}=Ib(h,b,d)),S=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:w}};async function Vl(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Gr(n,e),E=$1(w),A=f[b?y==="floating"?"reference":"floating":y],T=cc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(A)))==null||r?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),N=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),D=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},P=cc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:R,strategy:d}):N);return{top:(T.top-P.top+E.top)/D.y,bottom:(P.bottom-T.bottom+E.bottom)/D.y,left:(T.left-P.left+E.left)/D.x,right:(P.right-T.right+E.right)/D.x}}const AO=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=Gr(e,n)||{};if(h==null)return{};const y=$1(m),b={x:r,y:i},w=bm(l),E=xm(w),S=await c.getDimensions(h),A=w==="y",T=A?"top":"left",N=A?"bottom":"right",R=A?"clientHeight":"clientWidth",D=s.reference[E]+s.reference[w]-b[w]-s.floating[E],P=b[w]-s.reference[w],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let B=j?j[R]:0;(!B||!await(c.isElement==null?void 0:c.isElement(j)))&&(B=f.floating[R]||s.floating[E]);const U=D/2-P/2,Y=B/2-S[E]/2-1,L=Ta(y[T],Y),J=Ta(y[N],Y),W=L,ie=B-S[E]-J,G=B/2-S[E]/2+U,ne=gp(W,G,ie),z=!d.arrow&&Co(l)!=null&&G!==ne&&s.reference[E]/2-(G<W?L:J)-S[E]/2<0,Q=z?G<W?G-W:G-ie:0;return{[w]:b[w]+Q,data:{[w]:ne,centerOffset:G-ne-Q,...z&&{alignmentOffset:Q}},reset:z}}}),TO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...A}=Gr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const T=Yr(l),N=yr(f),R=Yr(f)===f,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),P=b||(R||!S?[uc(f)]:xO(f)),j=E!=="none";!b&&j&&P.push(...EO(f,S,E,D));const B=[f,...P],U=await Vl(n,A),Y=[];let L=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&Y.push(U[T]),y){const G=vO(l,c,D);Y.push(U[G[0]],U[G[1]])}if(L=[...L,{placement:l,overflows:Y}],!Y.every(G=>G<=0)){var J,W;const G=(((J=s.flip)==null?void 0:J.index)||0)+1,ne=B[G];if(ne&&(!(y==="alignment"?N!==yr(ne):!1)||L.every(F=>yr(F.placement)===N?F.overflows[0]>0:!0)))return{data:{index:G,overflows:L},reset:{placement:ne}};let z=(W=L.filter(Q=>Q.overflows[0]<=0).sort((Q,F)=>Q.overflows[1]-F.overflows[1])[0])==null?void 0:W.placement;if(!z)switch(w){case"bestFit":{var ie;const Q=(ie=L.filter(F=>{if(j){const re=yr(F.placement);return re===N||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,k)=>re+k,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:ie[0];Q&&(z=Q);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function Bb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Ub(e){return pO.some(n=>e[n]>=0)}const RO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Gr(e,n);switch(i){case"referenceHidden":{const s=await Vl(n,{...l,elementContext:"reference"}),c=Bb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ub(c)}}}case"escaped":{const s=await Vl(n,{...l,altBoundary:!0}),c=Bb(s,r.floating);return{data:{escapedOffsets:c,escaped:Ub(c)}}}default:return{}}}}},G1=new Set(["left","top"]);async function NO(e,n){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Yr(r),f=Co(r),d=yr(r)==="y",h=G1.has(c)?-1:1,m=s&&d?-1:1,y=Gr(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),d?{x:w*m,y:b*h}:{x:b*h,y:w*m}}const _O=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=n,d=await NO(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},MO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:A=>{let{x:T,y:N}=A;return{x:T,y:N}}},...d}=Gr(e,n),h={x:r,y:i},m=await Vl(n,d),y=yr(Yr(l)),b=vm(y);let w=h[b],E=h[y];if(s){const A=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=w+m[A],R=w-m[T];w=gp(N,w,R)}if(c){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",N=E+m[A],R=E-m[T];E=gp(N,E,R)}const S=f.fn({...n,[b]:w,[y]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[b]:s,[y]:c}}}}}},jO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Gr(e,n),m={x:r,y:i},y=yr(l),b=vm(y);let w=m[b],E=m[y];const S=Gr(f,n),A=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const R=b==="y"?"height":"width",D=s.reference[b]-s.floating[R]+A.mainAxis,P=s.reference[b]+s.reference[R]-A.mainAxis;w<D?w=D:w>P&&(w=P)}if(h){var T,N;const R=b==="y"?"width":"height",D=G1.has(Yr(l)),P=s.reference[y]-s.floating[R]+(D&&((T=c.offset)==null?void 0:T[y])||0)+(D?0:A.crossAxis),j=s.reference[y]+s.reference[R]+(D?0:((N=c.offset)==null?void 0:N[y])||0)-(D?A.crossAxis:0);E<P?E=P:E>j&&(E=j)}return{[b]:w,[y]:E}}}},DO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:s,platform:c,elements:f}=n,{apply:d=()=>{},...h}=Gr(e,n),m=await Vl(n,h),y=Yr(l),b=Co(l),w=yr(l)==="y",{width:E,height:S}=s.floating;let A,T;y==="top"||y==="bottom"?(A=y,T=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(T=y,A=b==="end"?"top":"bottom");const N=S-m.top-m.bottom,R=E-m.left-m.right,D=Ta(S-m[A],N),P=Ta(E-m[T],R),j=!n.middlewareData.shift;let B=D,U=P;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(U=R),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(B=N),j&&!b){const L=Nn(m.left,0),J=Nn(m.right,0),W=Nn(m.top,0),ie=Nn(m.bottom,0);w?U=E-2*(L!==0||J!==0?L+J:Nn(m.left,m.right)):B=S-2*(W!==0||ie!==0?W+ie:Nn(m.top,m.bottom))}await d({...n,availableWidth:U,availableHeight:B});const Y=await c.getDimensions(f.floating);return E!==Y.width||S!==Y.height?{reset:{rects:!0}}:{}}}};function zc(){return typeof window<"u"}function ko(e){return Y1(e)?(e.nodeName||"").toLowerCase():"#document"}function _n(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function wr(e){var n;return(n=(Y1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function Y1(e){return zc()?e instanceof Node||e instanceof _n(e).Node:!1}function ir(e){return zc()?e instanceof Element||e instanceof _n(e).Element:!1}function br(e){return zc()?e instanceof HTMLElement||e instanceof _n(e).HTMLElement:!1}function Hb(e){return!zc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _n(e).ShadowRoot}const OO=new Set(["inline","contents"]);function ls(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=or(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!OO.has(l)}const PO=new Set(["table","td","th"]);function LO(e){return PO.has(ko(e))}const zO=[":popover-open",":modal"];function Ic(e){return zO.some(n=>{try{return e.matches(n)}catch{return!1}})}const IO=["transform","translate","scale","rotate","perspective"],BO=["transform","translate","scale","rotate","perspective","filter"],UO=["paint","layout","strict","content"];function wm(e){const n=Sm(),r=ir(e)?or(e):e;return IO.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||BO.some(i=>(r.willChange||"").includes(i))||UO.some(i=>(r.contain||"").includes(i))}function HO(e){let n=Ra(e);for(;br(n)&&!fo(n);){if(wm(n))return n;if(Ic(n))return null;n=Ra(n)}return null}function Sm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const FO=new Set(["html","body","#document"]);function fo(e){return FO.has(ko(e))}function or(e){return _n(e).getComputedStyle(e)}function Bc(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ra(e){if(ko(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Hb(e)&&e.host||wr(e);return Hb(n)?n.host:n}function K1(e){const n=Ra(e);return fo(n)?e.ownerDocument?e.ownerDocument.body:e.body:br(n)&&ls(n)?n:K1(n)}function $l(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=K1(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=_n(l);if(s){const f=vp(c);return n.concat(c,c.visualViewport||[],ls(l)?l:[],f&&r?$l(f):[])}return n.concat(l,$l(l,[],r))}function vp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X1(e){const n=or(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=br(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=sc(r)!==s||sc(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function Em(e){return ir(e)?e:e.contextElement}function so(e){const n=Em(e);if(!br(n))return xr(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:s}=X1(n);let c=(s?sc(r.width):r.width)/i,f=(s?sc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const qO=xr(0);function Q1(e){const n=_n(e);return!Sm()||!n.visualViewport?qO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function VO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==_n(e)?!1:n}function ii(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=Em(e);let c=xr(1);n&&(i?ir(i)&&(c=so(i)):c=so(e));const f=VO(s,r,i)?Q1(s):xr(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(s){const b=_n(s),w=i&&ir(i)?_n(i):i;let E=b,S=vp(E);for(;S&&i&&w!==E;){const A=so(S),T=S.getBoundingClientRect(),N=or(S),R=T.left+(S.clientLeft+parseFloat(N.paddingLeft))*A.x,D=T.top+(S.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,y*=A.y,d+=R,h+=D,E=_n(S),S=vp(E)}}return cc({width:m,height:y,x:d,y:h})}function Cm(e,n){const r=Bc(e).scrollLeft;return n?n.left+r:ii(wr(e)).left+r}function Z1(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:Cm(e,i)),s=i.top+n.scrollTop;return{x:l,y:s}}function $O(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=wr(i),f=n?Ic(n.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=xr(1);const m=xr(0),y=br(i);if((y||!y&&!s)&&((ko(i)!=="body"||ls(c))&&(d=Bc(i)),br(i))){const w=ii(i);h=so(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}const b=c&&!y&&!s?Z1(c,d,!0):xr(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:r.y*h.y-d.scrollTop*h.y+m.y+b.y}}function GO(e){return Array.from(e.getClientRects())}function YO(e){const n=wr(e),r=Bc(e),i=e.ownerDocument.body,l=Nn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=Nn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+Cm(e);const f=-r.scrollTop;return or(i).direction==="rtl"&&(c+=Nn(n.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}function KO(e,n){const r=_n(e),i=wr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const h=Sm();(!h||h&&n==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:c,x:f,y:d}}const XO=new Set(["absolute","fixed"]);function QO(e,n){const r=ii(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=br(e)?so(e):xr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function Fb(e,n,r){let i;if(n==="viewport")i=KO(e,r);else if(n==="document")i=YO(wr(e));else if(ir(n))i=QO(n,r);else{const l=Q1(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return cc(i)}function W1(e,n){const r=Ra(e);return r===n||!ir(r)||fo(r)?!1:or(r).position==="fixed"||W1(r,n)}function ZO(e,n){const r=n.get(e);if(r)return r;let i=$l(e,[],!1).filter(f=>ir(f)&&ko(f)!=="body"),l=null;const s=or(e).position==="fixed";let c=s?Ra(e):e;for(;ir(c)&&!fo(c);){const f=or(c),d=wm(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&XO.has(l.position)||ls(c)&&!d&&W1(e,c))?i=i.filter(m=>m!==c):l=f,c=Ra(c)}return n.set(e,i),i}function WO(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?Ic(n)?[]:ZO(n,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,m)=>{const y=Fb(n,m,l);return h.top=Nn(y.top,h.top),h.right=Ta(y.right,h.right),h.bottom=Ta(y.bottom,h.bottom),h.left=Nn(y.left,h.left),h},Fb(n,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function JO(e){const{width:n,height:r}=X1(e);return{width:n,height:r}}function e4(e,n,r){const i=br(n),l=wr(n),s=r==="fixed",c=ii(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=xr(0);function h(){d.x=Cm(l)}if(i||!i&&!s)if((ko(n)!=="body"||ls(l))&&(f=Bc(n)),i){const w=ii(n,!0,s,n);d.x=w.x+n.clientLeft,d.y=w.y+n.clientTop}else l&&h();s&&!i&&l&&h();const m=l&&!i&&!s?Z1(l,f):xr(0),y=c.left+f.scrollLeft-d.x-m.x,b=c.top+f.scrollTop-d.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function Oh(e){return or(e).position==="static"}function qb(e,n){if(!br(e)||or(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return wr(e)===r&&(r=r.ownerDocument.body),r}function J1(e,n){const r=_n(e);if(Ic(e))return r;if(!br(e)){let l=Ra(e);for(;l&&!fo(l);){if(ir(l)&&!Oh(l))return l;l=Ra(l)}return r}let i=qb(e,n);for(;i&&LO(i)&&Oh(i);)i=qb(i,n);return i&&fo(i)&&Oh(i)&&!wm(i)?r:i||HO(e)||r}const t4=async function(e){const n=this.getOffsetParent||J1,r=this.getDimensions,i=await r(e.floating);return{reference:e4(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function n4(e){return or(e).direction==="rtl"}const r4={convertOffsetParentRelativeRectToViewportRelativeRect:$O,getDocumentElement:wr,getClippingRect:WO,getOffsetParent:J1,getElementRects:t4,getClientRects:GO,getDimensions:JO,getScale:so,isElement:ir,isRTL:n4};function eS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function a4(e,n){let r=null,i;const l=wr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:y,width:b,height:w}=h;if(f||n(),!b||!w)return;const E=Bu(y),S=Bu(l.clientWidth-(m+b)),A=Bu(l.clientHeight-(y+w)),T=Bu(m),R={rootMargin:-E+"px "+-S+"px "+-A+"px "+-T+"px",threshold:Nn(0,Ta(1,d))||1};let D=!0;function P(j){const B=j[0].intersectionRatio;if(B!==d){if(!D)return c();B?c(!1,B):i=setTimeout(()=>{c(!1,1e-7)},1e3)}B===1&&!eS(h,e.getBoundingClientRect())&&c(),D=!1}try{r=new IntersectionObserver(P,{...R,root:l.ownerDocument})}catch{r=new IntersectionObserver(P,R)}r.observe(e)}return c(!0),s}function i4(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=Em(e),m=l||s?[...h?$l(h):[],...$l(n)]:[];m.forEach(T=>{l&&T.addEventListener("scroll",r,{passive:!0}),s&&T.addEventListener("resize",r)});const y=h&&f?a4(h,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&w&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(n)})),r()}),h&&!d&&w.observe(h),w.observe(n));let E,S=d?ii(e):null;d&&A();function A(){const T=ii(e);S&&!eS(S,T)&&r(),S=T,E=requestAnimationFrame(A)}return r(),()=>{var T;m.forEach(N=>{l&&N.removeEventListener("scroll",r),s&&N.removeEventListener("resize",r)}),y?.(),(T=w)==null||T.disconnect(),w=null,d&&cancelAnimationFrame(E)}}const o4=_O,l4=MO,s4=TO,u4=DO,c4=RO,Vb=AO,f4=jO,d4=(e,n,r)=>{const i=new Map,l={platform:r4,...r},s={...l.platform,_c:i};return kO(e,n,{...l,platform:s})};var h4=typeof document<"u",p4=function(){},Zu=h4?x.useLayoutEffect:p4;function fc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!fc(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!fc(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function tS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $b(e,n){const r=tS(e);return Math.round(n*r)/r}function Ph(e){const n=x.useRef(e);return Zu(()=>{n.current=e}),n}function m4(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[m,y]=x.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=x.useState(i);fc(b,i)||w(i);const[E,S]=x.useState(null),[A,T]=x.useState(null),N=x.useCallback(F=>{F!==j.current&&(j.current=F,S(F))},[]),R=x.useCallback(F=>{F!==B.current&&(B.current=F,T(F))},[]),D=s||E,P=c||A,j=x.useRef(null),B=x.useRef(null),U=x.useRef(m),Y=d!=null,L=Ph(d),J=Ph(l),W=Ph(h),ie=x.useCallback(()=>{if(!j.current||!B.current)return;const F={placement:n,strategy:r,middleware:b};J.current&&(F.platform=J.current),d4(j.current,B.current,F).then(re=>{const k={...re,isPositioned:W.current!==!1};G.current&&!fc(U.current,k)&&(U.current=k,xo.flushSync(()=>{y(k)}))})},[b,n,r,J,W]);Zu(()=>{h===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,y(F=>({...F,isPositioned:!1})))},[h]);const G=x.useRef(!1);Zu(()=>(G.current=!0,()=>{G.current=!1}),[]),Zu(()=>{if(D&&(j.current=D),P&&(B.current=P),D&&P){if(L.current)return L.current(D,P,ie);ie()}},[D,P,ie,L,Y]);const ne=x.useMemo(()=>({reference:j,floating:B,setReference:N,setFloating:R}),[N,R]),z=x.useMemo(()=>({reference:D,floating:P}),[D,P]),Q=x.useMemo(()=>{const F={position:r,left:0,top:0};if(!z.floating)return F;const re=$b(z.floating,m.x),k=$b(z.floating,m.y);return f?{...F,transform:"translate("+re+"px, "+k+"px)",...tS(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:k}},[r,f,z.floating,m.x,m.y]);return x.useMemo(()=>({...m,update:ie,refs:ne,elements:z,floatingStyles:Q}),[m,ie,ne,z,Q])}const g4=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?Vb({element:i.current,padding:l}).fn(r):{}:i?Vb({element:i,padding:l}).fn(r):{}}}},y4=(e,n)=>({...o4(e),options:[e,n]}),v4=(e,n)=>({...l4(e),options:[e,n]}),x4=(e,n)=>({...f4(e),options:[e,n]}),b4=(e,n)=>({...s4(e),options:[e,n]}),w4=(e,n)=>({...u4(e),options:[e,n]}),S4=(e,n)=>({...c4(e),options:[e,n]}),E4=(e,n)=>({...g4(e),options:[e,n]});var C4="Arrow",nS=x.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...s}=e;return g.jsx(_e.svg,{...s,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});nS.displayName=C4;var k4=nS;function rS(e){const[n,r]=x.useState(void 0);return $t(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var km="Popper",[aS,Ao]=Yn(km),[A4,iS]=aS(km),oS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=x.useState(null);return g.jsx(A4,{scope:n,anchor:i,onAnchorChange:l,children:r})};oS.displayName=km;var lS="PopperAnchor",sS=x.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=iS(lS,r),c=x.useRef(null),f=Ie(n,c),d=x.useRef(null);return x.useEffect(()=>{const h=d.current;d.current=i?.current||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:g.jsx(_e.div,{...l,ref:f})});sS.displayName=lS;var Am="PopperContent",[T4,R4]=aS(Am),uS=x.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...S}=e,A=iS(Am,r),[T,N]=x.useState(null),R=Ie(n,le=>N(le)),[D,P]=x.useState(null),j=rS(D),B=j?.width??0,U=j?.height??0,Y=i+(s!=="center"?"-"+s:""),L=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},J=Array.isArray(h)?h:[h],W=J.length>0,ie={padding:L,boundary:J.filter(_4),altBoundary:W},{refs:G,floatingStyles:ne,placement:z,isPositioned:Q,middlewareData:F}=m4({strategy:"fixed",placement:Y,whileElementsMounted:(...le)=>i4(...le,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[y4({mainAxis:l+U,alignmentAxis:c}),d&&v4({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?x4():void 0,...ie}),d&&b4({...ie}),w4({...ie,apply:({elements:le,rects:ve,availableWidth:He,availableHeight:Ce})=>{const{width:Oe,height:Xe}=ve.reference,Ct=le.floating.style;Ct.setProperty("--radix-popper-available-width",`${He}px`),Ct.setProperty("--radix-popper-available-height",`${Ce}px`),Ct.setProperty("--radix-popper-anchor-width",`${Oe}px`),Ct.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),D&&E4({element:D,padding:f}),M4({arrowWidth:B,arrowHeight:U}),b&&S4({strategy:"referenceHidden",...ie})]}),[re,k]=dS(z),Z=Mt(E);$t(()=>{Q&&Z?.()},[Q,Z]);const ce=F.arrow?.x,M=F.arrow?.y,se=F.arrow?.centerOffset!==0,[Se,me]=x.useState();return $t(()=>{T&&me(window.getComputedStyle(T).zIndex)},[T]),g.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:Q?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(T4,{scope:r,placedSide:re,onArrowChange:P,arrowX:ce,arrowY:M,shouldHideArrow:se,children:g.jsx(_e.div,{"data-side":re,"data-align":k,...S,ref:R,style:{...S.style,animation:Q?void 0:"none"}})})})});uS.displayName=Am;var cS="PopperArrow",N4={top:"bottom",right:"left",bottom:"top",left:"right"},fS=x.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,s=R4(cS,i),c=N4[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(k4,{...l,ref:r,style:{...l.style,display:"block"}})})});fS.displayName=cS;function _4(e){return e!==null}var M4=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:l}=n,c=l.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=dS(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(l.arrow?.x??0)+f/2,w=(l.arrow?.y??0)+d/2;let E="",S="";return h==="bottom"?(E=c?y:`${b}px`,S=`${-d}px`):h==="top"?(E=c?y:`${b}px`,S=`${i.floating.height+d}px`):h==="right"?(E=`${-d}px`,S=c?y:`${w}px`):h==="left"&&(E=`${i.floating.width+d}px`,S=c?y:`${w}px`),{data:{x:E,y:S}}}});function dS(e){const[n,r="center"]=e.split("-");return[n,r]}var Tm=oS,Rm=sS,Nm=uS,_m=fS,[Uc,GU]=Yn("Tooltip",[Ao]),Hc=Ao(),hS="TooltipProvider",j4=700,xp="tooltip.open",[D4,Mm]=Uc(hS),pS=e=>{const{__scopeTooltip:n,delayDuration:r=j4,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:s}=e,c=x.useRef(!0),f=x.useRef(!1),d=x.useRef(0);return x.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),g.jsx(D4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:s})};pS.displayName=hS;var Gl="Tooltip",[O4,Fc]=Uc(Gl),mS=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,d=Mm(Gl,e.__scopeTooltip),h=Hc(n),[m,y]=x.useState(null),b=vr(),w=x.useRef(0),E=c??d.disableHoverableContent,S=f??d.delayDuration,A=x.useRef(!1),[T,N]=Aa({prop:i,defaultProp:l??!1,onChange:B=>{B?(d.onOpen(),document.dispatchEvent(new CustomEvent(xp))):d.onClose(),s?.(B)},caller:Gl}),R=x.useMemo(()=>T?A.current?"delayed-open":"instant-open":"closed",[T]),D=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,N(!0)},[N]),P=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),j=x.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,N(!0),w.current=0},S)},[S,N]);return x.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(Tm,{...h,children:g.jsx(O4,{scope:n,contentId:b,open:T,stateAttribute:R,trigger:m,onTriggerChange:y,onTriggerEnter:x.useCallback(()=>{d.isOpenDelayedRef.current?j():D()},[d.isOpenDelayedRef,j,D]),onTriggerLeave:x.useCallback(()=>{E?P():(window.clearTimeout(w.current),w.current=0)},[P,E]),onOpen:D,onClose:P,disableHoverableContent:E,children:r})})};mS.displayName=Gl;var bp="TooltipTrigger",gS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Fc(bp,r),s=Mm(bp,r),c=Hc(r),f=x.useRef(null),d=Ie(n,f,l.onTriggerChange),h=x.useRef(!1),m=x.useRef(!1),y=x.useCallback(()=>h.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(Rm,{asChild:!0,...c,children:g.jsx(_e.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:d,onPointerMove:pe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:pe(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:pe(e.onBlur,l.onClose),onClick:pe(e.onClick,l.onClose)})})});gS.displayName=bp;var P4="TooltipPortal",[YU,L4]=Uc(P4,{forceMount:void 0}),ho="TooltipContent",yS=x.forwardRef((e,n)=>{const r=L4(ho,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...s}=e,c=Fc(ho,e.__scopeTooltip);return g.jsx(un,{present:i||c.open,children:c.disableHoverableContent?g.jsx(vS,{side:l,...s,ref:n}):g.jsx(z4,{side:l,...s,ref:n})})}),z4=x.forwardRef((e,n)=>{const r=Fc(ho,e.__scopeTooltip),i=Mm(ho,e.__scopeTooltip),l=x.useRef(null),s=Ie(n,l),[c,f]=x.useState(null),{trigger:d,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=i,b=x.useCallback(()=>{f(null),y(!1)},[y]),w=x.useCallback((E,S)=>{const A=E.currentTarget,T={x:E.clientX,y:E.clientY},N=F4(T,A.getBoundingClientRect()),R=q4(T,N),D=V4(S.getBoundingClientRect()),P=G4([...R,...D]);f(P),y(!0)},[y]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(d&&m){const E=A=>w(A,m),S=A=>w(A,d);return d.addEventListener("pointerleave",E),m.addEventListener("pointerleave",S),()=>{d.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",S)}}},[d,m,w,b]),x.useEffect(()=>{if(c){const E=S=>{const A=S.target,T={x:S.clientX,y:S.clientY},N=d?.contains(A)||m?.contains(A),R=!$4(T,c);N?b():R&&(b(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,m,c,h,b]),g.jsx(vS,{...e,ref:s})}),[I4,B4]=Uc(Gl,{isInside:!1}),U4=bw("TooltipContent"),vS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,d=Fc(ho,r),h=Hc(r),{onClose:m}=d;return x.useEffect(()=>(document.addEventListener(xp,m),()=>document.removeEventListener(xp,m)),[m]),x.useEffect(()=>{if(d.trigger){const y=b=>{b.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,m]),g.jsx(wo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(Nm,{"data-state":d.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(U4,{children:i}),g.jsx(I4,{scope:r,isInside:!0,children:g.jsx(w_,{id:d.contentId,role:"tooltip",children:l||i})})]})})});yS.displayName=ho;var xS="TooltipArrow",H4=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Hc(r);return B4(xS,r).isInside?null:g.jsx(_m,{...l,...i,ref:n})});H4.displayName=xS;function F4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,l,s)){case s:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function q4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function V4(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function $4(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function G4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Y4(n)}function Y4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var K4=pS,X4=mS,Q4=gS,bS=yS;const Z4=K4,W4=X4,J4=Q4,wS=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(bS,{ref:i,sideOffset:n,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));wS.displayName=bS.displayName;const eP="sidebar_state",tP=3600*24*7,nP="16rem",rP="18rem",aP="3rem",iP="b",SS=x.createContext(null);function qc(){const e=x.useContext(SS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const ES=x.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:s,...c},f)=>{const d=c1(),[h,m]=x.useState(!1),[y,b]=x.useState(e),w=n??y,E=x.useCallback(N=>{const R=typeof N=="function"?N(w):N;r?r(R):b(R),document.cookie=`${eP}=${R}; path=/; max-age=${tP}`},[r,w]),S=x.useCallback(()=>d?m(N=>!N):E(N=>!N),[d,E,m]);x.useEffect(()=>{const N=R=>{R.key===iP&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),S())};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[S]);const A=w?"expanded":"collapsed",T=x.useMemo(()=>({state:A,open:w,setOpen:E,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:S}),[A,w,E,d,h,m,S]);return g.jsx(SS.Provider,{value:T,children:g.jsx(Z4,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":nP,"--sidebar-width-icon":aP,...l},className:ue("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});ES.displayName="SidebarProvider";const CS=x.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...s},c)=>{const{isMobile:f,state:d,openMobile:h,setOpenMobile:m}=qc();return r==="none"?g.jsx("div",{className:ue("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:l}):f?g.jsx(F1,{open:h,onOpenChange:m,...s,children:g.jsxs(mm,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":rP},side:e,children:[g.jsxs(gm,{className:"sr-only",children:[g.jsx(ym,{children:"Sidebar"}),g.jsx(V1,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ue("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:ue("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});CS.displayName="Sidebar";const kS=x.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:l}=qc();return g.jsxs(St,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ue("h-7 w-7",e),onClick:s=>{n?.(s),l()},...r,children:[g.jsx(FM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});kS.displayName="SidebarTrigger";const oP=x.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=qc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ue("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});oP.displayName="SidebarRail";const AS=x.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ue("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));AS.displayName="SidebarInset";const lP=x.forwardRef(({className:e,...n},r)=>g.jsx(f1,{ref:r,"data-sidebar":"input",className:ue("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));lP.displayName="SidebarInput";const TS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ue("flex flex-col gap-2 p-2",e),...n}));TS.displayName="SidebarHeader";const RS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ue("flex flex-col gap-2 p-2",e),...n}));RS.displayName="SidebarFooter";const sP=x.forwardRef(({className:e,...n},r)=>g.jsx(p1,{ref:r,"data-sidebar":"separator",className:ue("mx-2 w-auto bg-sidebar-border",e),...n}));sP.displayName="SidebarSeparator";const NS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ue("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));NS.displayName="SidebarContent";const Wu=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ue("relative flex w-full min-w-0 flex-col p-2",e),...n}));Wu.displayName="SidebarGroup";const Ju=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?bo:"div";return g.jsx(l,{ref:i,"data-sidebar":"group-label",className:ue("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Ju.displayName="SidebarGroupLabel";const uP=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?bo:"button";return g.jsx(l,{ref:i,"data-sidebar":"group-action",className:ue("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});uP.displayName="SidebarGroupAction";const ec=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ue("w-full text-sm",e),...n}));ec.displayName="SidebarGroupContent";const no=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ue("flex w-full min-w-0 flex-col gap-1",e),...n}));no.displayName="SidebarMenu";const ro=x.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ue("group/menu-item relative",e),...n}));ro.displayName="SidebarMenuItem";const cP=_c("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ao=x.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:s,...c},f)=>{const d=e?bo:"button",{isMobile:h,state:m}=qc(),y=g.jsx(d,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ue(cP({variant:r,size:i}),s),...c});return l?(typeof l=="string"&&(l={children:l}),g.jsxs(W4,{children:[g.jsx(J4,{asChild:!0,children:y}),g.jsx(wS,{side:"right",align:"center",hidden:m!=="collapsed"||h,...l})]})):y});ao.displayName="SidebarMenuButton";const fP=x.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},l)=>{const s=n?bo:"button";return g.jsx(s,{ref:l,"data-sidebar":"menu-action",className:ue("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});fP.displayName="SidebarMenuAction";const wp=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ue("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));wp.displayName="SidebarMenuBadge";const dP=x.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const l=x.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ue("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(Pb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(Pb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});dP.displayName="SidebarMenuSkeleton";const hP=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ue("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));hP.displayName="SidebarMenuSub";const pP=x.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));pP.displayName="SidebarMenuSubItem";const mP=x.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...l},s)=>{const c=e?bo:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ue("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...l})});mP.displayName="SidebarMenuSubButton";const gP="1.0.71-alpha.6",yP={version:gP};function vP({className:e}){return g.jsxs("svg",{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",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const xP=[{title:"Home",url:"/",icon:kM},{title:"Proposals",url:"/proposals",icon:hM},{title:"Agents",url:"/agents",icon:zl},{title:"Code",url:"/code",icon:iM},{title:"Utilities",url:"/utilities",icon:yj}],bP=[{title:"Overview",url:"/context/project",icon:ic},{title:"Architecture",url:"/context/architecture",icon:QM},{title:"Knowledge",url:"/context/knowledge",icon:Y_},{title:"Resources",url:"/resources",icon:xM}],wP=[{title:"Source Control",url:"/git",icon:Kw},{title:"Terminal",url:"/terminal",icon:uj},{title:"Schedule",url:"/schedule",icon:X_},{title:"Identity",url:"/identity",icon:TM}],SP=[{title:"Documentation",url:"https://docs.coconut.dev/",icon:UM,external:!0},{title:"Settings",url:"/settings/user",icon:WM}];function EP(){const{badges:e}=qN();return g.jsxs(CS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(TS,{children:g.jsx(no,{children:g.jsx(ro,{children:g.jsx(ao,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(qr,{to:"/",children:[g.jsx(vP,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",yP.version]})]})]})})})})}),g.jsxs(NS,{children:[g.jsxs(Wu,{children:[g.jsx(Ju,{children:"Main"}),g.jsx(ec,{children:g.jsx(no,{children:xP.map(n=>g.jsxs(ro,{children:[g.jsx(ao,{asChild:!0,children:g.jsxs(qr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),n.title==="Code"&&e.codeSessions>0&&g.jsx(wp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:e.codeSessions})]},n.title))})})]}),g.jsxs(Wu,{children:[g.jsx(Ju,{children:"Project"}),g.jsx(ec,{children:g.jsx(no,{children:bP.map(n=>g.jsx(ro,{children:g.jsx(ao,{asChild:!0,children:g.jsxs(qr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Wu,{children:[g.jsx(Ju,{children:"System"}),g.jsx(ec,{children:g.jsx(no,{children:wP.map(n=>{let r=0;return n.title==="Source Control"&&e.gitChanges>0?r=e.gitChanges:n.title==="Terminal"&&e.terminalSessions>0?r=e.terminalSessions:n.title==="Schedule"&&e.runningScheduledJobs>0&&(r=e.runningScheduledJobs),g.jsxs(ro,{children:[g.jsx(ao,{asChild:!0,children:g.jsxs(qr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(wp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]})]}),g.jsx(RS,{children:g.jsx(no,{children:SP.map(n=>g.jsx(ro,{children:g.jsx(ao,{asChild:!0,children:n.external?g.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]}):g.jsxs(qr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]})}function Sp(e,[n,r]){return Math.min(r,Math.max(n,e))}var CP=x.createContext(void 0);function Vc(e){const n=x.useContext(CP);return e||n||"ltr"}function _S(e){const n=x.useRef({value:e,previous:e});return x.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var kP=[" ","Enter","ArrowUp","ArrowDown"],AP=[" ","Enter"],oi="Select",[$c,Gc,TP]=Tc(oi),[To,KU]=Yn(oi,[TP,Ao]),Yc=Ao(),[RP,Na]=To(oi),[NP,_P]=To(oi),MS=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:s,value:c,defaultValue:f,onValueChange:d,dir:h,name:m,autoComplete:y,disabled:b,required:w,form:E}=e,S=Yc(n),[A,T]=x.useState(null),[N,R]=x.useState(null),[D,P]=x.useState(!1),j=Vc(h),[B,U]=Aa({prop:i,defaultProp:l??!1,onChange:s,caller:oi}),[Y,L]=Aa({prop:c,defaultProp:f,onChange:d,caller:oi}),J=x.useRef(null),W=A?E||!!A.closest("form"):!0,[ie,G]=x.useState(new Set),ne=Array.from(ie).map(z=>z.props.value).join(";");return g.jsx(Tm,{...S,children:g.jsxs(RP,{required:w,scope:n,trigger:A,onTriggerChange:T,valueNode:N,onValueNodeChange:R,valueNodeHasChildren:D,onValueNodeHasChildrenChange:P,contentId:vr(),value:Y,onValueChange:L,open:B,onOpenChange:U,dir:j,triggerPointerDownPosRef:J,disabled:b,children:[g.jsx($c.Provider,{scope:n,children:g.jsx(NP,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(z=>{G(Q=>new Set(Q).add(z))},[]),onNativeOptionRemove:x.useCallback(z=>{G(Q=>{const F=new Set(Q);return F.delete(z),F})},[]),children:r})}),W?g.jsxs(tE,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:y,value:Y,onChange:z=>L(z.target.value),disabled:b,form:E,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(ie)]},ne):null]})})};MS.displayName=oi;var jS="SelectTrigger",DS=x.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,s=Yc(r),c=Na(jS,r),f=c.disabled||i,d=Ie(n,c.onTriggerChange),h=Gc(r),m=x.useRef("touch"),[y,b,w]=rE(S=>{const A=h().filter(R=>!R.disabled),T=A.find(R=>R.value===c.value),N=aE(A,S,T);N!==void 0&&c.onValueChange(N.value)}),E=S=>{f||(c.onOpenChange(!0),w()),S&&(c.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return g.jsx(Rm,{asChild:!0,...s,children:g.jsx(_e.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":nE(c.value)?"":void 0,...l,ref:d,onClick:pe(l.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&E(S)}),onPointerDown:pe(l.onPointerDown,S=>{m.current=S.pointerType;const A=S.target;A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:pe(l.onKeyDown,S=>{const A=y.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(A&&S.key===" ")&&kP.includes(S.key)&&(E(),S.preventDefault())})})})});DS.displayName=jS;var OS="SelectValue",PS=x.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:s,placeholder:c="",...f}=e,d=Na(OS,r),{onValueNodeHasChildrenChange:h}=d,m=s!==void 0,y=Ie(n,d.onValueNodeChange);return $t(()=>{h(m)},[h,m]),g.jsx(_e.span,{...f,ref:y,style:{pointerEvents:"none"},children:nE(d.value)?g.jsx(g.Fragment,{children:c}):s})});PS.displayName=OS;var MP="SelectIcon",LS=x.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return g.jsx(_e.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});LS.displayName=MP;var jP="SelectPortal",zS=e=>g.jsx(ts,{asChild:!0,...e});zS.displayName=jP;var li="SelectContent",IS=x.forwardRef((e,n)=>{const r=Na(li,e.__scopeSelect),[i,l]=x.useState();if($t(()=>{l(new DocumentFragment)},[]),!r.open){const s=i;return s?xo.createPortal(g.jsx(BS,{scope:e.__scopeSelect,children:g.jsx($c.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(US,{...e,ref:n})});IS.displayName=li;var nr=10,[BS,_a]=To(li),DP="SelectContentImpl",OP=ri("SelectContent.RemoveScroll"),US=x.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:A,...T}=e,N=Na(li,r),[R,D]=x.useState(null),[P,j]=x.useState(null),B=Ie(n,le=>D(le)),[U,Y]=x.useState(null),[L,J]=x.useState(null),W=Gc(r),[ie,G]=x.useState(!1),ne=x.useRef(!1);x.useEffect(()=>{if(R)return um(R)},[R]),sm();const z=x.useCallback(le=>{const[ve,...He]=W().map(Xe=>Xe.ref.current),[Ce]=He.slice(-1),Oe=document.activeElement;for(const Xe of le)if(Xe===Oe||(Xe?.scrollIntoView({block:"nearest"}),Xe===ve&&P&&(P.scrollTop=0),Xe===Ce&&P&&(P.scrollTop=P.scrollHeight),Xe?.focus(),document.activeElement!==Oe))return},[W,P]),Q=x.useCallback(()=>z([U,R]),[z,U,R]);x.useEffect(()=>{ie&&Q()},[ie,Q]);const{onOpenChange:F,triggerPointerDownPosRef:re}=N;x.useEffect(()=>{if(R){let le={x:0,y:0};const ve=Ce=>{le={x:Math.abs(Math.round(Ce.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(Ce.pageY)-(re.current?.y??0))}},He=Ce=>{le.x<=10&&le.y<=10?Ce.preventDefault():R.contains(Ce.target)||F(!1),document.removeEventListener("pointermove",ve),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",He,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",He,{capture:!0})}}},[R,F,re]),x.useEffect(()=>{const le=()=>F(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[F]);const[k,Z]=rE(le=>{const ve=W().filter(Oe=>!Oe.disabled),He=ve.find(Oe=>Oe.ref.current===document.activeElement),Ce=aE(ve,le,He);Ce&&setTimeout(()=>Ce.ref.current.focus())}),ce=x.useCallback((le,ve,He)=>{const Ce=!ne.current&&!He;(N.value!==void 0&&N.value===ve||Ce)&&(Y(le),Ce&&(ne.current=!0))},[N.value]),M=x.useCallback(()=>R?.focus(),[R]),se=x.useCallback((le,ve,He)=>{const Ce=!ne.current&&!He;(N.value!==void 0&&N.value===ve||Ce)&&J(le)},[N.value]),Se=i==="popper"?Ep:HS,me=Se===Ep?{side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:A}:{};return g.jsx(BS,{scope:r,content:R,viewport:P,onViewportChange:j,itemRefCallback:ce,selectedItem:U,onItemLeave:M,itemTextRefCallback:se,focusSelectedItem:Q,selectedItemText:L,position:i,isPositioned:ie,searchRef:k,children:g.jsx(Oc,{as:OP,allowPinchZoom:!0,children:g.jsx(jc,{asChild:!0,trapped:N.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:pe(l,le=>{N.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:g.jsx(wo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:g.jsx(Se,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:le=>le.preventDefault(),...T,...me,onPlaced:()=>G(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:pe(T.onKeyDown,le=>{const ve=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ve&&le.key.length===1&&Z(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let Ce=W().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(le.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const Oe=le.target,Xe=Ce.indexOf(Oe);Ce=Ce.slice(Xe+1)}setTimeout(()=>z(Ce)),le.preventDefault()}})})})})})})});US.displayName=DP;var PP="SelectItemAlignedPosition",HS=x.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,s=Na(li,r),c=_a(li,r),[f,d]=x.useState(null),[h,m]=x.useState(null),y=Ie(n,B=>m(B)),b=Gc(r),w=x.useRef(!1),E=x.useRef(!0),{viewport:S,selectedItem:A,selectedItemText:T,focusSelectedItem:N}=c,R=x.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&S&&A&&T){const B=s.trigger.getBoundingClientRect(),U=h.getBoundingClientRect(),Y=s.valueNode.getBoundingClientRect(),L=T.getBoundingClientRect();if(s.dir!=="rtl"){const Oe=L.left-U.left,Xe=Y.left-Oe,Ct=B.left-Xe,kt=B.width+Ct,Xt=Math.max(kt,U.width),Xn=window.innerWidth-nr,ft=Sp(Xe,[nr,Math.max(nr,Xn-Xt)]);f.style.minWidth=kt+"px",f.style.left=ft+"px"}else{const Oe=U.right-L.right,Xe=window.innerWidth-Y.right-Oe,Ct=window.innerWidth-B.right-Xe,kt=B.width+Ct,Xt=Math.max(kt,U.width),Xn=window.innerWidth-nr,ft=Sp(Xe,[nr,Math.max(nr,Xn-Xt)]);f.style.minWidth=kt+"px",f.style.right=ft+"px"}const J=b(),W=window.innerHeight-nr*2,ie=S.scrollHeight,G=window.getComputedStyle(h),ne=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),Q=parseInt(G.borderBottomWidth,10),F=parseInt(G.paddingBottom,10),re=ne+z+ie+F+Q,k=Math.min(A.offsetHeight*5,re),Z=window.getComputedStyle(S),ce=parseInt(Z.paddingTop,10),M=parseInt(Z.paddingBottom,10),se=B.top+B.height/2-nr,Se=W-se,me=A.offsetHeight/2,le=A.offsetTop+me,ve=ne+z+le,He=re-ve;if(ve<=se){const Oe=J.length>0&&A===J[J.length-1].ref.current;f.style.bottom="0px";const Xe=h.clientHeight-S.offsetTop-S.offsetHeight,Ct=Math.max(Se,me+(Oe?M:0)+Xe+Q),kt=ve+Ct;f.style.height=kt+"px"}else{const Oe=J.length>0&&A===J[0].ref.current;f.style.top="0px";const Ct=Math.max(se,ne+S.offsetTop+(Oe?ce:0)+me)+He;f.style.height=Ct+"px",S.scrollTop=ve-se+S.offsetTop}f.style.margin=`${nr}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=W+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[b,s.trigger,s.valueNode,f,h,S,A,T,s.dir,i]);$t(()=>R(),[R]);const[D,P]=x.useState();$t(()=>{h&&P(window.getComputedStyle(h).zIndex)},[h]);const j=x.useCallback(B=>{B&&E.current===!0&&(R(),N?.(),E.current=!1)},[R,N]);return g.jsx(zP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:j,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:g.jsx(_e.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});HS.displayName=PP;var LP="SelectPopperPosition",Ep=x.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=nr,...s}=e,c=Yc(r);return g.jsx(Nm,{...c,...s,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ep.displayName=LP;var[zP,jm]=To(li,{}),Cp="SelectViewport",FS=x.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,s=_a(Cp,r),c=jm(Cp,r),f=Ie(n,s.onViewportChange),d=x.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),g.jsx($c.Slot,{scope:r,children:g.jsx(_e.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:pe(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b?.current&&y){const w=Math.abs(d.current-m.scrollTop);if(w>0){const E=window.innerHeight-nr*2,S=parseFloat(y.style.minHeight),A=parseFloat(y.style.height),T=Math.max(S,A);if(T<E){const N=T+w,R=Math.min(E,N),D=N-R;y.style.height=R+"px",y.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});FS.displayName=Cp;var qS="SelectGroup",[IP,BP]=To(qS),UP=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=vr();return g.jsx(IP,{scope:r,id:l,children:g.jsx(_e.div,{role:"group","aria-labelledby":l,...i,ref:n})})});UP.displayName=qS;var VS="SelectLabel",$S=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=BP(VS,r);return g.jsx(_e.div,{id:l.id,...i,ref:n})});$S.displayName=VS;var dc="SelectItem",[HP,GS]=To(dc),YS=x.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:s,...c}=e,f=Na(dc,r),d=_a(dc,r),h=f.value===i,[m,y]=x.useState(s??""),[b,w]=x.useState(!1),E=Ie(n,N=>d.itemRefCallback?.(N,i,l)),S=vr(),A=x.useRef("touch"),T=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(HP,{scope:r,value:i,disabled:l,textId:S,isSelected:h,onItemTextChange:x.useCallback(N=>{y(R=>R||(N?.textContent??"").trim())},[]),children:g.jsx($c.ItemSlot,{scope:r,value:i,disabled:l,textValue:m,children:g.jsx(_e.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:E,onFocus:pe(c.onFocus,()=>w(!0)),onBlur:pe(c.onBlur,()=>w(!1)),onClick:pe(c.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:pe(c.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:pe(c.onPointerDown,N=>{A.current=N.pointerType}),onPointerMove:pe(c.onPointerMove,N=>{A.current=N.pointerType,l?d.onItemLeave?.():A.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(c.onPointerLeave,N=>{N.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:pe(c.onKeyDown,N=>{d.searchRef?.current!==""&&N.key===" "||(AP.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})});YS.displayName=dc;var Dl="SelectItemText",KS=x.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...s}=e,c=Na(Dl,r),f=_a(Dl,r),d=GS(Dl,r),h=_P(Dl,r),[m,y]=x.useState(null),b=Ie(n,T=>y(T),d.onItemTextChange,T=>f.itemTextRefCallback?.(T,d.value,d.disabled)),w=m?.textContent,E=x.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:A}=h;return $t(()=>(S(E),()=>A(E)),[S,A,E]),g.jsxs(g.Fragment,{children:[g.jsx(_e.span,{id:d.textId,...s,ref:b}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?xo.createPortal(s.children,c.valueNode):null]})});KS.displayName=Dl;var XS="SelectItemIndicator",QS=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return GS(XS,r).isSelected?g.jsx(_e.span,{"aria-hidden":!0,...i,ref:n}):null});QS.displayName=XS;var kp="SelectScrollUpButton",ZS=x.forwardRef((e,n)=>{const r=_a(kp,e.__scopeSelect),i=jm(kp,e.__scopeSelect),[l,s]=x.useState(!1),c=Ie(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollTop>0;s(h)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(JS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});ZS.displayName=kp;var Ap="SelectScrollDownButton",WS=x.forwardRef((e,n)=>{const r=_a(Ap,e.__scopeSelect),i=jm(Ap,e.__scopeSelect),[l,s]=x.useState(!1),c=Ie(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(JS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});WS.displayName=Ap;var JS=x.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,s=_a("SelectScrollButton",r),c=x.useRef(null),f=Gc(r),d=x.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return x.useEffect(()=>()=>d(),[d]),$t(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(_e.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:pe(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:pe(l.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:pe(l.onPointerLeave,()=>{d()})})}),FP="SelectSeparator",eE=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return g.jsx(_e.div,{"aria-hidden":!0,...i,ref:n})});eE.displayName=FP;var Tp="SelectArrow",qP=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=Yc(r),s=Na(Tp,r),c=_a(Tp,r);return s.open&&c.position==="popper"?g.jsx(_m,{...l,...i,ref:n}):null});qP.displayName=Tp;var VP="SelectBubbleInput",tE=x.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=x.useRef(null),s=Ie(i,l),c=_S(n);return x.useEffect(()=>{const f=l.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&m){const y=new Event("change",{bubbles:!0});m.call(f,n),f.dispatchEvent(y)}},[c,n]),g.jsx(_e.select,{...r,style:{...Cw,...r.style},ref:s,defaultValue:n})});tE.displayName=VP;function nE(e){return e===""||e===void 0}function rE(e){const n=Mt(e),r=x.useRef(""),i=x.useRef(0),l=x.useCallback(c=>{const f=r.current+c;n(f),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(f)},[n]),s=x.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,s]}function aE(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=$P(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function $P(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var GP=MS,iE=DS,YP=PS,KP=LS,XP=zS,oE=IS,QP=FS,lE=$S,sE=YS,ZP=KS,WP=QS,uE=ZS,cE=WS,fE=eE;const Gb=GP,Yb=YP,Rp=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(iE,{ref:i,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,g.jsx(KP,{asChild:!0,children:g.jsx(Yw,{className:"h-4 w-4 opacity-50"})})]}));Rp.displayName=iE.displayName;const dE=x.forwardRef(({className:e,...n},r)=>g.jsx(uE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(tM,{className:"h-4 w-4"})}));dE.displayName=uE.displayName;const hE=x.forwardRef(({className:e,...n},r)=>g.jsx(cE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(Yw,{className:"h-4 w-4"})}));hE.displayName=cE.displayName;const Np=x.forwardRef(({className:e,children:n,position:r="popper",...i},l)=>g.jsx(XP,{children:g.jsxs(oE,{ref:l,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[g.jsx(dE,{}),g.jsx(QP,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),g.jsx(hE,{})]})}));Np.displayName=oE.displayName;const JP=x.forwardRef(({className:e,...n},r)=>g.jsx(lE,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",e),...n}));JP.displayName=lE.displayName;const ni=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(sE,{ref:i,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(WP,{children:g.jsx(Mc,{className:"h-4 w-4"})})}),g.jsx(ZP,{children:n})]}));ni.displayName=sE.displayName;const eL=x.forwardRef(({className:e,...n},r)=>g.jsx(fE,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));eL.displayName=fE.displayName;const Kc=hm,XU=H1,tL=pm,pE=x.forwardRef(({className:e,...n},r)=>g.jsx(rs,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));pE.displayName=rs.displayName;const ss=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(tL,{children:[g.jsx(pE,{}),g.jsxs(as,{ref:i,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(Lc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(oo,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ss.displayName=as.displayName;const us=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});us.displayName="DialogHeader";const mE=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});mE.displayName="DialogFooter";const cs=x.forwardRef(({className:e,...n},r)=>g.jsx(is,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",e),...n}));cs.displayName=is.displayName;const Ol=x.forwardRef(({className:e,...n},r)=>g.jsx(os,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));Ol.displayName=os.displayName;function Lh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ue("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function QU({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ue("inline-flex items-center gap-0.5",e),...n})}function ZU(){}function WU(){}function JU(e){const n=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&n.push(c),l=i+1,i=r.indexOf(",",l)}return n}function nL(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const rL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iL={};function Kb(e,n){return(iL.jsx?aL:rL).test(e)}const oL=/[ \t\n\f\r]/g;function lL(e){return typeof e=="object"?e.type==="text"?Xb(e.value):!1:Xb(e)}function Xb(e){return e.replace(oL,"")===""}class fs{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}fs.prototype.normal={};fs.prototype.property={};fs.prototype.space=void 0;function gE(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new fs(r,i,n)}function _p(e){return e.toLowerCase()}class bn{constructor(n,r){this.attribute=r,this.property=n}}bn.prototype.attribute="";bn.prototype.booleanish=!1;bn.prototype.boolean=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.commaSeparated=!1;bn.prototype.defined=!1;bn.prototype.mustUseProperty=!1;bn.prototype.number=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.property="";bn.prototype.spaceSeparated=!1;bn.prototype.space=void 0;let sL=0;const ze=ui(),Pt=ui(),Mp=ui(),he=ui(),pt=ui(),uo=ui(),Rn=ui();function ui(){return 2**++sL}const jp=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:Pt,commaOrSpaceSeparated:Rn,commaSeparated:uo,number:he,overloadedBoolean:Mp,spaceSeparated:pt},Symbol.toStringTag,{value:"Module"})),zh=Object.keys(jp);class Dm extends bn{constructor(n,r,i,l){let s=-1;if(super(n,r),Qb(this,"space",l),typeof i=="number")for(;++s<zh.length;){const c=zh[s];Qb(this,zh[s],(i&jp[c])===jp[c])}}}Dm.prototype.defined=!0;function Qb(e,n,r){r&&(e[n]=r)}function Ro(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new Dm(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[_p(i)]=i,r[_p(s.attribute)]=i}return new fs(n,r,e.space)}const yE=Ro({properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:pt,ariaCurrent:null,ariaDescribedBy:pt,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:pt,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:pt,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pt,ariaLevel:he,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:pt,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:pt,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Pt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function vE(e,n){return n in e?e[n]:n}function xE(e,n){return vE(e,n.toLowerCase())}const uL=Ro({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:uo,acceptCharset:pt,accessKey:pt,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:pt,autoFocus:ze,autoPlay:ze,blocking:pt,capture:null,charSet:null,checked:ze,cite:null,className:pt,cols:he,colSpan:null,content:null,contentEditable:Pt,controls:ze,controlsList:pt,coords:he|uo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:Mp,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:pt,height:he,hidden:Mp,high:he,href:null,hrefLang:null,htmlFor:pt,httpEquiv:pt,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:pt,itemRef:pt,itemScope:ze,itemType:pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,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:ze,optimum:he,pattern:null,ping:pt,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:pt,required:ze,reversed:ze,rows:he,rowSpan:he,sandbox:pt,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:ze,useMap:null,value:Pt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pt,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:xE}),cL=Ro({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",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:Rn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:pt,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:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,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:uo,g2:uo,glyphName:uo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:Rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:he,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:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rn,rev:Rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rn,requiredFeatures:Rn,requiredFonts:Rn,requiredFormats:Rn,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:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:Rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vE}),bE=Ro({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),wE=Ro({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xE}),SE=Ro({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),fL={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"},dL=/[A-Z]/g,Zb=/-[a-z]/g,hL=/^data[-\w.:]+$/i;function pL(e,n){const r=_p(n);let i=n,l=bn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&hL.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Zb,gL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Zb.test(s)){let c=s.replace(dL,mL);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Dm}return new l(i,n)}function mL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const yL=gE([yE,uL,bE,wE,SE],"html"),Om=gE([yE,cL,bE,wE,SE],"svg");function eH(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function vL(e){return e.join(" ").trim()}var eo={},Ih,Wb;function xL(){if(Wb)return Ih;Wb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
356
|
+
`,h="/",m="*",y="",b="comment",w="declaration";Ih=function(S,A){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];A=A||{};var T=1,N=1;function R(ie){var G=ie.match(n);G&&(T+=G.length);var ne=ie.lastIndexOf(d);N=~ne?ie.length-ne:N+ie.length}function D(){var ie={line:T,column:N};return function(G){return G.position=new P(ie),U(),G}}function P(ie){this.start=ie,this.end={line:T,column:N},this.source=A.source}P.prototype.content=S;function j(ie){var G=new Error(A.source+":"+T+":"+N+": "+ie);if(G.reason=ie,G.filename=A.source,G.line=T,G.column=N,G.source=S,!A.silent)throw G}function B(ie){var G=ie.exec(S);if(G){var ne=G[0];return R(ne),S=S.slice(ne.length),G}}function U(){B(r)}function Y(ie){var G;for(ie=ie||[];G=L();)G!==!1&&ie.push(G);return ie}function L(){var ie=D();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var G=2;y!=S.charAt(G)&&(m!=S.charAt(G)||h!=S.charAt(G+1));)++G;if(G+=2,y===S.charAt(G-1))return j("End of comment missing");var ne=S.slice(2,G-2);return N+=2,R(ne),S=S.slice(G),N+=2,ie({type:b,comment:ne})}}function J(){var ie=D(),G=B(i);if(G){if(L(),!B(l))return j("property missing ':'");var ne=B(s),z=ie({type:w,property:E(G[0].replace(e,y)),value:ne?E(ne[0].replace(e,y)):y});return B(c),z}}function W(){var ie=[];Y(ie);for(var G;G=J();)G!==!1&&(ie.push(G),Y(ie));return ie}return U(),W()};function E(S){return S?S.replace(f,y):y}return Ih}var Jb;function bL(){if(Jb)return eo;Jb=1;var e=eo&&eo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=r;var n=e(xL());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof l=="function";return c.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;f?l(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return eo}var Nl={},e0;function wL(){if(e0)return Nl;e0=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,f):h=h.replace(i,f),h.replace(n,c))};return Nl.camelCase=d,Nl}var _l,t0;function SL(){if(t0)return _l;t0=1;var e=_l&&_l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(bL()),r=wL();function i(l,s){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(f,d){f&&d&&(c[(0,r.camelCase)(f,s)]=d)}),c}return i.default=i,_l=i,_l}var EL=SL();const CL=bc(EL),EE=CE("end"),Pm=CE("start");function CE(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function kE(e){const n=Pm(e),r=EE(e);if(n&&r)return{start:n,end:r}}function Il(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n0(e.position):"start"in e||"end"in e?n0(e):"line"in e||"column"in e?Dp(e):""}function Dp(e){return r0(e&&e.line)+":"+r0(e&&e.column)}function n0(e){return Dp(e&&e.start)+"-"+Dp(e&&e.end)}function r0(e){return e&&typeof e=="number"?e:1}class nn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?l=n:!s.cause&&n&&(c=!0,l=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?s.ruleId=i:(s.source=i.slice(0,d),s.ruleId=i.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Il(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nn.prototype.file="";nn.prototype.name="";nn.prototype.reason="";nn.prototype.message="";nn.prototype.stack="";nn.prototype.column=void 0;nn.prototype.line=void 0;nn.prototype.ancestors=void 0;nn.prototype.cause=void 0;nn.prototype.fatal=void 0;nn.prototype.place=void 0;nn.prototype.ruleId=void 0;nn.prototype.source=void 0;const Lm={}.hasOwnProperty,kL=new Map,AL=/[A-Z]/g,TL=new Set(["table","tbody","thead","tfoot","tr"]),RL=new Set(["td","th"]),AE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NL(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=zL(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=LL(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Om:yL,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=TE(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function TE(e,n,r){if(n.type==="element")return _L(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ML(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return DL(e,n,r);if(n.type==="mdxjsEsm")return jL(e,n);if(n.type==="root")return OL(e,n,r);if(n.type==="text")return PL(e,n)}function _L(e,n,r){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Om,e.schema=l),e.ancestors.push(n);const s=NE(e,n.tagName,!1),c=IL(e,n);let f=Im(e,n);return TL.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!lL(d):!0})),RE(e,c,s,n),zm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function ML(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Yl(e,n.position)}function jL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yl(e,n.position)}function DL(e,n,r){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=Om,e.schema=l),e.ancestors.push(n);const s=n.name===null?e.Fragment:NE(e,n.name,!0),c=BL(e,n),f=Im(e,n);return RE(e,c,s,n),zm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function OL(e,n,r){const i={};return zm(i,Im(e,n)),e.create(n,e.Fragment,i,r)}function PL(e,n){return n.value}function RE(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function zm(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function LL(e,n,r){return i;function i(l,s,c,f){const h=Array.isArray(c.children)?r:n;return f?h(s,c,f):h(s,c)}}function zL(e,n){return r;function r(i,l,s,c){const f=Array.isArray(s.children),d=Pm(i);return n(l,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function IL(e,n){const r={};let i,l;for(l in n.properties)if(l!=="children"&&Lm.call(n.properties,l)){const s=UL(e,l,n.properties[l]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&RL.has(n.tagName)?i=f:r[c]=f}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function BL(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Yl(e,n.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Yl(e,n.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function Im(e,n){const r=[];let i=-1;const l=e.passKeys?new Map:kL;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=l.get(d)||0;c=d+"-"+h,l.set(d,h+1)}}const f=TE(e,s,c);f!==void 0&&r.push(f)}return r}function UL(e,n,r){const i=pL(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?nL(r):vL(r)),i.property==="style"){let l=typeof r=="object"?r:HL(e,String(r));return e.stylePropertyNameCase==="css"&&(l=FL(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?fL[i.property]||i.property:i.attribute,r]}}function HL(e,n){try{return CL(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new nn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=AE+"#cannot-parse-style-attribute",l}}function NE(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let s=-1,c;for(;++s<l.length;){const f=Kb(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Kb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return Lm.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Yl(e)}function Yl(e,n){const r=new nn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=AE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function FL(e){const n={};let r;for(r in e)Lm.call(e,r)&&(n[qL(r)]=e[r]);return n}function qL(e){let n=e.replace(AL,VL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function VL(e){return"-"+e.toLowerCase()}const Bh={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"]},$L={};function Bm(e,n){const r=$L,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return _E(e,i,l)}function _E(e,n,r){if(GL(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a0(e.children,n,r)}return Array.isArray(e)?a0(e,n,r):""}function a0(e,n,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=_E(e[l],n,r);return i.join("")}function GL(e){return!!(e&&typeof e=="object")}const i0=document.createElement("i");function Um(e){const n="&"+e+";";i0.innerHTML=n;const r=i0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Mn(e,n,r,i){const l=e.length;let s=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Fn(e,n){return e.length>0?(Mn(e,e.length,0,n),e):n}const o0={}.hasOwnProperty;function ME(e){const n={};let r=-1;for(;++r<e.length;)YL(n,e[r]);return n}function YL(e,n){let r;for(r in n){const l=(o0.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){o0.call(l,c)||(l[c]=[]);const f=s[c];KL(l[c],Array.isArray(f)?f:f?[f]:[])}}}function KL(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);Mn(e,0,0,i)}function jE(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=Ma(/[A-Za-z]/),tn=Ma(/[\dA-Za-z]/),XL=Ma(/[#-'*+\--9=?A-Z^-~]/);function hc(e){return e!==null&&(e<32||e===127)}const Op=Ma(/\d/),QL=Ma(/[\dA-Fa-f]/),ZL=Ma(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function ct(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const Xc=Ma(new RegExp("\\p{P}|\\p{S}","u")),si=Ma(/\s/);function Ma(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function No(e){const n=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&tn(e.charCodeAt(r+1))&&tn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),l=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return n.join("")+e.slice(i)}function We(e,n,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Ge(d)?(e.enter(r),f(d)):n(d)}function f(d){return Ge(d)&&s++<l?(e.consume(d),f):(e.exit(r),n(d))}}const WL={tokenize:JL};function JL(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),We(e,n,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const ez={tokenize:tz},l0={tokenize:nz};function tz(e){const n=this,r=[];let i=0,l,s,c;return f;function f(R){if(i<r.length){const D=r[i];return n.containerState=D[1],e.attempt(D[0].continuation,d,h)(R)}return h(R)}function d(R){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&N();const D=n.events.length;let P=D,j;for(;P--;)if(n.events[P][0]==="exit"&&n.events[P][1].type==="chunkFlow"){j=n.events[P][1].end;break}T(i);let B=D;for(;B<n.events.length;)n.events[B][1].end={...j},B++;return Mn(n.events,P+1,0,n.events.slice(D)),n.events.length=B,h(R)}return f(R)}function h(R){if(i===r.length){if(!l)return b(R);if(l.currentConstruct&&l.currentConstruct.concrete)return E(R);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(l0,m,y)(R)}function m(R){return l&&N(),T(i),b(R)}function y(R){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,E(R)}function b(R){return n.containerState={},e.attempt(l0,w,E)(R)}function w(R){return i++,r.push([n.currentConstruct,n.containerState]),b(R)}function E(R){if(R===null){l&&N(),T(0),e.consume(R);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),S(R)}function S(R){if(R===null){A(e.exit("chunkFlow"),!0),T(0),e.consume(R);return}return Ae(R)?(e.consume(R),A(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(R),S)}function A(R,D){const P=n.sliceStream(R);if(D&&P.push(null),R.previous=s,s&&(s.next=R),s=R,l.defineSkip(R.start),l.write(P),n.parser.lazy[R.start.line]){let j=l.events.length;for(;j--;)if(l.events[j][1].start.offset<c&&(!l.events[j][1].end||l.events[j][1].end.offset>c))return;const B=n.events.length;let U=B,Y,L;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(Y){L=n.events[U][1].end;break}Y=!0}for(T(i),j=B;j<n.events.length;)n.events[j][1].end={...L},j++;Mn(n.events,U+1,0,n.events.slice(B)),n.events.length=j}}function T(R){let D=r.length;for(;D-- >R;){const P=r[D];n.containerState=P[1],P[0].exit.call(n,e)}r.length=R}function N(){l.write([null]),s=void 0,l=void 0,n.containerState._closeFlow=void 0}}function nz(e,n,r){return We(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function po(e){if(e===null||ct(e)||si(e))return 1;if(Xc(e))return 2}function Qc(e,n,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const Pp={name:"attention",resolveAll:rz,tokenize:az};function rz(e,n){let r=-1,i,l,s,c,f,d,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[i][1].end},b={...e[r][1].start};s0(y,-d),s0(b,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Fn(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=Fn(h,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=Fn(h,Qc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),h=Fn(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Fn(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,Mn(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function az(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=po(i);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),m=po(d),y=!m||m===2&&l||r.includes(d),b=!l||l===2&&m||r.includes(i);return h._open=!!(s===42?y:y&&(l||!b)),h._close=!!(s===42?b:b&&(m||!y)),n(d)}}function s0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const iz={name:"autolink",tokenize:oz};function oz(e,n,r){let i=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return sn(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||tn(w)?(i=1,f(w)):h(w)}function f(w){return w===58?(e.consume(w),i=0,d):(w===43||w===45||w===46||tn(w))&&i++<32?(e.consume(w),f):(i=0,h(w))}function d(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):w===null||w===32||w===60||hc(w)?r(w):(e.consume(w),d)}function h(w){return w===64?(e.consume(w),m):XL(w)?(e.consume(w),h):r(w)}function m(w){return tn(w)?y(w):r(w)}function y(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):b(w)}function b(w){if((w===45||tn(w))&&i++<63){const E=w===45?b:y;return e.consume(w),E}return r(w)}}const ds={partial:!0,tokenize:lz};function lz(e,n,r){return i;function i(s){return Ge(s)?We(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ae(s)?n(s):r(s)}}const DE={continuation:{tokenize:uz},exit:cz,name:"blockQuote",tokenize:sz};function sz(e,n,r){const i=this;return l;function l(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Ge(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function uz(e,n,r){const i=this;return l;function l(c){return Ge(c)?We(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(DE,n,r)(c)}}function cz(e){e.exit("blockQuote")}const OE={name:"characterEscape",tokenize:fz};function fz(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return ZL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const PE={name:"characterReference",tokenize:dz};function dz(e,n,r){const i=this;let l=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=tn,m(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=QL,m):(e.enter("characterReferenceValue"),s=7,c=Op,m(y))}function m(y){if(y===59&&l){const b=e.exit("characterReferenceValue");return c===tn&&!Um(i.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&l++<s?(e.consume(y),m):r(y)}}const u0={partial:!0,tokenize:pz},c0={concrete:!0,name:"codeFenced",tokenize:hz};function hz(e,n,r){const i=this,l={partial:!0,tokenize:P};let s=0,c=0,f;return d;function d(j){return h(j)}function h(j){const B=i.events[i.events.length-1];return s=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,f=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(c++,e.consume(j),m):c<3?r(j):(e.exit("codeFencedFenceSequence"),Ge(j)?We(e,y,"whitespace")(j):y(j))}function y(j){return j===null||Ae(j)?(e.exit("codeFencedFence"),i.interrupt?n(j):e.check(u0,S,D)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(j))}function b(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):Ge(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,w,"whitespace")(j)):j===96&&j===f?r(j):(e.consume(j),b)}function w(j){return j===null||Ae(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(j))}function E(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?r(j):(e.consume(j),E)}function S(j){return e.attempt(l,D,A)(j)}function A(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),T}function T(j){return s>0&&Ge(j)?We(e,N,"linePrefix",s+1)(j):N(j)}function N(j){return j===null||Ae(j)?e.check(u0,S,D)(j):(e.enter("codeFlowValue"),R(j))}function R(j){return j===null||Ae(j)?(e.exit("codeFlowValue"),N(j)):(e.consume(j),R)}function D(j){return e.exit("codeFenced"),n(j)}function P(j,B,U){let Y=0;return L;function L(ne){return j.enter("lineEnding"),j.consume(ne),j.exit("lineEnding"),J}function J(ne){return j.enter("codeFencedFence"),Ge(ne)?We(j,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):W(ne)}function W(ne){return ne===f?(j.enter("codeFencedFenceSequence"),ie(ne)):U(ne)}function ie(ne){return ne===f?(Y++,j.consume(ne),ie):Y>=c?(j.exit("codeFencedFenceSequence"),Ge(ne)?We(j,G,"whitespace")(ne):G(ne)):U(ne)}function G(ne){return ne===null||Ae(ne)?(j.exit("codeFencedFence"),B(ne)):U(ne)}}}function pz(e,n,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}const Uh={name:"codeIndented",tokenize:gz},mz={partial:!0,tokenize:yz};function gz(e,n,r){const i=this;return l;function l(h){return e.enter("codeIndented"),We(e,s,"linePrefix",5)(h)}function s(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?d(h):Ae(h)?e.attempt(mz,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function yz(e,n,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):We(e,s,"linePrefix",5)(c)}function s(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Ae(c)?l(c):r(c)}}const vz={name:"codeText",previous:bz,resolve:xz,tokenize:wz};function xz(e){let n=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function bz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wz(e,n,r){let i=0,l,s;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(s=e.enter("codeTextSequence"),l=0,m(y)):Ae(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ae(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function m(y){return y===96?(e.consume(y),l++,m):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",h(y))}}class Sz{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const l=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Ml(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ml(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ml(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Ml(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ml(this.left,r.reverse())}}}function Ml(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function LE(e){const n={};let r=-1,i,l,s,c,f,d,h;const m=new Sz(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Ez(m,r)),r=n[r],h=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...m.get(l)[1].start},f=m.slice(l,r),f.unshift(i),m.splice(l,r-l+1,f))}}return Mn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Ez(e,n){const r=e.get(n)[1],i=e.get(n)[2];let l=n-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let m,y,b=-1,w=r,E=0,S=0;const A=[S];for(;w;){for(;e.get(++l)[1]!==w;);s.push(l),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),y&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=w,w=w.next}for(w=r;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(S=b+1,A.push(S),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):A.pop(),b=A.length;b--;){const T=f.slice(A[b],A[b+1]),N=s.pop();d.push([N,N+T.length-1]),e.splice(N,2,T)}for(d.reverse(),b=-1;++b<d.length;)h[E+d[b][0]]=E+d[b][1],E+=d[b][1]-d[b][0]-1;return h}const Cz={resolve:Az,tokenize:Tz},kz={partial:!0,tokenize:Rz};function Az(e){return LE(e),e}function Tz(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):Ae(f)?e.check(kz,c,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function Rz(e,n,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),We(e,s,"linePrefix")}function s(c){if(c===null||Ae(c))return r(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,r,n)(c)}}function zE(e,n,r,i,l,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(T){return T===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(T),e.exit(s),b):T===null||T===32||T===41||hc(T)?r(T):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(T))}function b(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(l),e.exit(i),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(T))}function w(T){return T===62?(e.exit("chunkString"),e.exit(f),b(T)):T===null||T===60||Ae(T)?r(T):(e.consume(T),T===92?E:w)}function E(T){return T===60||T===62||T===92?(e.consume(T),w):w(T)}function S(T){return!m&&(T===null||T===41||ct(T))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(T)):m<h&&T===40?(e.consume(T),m++,S):T===41?(e.consume(T),m--,S):T===null||T===32||T===40||hc(T)?r(T):(e.consume(T),T===92?A:S)}function A(T){return T===40||T===41||T===92?(e.consume(T),S):S(T)}}function IE(e,n,r,i,l,s){const c=this;let f=0,d;return h;function h(w){return e.enter(i),e.enter(l),e.consume(w),e.exit(l),e.enter(s),m}function m(w){return f>999||w===null||w===91||w===93&&!d||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(s),e.enter(l),e.consume(w),e.exit(l),e.exit(i),n):Ae(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||w===91||w===93||Ae(w)||f++>999?(e.exit("chunkString"),m(w)):(e.consume(w),d||(d=!Ge(w)),w===92?b:y)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,y):y(w)}}function BE(e,n,r,i,l,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(l),e.consume(b),e.exit(l),c=b===40?41:b,d):r(b)}function d(b){return b===c?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),n):(e.enter(s),h(b))}function h(b){return b===c?(e.exit(s),d(c)):b===null?r(b):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),We(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Ae(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}function Bl(e,n){let r;return i;function i(l){return Ae(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Ge(l)?We(e,i,r?"linePrefix":"lineSuffix")(l):n(l)}}const Nz={name:"definition",tokenize:Mz},_z={partial:!0,tokenize:jz};function Mz(e,n,r){const i=this;let l;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return IE.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),d):r(w)}function d(w){return ct(w)?Bl(e,h)(w):h(w)}function h(w){return zE(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(_z,y,y)(w)}function y(w){return Ge(w)?We(e,b,"whitespace")(w):b(w)}function b(w){return w===null||Ae(w)?(e.exit("definition"),i.parser.defined.push(l),n(w)):r(w)}}function jz(e,n,r){return i;function i(f){return ct(f)?Bl(e,l)(f):r(f)}function l(f){return BE(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ge(f)?We(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?n(f):r(f)}}const Dz={name:"hardBreakEscape",tokenize:Oz};function Oz(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Ae(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const Pz={name:"headingAtx",resolve:Lz,tokenize:zz};function Lz(e,n){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Mn(e,i,r-i+1,[["enter",l,n],["enter",s,n],["exit",s,n],["exit",l,n]])),e}function zz(e,n,r){let i=0;return l;function l(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ct(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Ae(m)?(e.exit("atxHeading"),n(m)):Ge(m)?We(e,f,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||ct(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),h)}}const Iz=["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"],f0=["pre","script","style","textarea"],Bz={concrete:!0,name:"htmlFlow",resolveTo:Fz,tokenize:qz},Uz={partial:!0,tokenize:$z},Hz={partial:!0,tokenize:Vz};function Fz(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function qz(e,n,r){const i=this;let l,s,c,f,d;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),s=!0,S):M===63?(e.consume(M),l=3,i.interrupt?n:k):sn(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function b(M){return M===45?(e.consume(M),l=2,w):M===91?(e.consume(M),l=5,f=0,E):sn(M)?(e.consume(M),l=4,i.interrupt?n:k):r(M)}function w(M){return M===45?(e.consume(M),i.interrupt?n:k):r(M)}function E(M){const se="CDATA[";return M===se.charCodeAt(f++)?(e.consume(M),f===se.length?i.interrupt?n:W:E):r(M)}function S(M){return sn(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function A(M){if(M===null||M===47||M===62||ct(M)){const se=M===47,Se=c.toLowerCase();return!se&&!s&&f0.includes(Se)?(l=1,i.interrupt?n(M):W(M)):Iz.includes(c.toLowerCase())?(l=6,se?(e.consume(M),T):i.interrupt?n(M):W(M)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?N(M):R(M))}return M===45||tn(M)?(e.consume(M),c+=String.fromCharCode(M),A):r(M)}function T(M){return M===62?(e.consume(M),i.interrupt?n:W):r(M)}function N(M){return Ge(M)?(e.consume(M),N):L(M)}function R(M){return M===47?(e.consume(M),L):M===58||M===95||sn(M)?(e.consume(M),D):Ge(M)?(e.consume(M),R):L(M)}function D(M){return M===45||M===46||M===58||M===95||tn(M)?(e.consume(M),D):P(M)}function P(M){return M===61?(e.consume(M),j):Ge(M)?(e.consume(M),P):R(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),d=M,B):Ge(M)?(e.consume(M),j):U(M)}function B(M){return M===d?(e.consume(M),d=null,Y):M===null||Ae(M)?r(M):(e.consume(M),B)}function U(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||ct(M)?P(M):(e.consume(M),U)}function Y(M){return M===47||M===62||Ge(M)?R(M):r(M)}function L(M){return M===62?(e.consume(M),J):r(M)}function J(M){return M===null||Ae(M)?W(M):Ge(M)?(e.consume(M),J):r(M)}function W(M){return M===45&&l===2?(e.consume(M),z):M===60&&l===1?(e.consume(M),Q):M===62&&l===4?(e.consume(M),Z):M===63&&l===3?(e.consume(M),k):M===93&&l===5?(e.consume(M),re):Ae(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(Uz,ce,ie)(M)):M===null||Ae(M)?(e.exit("htmlFlowData"),ie(M)):(e.consume(M),W)}function ie(M){return e.check(Hz,G,ce)(M)}function G(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ne}function ne(M){return M===null||Ae(M)?ie(M):(e.enter("htmlFlowData"),W(M))}function z(M){return M===45?(e.consume(M),k):W(M)}function Q(M){return M===47?(e.consume(M),c="",F):W(M)}function F(M){if(M===62){const se=c.toLowerCase();return f0.includes(se)?(e.consume(M),Z):W(M)}return sn(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),F):W(M)}function re(M){return M===93?(e.consume(M),k):W(M)}function k(M){return M===62?(e.consume(M),Z):M===45&&l===2?(e.consume(M),k):W(M)}function Z(M){return M===null||Ae(M)?(e.exit("htmlFlowData"),ce(M)):(e.consume(M),Z)}function ce(M){return e.exit("htmlFlow"),n(M)}}function Vz(e,n,r){const i=this;return l;function l(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}function $z(e,n,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ds,n,r)}}const Gz={name:"htmlText",tokenize:Yz};function Yz(e,n,r){const i=this;let l,s,c;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),P):k===63?(e.consume(k),R):sn(k)?(e.consume(k),U):r(k)}function h(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,E):sn(k)?(e.consume(k),N):r(k)}function m(k){return k===45?(e.consume(k),w):r(k)}function y(k){return k===null?r(k):k===45?(e.consume(k),b):Ae(k)?(c=y,Q(k)):(e.consume(k),y)}function b(k){return k===45?(e.consume(k),w):y(k)}function w(k){return k===62?z(k):k===45?b(k):y(k)}function E(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?S:E):r(k)}function S(k){return k===null?r(k):k===93?(e.consume(k),A):Ae(k)?(c=S,Q(k)):(e.consume(k),S)}function A(k){return k===93?(e.consume(k),T):S(k)}function T(k){return k===62?z(k):k===93?(e.consume(k),T):S(k)}function N(k){return k===null||k===62?z(k):Ae(k)?(c=N,Q(k)):(e.consume(k),N)}function R(k){return k===null?r(k):k===63?(e.consume(k),D):Ae(k)?(c=R,Q(k)):(e.consume(k),R)}function D(k){return k===62?z(k):R(k)}function P(k){return sn(k)?(e.consume(k),j):r(k)}function j(k){return k===45||tn(k)?(e.consume(k),j):B(k)}function B(k){return Ae(k)?(c=B,Q(k)):Ge(k)?(e.consume(k),B):z(k)}function U(k){return k===45||tn(k)?(e.consume(k),U):k===47||k===62||ct(k)?Y(k):r(k)}function Y(k){return k===47?(e.consume(k),z):k===58||k===95||sn(k)?(e.consume(k),L):Ae(k)?(c=Y,Q(k)):Ge(k)?(e.consume(k),Y):z(k)}function L(k){return k===45||k===46||k===58||k===95||tn(k)?(e.consume(k),L):J(k)}function J(k){return k===61?(e.consume(k),W):Ae(k)?(c=J,Q(k)):Ge(k)?(e.consume(k),J):Y(k)}function W(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,ie):Ae(k)?(c=W,Q(k)):Ge(k)?(e.consume(k),W):(e.consume(k),G)}function ie(k){return k===l?(e.consume(k),l=void 0,ne):k===null?r(k):Ae(k)?(c=ie,Q(k)):(e.consume(k),ie)}function G(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||ct(k)?Y(k):(e.consume(k),G)}function ne(k){return k===47||k===62||ct(k)?Y(k):r(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):r(k)}function Q(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),F}function F(k){return Ge(k)?We(e,re,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):re(k)}function re(k){return e.enter("htmlTextData"),c(k)}}const Hm={name:"labelEnd",resolveAll:Zz,resolveTo:Wz,tokenize:Jz},Kz={tokenize:e3},Xz={tokenize:t3},Qz={tokenize:n3};function Zz(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==r.length&&Mn(e,0,e.length,r),e}function Wz(e,n){let r=e.length,i=0,l,s,c,f;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Fn(f,e.slice(s+1,s+i+3)),f=Fn(f,[["enter",m,n]]),f=Fn(f,Qc(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=Fn(f,[["exit",m,n],e[c-2],e[c-1],["exit",h,n]]),f=Fn(f,e.slice(c+1)),f=Fn(f,[["exit",d,n]]),Mn(e,s,e.length,f),e}function Jz(e,n,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(b){return s?s._inactive?y(b):(c=i.parser.defined.includes(ar(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):r(b)}function d(b){return b===40?e.attempt(Kz,m,c?m:y)(b):b===91?e.attempt(Xz,m,c?h:y)(b):c?m(b):y(b)}function h(b){return e.attempt(Qz,m,y)(b)}function m(b){return n(b)}function y(b){return s._balanced=!0,r(b)}}function e3(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return ct(y)?Bl(e,s)(y):s(y)}function s(y){return y===41?m(y):zE(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return ct(y)?Bl(e,d)(y):m(y)}function f(y){return r(y)}function d(y){return y===34||y===39||y===40?BE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return ct(y)?Bl(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):r(y)}}function t3(e,n,r){const i=this;return l;function l(f){return IE.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function n3(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const r3={name:"labelStartImage",resolveAll:Hm.resolveAll,tokenize:a3};function a3(e,n,r){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):n(f)}}const i3={name:"labelStartLink",resolveAll:Hm.resolveAll,tokenize:o3};function o3(e,n,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const Hh={name:"lineEnding",tokenize:l3};function l3(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),We(e,n,"linePrefix")}}const tc={name:"thematicBreak",tokenize:s3};function s3(e,n,r){let i=0,l;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,f(h)}function f(h){return h===l?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===l?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ge(h)?We(e,f,"whitespace")(h):f(h))}}const xn={continuation:{tokenize:d3},exit:p3,name:"list",tokenize:f3},u3={partial:!0,tokenize:m3},c3={partial:!0,tokenize:h3};function f3(e,n,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(w){const E=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:Op(w)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(tc,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(w)}return r(w)}function d(w){return Op(w)&&++c<10?(e.consume(w),d):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(ds,i.interrupt?r:m,e.attempt(u3,b,y))}function m(w){return i.containerState.initialBlankLine=!0,s++,b(w)}function y(w){return Ge(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),b):r(w)}function b(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(w)}}function d3(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ds,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,We(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!Ge(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(c3,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,We(e,e.attempt(xn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function h3(e,n,r){const i=this;return We(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(s):r(s)}}function p3(e){e.exit(this.containerState.type)}function m3(e,n,r){const i=this;return We(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Ge(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const d0={name:"setextUnderline",resolveTo:g3,tokenize:y3};function g3(e,n){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,n]),e.splice(s+1,0,["exit",e[i][1],n]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function y3(e,n,r){const i=this;let l;return s;function s(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===l?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ge(h)?We(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const v3={tokenize:x3};function x3(e){const n=this,r=e.attempt(ds,i,e.attempt(this.parser.constructs.flowInitial,l,We(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Cz,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const b3={resolveAll:HE()},w3=UE("string"),S3=UE("text");function UE(e){return{resolveAll:HE(e==="text"?E3:void 0),tokenize:n};function n(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,f);return c;function c(m){return h(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return h(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function h(m){if(m===null)return!0;const y=l[m];let b=-1;if(y)for(;++b<y.length;){const w=y[b];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function HE(e){return n;function n(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function E3(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=n.sliceStream(i);let s=l.length,c=-1,f=0,d;for(;s--;){const h=l[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const h={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const C3={42:xn,43:xn,45:xn,48:xn,49:xn,50:xn,51:xn,52:xn,53:xn,54:xn,55:xn,56:xn,57:xn,62:DE},k3={91:Nz},A3={[-2]:Uh,[-1]:Uh,32:Uh},T3={35:Pz,42:tc,45:[d0,tc],60:Bz,61:d0,95:tc,96:c0,126:c0},R3={38:PE,92:OE},N3={[-5]:Hh,[-4]:Hh,[-3]:Hh,33:r3,38:PE,42:Pp,60:[iz,Gz],91:i3,92:[Dz,OE],93:Hm,95:Pp,96:vz},_3={null:[Pp,b3]},M3={null:[42,95]},j3={null:[]},D3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:M3,contentInitial:k3,disable:j3,document:C3,flow:T3,flowInitial:A3,insideSpan:_3,string:R3,text:N3},Symbol.toStringTag,{value:"Module"}));function O3(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],f=[];const d={attempt:B(P),check:B(j),consume:N,enter:R,exit:D,interrupt:B(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:y};let m=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function y(J){return c=Fn(c,J),A(),c[c.length-1]!==null?[]:(U(n,0),h.events=Qc(s,h.events,h),h.events)}function b(J,W){return L3(w(J),W)}function w(J){return P3(c,J)}function E(){const{_bufferIndex:J,_index:W,line:ie,column:G,offset:ne}=i;return{_bufferIndex:J,_index:W,line:ie,column:G,offset:ne}}function S(J){l[J.line]=J.column,L()}function A(){let J;for(;i._index<c.length;){const W=c[i._index];if(typeof W=="string")for(J=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===J&&i._bufferIndex<W.length;)T(W.charCodeAt(i._bufferIndex));else T(W)}}function T(J){m=m(J)}function N(J){Ae(J)?(i.line++,i.column=1,i.offset+=J===-3?2:1,L()):J!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=J}function R(J,W){const ie=W||{};return ie.type=J,ie.start=E(),h.events.push(["enter",ie,h]),f.push(ie),ie}function D(J){const W=f.pop();return W.end=E(),h.events.push(["exit",W,h]),W}function P(J,W){U(J,W.from)}function j(J,W){W.restore()}function B(J,W){return ie;function ie(G,ne,z){let Q,F,re,k;return Array.isArray(G)?ce(G):"tokenize"in G?ce([G]):Z(G);function Z(me){return le;function le(ve){const He=ve!==null&&me[ve],Ce=ve!==null&&me.null,Oe=[...Array.isArray(He)?He:He?[He]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return ce(Oe)(ve)}}function ce(me){return Q=me,F=0,me.length===0?z:M(me[F])}function M(me){return le;function le(ve){return k=Y(),re=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(W?Object.assign(Object.create(h),W):h,d,se,Se)(ve)}}function se(me){return J(re,k),ne}function Se(me){return k.restore(),++F<Q.length?M(Q[F]):z}}}function U(J,W){J.resolveAll&&!s.includes(J)&&s.push(J),J.resolve&&Mn(h.events,W,h.events.length-W,J.resolve(h.events.slice(W),h)),J.resolveTo&&(h.events=J.resolveTo(h.events,h))}function Y(){const J=E(),W=h.previous,ie=h.currentConstruct,G=h.events.length,ne=Array.from(f);return{from:G,restore:z};function z(){i=J,h.previous=W,h.currentConstruct=ie,h.events.length=G,f=ne,L()}}function L(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function P3(e,n){const r=n.start._index,i=n.start._bufferIndex,l=n.end._index,s=n.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function L3(e,n){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
357
|
+
`;break}case-3:{c=`\r
|
|
358
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function z3(e){const i={constructs:ME([D3,...(e||{}).extensions||[]]),content:l(WL),defined:[],document:l(ez),flow:l(v3),lazy:{},string:l(w3),text:l(S3)};return i;function l(s){return c;function c(f){return O3(i,s,f)}}}function I3(e){for(;!LE(e););return e}const h0=/[\0\t\n\r]/g;function B3(){let e=1,n="",r=!0,i;return l;function l(s,c,f){const d=[];let h,m,y,b,w;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),y=0,n="",r&&(s.charCodeAt(0)===65279&&y++,r=void 0);y<s.length;){if(h0.lastIndex=y,h=h0.exec(s),b=h&&h.index!==void 0?h.index:s.length,w=s.charCodeAt(b),!h){n=s.slice(y);break}if(w===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(s.slice(y,b)),e+=b-y),w){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const U3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function H3(e){return e.replace(U3,F3)}function F3(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return jE(r.slice(s?2:1),s?16:10)}return Um(r)||e}const FE={}.hasOwnProperty;function q3(e,n,r){return typeof n!="string"&&(r=n,n=void 0),V3(r)(I3(z3(r).document().write(B3()(e,n,!0))))}function V3(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Qn),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(Xt),blockQuote:s(Ce),characterEscape:Y,characterReference:Y,codeFenced:s(Oe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Oe,c),codeText:s(Xe,c),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(Ct),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(kt),hardBreakEscape:s(Xn),hardBreakTrailing:s(Xn),htmlFlow:s(ft,c),htmlFlowData:Y,htmlText:s(ft,c),htmlTextData:Y,image:s(_o),label:c,link:s(Qn),listItem:s(Qr),listItemValue:b,listOrdered:s(ja,y),listUnordered:s(ja),paragraph:s(di),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Xt),strong:s(Da),thematicBreak:s(Zr)},exit:{atxHeading:d(),atxHeadingSequence:P,autolink:d(),autolinkEmail:He,autolinkProtocol:ve,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:le,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:w,codeFencedFenceMeta:E,codeFlowValue:L,codeIndented:d(T),codeText:d(ne),codeTextData:L,data:L,definition:d(),definitionDestinationString:D,definitionLabelString:N,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(W),hardBreakTrailing:d(W),htmlFlow:d(ie),htmlFlowData:L,htmlText:d(G),htmlTextData:L,image:d(Q),label:re,labelText:F,lineEnding:J,link:d(z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:se,resourceDestinationString:k,resourceTitleString:Z,resource:ce,setextHeading:d(U),setextHeadingLineSequence:B,setextHeadingText:j,strong:d(),thematicBreak:d()}};qE(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(ee){let de={type:"root",children:[]};const ke={stack:[de],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:m,data:r},Te=[];let et=-1;for(;++et<ee.length;)if(ee[et][1].type==="listOrdered"||ee[et][1].type==="listUnordered")if(ee[et][0]==="enter")Te.push(et);else{const rn=Te.pop();et=l(ee,rn,et)}for(et=-1;++et<ee.length;){const rn=n[ee[et][0]];FE.call(rn,ee[et][1].type)&&rn[ee[et][1].type].call(Object.assign({sliceSerialize:ee[et][2].sliceSerialize},ke),ee[et][1])}if(ke.tokenStack.length>0){const rn=ke.tokenStack[ke.tokenStack.length-1];(rn[1]||p0).call(ke,void 0,rn[0])}for(de.position={start:wa(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:wa(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<n.transforms.length;)de=n.transforms[et](de)||de;return de}function l(ee,de,ke){let Te=de-1,et=-1,rn=!1,Zn,Qt,jn,an;for(;++Te<=ke;){const At=ee[Te];switch(At[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{At[0]==="enter"?et++:et--,an=void 0;break}case"lineEndingBlank":{At[0]==="enter"&&(Zn&&!an&&!et&&!jn&&(jn=Te),an=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:an=void 0}if(!et&&At[0]==="enter"&&At[1].type==="listItemPrefix"||et===-1&&At[0]==="exit"&&(At[1].type==="listUnordered"||At[1].type==="listOrdered")){if(Zn){let Zt=Te;for(Qt=void 0;Zt--;){const fn=ee[Zt];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;Qt&&(ee[Qt][1].type="lineEndingBlank",rn=!0),fn[1].type="lineEnding",Qt=Zt}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}jn&&(!Qt||jn<Qt)&&(Zn._spread=!0),Zn.end=Object.assign({},Qt?ee[Qt][1].start:At[1].end),ee.splice(Qt||Te,0,["exit",Zn,At[2]]),Te++,ke++}if(At[1].type==="listItemPrefix"){const Zt={type:"listItem",_spread:!1,start:Object.assign({},At[1].start),end:void 0};Zn=Zt,ee.splice(Te,0,["enter",Zt,At[2]]),Te++,ke++,jn=void 0,an=!0}}}return ee[de][1]._spread=rn,ke}function s(ee,de){return ke;function ke(Te){f.call(this,ee(Te),Te),de&&de.call(this,Te)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ee,de,ke){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,ke||void 0]),ee.position={start:wa(de.start),end:void 0}}function d(ee){return de;function de(ke){ee&&ee.call(this,ke),h.call(this,ke)}}function h(ee,de){const ke=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==ee.type&&(de?de.call(this,ee,Te[0]):(Te[1]||p0).call(this,ee,Te[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Il({start:ee.start,end:ee.end})+"): it’s not open");ke.position.end=wa(ee.end)}function m(){return Bm(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function w(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function E(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function N(ee){const de=this.resume(),ke=this.stack[this.stack.length-1];ke.label=de,ke.identifier=ar(this.sliceSerialize(ee)).toLowerCase()}function R(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function D(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function P(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const ke=this.sliceSerialize(ee).length;de.depth=ke}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function B(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(ee){const ke=this.stack[this.stack.length-1].children;let Te=ke[ke.length-1];(!Te||Te.type!=="text")&&(Te=hi(),Te.position={start:wa(ee.start),end:void 0},ke.push(Te)),this.stack.push(Te)}function L(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=wa(ee.end)}function J(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=de.children[de.children.length-1];ke.position.end=wa(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(de.type)&&(Y.call(this,ee),L.call(this,ee))}function W(){this.data.atHardBreak=!0}function ie(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function G(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function ne(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function z(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Q(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function F(ee){const de=this.sliceSerialize(ee),ke=this.stack[this.stack.length-2];ke.label=H3(de),ke.identifier=ar(de).toLowerCase()}function re(){const ee=this.stack[this.stack.length-1],de=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Te=ee.children;ke.children=Te}else ke.alt=de}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function Z(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function ce(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function se(ee){const de=this.resume(),ke=this.stack[this.stack.length-1];ke.label=de,ke.identifier=ar(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Se(ee){this.data.characterReferenceType=ee.type}function me(ee){const de=this.sliceSerialize(ee),ke=this.data.characterReferenceType;let Te;ke?(Te=jE(de,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=Um(de);const et=this.stack[this.stack.length-1];et.value+=Te}function le(ee){const de=this.stack.pop();de.position.end=wa(ee.end)}function ve(ee){L.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function He(ee){L.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function Ce(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Xe(){return{type:"inlineCode",value:""}}function Ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function kt(){return{type:"emphasis",children:[]}}function Xt(){return{type:"heading",depth:0,children:[]}}function Xn(){return{type:"break"}}function ft(){return{type:"html",value:""}}function _o(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function ja(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Qr(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function di(){return{type:"paragraph",children:[]}}function Da(){return{type:"strong",children:[]}}function hi(){return{type:"text",value:""}}function Zr(){return{type:"thematicBreak"}}}function wa(e){return{line:e.line,column:e.column,offset:e.offset}}function qE(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?qE(e,i):$3(e,i)}}function $3(e,n){let r;for(r in n)if(FE.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function p0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Il({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Il({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Il({start:n.start,end:n.end})+") is still open")}function G3(e){const n=this;n.parser=r;function r(i){return q3(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Y3(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function K3(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
359
|
+
`}]}function X3(e,n){const r=n.value?n.value+`
|
|
360
|
+
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Q3(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Z3(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function W3(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=No(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function J3(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function e5(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function VE(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function t5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return VE(e,n);const l={src:No(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,s),e.applyData(n,s)}function n5(e,n){const r={src:No(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function r5(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function a5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return VE(e,n);const l={href:No(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function i5(e,n){const r={href:No(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function o5(e,n,r){const i=e.all(n),l=r?l5(r):$E(n),s={},c=[];if(typeof n.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(l||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
361
|
+
`}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const d=i[i.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
|
|
362
|
+
`});const h={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,h),e.applyData(n,h)}function l5(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=$E(r[i])}return n}function $E(e){const n=e.spread;return n??e.children.length>1}function s5(e,n){const r={},i=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,s),e.applyData(n,s)}function u5(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function c5(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function f5(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function d5(e,n){const r=e.all(n),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=Pm(n.children[1]),d=EE(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function h5(e,n,r){const i=r?r.children:void 0,s=(i?i.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const y=n.children[d],b={},w=c?c[d]:void 0;w&&(b.align=w);let E={type:"element",tagName:s,properties:b,children:[]};y&&(E.children=e.all(y),e.patch(y,E),E=e.applyData(y,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,m),e.applyData(n,m)}function p5(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const m0=9,g0=32;function m5(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),l=0;const s=[];for(;i;)s.push(y0(n.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(n);return s.push(y0(n.slice(l),l>0,!1)),s.join("")}function y0(e,n,r){let i=0,l=e.length;if(n){let s=e.codePointAt(i);for(;s===m0||s===g0;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===m0||s===g0;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function g5(e,n){const r={type:"text",value:m5(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function y5(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const v5={blockquote:Y3,break:K3,code:X3,delete:Q3,emphasis:Z3,footnoteReference:W3,heading:J3,html:e5,imageReference:t5,image:n5,inlineCode:r5,linkReference:a5,link:i5,listItem:o5,list:s5,paragraph:u5,root:c5,strong:f5,table:d5,tableCell:p5,tableRow:h5,text:g5,thematicBreak:y5,toml:Uu,yaml:Uu,definition:Uu,footnoteDefinition:Uu};function Uu(){}const GE=-1,Zc=0,Ul=1,pc=2,Fm=3,qm=4,Vm=5,$m=6,YE=7,KE=8,v0=typeof self=="object"?self:globalThis,x5=(e,n)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=n[l];switch(s){case Zc:case GE:return r(c,l);case Ul:{const f=r([],l);for(const d of c)f.push(i(d));return f}case pc:{const f=r({},l);for(const[d,h]of c)f[i(d)]=i(h);return f}case Fm:return r(new Date(c),l);case qm:{const{source:f,flags:d}=c;return r(new RegExp(f,d),l)}case Vm:{const f=r(new Map,l);for(const[d,h]of c)f.set(i(d),i(h));return f}case $m:{const f=r(new Set,l);for(const d of c)f.add(i(d));return f}case YE:{const{name:f,message:d}=c;return r(new v0[f](d),l)}case KE:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new v0[s](c),l)};return i},x0=e=>x5(new Map,e)(0),to="",{toString:b5}={},{keys:w5}=Object,jl=e=>{const n=typeof e;if(n!=="object"||!e)return[Zc,n];const r=b5.call(e).slice(8,-1);switch(r){case"Array":return[Ul,to];case"Object":return[pc,to];case"Date":return[Fm,to];case"RegExp":return[qm,to];case"Map":return[Vm,to];case"Set":return[$m,to];case"DataView":return[Ul,r]}return r.includes("Array")?[Ul,r]:r.includes("Error")?[YE,r]:[pc,r]},Hu=([e,n])=>e===Zc&&(n==="function"||n==="symbol"),S5=(e,n,r,i)=>{const l=(c,f)=>{const d=i.push(c)-1;return r.set(f,d),d},s=c=>{if(r.has(c))return r.get(c);let[f,d]=jl(c);switch(f){case Zc:{let m=c;switch(d){case"bigint":f=KE,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return l([GE],c)}return l([f,m],c)}case Ul:{if(d){let b=c;return d==="DataView"?b=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(c)),l([d,[...b]],c)}const m=[],y=l([f,m],c);for(const b of c)m.push(s(b));return y}case pc:{if(d)switch(d){case"BigInt":return l([d,c.toString()],c);case"Boolean":case"Number":case"String":return l([d,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],y=l([f,m],c);for(const b of w5(c))(e||!Hu(jl(c[b])))&&m.push([s(b),s(c[b])]);return y}case Fm:return l([f,c.toISOString()],c);case qm:{const{source:m,flags:y}=c;return l([f,{source:m,flags:y}],c)}case Vm:{const m=[],y=l([f,m],c);for(const[b,w]of c)(e||!(Hu(jl(b))||Hu(jl(w))))&&m.push([s(b),s(w)]);return y}case $m:{const m=[],y=l([f,m],c);for(const b of c)(e||!Hu(jl(b)))&&m.push(s(b));return y}}const{message:h}=c;return l([f,{name:d,message:h}],c)};return s},b0=(e,{json:n,lossy:r}={})=>{const i=[];return S5(!(n||r),!!n,new Map,i)(e),i},Kl=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?x0(b0(e,n)):structuredClone(e):(e,n)=>x0(b0(e,n));function E5(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function C5(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function k5(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||E5,i=e.options.footnoteBackLabel||C5,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),y=String(h.identifier).toUpperCase(),b=No(y.toLowerCase());let w=0;const E=[],S=e.footnoteCounts.get(y);for(;S!==void 0&&++w<=S;){E.length>0&&E.push({type:"text",value:" "});let N=typeof r=="string"?r:r(d,w);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,w),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...E)}else m.push(...E);const T={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Kl(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
363
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
364
|
+
`}]}}const Wc=(function(e){if(e==null)return N5;if(typeof e=="function")return Jc(e);if(typeof e=="object")return Array.isArray(e)?A5(e):T5(e);if(typeof e=="string")return R5(e);throw new Error("Expected function, string, or object as test")});function A5(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Wc(e[r]);return Jc(i);function i(...l){let s=-1;for(;++s<n.length;)if(n[s].apply(this,l))return!0;return!1}}function T5(e){const n=e;return Jc(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==n[s])return!1;return!0}}function R5(e){return Jc(n);function n(r){return r&&r.type===e}}function Jc(e){return n;function n(r,i,l){return!!(_5(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function N5(){return!0}function _5(e){return e!==null&&typeof e=="object"&&"type"in e}const XE=[],M5=!0,Lp=!1,j5="skip";function QE(e,n,r,i){let l;typeof n=="function"&&typeof r!="function"?(i=r,r=n):l=n;const s=Wc(l),c=i?-1:1;f(e,void 0,[])();function f(d,h,m){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const w=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=XE,E,S,A;if((!n||s(d,h,m[m.length-1]||void 0))&&(w=D5(r(d,m)),w[0]===Lp))return w;if("children"in d&&d.children){const T=d;if(T.children&&w[0]!==j5)for(S=(i?T.children.length:-1)+c,A=m.concat(T);S>-1&&S<T.children.length;){const N=T.children[S];if(E=f(N,S,A)(),E[0]===Lp)return E;S=typeof E[1]=="number"?E[1]:S+c}}return w}}}function D5(e){return Array.isArray(e)?e:typeof e=="number"?[M5,e]:e==null?XE:[e]}function Gm(e,n,r,i){let l,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,l=r):(s=n,c=r,l=i),QE(e,s,f,l);function f(d,h){const m=h[h.length-1],y=m?m.children.indexOf(d):void 0;return c(d,y,m)}}const zp={}.hasOwnProperty,O5={};function P5(e,n){const r=n||O5,i=new Map,l=new Map,s=new Map,c={...v5,...r.handlers},f={all:h,applyData:z5,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:d,options:r,patch:L5,wrap:B5};return Gm(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:l,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function d(m,y){const b=m.type,w=f.handlers[b];if(zp.call(f.handlers,b)&&w)return w(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:S,...A}=m,T=Kl(A);return T.children=f.all(m),T}return Kl(m)}return(f.options.unknownHandler||I5)(f,m,y)}function h(m){const y=[];if("children"in m){const b=m.children;let w=-1;for(;++w<b.length;){const E=f.one(b[w],m);if(E){if(w&&b[w-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=w0(E.value)),!Array.isArray(E)&&E.type==="element")){const S=E.children[0];S&&S.type==="text"&&(S.value=w0(S.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}}function L5(e,n){e.position&&(n.position=kE(e))}function z5(e,n){let r=n;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Kl(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function I5(e,n){const r=n.data||{},i="value"in n&&!(zp.call(r,"hProperties")||zp.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function B5(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
|
|
365
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
366
|
+
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
367
|
+
`}),r}function w0(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function S0(e,n){const r=P5(e,n),i=r.one(e,void 0),l=k5(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
|
368
|
+
`},l),s}function U5(e,n){return e&&"run"in e?async function(r,i){const l=S0(r,{file:i,...n});await e.run(l,i)}:function(r,i){return S0(r,{file:i,...e||n})}}function E0(e){if(e)throw e}var Fh,C0;function H5(){if(C0)return Fh;C0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},s=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Fh=function d(){var h,m,y,b,w,E,S=arguments[0],A=1,T=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<T;++A)if(h=arguments[A],h!=null)for(m in h)y=f(S,m),b=f(h,m),S!==b&&(N&&b&&(s(b)||(w=l(b)))?(w?(w=!1,E=y&&l(y)?y:[]):E=y&&s(y)?y:{},c(S,{name:m,newValue:d(N,E,b)})):typeof b<"u"&&c(S,{name:m,newValue:b}));return S},Fh}var F5=H5();const qh=bc(F5);function Ip(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q5(){const e=[],n={run:r,use:i};return n;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...l);function f(d,...h){const m=e[++s];let y=-1;if(d){c(d);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?V5(m,f)(...h):c(null,...h)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function V5(e,n){let r;return i;function i(...c){const f=e.length>c.length;let d;f&&c.push(l);try{d=e.apply(this,c)}catch(h){const m=h;if(f&&r)throw m;return l(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,l):d instanceof Error?l(d):s(d))}function l(c,...f){r||(r=!0,n(c,...f))}function s(c){l(null,c)}}const mr={basename:$5,dirname:G5,extname:Y5,join:K5,sep:"/"};function $5(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');hs(e);let r=0,i=-1,l=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let c=-1,f=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),f>-1&&(e.codePointAt(l)===n.codePointAt(f--)?f<0&&(i=l):(f=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function G5(e){if(hs(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Y5(e){hs(e);let n=e.length,r=-1,i=0,l=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){i=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?l<0?l=n:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function K5(...e){let n=-1,r;for(;++n<e.length;)hs(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":X5(r)}function X5(e){hs(e);const n=e.codePointAt(0)===47;let r=Q5(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function Q5(e,n){let r="",i=0,l=-1,s=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function hs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Z5={cwd:W5};function W5(){return"/"}function Bp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function J5(e){if(typeof e=="string")e=new URL(e);else if(!Bp(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return e6(e)}function e6(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const Vh=["history","path","basename","stem","extname","dirname"];class ZE{constructor(n){let r;n?Bp(n)?r={path:n}:typeof n=="string"||t6(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":Z5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Vh.length;){const s=Vh[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)Vh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?mr.basename(this.path):void 0}set basename(n){Gh(n,"basename"),$h(n,"basename"),this.path=mr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?mr.dirname(this.path):void 0}set dirname(n){k0(this.basename,"dirname"),this.path=mr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?mr.extname(this.path):void 0}set extname(n){if($h(n,"extname"),k0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=mr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Bp(n)&&(n=J5(n)),Gh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?mr.basename(this.path,this.extname):void 0}set stem(n){Gh(n,"stem"),$h(n,"stem"),this.path=mr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const l=this.message(n,r,i);throw l.fatal=!0,l}info(n,r,i){const l=this.message(n,r,i);return l.fatal=void 0,l}message(n,r,i){const l=new nn(n,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function $h(e,n){if(e&&e.includes(mr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+mr.sep+"`")}function Gh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function k0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function t6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const n6=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),r6={}.hasOwnProperty;class Ym extends n6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=q5()}copy(){const n=new Ym;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(qh(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(Xh("data",this.frozen),this.namespace[n]=r,this):r6.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Xh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Fu(n),i=this.parser||this.Parser;return Yh("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),Yh("process",this.parser||this.Parser),Kh("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const f=Fu(n),d=i.parse(f);i.run(d,f,function(m,y,b){if(m||!y||!b)return h(m);const w=y,E=i.stringify(w,b);o6(E)?b.value=E:b.result=E,h(m,b)});function h(m,y){m||!y?c(m):s?s(y):r(void 0,y)}}}processSync(n){let r=!1,i;return this.freeze(),Yh("processSync",this.parser||this.Parser),Kh("processSync",this.compiler||this.Compiler),this.process(n,l),T0("processSync","process",r),i;function l(s,c){r=!0,E0(s),i=c}}run(n,r,i){A0(n),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,f){const d=Fu(r);l.run(n,d,h);function h(m,y,b){const w=y||n;m?f(m):c?c(w):i(void 0,w,b)}}}runSync(n,r){let i=!1,l;return this.run(n,r,s),T0("runSync","run",i),l;function s(c,f){E0(c),l=f,i=!0}}stringify(n,r){this.freeze();const i=Fu(r),l=this.compiler||this.Compiler;return Kh("stringify",l),A0(n),l(n,i)}use(n,...r){const i=this.attachers,l=this.namespace;if(Xh("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;d(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(l.settings=qh(!0,l.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===h){b=y;break}if(b===-1)i.push([h,...m]);else if(m.length>0){let[w,...E]=m;const S=i[b][1];Ip(S)&&Ip(w)&&(w=qh(!0,S,w)),i[b]=[h,w,...E]}}}}const a6=new Ym().freeze();function Yh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Kh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function A0(e){if(!Ip(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function T0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Fu(e){return i6(e)?e:new ZE(e)}function i6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o6(e){return typeof e=="string"||l6(e)}function l6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const s6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",R0=[],N0={allowDangerousHtml:!0},u6=/^(https?|ircs?|mailto|xmpp)$/i,c6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function f6(e){const n=d6(e),r=h6(e);return p6(n.runSync(n.parse(r),r),e)}function d6(e){const n=e.rehypePlugins||R0,r=e.remarkPlugins||R0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N0}:N0;return a6().use(G3).use(r).use(U5,i).use(n)}function h6(e){const n=e.children||"",r=new ZE;return typeof n=="string"&&(r.value=n),r}function p6(e,n){const r=n.allowedElements,i=n.allowElement,l=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||m6;for(const m of c6)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+s6+m.id,void 0);return Gm(e,h),NL(e,{Fragment:g.Fragment,components:l,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let w;for(w in Bh)if(Object.hasOwn(Bh,w)&&Object.hasOwn(m.properties,w)){const E=m.properties[w],S=Bh[w];(S===null||S.includes(m.tagName))&&(m.properties[w]=d(String(E||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!w&&i&&typeof y=="number"&&(w=!i(m,y,b)),w&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function m6(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||r!==-1&&n>r||i!==-1&&n>i||u6.test(e.slice(0,n))?e:""}function _0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(n);for(;l!==-1;)i++,l=r.indexOf(n,l+n.length);return i}function g6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function y6(e,n,r){const l=Wc((r||{}).ignore||[]),s=v6(n);let c=-1;for(;++c<s.length;)QE(e,"text",f);function f(h,m){let y=-1,b;for(;++y<m.length;){const w=m[y],E=b?b.children:void 0;if(l(w,E?E.indexOf(w):void 0,b))return;b=w}if(b)return d(h,m)}function d(h,m){const y=m[m.length-1],b=s[c][0],w=s[c][1];let E=0;const A=y.children.indexOf(h);let T=!1,N=[];b.lastIndex=0;let R=b.exec(h.value);for(;R;){const D=R.index,P={index:R.index,input:R.input,stack:[...m,h]};let j=w(...R,P);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?b.lastIndex=D+1:(E!==D&&N.push({type:"text",value:h.value.slice(E,D)}),Array.isArray(j)?N.push(...j):j&&N.push(j),E=D+R[0].length,T=!0),!b.global)break;R=b.exec(h.value)}return T?(E<h.value.length&&N.push({type:"text",value:h.value.slice(E)}),y.children.splice(A,1,...N)):N=[h],A+N.length}}function v6(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const l=r[i];n.push([x6(l[0]),b6(l[1])])}return n}function x6(e){return typeof e=="string"?new RegExp(g6(e),"g"):e}function b6(e){return typeof e=="function"?e:function(){return e}}const Qh="phrasing",Zh=["autolink","link","image","label"];function w6(){return{transforms:[R6],enter:{literalAutolink:E6,literalAutolinkEmail:Wh,literalAutolinkHttp:Wh,literalAutolinkWww:Wh},exit:{literalAutolink:T6,literalAutolinkEmail:A6,literalAutolinkHttp:C6,literalAutolinkWww:k6}}}function S6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qh,notInConstruct:Zh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qh,notInConstruct:Zh},{character:":",before:"[ps]",after:"\\/",inConstruct:Qh,notInConstruct:Zh}]}}function E6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Wh(e){this.config.enter.autolinkProtocol.call(this,e)}function C6(e){this.config.exit.autolinkProtocol.call(this,e)}function k6(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function A6(e){this.config.exit.autolinkEmail.call(this,e)}function T6(e){this.exit(e)}function R6(e){y6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),_6]],{ignore:["link","linkReference"]})}function N6(e,n,r,i,l){let s="";if(!WE(l)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!M6(r)))return!1;const c=j6(r+i);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function _6(e,n,r,i){return!WE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function M6(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function j6(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],i=r.indexOf(")");const l=_0(e,"(");let s=_0(e,")");for(;i!==-1&&l>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function WE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||si(r)||Xc(r))&&(!n||r!==47)}JE.peek=H6;function D6(){this.buffer()}function O6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function P6(){this.buffer()}function L6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function z6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ar(this.sliceSerialize(e)).toLowerCase(),r.label=n}function I6(e){this.exit(e)}function B6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ar(this.sliceSerialize(e)).toLowerCase(),r.label=n}function U6(e){this.exit(e)}function H6(){return"["}function JE(e,n,r,i){const l=r.createTracker(i);let s=l.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=l.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=l.move("]"),s}function F6(){return{enter:{gfmFootnoteCallString:D6,gfmFootnoteCall:O6,gfmFootnoteDefinitionLabelString:P6,gfmFootnoteDefinition:L6},exit:{gfmFootnoteCallString:z6,gfmFootnoteCall:I6,gfmFootnoteDefinitionLabelString:B6,gfmFootnoteDefinition:U6}}}function q6(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:JE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,l,s,c){const f=s.createTracker(c);let d=f.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=f.move(s.safe(s.associationId(i),{before:d,after:"]"})),m(),d+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),d+=f.move((n?`
|
|
369
|
+
`:" ")+s.indentLines(s.containerFlow(i,f.current()),n?eC:V6))),h(),d}}function V6(e,n,r){return n===0?e:eC(e,n,r)}function eC(e,n,r){return(r?"":" ")+e}const $6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tC.peek=Q6;function G6(){return{canContainEols:["delete"],enter:{strikethrough:K6},exit:{strikethrough:X6}}}function Y6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$6}],handlers:{delete:tC}}}function K6(e){this.enter({type:"delete",children:[]},e)}function X6(e){this.exit(e)}function tC(e,n,r,i){const l=r.createTracker(i),s=r.enter("strikethrough");let c=l.move("~~");return c+=r.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),s(),c}function Q6(){return"~"}function Z6(e){return e.length}function W6(e,n){const r=n||{},i=(r.align||[]).concat(),l=r.stringLength||Z6,s=[],c=[],f=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let T=-1;for(e[m].length>h&&(h=e[m].length);++T<e[m].length;){const N=J6(e[m][T]);if(r.alignDelimiters!==!1){const R=l(N);A[T]=R,(d[T]===void 0||R>d[T])&&(d[T]=R)}S.push(N)}c[m]=S,f[m]=A}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<h;)s[y]=M0(i[y]);else{const S=M0(i);for(;++y<h;)s[y]=S}y=-1;const b=[],w=[];for(;++y<h;){const S=s[y];let A="",T="";S===99?(A=":",T=":"):S===108?A=":":S===114&&(T=":");let N=r.alignDelimiters===!1?1:Math.max(1,d[y]-A.length-T.length);const R=A+"-".repeat(N)+T;r.alignDelimiters!==!1&&(N=A.length+N+T.length,N>d[y]&&(d[y]=N),w[y]=N),b[y]=R}c.splice(1,0,b),f.splice(1,0,w),m=-1;const E=[];for(;++m<c.length;){const S=c[m],A=f[m];y=-1;const T=[];for(;++y<h;){const N=S[y]||"";let R="",D="";if(r.alignDelimiters!==!1){const P=d[y]-(A[y]||0),j=s[y];j===114?R=" ".repeat(P):j===99?P%2?(R=" ".repeat(P/2+.5),D=" ".repeat(P/2-.5)):(R=" ".repeat(P/2),D=R):D=" ".repeat(P)}r.delimiterStart!==!1&&!y&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N==="")&&(r.delimiterStart!==!1||y)&&T.push(" "),r.alignDelimiters!==!1&&T.push(R),T.push(N),r.alignDelimiters!==!1&&T.push(D),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||y!==h-1)&&T.push("|")}E.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return E.join(`
|
|
370
|
+
`)}function J6(e){return e==null?"":String(e)}function M0(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function eI(e,n,r,i){const l=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),tI);return l(),c}function tI(e,n,r){return">"+(r?"":" ")+e}function nI(e,n){return j0(e,n.inConstruct,!0)&&!j0(e,n.notInConstruct,!1)}function j0(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function D0(e,n,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
371
|
+
`&&nI(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
372
|
+
`}function rI(e,n){const r=String(e);let i=r.indexOf(n),l=i,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++s>c&&(c=s):s=1,l=i+n.length,i=r.indexOf(n,l);return c}function aI(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iI(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function oI(e,n,r,i){const l=iI(r),s=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(aI(e,r)){const y=r.enter("codeIndented"),b=r.indentLines(s,lI);return y(),b}const f=r.createTracker(i),d=l.repeat(Math.max(rI(s,l)+1,3)),h=r.enter("codeFenced");let m=f.move(d);if(e.lang){const y=r.enter(`codeFencedLang${c}`);m+=f.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=r.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(r.safe(e.meta,{before:m,after:`
|
|
373
|
+
`,encode:["`"],...f.current()})),y()}return m+=f.move(`
|
|
374
|
+
`),s&&(m+=f.move(s+`
|
|
375
|
+
`)),m+=f.move(d),h(),m}function lI(e,n,r){return(r?"":" ")+e}function Km(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function sI(e,n,r,i){const l=Km(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("[");return h+=d.move(r.safe(r.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
376
|
+
`,...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),c(),h}function uI(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Xl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mc(e,n,r){const i=po(e),l=po(n);return i===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}nC.peek=cI;function nC(e,n,r,i){const l=uI(r),s=r.enter("emphasis"),c=r.createTracker(i),f=c.move(l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=mc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Xl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=mc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Xl(y));const w=c.move(l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function cI(e,n,r){return r.options.emphasis||"*"}function fI(e,n){let r=!1;return Gm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Lp}),!!((!e.depth||e.depth<3)&&Bm(e)&&(n.options.setext||r))}function dI(e,n,r,i){const l=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(fI(e,r)){const m=r.enter("headingSetext"),y=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
|
|
377
|
+
`,after:`
|
|
378
|
+
`});return y(),m(),b+`
|
|
379
|
+
`+(l===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
380
|
+
`))+1))}const c="#".repeat(l),f=r.enter("headingAtx"),d=r.enter("phrasing");s.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
381
|
+
`,...s.current()});return/^[\t ]/.test(h)&&(h=Xl(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),d(),f(),h}rC.peek=hI;function rC(e){return e.value||""}function hI(){return"<"}aC.peek=pI;function aC(e,n,r,i){const l=Km(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("![");return h+=d.move(r.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),h+=d.move(")"),c(),h}function pI(){return"!"}iC.peek=mI;function iC(e,n,r,i){const l=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("![");const h=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function mI(){return"!"}oC.peek=gI;function oC(e,n,r){let i=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<r.unsafe.length;){const c=r.unsafe[s],f=r.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return l+i+l}function gI(){return"`"}function lC(e,n){const r=Bm(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}sC.peek=yI;function sC(e,n,r,i){const l=Km(r),s=l==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let f,d;if(lC(e,r)){const m=r.stack;r.stack=[],f=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),r.stack=m,y}f=r.enter("link"),d=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=r.enter(`title${s}`),h+=c.move(" "+l),h+=c.move(r.safe(e.title,{before:h,after:l,...c.current()})),h+=c.move(l),d()),h+=c.move(")"),f(),h}function yI(e,n,r){return lC(e,r)?"<":"["}uC.peek=vI;function uC(e,n,r,i){const l=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("[");const h=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function vI(){return"["}function Xm(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function xI(e){const n=Xm(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function bI(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function cC(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function wI(e,n,r,i){const l=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?bI(r):Xm(r);const f=e.ordered?c==="."?")":".":xI(r);let d=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(d=!0),cC(r)===c&&m){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),r.bulletCurrent=c;const h=r.containerFlow(e,i);return r.bulletLastUsed=c,r.bulletCurrent=s,l(),h}function SI(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function EI(e,n,r,i){const l=SI(r);let s=r.bulletCurrent||Xm(r);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(i);f.move(s+" ".repeat(c-s.length)),f.shift(c);const d=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,f.current()),m);return d(),h;function m(y,b,w){return b?(w?"":" ".repeat(c))+y:(w?s:s+" ".repeat(c-s.length))+y}}function CI(e,n,r,i){const l=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,i);return s(),l(),c}const kI=Wc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function AI(e,n,r,i){return(e.children.some(function(c){return kI(c)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function TI(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}fC.peek=RI;function fC(e,n,r,i){const l=TI(r),s=r.enter("strong"),c=r.createTracker(i),f=c.move(l+l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=mc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Xl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=mc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Xl(y));const w=c.move(l+l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function RI(e,n,r){return r.options.strong||"*"}function NI(e,n,r,i){return r.safe(e.value,i)}function _I(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function MI(e,n,r){const i=(cC(r)+(r.options.ruleSpaces?" ":"")).repeat(_I(r));return r.options.ruleSpaces?i.slice(0,-1):i}const dC={blockquote:eI,break:D0,code:oI,definition:sI,emphasis:nC,hardBreak:D0,heading:dI,html:rC,image:aC,imageReference:iC,inlineCode:oC,link:sC,linkReference:uC,list:wI,listItem:EI,paragraph:CI,root:AI,strong:fC,text:NI,thematicBreak:MI};function jI(){return{enter:{table:DI,tableData:O0,tableHeader:O0,tableRow:PI},exit:{codeText:LI,table:OI,tableData:Jh,tableHeader:Jh,tableRow:Jh}}}function DI(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function OI(e){this.exit(e),this.data.inTable=void 0}function PI(e){this.enter({type:"tableRow",children:[]},e)}function Jh(e){this.exit(e)}function O0(e){this.enter({type:"tableCell",children:[]},e)}function LI(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zI));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function zI(e,n){return n==="|"?n:e}function II(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
382
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:d,tableRow:f}};function c(w,E,S,A){return h(m(w,S,A),w.align)}function f(w,E,S,A){const T=y(w,S,A),N=h([T]);return N.slice(0,N.indexOf(`
|
|
383
|
+
`))}function d(w,E,S,A){const T=S.enter("tableCell"),N=S.enter("phrasing"),R=S.containerPhrasing(w,{...A,before:s,after:s});return N(),T(),R}function h(w,E){return W6(w,{align:E,alignDelimiters:i,padding:r,stringLength:l})}function m(w,E,S){const A=w.children;let T=-1;const N=[],R=E.enter("table");for(;++T<A.length;)N[T]=y(A[T],E,S);return R(),N}function y(w,E,S){const A=w.children;let T=-1;const N=[],R=E.enter("tableRow");for(;++T<A.length;)N[T]=d(A[T],w,E,S);return R(),N}function b(w,E,S){let A=dC.inlineCode(w,E,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function BI(){return{exit:{taskListCheckValueChecked:P0,taskListCheckValueUnchecked:P0,paragraph:HI}}}function UI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FI}}}function P0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function HI(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=n.children;let s=-1,c;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){c=f;break}}c===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function FI(e,n,r,i){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(i);s&&f.move(c);let d=dC.listItem(e,n,r,{...i,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+c}}function qI(){return[w6(),F6(),G6(),jI(),BI()]}function VI(e){return{extensions:[S6(),q6(e),Y6(),II(e),UI()]}}const $I={tokenize:ZI,partial:!0},hC={tokenize:WI,partial:!0},pC={tokenize:JI,partial:!0},mC={tokenize:e9,partial:!0},GI={tokenize:t9,partial:!0},gC={name:"wwwAutolink",tokenize:XI,previous:vC},yC={name:"protocolAutolink",tokenize:QI,previous:xC},Kr={name:"emailAutolink",tokenize:KI,previous:bC},Sr={};function YI(){return{text:Sr}}let ei=48;for(;ei<123;)Sr[ei]=Kr,ei++,ei===58?ei=65:ei===91&&(ei=97);Sr[43]=Kr;Sr[45]=Kr;Sr[46]=Kr;Sr[95]=Kr;Sr[72]=[Kr,yC];Sr[104]=[Kr,yC];Sr[87]=[Kr,gC];Sr[119]=[Kr,gC];function KI(e,n,r){const i=this;let l,s;return c;function c(y){return!Up(y)||!bC.call(i,i.previous)||Qm(i.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Up(y)?(e.consume(y),f):y===64?(e.consume(y),d):r(y)}function d(y){return y===46?e.check(GI,m,h)(y):y===45||y===95||tn(y)?(s=!0,e.consume(y),d):m(y)}function h(y){return e.consume(y),l=!0,d}function m(y){return s&&l&&sn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):r(y)}}function XI(e,n,r){const i=this;return l;function l(c){return c!==87&&c!==119||!vC.call(i,i.previous)||Qm(i.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($I,e.attempt(hC,e.attempt(pC,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function QI(e,n,r){const i=this;let l="",s=!1;return c;function c(y){return(y===72||y===104)&&xC.call(i,i.previous)&&!Qm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(y),e.consume(y),f):r(y)}function f(y){if(sn(y)&&l.length<5)return l+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=l.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return r(y)}function d(y){return y===47?(e.consume(y),s?h:(s=!0,d)):r(y)}function h(y){return y===null||hc(y)||ct(y)||si(y)||Xc(y)?r(y):e.attempt(hC,e.attempt(pC,m),r)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function ZI(e,n,r){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function WI(e,n,r){let i,l,s;return c;function c(h){return h===46||h===95?e.check(mC,d,f)(h):h===null||ct(h)||si(h)||h!==45&&Xc(h)?d(h):(s=!0,e.consume(h),c)}function f(h){return h===95?i=!0:(l=i,i=void 0),e.consume(h),c}function d(h){return l||i||!s?r(h):n(h)}}function JI(e,n){let r=0,i=0;return l;function l(c){return c===40?(r++,e.consume(c),l):c===41&&i<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(mC,n,s)(c):c===null||ct(c)||si(c)?n(c):(e.consume(c),l)}function s(c){return c===41&&i++,e.consume(c),l}}function e9(e,n,r){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||ct(f)||si(f)?n(f):r(f)}function l(f){return f===null||f===40||f===91||ct(f)||si(f)?n(f):i(f)}function s(f){return sn(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),i):sn(f)?(e.consume(f),c):r(f)}}function t9(e,n,r){return i;function i(s){return e.consume(s),l}function l(s){return tn(s)?r(s):n(s)}}function vC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ct(e)}function xC(e){return!sn(e)}function bC(e){return!(e===47||Up(e))}function Up(e){return e===43||e===45||e===46||e===95||tn(e)}function Qm(e){let n=e.length,r=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const n9={tokenize:c9,partial:!0};function r9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:l9,continuation:{tokenize:s9},exit:u9}},text:{91:{name:"gfmFootnoteCall",tokenize:o9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a9,resolveTo:i9}}}}function a9(e,n,r){const i=this;let l=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const d=i.events[l][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return r(d);const h=ar(i.sliceSerialize({start:c.end,end:i.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function i9(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",i,n],e[r+3],e[r+4],["enter",l,n],["exit",l,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(r,e.length-r+1,...f),e}function o9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(s>999||y===93&&!c||y===null||y===91||ct(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return l.includes(ar(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(y)}return ct(y)||(c=!0),s++,e.consume(y),y===92?m:h}function m(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}}function l9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,f;return d;function d(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(E)}function m(E){if(c>999||E===93&&!f||E===null||E===91||ct(E))return r(E);if(E===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=ar(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ct(E)||(f=!0),c++,e.consume(E),E===92?y:m}function y(E){return E===91||E===92||E===93?(e.consume(E),c++,m):m(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),l.includes(s)||l.push(s),We(e,w,"gfmFootnoteDefinitionWhitespace")):r(E)}function w(E){return n(E)}}function s9(e,n,r){return e.check(ds,n,e.attempt(n9,n,r))}function u9(e){e.exit("gfmFootnoteDefinition")}function c9(e,n,r){const i=this;return We(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):r(s)}}function f9(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:l};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},y={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},b=[["enter",m,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",y,f]],w=f.parser.constructs.insideSpan.null;w&&Mn(b,b.length,0,Qc(w,c.slice(h+1,d),f)),Mn(b,b.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",m,f]]),Mn(c,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function s(c,f,d){const h=this.previous,m=this.events;let y=0;return b;function b(E){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(E):(c.enter("strikethroughSequenceTemporary"),w(E))}function w(E){const S=po(h);if(E===126)return y>1?d(E):(c.consume(E),y++,w);if(y<2&&!r)return d(E);const A=c.exit("strikethroughSequenceTemporary"),T=po(E);return A._open=!T||T===2&&!!S,A._close=!S||S===2&&!!T,f(E)}}}class d9{constructor(){this.map=[]}add(n,r,i){h9(this,n,r,i)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const s of l)n.push(s);l=i.pop()}this.map.length=0}}function h9(e,n,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([n,r,i])}}function p9(e,n){let r=!1;const i=[];for(;n<e.length;){const l=e[n];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return i}function m9(){return{flow:{null:{name:"table",tokenize:g9,resolveAll:y9}}}}function g9(e,n,r){const i=this;let l=0,s=0,c;return f;function f(L){let J=i.events.length-1;for(;J>-1;){const G=i.events[J][1].type;if(G==="lineEnding"||G==="linePrefix")J--;else break}const W=J>-1?i.events[J][1].type:null,ie=W==="tableHead"||W==="tableRow"?j:d;return ie===j&&i.parser.lazy[i.now().line]?r(L):ie(L)}function d(L){return e.enter("tableHead"),e.enter("tableRow"),h(L)}function h(L){return L===124||(c=!0,s+=1),m(L)}function m(L){return L===null?r(L):Ae(L)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),w):r(L):Ge(L)?We(e,m,"whitespace")(L):(s+=1,c&&(c=!1,l+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(L)))}function y(L){return L===null||L===124||ct(L)?(e.exit("data"),m(L)):(e.consume(L),L===92?b:y)}function b(L){return L===92||L===124?(e.consume(L),y):y(L)}function w(L){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(L):(e.enter("tableDelimiterRow"),c=!1,Ge(L)?We(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):E(L))}function E(L){return L===45||L===58?A(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),S):P(L)}function S(L){return Ge(L)?We(e,A,"whitespace")(L):A(L)}function A(L){return L===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):L===45?(s+=1,T(L)):L===null||Ae(L)?D(L):P(L)}function T(L){return L===45?(e.enter("tableDelimiterFiller"),N(L)):P(L)}function N(L){return L===45?(e.consume(L),N):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(L))}function R(L){return Ge(L)?We(e,D,"whitespace")(L):D(L)}function D(L){return L===124?E(L):L===null||Ae(L)?!c||l!==s?P(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):P(L)}function P(L){return r(L)}function j(L){return e.enter("tableRow"),B(L)}function B(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),B):L===null||Ae(L)?(e.exit("tableRow"),n(L)):Ge(L)?We(e,B,"whitespace")(L):(e.enter("data"),U(L))}function U(L){return L===null||L===124||ct(L)?(e.exit("data"),B(L)):(e.consume(L),L===92?Y:U)}function Y(L){return L===92||L===124?(e.consume(L),U):U(L)}}function y9(e,n){let r=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,m,y;const b=new d9;for(;++r<e.length;){const w=e[r],E=w[1];w[0]==="enter"?E.type==="tableHead"?(f=!1,d!==0&&(L0(b,n,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",h,n]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(i=!0,y=void 0,s=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",m,n]])),l=E.type==="tableDelimiterRow"?2:m?3:1):l&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],y=qu(b,n,s,l,void 0,y),s=[0,0,0,0]),c[2]=r)):E.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],y=qu(b,n,s,l,void 0,y)),s=c,c=[s[1],r,0,0])):E.type==="tableHead"?(f=!0,d=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(d=r,s[1]!==0?(c[0]=c[1],y=qu(b,n,s,l,r,y)):c[1]!==0&&(y=qu(b,n,c,l,r,y)),l=0):l&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=r)}for(d!==0&&L0(b,n,d,h,m),b.consume(n.events),r=-1;++r<n.events.length;){const w=n.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=p9(n.events,r))}return e}function qu(e,n,r,i,l,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},io(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const d=io(n.events,r[1]);if(s={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const h=io(n.events,r[2]),m=io(n.events,r[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",y,n]]),i!==2){const b=n.events[r[2]],w=n.events[r[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const E=r[2]+1,S=r[3]-r[2]-1;e.add(E,S,[])}}e.add(r[3]+1,0,[["exit",y,n]])}return l!==void 0&&(s.end=Object.assign({},io(n.events,l)),e.add(l,0,[["exit",s,n]]),s=void 0),s}function L0(e,n,r,i,l){const s=[],c=io(n.events,r);l&&(l.end=Object.assign({},c),s.push(["exit",l,n])),i.end=Object.assign({},c),s.push(["exit",i,n]),e.add(r+1,0,s)}function io(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const v9={name:"tasklistCheck",tokenize:b9};function x9(){return{text:{91:v9}}}function b9(e,n,r){const i=this;return l;function l(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return ct(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):r(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return Ae(d)?n(d):Ge(d)?e.check({tokenize:w9},n,r)(d):r(d)}}function w9(e,n,r){return We(e,i,"whitespace");function i(l){return l===null?r(l):n(l)}}function S9(e){return ME([YI(),r9(),f9(e),m9(),x9()])}const E9={};function C9(e){const n=this,r=e||E9,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(S9(r)),s.push(qI()),c.push(VI(r))}const ti=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],z0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ti,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ti],h2:[["className","sr-only"]],img:[...ti,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ti,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ti],table:[...ti],ul:[...ti,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ca={}.hasOwnProperty;function k9(e,n){let r={type:"root",children:[]};const i={schema:n?{...z0,...n}:z0,stack:[]},l=wC(i,e);return l&&(Array.isArray(l)?l.length===1?r=l[0]:r.children=l:r=l),r}function wC(e,n){if(n&&typeof n=="object"){const r=n;switch(typeof r.type=="string"?r.type:""){case"comment":return A9(e,r);case"doctype":return T9(e,r);case"element":return R9(e,r);case"root":return N9(e,r);case"text":return _9(e,r)}}}function A9(e,n){if(e.schema.allowComments){const r=typeof n.value=="string"?n.value:"",i=r.indexOf("-->"),s={type:"comment",value:i<0?r:r.slice(0,i)};return ps(s,n),s}}function T9(e,n){if(e.schema.allowDoctypes){const r={type:"doctype"};return ps(r,n),r}}function R9(e,n){const r=typeof n.tagName=="string"?n.tagName:"";e.stack.push(r);const i=SC(e,n.children),l=M9(e,n.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&Ca.call(e.schema.ancestors,r))){const f=e.schema.ancestors[r];let d=-1;for(s=!1;++d<f.length;)e.stack.includes(f[d])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const c={type:"element",tagName:r,properties:l,children:i};return ps(c,n),c}function N9(e,n){const i={type:"root",children:SC(e,n.children)};return ps(i,n),i}function _9(e,n){const i={type:"text",value:typeof n.value=="string"?n.value:""};return ps(i,n),i}function SC(e,n){const r=[];if(Array.isArray(n)){const i=n;let l=-1;for(;++l<i.length;){const s=wC(e,i[l]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}function M9(e,n){const r=e.stack[e.stack.length-1],i=e.schema.attributes,l=e.schema.required,s=i&&Ca.call(i,r)?i[r]:void 0,c=i&&Ca.call(i,"*")?i["*"]:void 0,f=n&&typeof n=="object"?n:{},d={};let h;for(h in f)if(Ca.call(f,h)){const m=f[h];let y=I0(e,B0(s,h),h,m);y==null&&(y=I0(e,B0(c,h),h,m)),y!=null&&(d[h]=y)}if(l&&Ca.call(l,r)){const m=l[r];for(h in m)Ca.call(m,h)&&!Ca.call(d,h)&&(d[h]=m[h])}return d}function I0(e,n,r,i){return n?Array.isArray(i)?j9(e,n,r,i):EC(e,n,r,i):void 0}function j9(e,n,r,i){let l=-1;const s=[];for(;++l<i.length;){const c=EC(e,n,r,i[l]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function EC(e,n,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&D9(e,r,i)){if(typeof n=="object"&&n.length>1){let l=!1,s=0;for(;++s<n.length;){const c=n[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){l=!0;break}}else if(c===i){l=!0;break}}if(!l)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function D9(e,n,r){const i=e.schema.protocols&&Ca.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!i||i.length===0)return!0;const l=String(r),s=l.indexOf(":"),c=l.indexOf("?"),f=l.indexOf("#"),d=l.indexOf("/");if(s<0||d>-1&&s>d||c>-1&&s>c||f>-1&&s>f)return!0;let h=-1;for(;++h<i.length;){const m=i[h];if(s===m.length&&l.slice(0,m.length)===m)return!0}return!1}function ps(e,n){const r=kE(n);n.data&&(e.data=Kl(n.data)),r&&(e.position=r)}function B0(e,n){let r,i=-1;if(e)for(;++i<e.length;){const l=e[i],s=typeof l=="string"?l:l[0];if(s===n)return l;s==="data*"&&(r=l)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return r}function O9(e){return function(n){return k9(n,e)}}const ms=x.forwardRef(({children:e,className:n,...r},i)=>g.jsx("div",{ref:i,className:ue("prose prose-sm max-w-none dark:prose-invert","prose-headings:font-semibold prose-headings:text-foreground","prose-h1:text-2xl prose-h1:mb-4 prose-h1:mt-6 first:prose-h1:mt-0","prose-h2:text-xl prose-h2:mb-3 prose-h2:mt-5","prose-h3:text-lg prose-h3:mb-2 prose-h3:mt-4","prose-p:text-sm prose-p:leading-relaxed prose-p:text-foreground prose-p:mb-4","prose-code:text-xs prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-foreground","prose-pre:bg-muted prose-pre:text-sm prose-pre:p-4 prose-pre:rounded-lg prose-pre:overflow-x-auto","prose-blockquote:border-l-4 prose-blockquote:border-muted-foreground prose-blockquote:pl-4 prose-blockquote:italic prose-blockquote:text-muted-foreground","prose-ul:text-sm prose-ul:mb-4 prose-ul:list-disc prose-ul:pl-6","prose-ol:text-sm prose-ol:mb-4 prose-ol:list-decimal prose-ol:pl-6","prose-li:text-sm prose-li:leading-relaxed prose-li:text-foreground prose-li:mb-1 prose-li:marker:text-muted-foreground","prose-table:text-sm prose-table:border-collapse prose-table:w-full","prose-th:text-xs prose-th:font-semibold prose-th:text-muted-foreground prose-th:border prose-th:border-border prose-th:p-2 prose-th:bg-muted/50","prose-td:text-sm prose-td:border prose-td:border-border prose-td:p-2","prose-strong:text-foreground prose-strong:font-semibold","prose-em:text-foreground prose-em:italic","prose-hr:border-border prose-hr:my-6",n),...r,children:g.jsx(f6,{remarkPlugins:[C9],rehypePlugins:[O9],components:{input:({type:l,checked:s,...c})=>l==="checkbox"?g.jsx("input",{type:"checkbox",checked:s,disabled:!0,className:"mr-2 h-4 w-4 rounded border-2 border-muted-foreground bg-background accent-primary flex-shrink-0 mt-0.5",...c}):g.jsx("input",{type:l,...c}),li:({children:l,...s})=>x.Children.toArray(l).some(f=>x.isValidElement(f)&&f.props&&f.props.type==="checkbox")?g.jsx("li",{className:"flex items-start gap-1 list-none pl-0",...s,children:l}):g.jsx("li",{...s,children:l}),a:({href:l,children:s,...c})=>g.jsx("a",{href:l,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...c,children:s}),img:({src:l,alt:s,...c})=>{let f=l;return l?.startsWith("../images/")&&(f=`/api/v1/context/images/${l.replace("../images/","")}`),g.jsx("img",{src:f,alt:s||"",className:"max-w-full h-auto rounded-lg",loading:"lazy",...c})}},children:e})}));ms.displayName="MarkdownViewer";var CC="AlertDialog",[P9,tH]=Yn(CC,[k1]),Xr=k1(),kC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Xr(n);return g.jsx(hm,{...i,...r,modal:!0})};kC.displayName=CC;var L9="AlertDialogTrigger",AC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Xr(r);return g.jsx(H1,{...l,...i,ref:n})});AC.displayName=L9;var z9="AlertDialogPortal",TC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Xr(n);return g.jsx(pm,{...i,...r})};TC.displayName=z9;var I9="AlertDialogOverlay",RC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Xr(r);return g.jsx(rs,{...l,...i,ref:n})});RC.displayName=I9;var co="AlertDialogContent",[B9,U9]=P9(co),H9=bw("AlertDialogContent"),NC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:i,...l}=e,s=Xr(r),c=x.useRef(null),f=Ie(n,c),d=x.useRef(null);return g.jsx(sO,{contentName:co,titleName:_C,docsSlug:"alert-dialog",children:g.jsx(B9,{scope:r,cancelRef:d,children:g.jsxs(as,{role:"alertdialog",...s,...l,ref:f,onOpenAutoFocus:pe(l.onOpenAutoFocus,h=>{h.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[g.jsx(H9,{children:i}),g.jsx(q9,{contentRef:c})]})})})});NC.displayName=co;var _C="AlertDialogTitle",MC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Xr(r);return g.jsx(is,{...l,...i,ref:n})});MC.displayName=_C;var jC="AlertDialogDescription",DC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Xr(r);return g.jsx(os,{...l,...i,ref:n})});DC.displayName=jC;var F9="AlertDialogAction",OC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Xr(r);return g.jsx(Lc,{...l,...i,ref:n})});OC.displayName=F9;var PC="AlertDialogCancel",LC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=U9(PC,r),s=Xr(r),c=Ie(n,l);return g.jsx(Lc,{...s,...i,ref:c})});LC.displayName=PC;var q9=({contentRef:e})=>{const n=`\`${co}\` requires a description for the component to be accessible for screen reader users.
|
|
384
|
+
|
|
385
|
+
You can add a description to the \`${co}\` by passing a \`${jC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
386
|
+
|
|
387
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${co}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
388
|
+
|
|
389
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},V9=kC,$9=AC,G9=TC,zC=RC,IC=NC,BC=OC,UC=LC,HC=MC,FC=DC;const Y9=V9,K9=$9,X9=G9,qC=x.forwardRef(({className:e,...n},r)=>g.jsx(zC,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));qC.displayName=zC.displayName;const VC=x.forwardRef(({className:e,...n},r)=>g.jsxs(X9,{children:[g.jsx(qC,{}),g.jsx(IC,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n})]}));VC.displayName=IC.displayName;const $C=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});$C.displayName="AlertDialogHeader";const GC=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});GC.displayName="AlertDialogFooter";const YC=x.forwardRef(({className:e,...n},r)=>g.jsx(HC,{ref:r,className:ue("text-lg font-semibold",e),...n}));YC.displayName=HC.displayName;const KC=x.forwardRef(({className:e,...n},r)=>g.jsx(FC,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));KC.displayName=FC.displayName;const XC=x.forwardRef(({className:e,...n},r)=>g.jsx(BC,{ref:r,className:ue(lm(),e),...n}));XC.displayName=BC.displayName;const QC=x.forwardRef(({className:e,...n},r)=>g.jsx(UC,{ref:r,className:ue(lm({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));QC.displayName=UC.displayName;var ef="Checkbox",[Q9,nH]=Yn(ef),[Z9,Zm]=Q9(ef);function W9(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:l,disabled:s,form:c,name:f,onCheckedChange:d,required:h,value:m="on",internal_do_not_use_render:y}=e,[b,w]=Aa({prop:r,defaultProp:l??!1,onChange:d,caller:ef}),[E,S]=x.useState(null),[A,T]=x.useState(null),N=x.useRef(!1),R=E?!!c||!!E.closest("form"):!0,D={checked:b,disabled:s,setChecked:w,control:E,setControl:S,name:f,form:c,value:m,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:ka(l)?!1:l,isFormControl:R,bubbleInput:A,setBubbleInput:T};return g.jsx(Z9,{scope:n,...D,children:J9(y)?y(D):i})}var ZC="CheckboxTrigger",WC=x.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},l)=>{const{control:s,value:c,disabled:f,checked:d,required:h,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:E}=Zm(ZC,e),S=Ie(l,m),A=x.useRef(d);return x.useEffect(()=>{const T=s?.form;if(T){const N=()=>y(A.current);return T.addEventListener("reset",N),()=>T.removeEventListener("reset",N)}},[s,y]),g.jsx(_e.button,{type:"button",role:"checkbox","aria-checked":ka(d)?"mixed":d,"aria-required":h,"data-state":rk(d),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:S,onKeyDown:pe(n,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:pe(r,T=>{y(N=>ka(N)?!0:!N),E&&w&&(b.current=T.isPropagationStopped(),b.current||T.stopPropagation())})})});WC.displayName=ZC;var Wm=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:l,defaultChecked:s,required:c,disabled:f,value:d,onCheckedChange:h,form:m,...y}=e;return g.jsx(W9,{__scopeCheckbox:r,checked:l,defaultChecked:s,disabled:f,required:c,onCheckedChange:h,name:i,form:m,value:d,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(WC,{...y,ref:n,__scopeCheckbox:r}),b&&g.jsx(nk,{__scopeCheckbox:r})]})})});Wm.displayName=ef;var JC="CheckboxIndicator",ek=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...l}=e,s=Zm(JC,r);return g.jsx(un,{present:i||ka(s.checked)||s.checked===!0,children:g.jsx(_e.span,{"data-state":rk(s.checked),"data-disabled":s.disabled?"":void 0,...l,ref:n,style:{pointerEvents:"none",...e.style}})})});ek.displayName=JC;var tk="CheckboxBubbleInput",nk=x.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:l,checked:s,defaultChecked:c,required:f,disabled:d,name:h,value:m,form:y,bubbleInput:b,setBubbleInput:w}=Zm(tk,e),E=Ie(r,w),S=_S(s),A=rS(i);x.useEffect(()=>{const N=b;if(!N)return;const R=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(R,"checked").set,j=!l.current;if(S!==s&&P){const B=new Event("click",{bubbles:j});N.indeterminate=ka(s),P.call(N,ka(s)?!1:s),N.dispatchEvent(B)}},[b,S,s,l]);const T=x.useRef(ka(s)?!1:s);return g.jsx(_e.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:f,disabled:d,name:h,value:m,form:y,...n,tabIndex:-1,ref:E,style:{...n.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});nk.displayName=tk;function J9(e){return typeof e=="function"}function ka(e){return e==="indeterminate"}function rk(e){return ka(e)?"indeterminate":e?"checked":"unchecked"}const nc=x.forwardRef(({className:e,...n},r)=>g.jsx(Wm,{ref:r,className:ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:g.jsx(ek,{className:ue("flex items-center justify-center text-current"),children:g.jsx(Mc,{className:"h-4 w-4"})})}));nc.displayName=Wm.displayName;function eB(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var Jm="ScrollArea",[ak,rH]=Yn(Jm),[tB,Kn]=ak(Jm),ik=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,type:i="hover",dir:l,scrollHideDelay:s=600,...c}=e,[f,d]=x.useState(null),[h,m]=x.useState(null),[y,b]=x.useState(null),[w,E]=x.useState(null),[S,A]=x.useState(null),[T,N]=x.useState(0),[R,D]=x.useState(0),[P,j]=x.useState(!1),[B,U]=x.useState(!1),Y=Ie(n,J=>d(J)),L=Vc(l);return g.jsx(tB,{scope:r,type:i,dir:L,scrollHideDelay:s,scrollArea:f,viewport:h,onViewportChange:m,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:P,onScrollbarXEnabledChange:j,scrollbarY:S,onScrollbarYChange:A,scrollbarYEnabled:B,onScrollbarYEnabledChange:U,onCornerWidthChange:N,onCornerHeightChange:D,children:g.jsx(_e.div,{dir:L,...c,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});ik.displayName=Jm;var ok="ScrollAreaViewport",lk=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,children:i,nonce:l,...s}=e,c=Kn(ok,r),f=x.useRef(null),d=Ie(n,f,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),g.jsx(_e.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});lk.displayName=ok;var Er="ScrollAreaScrollbar",eg=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Kn(Er,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=l,f=e.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),l.type==="hover"?g.jsx(nB,{...i,ref:n,forceMount:r}):l.type==="scroll"?g.jsx(rB,{...i,ref:n,forceMount:r}):l.type==="auto"?g.jsx(sk,{...i,ref:n,forceMount:r}):l.type==="always"?g.jsx(tg,{...i,ref:n}):null});eg.displayName=Er;var nB=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Kn(Er,e.__scopeScrollArea),[s,c]=x.useState(!1);return x.useEffect(()=>{const f=l.scrollArea;let d=0;if(f){const h=()=>{window.clearTimeout(d),c(!0)},m=()=>{d=window.setTimeout(()=>c(!1),l.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",m)}}},[l.scrollArea,l.scrollHideDelay]),g.jsx(un,{present:r||s,children:g.jsx(sk,{"data-state":s?"visible":"hidden",...i,ref:n})})}),rB=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Kn(Er,e.__scopeScrollArea),s=e.orientation==="horizontal",c=nf(()=>d("SCROLL_END"),100),[f,d]=eB("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(f==="idle"){const h=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[f,l.scrollHideDelay,d]),x.useEffect(()=>{const h=l.viewport,m=s?"scrollLeft":"scrollTop";if(h){let y=h[m];const b=()=>{const w=h[m];y!==w&&(d("SCROLL"),c()),y=w};return h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[l.viewport,s,d,c]),g.jsx(un,{present:r||f!=="hidden",children:g.jsx(tg,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:n,onPointerEnter:pe(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:pe(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),sk=x.forwardRef((e,n)=>{const r=Kn(Er,e.__scopeScrollArea),{forceMount:i,...l}=e,[s,c]=x.useState(!1),f=e.orientation==="horizontal",d=nf(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(f?h:m)}},10);return mo(r.viewport,d),mo(r.content,d),g.jsx(un,{present:i||s,children:g.jsx(tg,{"data-state":s?"visible":"hidden",...l,ref:n})})}),tg=x.forwardRef((e,n)=>{const{orientation:r="vertical",...i}=e,l=Kn(Er,e.__scopeScrollArea),s=x.useRef(null),c=x.useRef(0),[f,d]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=hk(f.viewport,f.content),m={...i,sizes:f,onSizesChange:d,hasThumb:h>0&&h<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,w){return uB(b,c.current,f,w)}return r==="horizontal"?g.jsx(aB,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollLeft,w=U0(b,f,l.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=y(b,l.dir))}}):r==="vertical"?g.jsx(iB,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollTop,w=U0(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=y(b))}}):null}),aB=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Kn(Er,e.__scopeScrollArea),[c,f]=x.useState(),d=x.useRef(null),h=Ie(n,d,s.onScrollbarXChange);return x.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(ck,{"data-orientation":"horizontal",...l,ref:h,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":tf(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),mk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:yc(c.paddingLeft),paddingEnd:yc(c.paddingRight)}})}})}),iB=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Kn(Er,e.__scopeScrollArea),[c,f]=x.useState(),d=x.useRef(null),h=Ie(n,d,s.onScrollbarYChange);return x.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(ck,{"data-orientation":"vertical",...l,ref:h,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":tf(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),mk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:yc(c.paddingTop),paddingEnd:yc(c.paddingBottom)}})}})}),[oB,uk]=ak(Er),ck=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:l,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:h,onWheelScroll:m,onResize:y,...b}=e,w=Kn(Er,r),[E,S]=x.useState(null),A=Ie(n,Y=>S(Y)),T=x.useRef(null),N=x.useRef(""),R=w.viewport,D=i.content-i.viewport,P=Mt(m),j=Mt(d),B=nf(y,10);function U(Y){if(T.current){const L=Y.clientX-T.current.left,J=Y.clientY-T.current.top;h({x:L,y:J})}}return x.useEffect(()=>{const Y=L=>{const J=L.target;E?.contains(J)&&P(L,D)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[R,E,D,P]),x.useEffect(j,[i,j]),mo(E,B),mo(w.content,B),g.jsx(oB,{scope:r,scrollbar:E,hasThumb:l,onThumbChange:Mt(s),onThumbPointerUp:Mt(c),onThumbPositionChange:j,onThumbPointerDown:Mt(f),children:g.jsx(_e.div,{...b,ref:A,style:{position:"absolute",...b.style},onPointerDown:pe(e.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),T.current=E.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),U(Y))}),onPointerMove:pe(e.onPointerMove,U),onPointerUp:pe(e.onPointerUp,Y=>{const L=Y.target;L.hasPointerCapture(Y.pointerId)&&L.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=N.current,w.viewport&&(w.viewport.style.scrollBehavior=""),T.current=null})})})}),gc="ScrollAreaThumb",fk=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=uk(gc,e.__scopeScrollArea);return g.jsx(un,{present:r||l.hasThumb,children:g.jsx(lB,{ref:n,...i})})}),lB=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,style:i,...l}=e,s=Kn(gc,r),c=uk(gc,r),{onThumbPositionChange:f}=c,d=Ie(n,y=>c.onThumbChange(y)),h=x.useRef(void 0),m=nf(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const y=s.viewport;if(y){const b=()=>{if(m(),!h.current){const w=cB(y,f);h.current=w,f()}};return f(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[s.viewport,m,f]),g.jsx(_e.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:pe(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),E=y.clientX-w.left,S=y.clientY-w.top;c.onThumbPointerDown({x:E,y:S})}),onPointerUp:pe(e.onPointerUp,c.onThumbPointerUp)})});fk.displayName=gc;var ng="ScrollAreaCorner",dk=x.forwardRef((e,n)=>{const r=Kn(ng,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(sB,{...e,ref:n}):null});dk.displayName=ng;var sB=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,...i}=e,l=Kn(ng,r),[s,c]=x.useState(0),[f,d]=x.useState(0),h=!!(s&&f);return mo(l.scrollbarX,()=>{const m=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(m),d(m)}),mo(l.scrollbarY,()=>{const m=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(m),c(m)}),h?g.jsx(_e.div,{...i,ref:n,style:{width:s,height:f,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function yc(e){return e?parseInt(e,10):0}function hk(e,n){const r=e/n;return isNaN(r)?0:r}function tf(e){const n=hk(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*n;return Math.max(i,18)}function uB(e,n,r,i="ltr"){const l=tf(r),s=l/2,c=n||s,f=l-c,d=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,y=i==="ltr"?[0,m]:[m*-1,0];return pk([d,h],y)(e)}function U0(e,n,r="ltr"){const i=tf(n),l=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-l,c=n.content-n.viewport,f=s-i,d=r==="ltr"?[0,c]:[c*-1,0],h=Sp(e,d);return pk([0,c],[0,f])(h)}function pk(e,n){return r=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(r-e[0])}}function mk(e,n){return e>0&&e<n}var cB=(e,n=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function l(){const s={left:e.scrollLeft,top:e.scrollTop},c=r.left!==s.left,f=r.top!==s.top;(c||f)&&n(),r=s,i=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(i)};function nf(e,n){const r=Mt(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,n)},[r,n])}function mo(e,n){const r=Mt(n);$t(()=>{let i=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(i),l.unobserve(e)}}},[e,r])}var gk=ik,fB=lk,dB=dk;const Ql=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(gk,{ref:i,className:ue("relative overflow-hidden",e),...r,children:[g.jsx(fB,{className:"h-full w-full rounded-[inherit]",children:n}),g.jsx(yk,{}),g.jsx(dB,{})]}));Ql.displayName=gk.displayName;const yk=x.forwardRef(({className:e,orientation:n="vertical",...r},i)=>g.jsx(eg,{ref:i,orientation:n,className:ue("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(fk,{className:"relative flex-1 rounded-full bg-border"})}));yk.displayName=eg.displayName;async function vk(){const n=[...[{id:"project-md",name:"project.md",path:".nut/context/project.md",relativePath:"context/project.md",type:"context",content:"Loading..."},{id:"architecture-md",name:"architecture.md",path:".nut/context/architecture.md",relativePath:"context/architecture.md",type:"context",content:"Loading..."}]];try{const r=await fetch(`${Et}/api/v1/context/knowledge`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.documents)){const l=i.documents.filter(s=>typeof s?.filename=="string").map(s=>({id:`knowledge-${s.filename.replace(".md","")}`,name:s.filename,path:`.nut/context/knowledge/${s.filename}`,relativePath:`context/knowledge/${s.filename}`,type:"knowledge",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching knowledge documents:",r)}try{const r=await fetch(`${Et}/api/v1/proposals`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.data)){const l=i.data.filter(s=>typeof s?.id=="string"&&typeof s.intent=="string").map(s=>({id:`proposal-${s.id}`,name:`${s.id}: ${s.intent}`,path:`.nut/proposals/${s.id}.md`,relativePath:`proposals/${s.id}.md`,type:"proposal",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching proposals:",r)}return n}async function Hp(e){if(e.content&&e.content!=="Loading...")return e;try{let n=null;if(e.name==="project.md"?n="/api/v1/context/project":e.name==="architecture.md"?n="/api/v1/context/architecture":e.type==="knowledge"?n=`/api/v1/context/knowledge/${e.path?.split("/").pop()?.replace(".md","")||e.relativePath?.split("/").pop()?.replace(".md","")||e.name.replace(".md","")}`:e.type==="proposal"&&(n=`/api/v1/proposals/${e.id.replace("proposal-","")}`),n){const r=await fetch(`${Et}${n}`);if(r.ok)if(e.type==="proposal"){const l=(await r.json()).data;if(l&&typeof l.intent=="string")return{...e,content:`# ${l.intent}
|
|
390
|
+
|
|
391
|
+
${l.content||"No content available"}`}}else{const l=(await r.json()).document?.content;return{...e,content:typeof l=="string"&&l.length>0?l:"Content not available"}}}}catch(n){console.error(`Error loading content for ${e.name}:`,n)}return{...e,content:e.content??"Content could not be loaded."}}function H0({open:e,onOpenChange:n,onSelectionConfirm:r,initialSelection:i=[]}){const[l,s]=x.useState([]),[c,f]=x.useState(i),[d,h]=x.useState(null),[m,y]=x.useState(!1);x.useEffect(()=>{e&&(b(),f(i))},[e,i]);const b=async()=>{y(!0);try{const R=await vk();s(R)}catch(R){console.error("Error loading context files:",R)}finally{y(!1)}},w=async R=>{if(R.content&&R.content!=="Loading...")return R;try{return await Hp(R)}catch(D){console.error("Error loading file content via API:",D)}try{let D="Content could not be loaded.";return R.name==="project.md"?D=`# Coconut - Project Context
|
|
392
|
+
|
|
393
|
+
## What is Coconut?
|
|
394
|
+
|
|
395
|
+
Coconut (Git-Adjacent Intent Tracking) revolutionizes software development by treating intent, plans, and product operations as first-class citizens alongside code. Built for the AI era where humans and agents collaborate seamlessly.
|
|
396
|
+
|
|
397
|
+
## Core Philosophy
|
|
398
|
+
|
|
399
|
+
1. **Lives with your code** - Build and manage your project context, backlog, agents, and knowledge that lives directly alongside your code
|
|
400
|
+
2. **Everyone is first-class** - PMs, designers, engineers, and AI agents are all first-class
|
|
401
|
+
3. **Accessible everywhere** - IDE, Web UI, CLI, Mobile
|
|
402
|
+
4. **Inline AI** - AI everywhere with flexible API key management
|
|
403
|
+
5. **File-first architecture** - Start with zero infrastructure (on premise or hosted), scale when needed
|
|
404
|
+
6. **Intent over diffs** - Express what you want to achieve, not just what changed`:R.name==="architecture.md"&&(D=`# Coconut Architecture
|
|
405
|
+
|
|
406
|
+
## Technology Stack
|
|
407
|
+
|
|
408
|
+
### Frontend
|
|
409
|
+
- **Next.js 14+**: React framework with App Router
|
|
410
|
+
- **TypeScript**: End-to-end type safety
|
|
411
|
+
- **Tailwind CSS**: Utility-first styling
|
|
412
|
+
- **shadcn/ui**: Modern component library
|
|
413
|
+
|
|
414
|
+
### Data Layer
|
|
415
|
+
- **File Storage**: Markdown files with YAML frontmatter in .nut/
|
|
416
|
+
- **Local State**: React Context + localStorage
|
|
417
|
+
- **Real-time**: File system watching with chokidar
|
|
418
|
+
|
|
419
|
+
### AI Integration
|
|
420
|
+
- **Vercel AI SDK**: Unified AI integration
|
|
421
|
+
- **OpenAI/Anthropic SDKs**: Direct model access
|
|
422
|
+
|
|
423
|
+
## Repository Structure
|
|
424
|
+
|
|
425
|
+
\`\`\`
|
|
426
|
+
project-root/
|
|
427
|
+
├── .nut/ # Coconut data directory
|
|
428
|
+
│ ├── config.json # Repository configuration
|
|
429
|
+
│ ├── proposals/ # Change proposals
|
|
430
|
+
│ ├── agents/ # AI agents
|
|
431
|
+
│ ├── context/ # Project context
|
|
432
|
+
│ └── knowledge/ # Team knowledge
|
|
433
|
+
└── your-actual-code/ # Your project files
|
|
434
|
+
\`\`\``),{...R,content:D}}catch(D){return console.error("Fallback content generation failed:",D),{...R,content:"Error loading content"}}},E=async R=>{const D=await w(R);h(D)},S=(R,D)=>{f(P=>D?[...P,R]:P.filter(j=>j!==R))},A=()=>{const R=l.filter(D=>c.includes(D.id));r({files:R,selectedIds:c}),n(!1)},T=R=>{switch(R){case"context":case"knowledge":return g.jsx(ic,{className:"h-4 w-4"});case"agent":return g.jsx(zl,{className:"h-4 w-4"});case"proposal":return g.jsx(xb,{className:"h-4 w-4"});default:return g.jsx(xb,{className:"h-4 w-4"})}},N=l.reduce((R,D)=>{let P="context";return D.type==="knowledge"?P="knowledge":D.type==="proposal"&&(P="proposals"),R[P]||(R[P]=[]),R[P].push(D),R},{});return g.jsx(Kc,{open:e,onOpenChange:n,children:g.jsxs(ss,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(us,{children:g.jsx(cs,{children:"Select Context Files"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsx("div",{className:"mb-2 text-sm font-medium",children:"Project Context"}),g.jsx(Ql,{className:"h-full",children:m?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(oc,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading files..."})]})}):l.length===0?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"text-center text-muted-foreground",children:[g.jsx(yM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No context files available"})]})}):g.jsxs("div",{className:"space-y-1",children:[N.context&&g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Ku,{className:"h-3 w-3"}),g.jsx("span",{children:"Context"})]}),N.context.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>E(R),children:[g.jsx(nc,{checked:c.includes(R.id),onCheckedChange:D=>S(R.id,D),onClick:D=>D.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",children:R.name})]},R.id))]}),N.knowledge&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Ku,{className:"h-3 w-3"}),g.jsx("span",{children:"Knowledge"})]}),N.knowledge.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>E(R),children:[g.jsx(nc,{checked:c.includes(R.id),onCheckedChange:D=>S(R.id,D),onClick:D=>D.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",children:R.name})]},R.id))]}),N.proposals&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Ku,{className:"h-3 w-3"}),g.jsx("span",{children:"Proposals"})]}),N.proposals.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>E(R),children:[g.jsx(nc,{checked:c.includes(R.id),onCheckedChange:D=>S(R.id,D),onClick:D=>D.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",title:R.name,children:R.name.length>30?`${R.name.substring(0,30)}...`:R.name})]},R.id))]})]})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:d?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[T(d.type),g.jsx("span",{className:"font-medium",children:d.name}),g.jsx("span",{className:"text-xs text-muted-foreground",children:d.relativePath})]})}),g.jsx(Ql,{className:"flex-1 border rounded-md p-4",children:d.content==="Loading..."?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(oc,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading content..."})]})}):g.jsx(ms,{className:"[&_.prose]:max-w-none",children:d.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(ic,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a file to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsxs("div",{className:"text-sm text-muted-foreground",children:[c.length," file",c.length!==1?"s":""," selected"]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(St,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(St,{onClick:A,children:"Use Selected Context"})]})]})]})})}function F0({open:e,onOpenChange:n,onSelect:r,initialSelectedId:i=null}){const[l,s]=x.useState([]),[c,f]=x.useState(!1),[d,h]=x.useState(i);x.useEffect(()=>{e&&(h(i),f(!0),fetch(`${Et}/api/v1/agents`).then(async b=>{if(!b.ok)throw new Error("Failed to load agents");const w=await b.json();s(w.documents||[])}).catch(()=>s([])).finally(()=>f(!1)))},[e,i]);const m=x.useMemo(()=>l.find(b=>b.filename.replace(".md","")===d)||null,[l,d]),y=()=>{m&&(r(m),n(!1))};return g.jsx(Kc,{open:e,onOpenChange:n,children:g.jsxs(ss,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(us,{children:g.jsx(cs,{children:"Select an Agent"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsxs("div",{className:"mb-2 text-sm font-medium flex items-center gap-2",children:[g.jsx(Ku,{className:"h-3 w-3"}),g.jsx("span",{children:"Agents"})]}),g.jsx(Ql,{className:"h-full",children:c?g.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):l.length===0?g.jsx("div",{className:"py-8 text-sm text-muted-foreground text-center",children:"No agents found"}):g.jsx("div",{className:"space-y-1",children:l.map(b=>{const w=b.filename.replace(".md",""),E=d===w;return g.jsxs("button",{onClick:()=>h(w),className:ue("w-full text-left p-2 rounded-md hover:bg-muted flex items-center gap-2",E&&"bg-muted"),children:[g.jsx("input",{type:"radio",checked:E,onChange:()=>h(w),className:"h-4 w-4"}),g.jsx(zl,{className:"h-4 w-4"}),g.jsx("span",{className:"text-sm truncate flex-1",children:b.metadata?.name||b.title})]},w)})})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:m?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(zl,{className:"h-4 w-4"}),g.jsx("span",{className:"font-medium",children:m.metadata?.name||m.title}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:[".nut/agents/",m.filename]})]})}),g.jsx(Ql,{className:"flex-1 border rounded-md p-4",children:g.jsx(ms,{className:"[&_.prose]:max-w-none",children:m.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(zl,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select an agent to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsx("div",{className:"text-sm text-muted-foreground",children:m?`Selected: ${m.metadata?.name||m.title}`:"No agent selected"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(St,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(St,{onClick:y,disabled:!m,children:"Use Agent"})]})]})]})})}const hB=[{id:"openai/gpt-4o",label:"GPT-4o",provider:"openai",supportsMCP:!0,strengths:["balanced","reasoning","code","tools"],notes:"Great general model with tool/function calling support."},{id:"openai/gpt-4o-mini",label:"GPT-4o Mini",provider:"openai",supportsMCP:!0,strengths:["cost-effective","fast","tools"],notes:"Good for quick, inexpensive tasks with function calling."},{id:"openai/gpt-4.1",label:"GPT-4.1",provider:"openai",supportsMCP:!0,strengths:["coding","instruction following","long context"],notes:"Latest GPT-4 series with enhanced capabilities."},{id:"openai/o3-mini",label:"o3-mini",provider:"openai",supportsMCP:!0,strengths:["reasoning","math","coding"],notes:"Reasoning model optimized for efficiency."},{id:"anthropic/claude-sonnet-4.5",label:"Claude Sonnet 4.5",provider:"anthropic",supportsMCP:!0,strengths:["agents","coding","tools","fast","long context"],notes:"Most advanced Sonnet - 1.5-2x faster, optimized for agents and tool orchestration."},{id:"anthropic/claude-sonnet-4",label:"Claude Sonnet 4",provider:"anthropic",supportsMCP:!0,strengths:["reasoning","analysis","tools","coding"],notes:"Excellent tool use and reasoning capabilities."},{id:"anthropic/claude-3.5-sonnet",label:"Claude 3.5 Sonnet",provider:"anthropic",supportsMCP:!0,strengths:["reasoning","analysis","tools"],notes:"Reliable Claude model with strong tool support."},{id:"google/gemini-2.0-flash-001",label:"Gemini 2.0 Flash",provider:"google",supportsMCP:!0,strengths:["speed","multimodal","tools"],notes:"Fast Google model with function calling."},{id:"meta-llama/llama-3.1-405b-instruct",label:"Llama 3.1 405B",provider:"meta-llama",supportsMCP:!0,strengths:["reasoning","open weights","code"],notes:"High-capacity open model; function calling often available."},{id:"qwen/qwen-2.5-72b-instruct",label:"Qwen 2.5 72B",provider:"qwen",supportsMCP:!0,strengths:["cost-effective","code","tools"],notes:"Strong value open model with tool support."}],pB={models:hB},xk=pB;function mB(){return xk.models}function gB(e){return xk.models.find(n=>n.id===e)}function yB(e){return!!gB(e)?.supportsMCP}const bk=x.forwardRef(({className:e,...n},r)=>g.jsx("textarea",{className:ue("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));bk.displayName="Textarea";const vB=/```knowledge_action\s*\n([\s\S]*?)```/gi;function Fp(e){if(!e||typeof e!="object")return!1;const n=e;return!(typeof n.action!="string"||n.action!=="create"&&n.action!=="update"||typeof n.title!="string"||typeof n.content!="string"||n.action==="update"&&typeof n.filename!="string")}function qp(e){const n=e.metadata?{...e.metadata,tags:Array.isArray(e.metadata.tags)?e.metadata.tags:e.metadata.tags?[e.metadata.tags].flat().map(String):[],sources:Array.isArray(e.metadata.sources)?e.metadata.sources:e.metadata.sources?[e.metadata.sources].flat().map(String):[],related:Array.isArray(e.metadata.related)?e.metadata.related:[],audience:Array.isArray(e.metadata.audience)?e.metadata.audience:[]}:void 0;return{...e,metadata:n}}function xB(e){if(!e)return[];const n=Array.isArray(e)?e:[e],r=[];for(const i of n)Fp(i)&&r.push(qp(i));return r}function bB(e){const n=e.trimEnd();if(!n.endsWith("}"))return null;let r=0,i=!1,l=!1;for(let s=n.length-1;s>=0;s--){const c=n[s];if(i){l?l=!1:c==="\\"?l=!0:c==='"'&&(i=!1);continue}if(c==='"'){i=!0;continue}if(c==="}"){r+=1;continue}if(c==="{"&&(r-=1,r===0)){const f=n.slice(s);try{const d=JSON.parse(f),h=xB(d);if(h.length>0)return{cleaned:n.slice(0,s).trimEnd(),actions:h}}catch(d){console.error("Failed to parse trailing knowledge action payload:",d)}return null}}return null}function wB(e){const n=[];let i=e.replace(vB,(l,s)=>{try{const c=JSON.parse(s.trim());Array.isArray(c)?c.forEach(f=>{Fp(f)&&n.push(qp(f))}):Fp(c)&&n.push(qp(c))}catch(c){console.error("Failed to parse knowledge_action block:",c)}return""}).replace(/\n{3,}/g,`
|
|
435
|
+
|
|
436
|
+
`).trim();if(n.length===0){const l=bB(i);l&&(n.push(...l.actions),i=l.cleaned)}return{cleanedContent:i,actions:n}}function SB(e){return e.action==="create"?`Proposed new knowledge document "${e.title}"`:`Proposed updates to ${e.filename||e.title}`}function EB(e,n){const r=e.split(`
|
|
437
|
+
`),i=n.split(`
|
|
438
|
+
`),l=r.length,s=i.length,c=Array.from({length:l+1},()=>Array(s+1).fill(0));for(let m=l-1;m>=0;m--)for(let y=s-1;y>=0;y--)r[m]===i[y]?c[m][y]=c[m+1][y+1]+1:c[m][y]=Math.max(c[m+1][y],c[m][y+1]);const f=[];let d=0,h=0;for(;d<l&&h<s;)r[d]===i[h]?(f.push({type:"context",value:r[d]}),d++,h++):c[d+1][h]>=c[d][h+1]?(f.push({type:"removed",value:r[d]}),d++):(f.push({type:"added",value:i[h]}),h++);for(;d<l;)f.push({type:"removed",value:r[d]}),d++;for(;h<s;)f.push({type:"added",value:i[h]}),h++;return f}function CB({original:e,updated:n}){const r=x.useMemo(()=>EB(e??"",n??""),[e,n]);return g.jsx("div",{className:"max-h-[60vh] overflow-auto border rounded-md bg-background",children:g.jsx("pre",{className:"text-xs leading-5 font-mono p-4 space-y-1",children:r.map((i,l)=>{const s=i.type==="added"?"+":i.type==="removed"?"-":" ",c=i.type==="added"?"bg-green-100 dark:bg-green-950/40 text-green-900 dark:text-green-200 border-l-2 border-green-500":i.type==="removed"?"bg-red-100 dark:bg-red-950/40 text-red-900 dark:text-red-200 border-l-2 border-red-500":"text-muted-foreground";return g.jsxs("div",{className:ue("px-2 py-1 whitespace-pre-wrap break-words rounded-sm",c),children:[s," ",i.value]},l)})})})}function kB({action:e,onApply:n,fetchDocumentContent:r}){const[i,l]=x.useState(!1),[s,c]=x.useState(null),[f,d]=x.useState(null),[h,m]=x.useState(!1),[y,b]=x.useState(!1),[w,E]=x.useState("idle"),[S,A]=x.useState(null),T=e.action==="create"?"Preview document":"View diff",N=e.action==="create"?"Add to knowledge":`Update ${e.filename||"document"}`,R=async()=>{if(d(null),e.action==="update"){if(!e.filename){d("Filename is required to load the existing document."),l(!0);return}l(!0),m(!0);try{const j=await r(e.filename);if(!j){d("Could not load the existing knowledge document.");return}c({mode:"diff",original:j,updated:e.content})}catch(j){d(j instanceof Error?j.message:"Failed to load preview.")}finally{m(!1)}}else c({mode:"content",updated:e.content}),l(!0)},D=async()=>{A(null),E("idle"),b(!0);try{await n(e),E("success")}catch(j){E("error"),A(j instanceof Error?j.message:"Failed to update knowledge document.")}finally{b(!1)}},P=()=>{l(!1),c(null),d(null)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border border-dashed border-primary/40 bg-primary/5 text-sm rounded-md p-3 space-y-2",children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("p",{className:"font-medium leading-tight",children:SB(e)}),e.summary&&g.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:e.summary})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(St,{variant:"outline",size:"sm",onClick:R,disabled:h,children:h?"Loading…":T}),g.jsx(St,{size:"sm",onClick:D,disabled:y||w==="success",children:y?"Applying…":N})]})]}),w==="success"&&g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"Knowledge document saved."}),w==="error"&&S&&g.jsx("p",{className:"text-xs text-destructive",children:S})]}),g.jsx(Kc,{open:i,onOpenChange:j=>j?l(!0):P(),children:g.jsxs(ss,{className:"max-w-3xl",children:[g.jsxs(us,{children:[g.jsx(cs,{children:e.action==="create"?e.title:`Proposed changes for ${e.filename||e.title}`}),f&&g.jsx(Ol,{className:"text-destructive",children:f}),h&&!f&&g.jsx(Ol,{children:"Loading preview…"}),s?.mode==="diff"&&!h&&!f&&g.jsx(Ol,{children:"Review differences before updating the knowledge document."}),s?.mode==="content"&&!h&&!f&&g.jsx(Ol,{children:"Review the drafted knowledge content before saving."})]}),!h&&!f&&s&&(s.mode==="diff"&&s.original?g.jsx(CB,{original:s.original,updated:s.updated}):g.jsx("div",{className:"border rounded-md p-4 max-h-[60vh] overflow-auto bg-background",children:g.jsx(ms,{className:"text-sm [&_.prose]:text-sm",children:s.updated})})),g.jsx(mE,{children:g.jsx(St,{variant:"outline",size:"sm",onClick:P,children:"Close"})})]})})]})}function AB({isOpen:e,onToggle:n,contextInfo:r,discussDocument:i,onDiscussDocumentHandled:l,pendingPrompt:s,onPendingPromptHandled:c}){const[f,d]=x.useState("openai/gpt-4o"),[h,m]=x.useState(""),[y,b]=x.useState([]),[w,E]=x.useState(!1),[S,A]=x.useState(!1),T=c1(),[N,R]=x.useState(!1),[D,P]=x.useState([]),[j,B]=x.useState(!1),[U,Y]=x.useState(!1),[L,J]=x.useState([]),[W,ie]=x.useState([]),G=x.useRef([]),ne=x.useRef(new Map),z=x.useRef(!0),[Q,F]=x.useState([]),re=Q.length,k=re>0?`${re} file${re===1?"":"s"}`:"None",Z=()=>g.jsxs(g.Fragment,{children:["Added context:"," ",g.jsx("span",{className:"text-emerald-500 font-medium",children:k})]}),[ce,M]=x.useState(!1),[se,Se]=x.useState(null),[me,le]=x.useState(!1),[ve,He]=x.useState([]),[Ce,Oe]=x.useState(!1),[Xe,Ct]=x.useState(null),[kt,Xt]=x.useState(null);x.useEffect(()=>{const $=fe=>{if(fe.key==="Escape"){if(S){Zt();return}if(Ce){Oe(!1);return}}if((fe.metaKey||fe.ctrlKey)&&fe.shiftKey&&fe.key.toLowerCase()==="k"){fe.preventDefault(),Y(!0);return}if((fe.metaKey||fe.ctrlKey)&&fe.shiftKey&&fe.key.toLowerCase()==="n"){fe.preventDefault(),(y.length>0||Q.length>0||se)&&(ft.current&&(ft.current.abort(),ft.current=null),E(!1),A(!1),Xt(null),b([]),F([]),ie([]),G.current=[],Se(null),le(!1),m(""));return}if((fe.metaKey||fe.ctrlKey)&&fe.shiftKey&&fe.key.toLowerCase()==="e"){fe.preventDefault(),Oe(ge=>!ge);return}};if(e)return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[e,Ce,S,y.length,Q.length,se]);const Xn=x.useRef(null),ft=x.useRef(null),_o=()=>{try{Xn.current?.scrollIntoView({behavior:"smooth"})}catch{console.error("Error scrolling to bottom")}};x.useEffect(()=>{_o()},[y,w]),x.useEffect(()=>{(async()=>{try{const fe=await fetch(`${Et}/api/v1/config?type=global`);if(fe.ok){const ye=(await fe.json())?.data?.defaults?.model;typeof ye=="string"&&ye.length>0&&d(ye)}}catch(fe){console.error("Error loading default AI model configuration:",fe)}})()},[]),x.useEffect(()=>()=>{z.current=!1},[]),x.useEffect(()=>{G.current=W},[W]),x.useEffect(()=>{let $=!1;return(async()=>{try{const ge=await vk();if($)return;J(ge);const ye=ne.current;ge.forEach(Me=>{const Qe=ye.get(Me.id);Qe&&Qe.content&&Qe.content!=="Loading..."&&(!Me.content||Me.content==="Loading...")?ye.set(Me.id,Qe):ye.set(Me.id,Me)})}catch(ge){$||console.error("Error loading context file list:",ge)}})(),()=>{$=!0}},[]),x.useEffect(()=>{(async()=>{try{const fe=await fetch(`${Et}/api/v1/mcp`);if(fe.ok){const ge=await fe.json();if(ge.tools){const ye=Object.entries(ge.tools).map(([Me,Qe])=>({name:Me,...Qe}));He(ye)}}}catch(fe){console.error("Error loading MCP tools:",fe)}})()},[]);const Qn=x.useMemo(()=>mB().map($=>({value:$.id,label:$.label})),[]),ja=yB(f),Qr=ve.length>0,di=x.useCallback($=>{const fe=ne.current.get($);if(fe)return fe;const ge=L.find(ye=>ye.id===$);return ge?(ne.current.set($,ge),ge):null},[L]),Da=x.useCallback($=>{if($.startsWith("knowledge-")){const ge=`${$.replace("knowledge-","")}.md`;return{id:$,name:ge,type:"knowledge",path:`.nut/context/knowledge/${ge}`,relativePath:`context/knowledge/${ge}`,content:"Loading..."}}if($.startsWith("proposal-")){const fe=$.replace("proposal-","");return{id:$,name:`${fe}.md`,type:"proposal",path:`.nut/proposals/${fe}.md`,relativePath:`proposals/${fe}.md`,content:"Loading..."}}return $==="project-md"?{id:$,name:"project.md",type:"context",path:".nut/context/project.md",relativePath:"context/project.md",content:"Loading..."}:$==="architecture-md"?{id:$,name:"architecture.md",type:"context",path:".nut/context/architecture.md",relativePath:"context/architecture.md",content:"Loading..."}:null},[]),hi=x.useCallback(async $=>{const fe=$.filter((ye,Me,Qe)=>Qe.indexOf(ye)===Me),ge=[];for(const ye of fe){let Me=di(ye);if(Me||(Me=Da(ye),Me&&ne.current.set(ye,Me)),!!Me){if(Me.content&&Me.content!=="Loading..."){ne.current.set(ye,Me),ge.push(Me);continue}try{const Qe=await Hp(Me);ne.current.set(ye,Qe),ge.push(Qe)}catch(Qe){console.error(`Error ensuring content for context file ${Me.name}:`,Qe),ge.push(Me)}}}return ge},[Da,di]),Zr=x.useCallback(async $=>{if($.length===0){F([]);return}try{const fe=await hi($);if(!z.current)return;const ge=new Map(fe.map(Me=>[Me.id,Me])),ye=$.map(Me=>ge.get(Me)).filter(Me=>!!Me);F(ye)}catch(fe){console.error("Error synchronizing selected context files:",fe)}},[hi]);x.useEffect(()=>{if(i&&e){const $={id:i.id,name:i.name,type:i.type||"knowledge",path:i.path,relativePath:i.path,content:"Loading..."};if(!G.current.includes(i.id)){const fe=[...G.current,i.id];ie(fe),G.current=fe,ne.current.set(i.id,$),F(ge=>ge.some(ye=>ye.id===i.id)?ge:[...ge,$]),Zr(fe).catch(ge=>{console.error("Error syncing context after discuss document:",ge)})}l?.()}},[i,e,l,Zr]),x.useEffect(()=>{s&&e&&(m(s),c?.())},[s,e,c]);const ee=ja&&Qr;x.useEffect(()=>{!new Set(Qn.map(fe=>fe.value)).has(f)&&Qn.length>0&&d(Qn[0].value)},[Qn,f]);const de=async()=>{if(y.length!==0)try{const $=await fetch(`${Et}/api/v1/chats`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:y,model:f,context:r})});if(!$.ok){const ge=await $.json();throw new Error(ge.error||"Failed to save chat")}const fe=await $.json();console.log("Chat saved:",fe.chatId)}catch($){console.error("Error saving chat:",$)}},ke=async()=>{B(!0);try{const $=await fetch(`${Et}/api/v1/chats`);if(!$.ok)throw new Error("Failed to load chat history");const fe=await $.json();P(fe.chats)}catch($){console.error("Error loading chat history:",$)}finally{B(!1)}},Te=async $=>{try{const fe=await fetch(`${Et}/api/v1/chats/${$}`);if(!fe.ok)throw new Error("Failed to load chat");const ge=await fe.json();b(ge.chat.messages),d(ge.chat.model),R(!1)}catch(fe){console.error("Error loading chat:",fe)}},et=async $=>{try{if(!(await fetch(`${Et}/api/v1/chats/${$}`,{method:"DELETE"})).ok)throw new Error("Failed to delete chat");await ke()}catch(fe){console.error("Error deleting chat:",fe)}},rn=()=>{S&&Zt(),b([]),F([]),ie([]),G.current=[],Se(null),le(!1),m("")},Zn=async($,fe)=>{try{await navigator.clipboard.writeText($),Ct(fe),setTimeout(()=>Ct(null),2e3)}catch(ge){console.error("Failed to copy message:",ge)}},Qt=$=>{const fe=Cr(),ye=[...fe.understand,...fe.define,...fe.explore,...fe.synthesize,...fe.capture].find(Me=>Me.label===$);ye&&m(ye.prompt)},jn=async $=>{try{const fe=$.endsWith(".md")?$.slice(0,-3):$,ge=await fetch(`${Et}/api/v1/context/knowledge/${fe}`);return ge.ok?(await ge.json()).document?.content||null:(console.error("Failed to fetch knowledge document:",ge.statusText),null)}catch(fe){return console.error("Error fetching knowledge document:",fe),null}},an=async $=>{const fe={tool:"knowledge_documents",arguments:{operation:$.action==="create"?"create":"update",title:$.title,content:$.content,filename:$.filename,metadata:$.metadata,summary:$.summary}};try{const ge=await fetch(`${Et}/api/v1/mcp/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(fe)}),ye=await ge.json();if(!ge.ok||!ye.success)throw new Error(ye.error||"Knowledge tool execution failed");const Me=ye.data?.filename||$.filename||$.title,Qe=$.action==="create"?"added to the knowledge base":"updated in the knowledge base";b(Wt=>[...Wt,{role:"system",content:`Knowledge document ${Me} ${Qe}.`}])}catch(ge){throw console.error("Error applying knowledge action:",ge),ge instanceof Error?ge:new Error("Failed to apply knowledge action")}},At=async()=>{if(!h.trim()||S)return;const $=h,ge=!y.some(Ke=>Ke.role==="user");let ye;ge&&se&&!me&&(ye=`--- System Persona ---
|
|
439
|
+
You MUST adopt and consistently act as the following agent persona for this entire conversation.
|
|
440
|
+
- Follow its goals, tone, constraints, and tools.
|
|
441
|
+
- Prioritize the agent's specified skills and focus areas in your reasoning and responses.
|
|
442
|
+
- Do not disclaim or deviate unless the instructions explicitly permit.
|
|
443
|
+
|
|
444
|
+
Agent: ${se.name} (.nut/agents/${se.filename})
|
|
445
|
+
|
|
446
|
+
${se.content}
|
|
447
|
+
--- End System Persona ---`,le(!0));const Qe=(await Promise.all(Q.map(async Ke=>{if(Ke.content&&Ke.content!=="Loading..."&&Ke.content!=="Content not available")return Ke;try{const vt=await Hp(Ke);return ne.current.set(Ke.id,vt),vt}catch(vt){return console.error(`Failed to load content for ${Ke.name}:`,vt),Ke}}))).filter(Ke=>Ke.content&&Ke.content!=="Loading..."&&Ke.content!=="Content not available").map(Ke=>({name:Ke.name,path:Ke.path,type:Ke.type,content:Ke.content})),Wt={role:"user",content:h};b(Ke=>[...Ke,Wt]),m(""),E(!0),A(!0);const Tt=new AbortController;ft.current=Tt;try{const vt=[...y,Wt].filter(lt=>lt.role==="user"||lt.role==="assistant").map((lt,dn,hn)=>dn===hn.length-1&<.role==="user"?{role:lt.role,content:$}:lt),dt={message:$,history:vt,model:f,context:r?.type,contextContent:r?.content,agentPersona:ye,maxTokens:8e3,enableTools:ee,attachedContextFiles:Qe.length>0?Qe:void 0,stream:!0},mt=await fetch(`${Et}/api/v1/ai`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(dt),signal:Tt.signal});if(!mt.ok){let lt="Failed to get AI response";try{const dn=await mt.json();lt=dn.error||dn.message||lt,dn.status&&(lt=`${lt} (${dn.status})`)}catch{lt=`${mt.statusText||lt} (${mt.status})`}throw new Error(lt)}if(dt.stream&&mt.body){const lt=mt.body.getReader(),dn=new TextDecoder;let hn="",Mo=null;const Oa=new Map;let kr=!1;const jo={role:"assistant",content:""};b(Bt=>[...Bt,jo]),E(!1);try{let Bt="";for(;;){const{done:Ut,value:st}=await lt.read();if(Ut)break;Bt+=dn.decode(st,{stream:!0});const Wn=Bt.split(`
|
|
448
|
+
`);Bt=Wn.pop()||"";for(const qe of Wn)if(qe.startsWith("data: ")){const Rt=qe.slice(6).trim();if(Rt==="[DONE]")break;try{const jt=JSON.parse(Rt);if(jt.error){Mo=jt.error.message||jt.error||"Unknown streaming error",console.error("Stream error from API:",jt.error);break}const pn=jt.choices?.[0]?.delta?.content;pn&&(hn+=pn,b(Ht=>{const Ar=[...Ht];return Ar[Ar.length-1]={role:"assistant",content:hn},Ar}));const ur=jt.choices?.[0]?.delta?.tool_calls;if(ur&&Array.isArray(ur)){kr=!0;for(const Ht of ur){const Ar=Ht.index??0,La=Oa.get(Ar);La?(Ht.id&&(La.id=Ht.id),Ht.type&&(La.type=Ht.type),Ht.function?.name&&(La.function.name+=Ht.function.name),Ht.function?.arguments&&(La.function.arguments+=Ht.function.arguments)):Oa.set(Ar,{id:Ht.id||"",type:Ht.type||"function",function:{name:Ht.function?.name||"",arguments:Ht.function?.arguments||""}})}}const Pa=jt.choices?.[0]?.finish_reason;Pa==="tool_calls"?kr=!0:Pa&&Pa!=="stop"&&Pa!=="length"&&console.warn("Unusual finish reason:",Pa)}catch{Rt&&Rt!=="[DONE]"&&console.warn("Failed to parse stream chunk:",Rt.substring(0,100))}}}if(kr&&Oa.size>0){const Ut=Array.from(Oa.values()).map((qe,Rt)=>({id:qe.id||`call_${Rt}`,type:qe.type,function:qe.function})),st=Ut.map(qe=>qe.function.name).filter(Boolean),Wn=st.length>0?`Executing ${st.join(", ")}...`:"Executing tools...";Xt(Wn),E(!0),b(qe=>{const Rt=[...qe];return Rt[Rt.length-1]={role:"assistant",content:hn||""},Rt});try{const qe=await fetch(`${Et}/api/v1/ai/tools`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCalls:Ut,model:f,history:vt,context:r?.type,contextContent:r?.content,agentPersona:ye,attachedContextFiles:Qe.length>0?Qe:void 0,previousContent:hn}),signal:Tt.signal});if(qe.ok){const Rt=await qe.json();Xt(null),b(jt=>{const pn=[...jt];return pn[pn.length-1]={role:"assistant",content:Rt.response||hn,toolCalls:Ut,toolResults:Rt.toolResults},pn})}else Xt(null),console.error("Tool execution failed:",await qe.text()),b(Rt=>{const jt=[...Rt];return jt[jt.length-1]={role:"assistant",content:hn||"I tried to use tools but encountered an error executing them."},jt})}catch(qe){Xt(null),qe instanceof DOMException&&qe.name==="AbortError"||(console.error("Tool execution error:",qe),b(Rt=>{const jt=[...Rt];return jt[jt.length-1]={role:"assistant",content:hn||"I tried to use tools but encountered an error."},jt}))}}else Mo?b(Ut=>{const st=[...Ut];return st[st.length-1]={role:"assistant",content:`Sorry, I encountered an error: ${Mo}`},st}):hn.trim()||(b(Ut=>{const st=[...Ut];return st[st.length-1]?.role==="assistant"&&!st[st.length-1]?.content&&st.pop(),st}),console.warn("Stream completed with no content"))}catch(Bt){Bt instanceof DOMException&&Bt.name==="AbortError"||(console.error("Streaming error:",Bt),b(Ut=>{const st=[...Ut];return st[st.length-1]?.role==="assistant"&&(st[st.length-1]={role:"assistant",content:`Sorry, I encountered a streaming error: ${Bt instanceof Error?Bt.message:"Unknown error"}`}),st}))}}else{const lt=await mt.json(),dn={role:"assistant",content:lt.response,toolCalls:lt.toolCalls,toolResults:lt.toolResults};b(hn=>[...hn,dn])}}catch(Ke){if(Ke instanceof DOMException&&Ke.name==="AbortError")b(vt=>{const dt=[...vt],mt=dt[dt.length-1];return mt?.role==="assistant"&&!mt.content&&dt.pop(),dt});else{console.error("Error calling AI:",Ke);const vt={role:"assistant",content:`Sorry, I encountered an error: ${Ke instanceof Error?Ke.message:"Unknown error"}`};b(dt=>[...dt,vt])}}finally{ft.current=null,E(!1),A(!1),Xt(null)}},Zt=()=>{ft.current&&(ft.current.abort(),ft.current=null),E(!1),A(!1),Xt(null)},fn=$=>{$.files.forEach(ye=>{const Me=ne.current.get(ye.id);(!Me||Me.content!==ye.content)&&ne.current.set(ye.id,ye)}),ie($.selectedIds),G.current=$.selectedIds;const fe=new Map($.files.map(ye=>[ye.id,ye])),ge=$.selectedIds.map(ye=>{const Me=fe.get(ye);if(Me)return Me;const Qe=ne.current.get(ye);return Qe||L.find(Wt=>Wt.id===ye)||null}).filter(ye=>ye!==null);F(ge),Zr($.selectedIds).catch(ye=>{console.error("Error syncing context after manual selection:",ye)})},Cr=()=>({understand:[{label:"Summarize this context",prompt:"Summarize the key points from the attached context. What are the main themes and takeaways?"},{label:"Explain relationships",prompt:"How do the attached documents relate to each other? What connections and dependencies exist?"},{label:"Identify gaps",prompt:"Based on the attached context, what important information seems to be missing or could be better documented?"}],define:[{label:"Define my project",prompt:"Help me define my project. I'd like to create or update the project.md document that captures what we're building, who it's for, and what success looks like. Please ask me questions to understand the project."},{label:"Define my architecture",prompt:"Help me define the technical architecture. I'd like to create or update the architecture.md document that captures our tech stack, conventions, and system design. Please ask me questions about our technical setup."},{label:"Refine project definition",prompt:"I'd like to refine or add to my project.md document. Please read the current version and suggest improvements or ask what I'd like to change."},{label:"Refine architecture",prompt:"I'd like to refine or add to my architecture.md document. Please read the current version and suggest improvements or ask what I'd like to change."}],explore:[{label:"What's been happening?",prompt:"Show me recent activity in this Coconut. What's been happening with proposals, knowledge updates, or agent sessions?"},{label:"Search knowledge base",prompt:"Search the knowledge base for information about: "},{label:"Find proposals about...",prompt:"Find and summarize proposals related to: "},{label:"Show recent events",prompt:"Show me the most recent events. I want to see what's been happening."}],synthesize:[{label:"Extract key insights",prompt:"Extract the most important insights from the attached context that should be preserved in the knowledge base."},{label:"Connect the dots",prompt:"Find patterns and connections across the attached documents. What story do they tell together?"},{label:"Draft proposal content",prompt:"Help me draft content for a change proposal about: (I'll create it via the Proposals UI or a coding agent)"},{label:"Compare approaches",prompt:"Help me understand the tradeoffs between: "}],capture:[{label:"Save to knowledge base",prompt:"Save the key insights from our conversation to the knowledge base as a new document."},{label:"Document a decision",prompt:"Create a knowledge document capturing this decision and its rationale: "},{label:"Update knowledge document",prompt:"Update the knowledge document about: "},{label:"Add to project.md",prompt:"I'd like to add the following to my project.md document: "},{label:"Add to architecture.md",prompt:"I'd like to add the following to my architecture.md document: "}]}),pi=g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex h-dvh flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b flex-shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(fp,{className:ue(Ce?"h-6 w-6":"h-5 w-5")}),g.jsxs("div",{children:[g.jsx("h2",{className:ue("font-semibold leading-tight",Ce?"text-xl":"text-lg"),children:"Coconut Assistant"}),g.jsx("p",{className:"text-xs text-muted-foreground leading-tight",children:"Context Management"})]})]}),g.jsx("div",{className:ue("flex items-center gap-1",T&&"mr-8"),children:Ce?g.jsx(St,{onClick:()=>Oe(!1),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Exit Expanded View (Esc)",children:g.jsx(oo,{className:"h-4 w-4"})}):g.jsxs(g.Fragment,{children:[g.jsx(St,{onClick:()=>Oe(!0),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Expand View (⌘⇧E)",children:g.jsx(uM,{className:"h-4 w-4"})}),g.jsx(St,{onClick:()=>{R(!N),N||ke()},size:"icon",variant:"ghost",className:"h-8 w-8",title:"Chat History",children:g.jsx(EM,{className:"h-4 w-4"})})]})})]}),g.jsx("div",{className:"p-4 border-b flex-shrink-0",children:g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsxs(Gb,{value:f,onValueChange:d,children:[g.jsx(Rp,{className:"flex-1",children:g.jsx(Yb,{placeholder:"Select AI model"})}),g.jsx(Np,{children:Qn.map($=>g.jsx(ni,{value:$.value,children:$.label},$.value))})]}),g.jsx(St,{onClick:de,disabled:y.length===0,size:"icon",variant:"outline",className:"h-9 w-9 shrink-0",title:"Save Chat",children:g.jsx(GM,{className:"h-4 w-4"})}),g.jsxs(Y9,{children:[g.jsx(K9,{asChild:!0,children:g.jsx(St,{disabled:y.length===0&&Q.length===0&&!se,size:"icon",variant:"outline",className:"h-9 w-9 shrink-0",title:"New Chat (⌘⇧N)",children:g.jsx(ij,{className:"h-4 w-4"})})}),g.jsxs(VC,{children:[g.jsxs($C,{children:[g.jsx(YC,{children:"Clear Chat"}),g.jsx(KC,{children:"This clears all messages, removes selected context files, and resets the selected agent. This action cannot be undone."})]}),g.jsxs(GC,{children:[g.jsx(QC,{children:"Cancel"}),g.jsx(XC,{onClick:rn,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Clear Chat"})]})]})]})]})}),g.jsx("div",{className:"p-4 border-b bg-muted/50 flex-shrink-0",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex-1 min-w-0",children:re>0?g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:Z()}),g.jsx("div",{className:"flex flex-wrap gap-1",children:Q.map($=>g.jsxs("div",{className:ue("flex items-center gap-1 text-xs px-2 py-1 rounded-md","bg-primary/10 text-primary"),children:[g.jsx("span",{children:$.name}),g.jsx("button",{onClick:fe=>{fe.stopPropagation();const ge=G.current.filter(ye=>ye!==$.id);ie(ge),G.current=ge,F(ye=>ye.filter(Me=>Me.id!==$.id)),Zr(ge).catch(ye=>{console.error("Error syncing context after removal:",ye)})},className:ue("ml-1 rounded-full p-0.5 transition-colors","hover:bg-primary/20"),disabled:!1,title:"Remove from context",children:g.jsx(oo,{className:"h-3 w-3"})})]},$.id))})]}):g.jsx("p",{className:"text-sm text-muted-foreground",children:Z()})}),g.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[g.jsx(St,{onClick:()=>Y(!0),size:"icon",variant:"ghost",className:"h-6 w-6",title:"Select Context Files (⌘⇧K)",disabled:!1,children:g.jsx(OM,{className:"h-4 w-4"})}),g.jsxs("span",{className:"hidden sm:inline-flex items-center gap-0.5 text-muted-foreground/60",children:[g.jsx(Lh,{className:"text-[9px] px-1 h-4",children:"⌘"}),g.jsx(Lh,{className:"text-[9px] px-1 h-4",children:"⇧"}),g.jsx(Lh,{className:"text-[9px] px-1 h-4",children:"K"})]})]})]})}),N&&g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-2 min-h-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{className:"font-medium",children:"Chat History"}),g.jsx(St,{onClick:()=>R(!1),size:"sm",variant:"ghost",children:g.jsx(oo,{className:"h-4 w-4"})})]}),j?g.jsx("div",{className:"text-center text-muted-foreground py-8",children:g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):D.length===0?g.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[g.jsx(LM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No saved chats yet"})]}):g.jsx("div",{className:"space-y-2",children:D.map($=>g.jsx("div",{className:"border rounded-lg p-3 hover:bg-muted/50 cursor-pointer group",onClick:()=>Te($.id),children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-medium truncate",children:$.title}),g.jsxs("p",{className:"text-xs text-muted-foreground",children:[new Date($.updatedAt).toLocaleDateString()," • ",$.messages.length," messages"]}),g.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:$.model.split("/")[1]||$.model})]}),g.jsx(St,{onClick:fe=>{fe.stopPropagation(),et($.id)},size:"icon",variant:"ghost",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(fj,{className:"h-3 w-3"})})]})},$.id))})]}),!N&&g.jsxs("div",{className:ue("flex-1 overflow-y-auto space-y-4 min-h-0",Ce?"p-6 max-w-4xl mx-auto":"p-4"),children:[y.length===0&&g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-muted-foreground py-12",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/5 flex items-center justify-center mb-4",children:g.jsx(fp,{className:"h-5 w-5 text-primary/40"})}),g.jsx("p",{className:"text-sm font-medium text-foreground/70 mb-1",children:"Start a conversation"}),g.jsx("p",{className:"text-xs text-muted-foreground/70 mb-4 max-w-[200px]",children:"Ask questions, get help, or explore your project"}),g.jsxs("button",{onClick:()=>Y(!0),className:"text-xs text-primary/70 hover:text-primary transition-colors flex items-center gap-1.5",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current"}),Z()]})]}),y.map(($,fe)=>{const ge=$.role==="assistant",ye=ge?wB($.content):{cleanedContent:$.content,actions:[]},Me=ge?ye.cleanedContent.length>0?ye.cleanedContent:ye.actions.length>0?"Proposed knowledge update available below.":$.content:$.content;return g.jsx("div",{className:ue("rounded-lg",$.role==="user"?ue("bg-primary text-primary-foreground p-3",Ce?"ml-16":"ml-8"):$.role==="system"?ue("bg-muted/50 text-muted-foreground text-center text-xs py-2 px-3",Ce?"mx-16":"mx-8"):ue("bg-muted p-3",Ce?"mr-16":"mr-8")),children:ge?g.jsxs("div",{className:"space-y-2",children:[$.toolCalls&&$.toolCalls.length>0&&g.jsxs("div",{className:"bg-blue-50 dark:bg-blue-950/20 p-2 rounded text-xs",children:[g.jsx("div",{className:"font-medium text-blue-700 dark:text-blue-300 mb-1",children:"Tool Calls:"}),$.toolCalls.map((Qe,Wt)=>g.jsxs("div",{className:"text-blue-600 dark:text-blue-400",children:["• ",Qe.function.name,"(",JSON.parse(Qe.function.arguments).operation,")"]},Wt))]}),g.jsx(ms,{className:"text-sm [&_.prose]:text-sm [&_.prose-p]:text-sm [&_.prose-li]:text-sm [&_.prose-code]:text-xs",children:Me}),ye.actions.map((Qe,Wt)=>g.jsx(kB,{action:Qe,onApply:an,fetchDocumentContent:jn},`${fe}-knowledge-${Wt}`)),$.toolResults&&$.toolResults.length>0&&g.jsxs("div",{className:"bg-green-50 dark:bg-green-950/20 p-2 rounded text-xs",children:[g.jsx("div",{className:"font-medium text-green-700 dark:text-green-300 mb-1",children:"Tool Results:"}),$.toolResults.map((Qe,Wt)=>{const Tt=JSON.parse(Qe.content);let Ke=null;return Tt.success&&Tt.data&&(Tt.data.filename&&Tt.message?.includes("knowledge document")?Ke=`/context/knowledge/${Tt.data.filename.replace(/\.md$/,"")}`:Tt.data.id&&(Tt.message?.includes("proposal")||Tt.data.intent)&&(Ke=`/proposals/${Tt.data.id}`)),g.jsxs("div",{className:"text-green-600 dark:text-green-400 flex items-center gap-1",children:[g.jsxs("span",{children:["• ",Tt.success?"✓":"✗"]}),Ke?g.jsxs(qr,{to:Ke,className:"hover:underline inline-flex items-center gap-1",onClick:vt=>vt.stopPropagation(),children:[Tt.message||Tt.error,g.jsx(fM,{className:"h-3 w-3 opacity-70"})]}):g.jsx("span",{children:Tt.message||Tt.error})]},Wt)})]}),!w&&$.content.length>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx(St,{onClick:()=>Zn($.content,fe),size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:Xe===fe?"Copied!":"Copy message",children:Xe===fe?g.jsx(Mc,{className:"h-3 w-3"}):g.jsx(lM,{className:"h-3 w-3"})})})]}):g.jsx("div",{className:"text-sm",children:$.content})},fe)}),(w||kt)&&g.jsx("div",{className:ue("p-3 rounded-lg text-sm",kt?"bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800":"bg-muted",Ce?"mr-16":"mr-8"),children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce",kt?"bg-blue-500":"bg-current")}),g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce [animation-delay:0.1s]",kt?"bg-blue-500":"bg-current")}),g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce [animation-delay:0.2s]",kt?"bg-blue-500":"bg-current")}),kt&&g.jsx("span",{className:"text-xs text-blue-700 dark:text-blue-300 ml-1 font-medium",children:kt})]})}),g.jsx("div",{ref:Xn})]}),!N&&g.jsxs("div",{className:ue("border-t flex-shrink-0",Ce?"p-6 max-w-4xl mx-auto w-full":"p-4"),children:[g.jsx("div",{className:"mb-4 flex gap-2 items-center",children:g.jsxs(Gb,{onValueChange:Qt,children:[g.jsx(Rp,{className:"flex-1",children:g.jsx(Yb,{placeholder:"Actions..."})}),g.jsxs(Np,{children:[g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider",children:"Understand"}),Cr().understand.map($=>g.jsx(ni,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Define"}),Cr().define.map($=>g.jsx(ni,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Explore"}),Cr().explore.map($=>g.jsx(ni,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Synthesize"}),Cr().synthesize.map($=>g.jsx(ni,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Capture"}),Cr().capture.map($=>g.jsx(ni,{value:$.label,className:"text-sm",children:$.label},$.label))]})]})}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(bk,{value:h,onChange:$=>m($.target.value),onKeyDown:$=>{$.key==="Enter"&&!$.shiftKey&&($.preventDefault(),At())},placeholder:"Ask AI for help...",className:ue("flex-1 resize-none",Ce?"min-h-[3rem] max-h-40 text-base":"min-h-[2.5rem] max-h-32"),"aria-label":"Assistant message input"}),S?g.jsx(St,{onClick:Zt,size:"icon",variant:"outline",className:"shrink-0",title:"Stop response (Esc)","aria-label":"Stop response",children:g.jsx(lj,{className:"h-4 w-4"})}):g.jsx(St,{onClick:At,disabled:!h.trim(),size:"icon",className:"shrink-0",children:g.jsx(KM,{className:"h-4 w-4"})})]})]})]})});return T?g.jsxs(g.Fragment,{children:[g.jsx(F1,{open:e,onOpenChange:n,children:g.jsxs(mm,{side:"right",className:"w-96 p-0 bg-sidebar border-l border-sidebar-border",children:[g.jsx(gm,{className:"sr-only",children:g.jsx(ym,{children:"Assistant"})}),pi]})}),g.jsx(H0,{open:U,onOpenChange:Y,onSelectionConfirm:fn,initialSelection:W}),g.jsx(F0,{open:ce,onOpenChange:M,initialSelectedId:se?.filename?.replace(".md","")||null,onSelect:$=>{const fe={id:$.filename.replace(".md",""),name:$.metadata?.name||$.title,filename:$.filename,content:$.content};Se(fe),b(ge=>[...ge,{role:"system",content:`${fe.name} selected.`}])}})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ue("fixed inset-y-0 right-0 z-10 h-dvh bg-sidebar border-l border-sidebar-border transition-all duration-300 ease-in-out",e?"w-96":"w-0 overflow-hidden"),children:g.jsx("div",{className:"w-96",children:pi})}),g.jsx(Kc,{open:Ce,onOpenChange:Oe,children:g.jsxs(ss,{className:"max-w-[90vw] w-[90vw] max-h-[90vh] h-[90vh] p-0 gap-0 [&>button]:hidden",children:[g.jsx(us,{className:"sr-only",children:g.jsx(cs,{children:"Assistant"})}),g.jsx("div",{className:"h-full flex flex-col bg-background rounded-lg overflow-hidden",children:pi})]})}),g.jsx(H0,{open:U,onOpenChange:Y,onSelectionConfirm:fn,initialSelection:W}),g.jsx(F0,{open:ce,onOpenChange:M,initialSelectedId:se?.filename?.replace(".md","")||null,onSelect:$=>{const fe={id:$.filename.replace(".md",""),name:$.metadata?.name||$.title,filename:$.filename,content:$.content};Se(fe),b(ge=>[...ge,{role:"system",content:`${fe.name} selected.`}])}})]})}var ep="rovingFocusGroup.onEntryFocus",TB={bubbles:!1,cancelable:!0},gs="RovingFocusGroup",[Vp,wk,RB]=Tc(gs),[NB,Sk]=Yn(gs,[RB]),[_B,MB]=NB(gs),Ek=x.forwardRef((e,n)=>g.jsx(Vp.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(Vp.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(jB,{...e,ref:n})})}));Ek.displayName=gs;var jB=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...y}=e,b=x.useRef(null),w=Ie(n,b),E=Vc(s),[S,A]=Aa({prop:c,defaultProp:f??null,onChange:d,caller:gs}),[T,N]=x.useState(!1),R=Mt(h),D=wk(r),P=x.useRef(!1),[j,B]=x.useState(0);return x.useEffect(()=>{const U=b.current;if(U)return U.addEventListener(ep,R),()=>U.removeEventListener(ep,R)},[R]),g.jsx(_B,{scope:r,orientation:i,dir:E,loop:l,currentTabStopId:S,onItemFocus:x.useCallback(U=>A(U),[A]),onItemShiftTab:x.useCallback(()=>N(!0),[]),onFocusableItemAdd:x.useCallback(()=>B(U=>U+1),[]),onFocusableItemRemove:x.useCallback(()=>B(U=>U-1),[]),children:g.jsx(_e.div,{tabIndex:T||j===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{P.current=!0}),onFocus:pe(e.onFocus,U=>{const Y=!P.current;if(U.target===U.currentTarget&&Y&&!T){const L=new CustomEvent(ep,TB);if(U.currentTarget.dispatchEvent(L),!L.defaultPrevented){const J=D().filter(z=>z.focusable),W=J.find(z=>z.active),ie=J.find(z=>z.id===S),ne=[W,ie,...J].filter(Boolean).map(z=>z.ref.current);Ak(ne,m)}}P.current=!1}),onBlur:pe(e.onBlur,()=>N(!1))})})}),Ck="RovingFocusGroupItem",kk=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:s,children:c,...f}=e,d=vr(),h=s||d,m=MB(Ck,r),y=m.currentTabStopId===h,b=wk(r),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:S}=m;return x.useEffect(()=>{if(i)return w(),()=>E()},[i,w,E]),g.jsx(Vp.ItemSlot,{scope:r,id:h,focusable:i,active:l,children:g.jsx(_e.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...f,ref:n,onMouseDown:pe(e.onMouseDown,A=>{i?m.onItemFocus(h):A.preventDefault()}),onFocus:pe(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:pe(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const T=PB(A,m.orientation,m.dir);if(T!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let R=b().filter(D=>D.focusable).map(D=>D.ref.current);if(T==="last")R.reverse();else if(T==="prev"||T==="next"){T==="prev"&&R.reverse();const D=R.indexOf(A.currentTarget);R=m.loop?LB(R,D+1):R.slice(D+1)}setTimeout(()=>Ak(R))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:S!=null}):c})})});kk.displayName=Ck;var DB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function OB(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function PB(e,n,r){const i=OB(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return DB[i]}function Ak(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function LB(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var zB=Ek,IB=kk,$p=["Enter"," "],BB=["ArrowDown","PageUp","Home"],Tk=["ArrowUp","PageDown","End"],UB=[...BB,...Tk],HB={ltr:[...$p,"ArrowRight"],rtl:[...$p,"ArrowLeft"]},FB={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ys="Menu",[Zl,qB,VB]=Tc(ys),[ci,Rk]=Yn(ys,[VB,Ao,Sk]),rf=Ao(),Nk=Sk(),[$B,fi]=ci(ys),[GB,vs]=ci(ys),_k=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:l,onOpenChange:s,modal:c=!0}=e,f=rf(n),[d,h]=x.useState(null),m=x.useRef(!1),y=Mt(s),b=Vc(l);return x.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),g.jsx(Tm,{...f,children:g.jsx($B,{scope:n,open:r,onOpenChange:y,content:d,onContentChange:h,children:g.jsx(GB,{scope:n,onClose:x.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:i})})})};_k.displayName=ys;var YB="MenuAnchor",rg=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=rf(r);return g.jsx(Rm,{...l,...i,ref:n})});rg.displayName=YB;var ag="MenuPortal",[KB,Mk]=ci(ag,{forceMount:void 0}),jk=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:l}=e,s=fi(ag,n);return g.jsx(KB,{scope:n,forceMount:r,children:g.jsx(un,{present:r||s.open,children:g.jsx(ts,{asChild:!0,container:l,children:i})})})};jk.displayName=ag;var qn="MenuContent",[XB,ig]=ci(qn),Dk=x.forwardRef((e,n)=>{const r=Mk(qn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=fi(qn,e.__scopeMenu),c=vs(qn,e.__scopeMenu);return g.jsx(Zl.Provider,{scope:e.__scopeMenu,children:g.jsx(un,{present:i||s.open,children:g.jsx(Zl.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(QB,{...l,ref:n}):g.jsx(ZB,{...l,ref:n})})})})}),QB=x.forwardRef((e,n)=>{const r=fi(qn,e.__scopeMenu),i=x.useRef(null),l=Ie(n,i);return x.useEffect(()=>{const s=i.current;if(s)return um(s)},[]),g.jsx(og,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ZB=x.forwardRef((e,n)=>{const r=fi(qn,e.__scopeMenu);return g.jsx(og,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),WB=ri("MenuContent.ScrollLock"),og=x.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...S}=e,A=fi(qn,r),T=vs(qn,r),N=rf(r),R=Nk(r),D=qB(r),[P,j]=x.useState(null),B=x.useRef(null),U=Ie(n,B,A.onContentChange),Y=x.useRef(0),L=x.useRef(""),J=x.useRef(0),W=x.useRef(null),ie=x.useRef("right"),G=x.useRef(0),ne=E?Oc:x.Fragment,z=E?{as:WB,allowPinchZoom:!0}:void 0,Q=re=>{const k=L.current+re,Z=D().filter(le=>!le.disabled),ce=document.activeElement,M=Z.find(le=>le.ref.current===ce)?.textValue,se=Z.map(le=>le.textValue),Se=c8(se,k,M),me=Z.find(le=>le.textValue===Se)?.ref.current;(function le(ve){L.current=ve,window.clearTimeout(Y.current),ve!==""&&(Y.current=window.setTimeout(()=>le(""),1e3))})(k),me&&setTimeout(()=>me.focus())};x.useEffect(()=>()=>window.clearTimeout(Y.current),[]),sm();const F=x.useCallback(re=>ie.current===W.current?.side&&d8(re,W.current?.area),[]);return g.jsx(XB,{scope:r,searchRef:L,onItemEnter:x.useCallback(re=>{F(re)&&re.preventDefault()},[F]),onItemLeave:x.useCallback(re=>{F(re)||(B.current?.focus(),j(null))},[F]),onTriggerLeave:x.useCallback(re=>{F(re)&&re.preventDefault()},[F]),pointerGraceTimerRef:J,onPointerGraceIntentChange:x.useCallback(re=>{W.current=re},[]),children:g.jsx(ne,{...z,children:g.jsx(jc,{asChild:!0,trapped:l,onMountAutoFocus:pe(s,re=>{re.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(wo,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:g.jsx(zB,{asChild:!0,...R,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:P,onCurrentTabStopIdChange:j,onEntryFocus:pe(d,re=>{T.isUsingKeyboardRef.current||re.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Nm,{role:"menu","aria-orientation":"vertical","data-state":Xk(A.open),"data-radix-menu-content":"",dir:T.dir,...N,...S,ref:U,style:{outline:"none",...S.style},onKeyDown:pe(S.onKeyDown,re=>{const Z=re.target.closest("[data-radix-menu-content]")===re.currentTarget,ce=re.ctrlKey||re.altKey||re.metaKey,M=re.key.length===1;Z&&(re.key==="Tab"&&re.preventDefault(),!ce&&M&&Q(re.key));const se=B.current;if(re.target!==se||!UB.includes(re.key))return;re.preventDefault();const me=D().filter(le=>!le.disabled).map(le=>le.ref.current);Tk.includes(re.key)&&me.reverse(),s8(me)}),onBlur:pe(e.onBlur,re=>{re.currentTarget.contains(re.target)||(window.clearTimeout(Y.current),L.current="")}),onPointerMove:pe(e.onPointerMove,Wl(re=>{const k=re.target,Z=G.current!==re.clientX;if(re.currentTarget.contains(k)&&Z){const ce=re.clientX>G.current?"right":"left";ie.current=ce,G.current=re.clientX}}))})})})})})})});Dk.displayName=qn;var JB="MenuGroup",lg=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(_e.div,{role:"group",...i,ref:n})});lg.displayName=JB;var e8="MenuLabel",Ok=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(_e.div,{...i,ref:n})});Ok.displayName=e8;var vc="MenuItem",q0="menu.itemSelect",af=x.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...l}=e,s=x.useRef(null),c=vs(vc,e.__scopeMenu),f=ig(vc,e.__scopeMenu),d=Ie(n,s),h=x.useRef(!1),m=()=>{const y=s.current;if(!r&&y){const b=new CustomEvent(q0,{bubbles:!0,cancelable:!0});y.addEventListener(q0,w=>i?.(w),{once:!0}),nm(y,b),b.defaultPrevented?h.current=!1:c.onClose()}};return g.jsx(Pk,{...l,ref:d,disabled:r,onClick:pe(e.onClick,m),onPointerDown:y=>{e.onPointerDown?.(y),h.current=!0},onPointerUp:pe(e.onPointerUp,y=>{h.current||y.currentTarget?.click()}),onKeyDown:pe(e.onKeyDown,y=>{const b=f.searchRef.current!=="";r||b&&y.key===" "||$p.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});af.displayName=vc;var Pk=x.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=ig(vc,r),f=Nk(r),d=x.useRef(null),h=Ie(n,d),[m,y]=x.useState(!1),[b,w]=x.useState("");return x.useEffect(()=>{const E=d.current;E&&w((E.textContent??"").trim())},[s.children]),g.jsx(Zl.ItemSlot,{scope:r,disabled:i,textValue:l??b,children:g.jsx(IB,{asChild:!0,...f,focusable:!i,children:g.jsx(_e.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:pe(e.onPointerMove,Wl(E=>{i?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:pe(e.onPointerLeave,Wl(E=>c.onItemLeave(E))),onFocus:pe(e.onFocus,()=>y(!0)),onBlur:pe(e.onBlur,()=>y(!1))})})})}),t8="MenuCheckboxItem",Lk=x.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...l}=e;return g.jsx(Hk,{scope:e.__scopeMenu,checked:r,children:g.jsx(af,{role:"menuitemcheckbox","aria-checked":xc(r)?"mixed":r,...l,ref:n,"data-state":ug(r),onSelect:pe(l.onSelect,()=>i?.(xc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Lk.displayName=t8;var zk="MenuRadioGroup",[n8,r8]=ci(zk,{value:void 0,onValueChange:()=>{}}),Ik=x.forwardRef((e,n)=>{const{value:r,onValueChange:i,...l}=e,s=Mt(i);return g.jsx(n8,{scope:e.__scopeMenu,value:r,onValueChange:s,children:g.jsx(lg,{...l,ref:n})})});Ik.displayName=zk;var Bk="MenuRadioItem",Uk=x.forwardRef((e,n)=>{const{value:r,...i}=e,l=r8(Bk,e.__scopeMenu),s=r===l.value;return g.jsx(Hk,{scope:e.__scopeMenu,checked:s,children:g.jsx(af,{role:"menuitemradio","aria-checked":s,...i,ref:n,"data-state":ug(s),onSelect:pe(i.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Uk.displayName=Bk;var sg="MenuItemIndicator",[Hk,a8]=ci(sg,{checked:!1}),Fk=x.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...l}=e,s=a8(sg,r);return g.jsx(un,{present:i||xc(s.checked)||s.checked===!0,children:g.jsx(_e.span,{...l,ref:n,"data-state":ug(s.checked)})})});Fk.displayName=sg;var i8="MenuSeparator",qk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(_e.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});qk.displayName=i8;var o8="MenuArrow",Vk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=rf(r);return g.jsx(_m,{...l,...i,ref:n})});Vk.displayName=o8;var l8="MenuSub",[aH,$k]=ci(l8),Pl="MenuSubTrigger",Gk=x.forwardRef((e,n)=>{const r=fi(Pl,e.__scopeMenu),i=vs(Pl,e.__scopeMenu),l=$k(Pl,e.__scopeMenu),s=ig(Pl,e.__scopeMenu),c=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},m=x.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return x.useEffect(()=>m,[m]),x.useEffect(()=>{const y=f.current;return()=>{window.clearTimeout(y),d(null)}},[f,d]),g.jsx(rg,{asChild:!0,...h,children:g.jsx(Pk,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":Xk(r.open),...e,ref:Ac(n,l.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:pe(e.onPointerMove,Wl(y=>{s.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:pe(e.onPointerLeave,Wl(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,E=w==="right",S=E?-5:5,A=b[E?"left":"right"],T=b[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:y.clientX+S,y:y.clientY},{x:A,y:b.top},{x:T,y:b.top},{x:T,y:b.bottom},{x:A,y:b.bottom}],side:w}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(y),y.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:pe(e.onKeyDown,y=>{const b=s.searchRef.current!=="";e.disabled||b&&y.key===" "||HB[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});Gk.displayName=Pl;var Yk="MenuSubContent",Kk=x.forwardRef((e,n)=>{const r=Mk(qn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=fi(qn,e.__scopeMenu),c=vs(qn,e.__scopeMenu),f=$k(Yk,e.__scopeMenu),d=x.useRef(null),h=Ie(n,d);return g.jsx(Zl.Provider,{scope:e.__scopeMenu,children:g.jsx(un,{present:i||s.open,children:g.jsx(Zl.Slot,{scope:e.__scopeMenu,children:g.jsx(og,{id:f.contentId,"aria-labelledby":f.triggerId,...l,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:pe(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:pe(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=FB[c.dir].includes(m.key);y&&b&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});Kk.displayName=Yk;function Xk(e){return e?"open":"closed"}function xc(e){return e==="indeterminate"}function ug(e){return xc(e)?"indeterminate":e?"checked":"unchecked"}function s8(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function u8(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function c8(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=u8(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function f8(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function d8(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return f8(r,n)}function Wl(e){return n=>n.pointerType==="mouse"?e(n):void 0}var h8=_k,p8=rg,m8=jk,g8=Dk,y8=lg,v8=Ok,x8=af,b8=Lk,w8=Ik,S8=Uk,E8=Fk,C8=qk,k8=Vk,A8=Gk,T8=Kk,of="DropdownMenu",[R8,iH]=Yn(of,[Rk]),cn=Rk(),[N8,Qk]=R8(of),Zk=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:l,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=cn(n),h=x.useRef(null),[m,y]=Aa({prop:l,defaultProp:s??!1,onChange:c,caller:of});return g.jsx(N8,{scope:n,triggerId:vr(),triggerRef:h,contentId:vr(),open:m,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(b=>!b),[y]),modal:f,children:g.jsx(h8,{...d,open:m,onOpenChange:y,dir:i,modal:f,children:r})})};Zk.displayName=of;var Wk="DropdownMenuTrigger",Jk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...l}=e,s=Qk(Wk,r),c=cn(r);return g.jsx(p8,{asChild:!0,...c,children:g.jsx(_e.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:Ac(n,s.triggerRef),onPointerDown:pe(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:pe(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Jk.displayName=Wk;var _8="DropdownMenuPortal",e2=e=>{const{__scopeDropdownMenu:n,...r}=e,i=cn(n);return g.jsx(m8,{...i,...r})};e2.displayName=_8;var t2="DropdownMenuContent",n2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=Qk(t2,r),s=cn(r),c=x.useRef(!1);return g.jsx(g8,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...i,ref:n,onCloseAutoFocus:pe(e.onCloseAutoFocus,f=>{c.current||l.triggerRef.current?.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:pe(e.onInteractOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,m=d.button===2||h;(!l.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n2.displayName=t2;var M8="DropdownMenuGroup",j8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(y8,{...l,...i,ref:n})});j8.displayName=M8;var D8="DropdownMenuLabel",r2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(v8,{...l,...i,ref:n})});r2.displayName=D8;var O8="DropdownMenuItem",a2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(x8,{...l,...i,ref:n})});a2.displayName=O8;var P8="DropdownMenuCheckboxItem",i2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(b8,{...l,...i,ref:n})});i2.displayName=P8;var L8="DropdownMenuRadioGroup",z8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(w8,{...l,...i,ref:n})});z8.displayName=L8;var I8="DropdownMenuRadioItem",o2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(S8,{...l,...i,ref:n})});o2.displayName=I8;var B8="DropdownMenuItemIndicator",l2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(E8,{...l,...i,ref:n})});l2.displayName=B8;var U8="DropdownMenuSeparator",s2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(C8,{...l,...i,ref:n})});s2.displayName=U8;var H8="DropdownMenuArrow",F8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(k8,{...l,...i,ref:n})});F8.displayName=H8;var q8="DropdownMenuSubTrigger",u2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(A8,{...l,...i,ref:n})});u2.displayName=q8;var V8="DropdownMenuSubContent",c2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=cn(r);return g.jsx(T8,{...l,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});c2.displayName=V8;var $8=Zk,G8=Jk,Y8=e2,f2=n2,d2=r2,h2=a2,p2=i2,m2=o2,g2=l2,y2=s2,v2=u2,x2=c2;const K8=$8,X8=G8,Q8=x.forwardRef(({className:e,inset:n,children:r,...i},l)=>g.jsxs(v2,{ref:l,className:ue("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",e),...i,children:[r,g.jsx(J_,{className:"ml-auto h-4 w-4"})]}));Q8.displayName=v2.displayName;const Z8=x.forwardRef(({className:e,...n},r)=>g.jsx(x2,{ref:r,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Z8.displayName=x2.displayName;const b2=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(Y8,{children:g.jsx(f2,{ref:i,sideOffset:n,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));b2.displayName=f2.displayName;const w2=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(h2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...r}));w2.displayName=h2.displayName;const W8=x.forwardRef(({className:e,children:n,checked:r,...i},l)=>g.jsxs(p2,{ref:l,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(g2,{children:g.jsx(Mc,{className:"h-4 w-4"})})}),n]}));W8.displayName=p2.displayName;const J8=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(m2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(g2,{children:g.jsx(rM,{className:"h-2 w-2 fill-current"})})}),n]}));J8.displayName=m2.displayName;const S2=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(d2,{ref:i,className:ue("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));S2.displayName=d2.displayName;const E2=x.forwardRef(({className:e,...n},r)=>g.jsx(y2,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));E2.displayName=y2.displayName;function eU(){const[e,n]=x.useState(!1),[r,i]=x.useState(null),[l,s]=x.useState(null),[c,f]=x.useState(null),[d,h]=x.useState("Coconut"),[m,y]=x.useState(null),[b,w]=x.useState(null),E=Gn(),S=Sc(),A=E.pathname,{user:T,logout:N,authEnabled:R}=yw();x.useEffect(()=>{const B=localStorage.getItem("ai-sidebar-open");B!==null&&n(JSON.parse(B))},[]),x.useEffect(()=>{const B=U=>{const Y=U.detail;Y&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),y(Y))};return window.addEventListener("discuss-in-chat",B),()=>{window.removeEventListener("discuss-in-chat",B)}},[]),x.useEffect(()=>{const B=U=>{const Y=U.detail;Y?.prompt&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),w(Y.prompt))};return window.addEventListener("customize-prompt-in-assistant",B),()=>{window.removeEventListener("customize-prompt-in-assistant",B)}},[]),x.useEffect(()=>{(async()=>{try{const U=await fetch(`${Et}/api/v1/config`);if(U.ok){const Y=await U.json();Y.success&&Y.data?.repository?.name&&h(Y.data.repository.name)}}catch(U){console.error("Error fetching config:",U)}})()},[]);const D=()=>{const B=!e;n(B),localStorage.setItem("ai-sidebar-open",JSON.stringify(B))},P=async()=>{try{await N(),op({title:"Logged out",description:"You have been logged out successfully"}),S("/login")}catch(B){console.error("Logout error:",B),op({title:"Error",description:"Failed to logout",variant:"destructive"})}};x.useEffect(()=>{(async()=>{try{const U=await fetch(`${Et}/api/v1/context/project`);if(U.ok){const Y=await U.text();s(Y)}else s(null)}catch(U){console.error("Error fetching project context:",U),s(null)}if(A.includes("/context/architecture")||A.includes("/proposals"))try{const U=await fetch(`${Et}/api/v1/context/architecture`);if(U.ok){const Y=await U.text();f(Y)}else f(null)}catch(U){console.error("Error fetching architecture context:",U),f(null)}else f(null);if(A.includes("/proposals")&&(A.includes("/edit")||A.match(/\/proposals\/[^/]+$/))){const Y=A.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(Y)try{const J=await(await fetch(`${Et}/api/v1/proposals/${Y}`)).json();if(J.success){const W=J.data,ie=`Proposal ID: ${Y}
|
|
449
|
+
Intent: ${W.intent}
|
|
450
|
+
Status: ${W.status}
|
|
451
|
+
Priority: ${W.metadata?.priority||"medium"}
|
|
452
|
+
Author: ${W.author?.name}
|
|
453
|
+
Description:
|
|
454
|
+
${W.content||""}`;i(ie)}else i(null)}catch(L){console.error("Error fetching proposal:",L),i(null)}}else i(null)})()},[A]);const j=()=>{if(A.includes("/proposals")){const U=A.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(A.includes("/new"))return{type:"proposals-new",content:null};if(U){const L=["project.md",`${U}.md`].join(", "),J=[l&&`=== PROJECT CONTEXT ===
|
|
455
|
+
${l}`,r&&`=== PROPOSAL CONTENT ===
|
|
456
|
+
${r}`].filter(Boolean),W=J.length>0?J.join(`
|
|
457
|
+
|
|
458
|
+
`):null;return{type:A.includes("/edit")?"proposals-edit":"proposals-view",content:W,displayId:U,contextFiles:L}}return{type:"proposals",content:l,contextFiles:"project.md"}}return A.includes("/context")?A.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:A.includes("/project")?{type:"context-project",content:l,contextFiles:"project.md"}:A.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:A.includes("/settings")?A.includes("/agents")?{type:"settings-agents",content:null}:A.includes("/integrations")?{type:"settings-integrations",content:null}:A.includes("/prompts")?{type:"settings-prompts",content:null}:A.includes("/rules")?{type:"settings-rules",content:null}:A.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:A.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(ES,{children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(EP,{}),g.jsxs(AS,{className:ue("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(kS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:d||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(St,{onClick:D,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(fp,{className:"h-4 w-4"})}),R&&T&&g.jsxs(K8,{children:[g.jsx(X8,{asChild:!0,children:g.jsx(St,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(mj,{className:"h-4 w-4"})})}),g.jsxs(b2,{align:"end",children:[g.jsx(S2,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:T.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:T.email})]})}),g.jsx(E2,{}),g.jsxs(w2,{onClick:P,children:[g.jsx(jM,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(nw,{})})]}),g.jsx(AB,{isOpen:e,onToggle:D,contextInfo:j(),discussDocument:m,onDiscussDocumentHandled:()=>y(null),pendingPrompt:b,onPendingPromptHandled:()=>w(null)})]})})}const tU=[{title:"Coconut Profile",href:"/settings/user",icon:hj,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:nj,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:ej,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:NM,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:ic,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:VM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:Kw,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:IM,description:"Model Context Protocol configuration and settings"}];function nU(){const e=Gn();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:tU.map(n=>g.jsxs(qr,{to:n.href,className:ue("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(nw,{})})})]})}const rU=x.lazy(()=>Ye(()=>import("./DashboardPage-BoPCq6M9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),aU=x.lazy(()=>Ye(()=>import("./LoginPage-CZtwhbdN.js"),__vite__mapDeps([10,11,1,12]))),iU=x.lazy(()=>Ye(()=>import("./CallbackPage-DYzikcPp.js"),__vite__mapDeps([13,5,14]))),oU=x.lazy(()=>Ye(()=>import("./ProposalsPage-D8W2d6g6.js"),__vite__mapDeps([15,1,2,9,16]))),lU=x.lazy(()=>Ye(()=>import("./ProposalDetailPage-BnLOBPPT.js"),__vite__mapDeps([17,18,1,2,11,19,20,21,4,7]))),sU=x.lazy(()=>Ye(()=>import("./ProposalEditPage-bIYTFTmG.js"),__vite__mapDeps([22,11,1,23,24,25,26,9,27,2,19])).then(e=>({default:e.ProposalEditPage}))),uU=x.lazy(()=>Ye(()=>import("./NewProposalPage-nCTq2mBC.js"),__vite__mapDeps([28,1,11,23,24,25,26,9,27,2,19])).then(e=>({default:e.NewProposalPage}))),cU=x.lazy(()=>Ye(()=>import("./TerminalPage-fabajZvk.js"),__vite__mapDeps([29,1,30,31,32,33,34,35,36]))),fU=x.lazy(()=>Ye(()=>import("./TerminalSessionPage-DuJsKT9f.js"),__vite__mapDeps([37,1,2,38,25,11,30,32,33,39,40,34,35,9,41]))),dU=x.lazy(()=>Ye(()=>import("./UtilitiesPage-qStPGLN_.js"),__vite__mapDeps([42,1,30,36,35]))),hU=x.lazy(()=>Ye(()=>import("./CodePage-CtM-PEHU.js"),__vite__mapDeps([43,1,2,30,31,32,33,40,34,35]))),pU=x.lazy(()=>Ye(()=>import("./AgentsPage-DcgU1MPa.js"),__vite__mapDeps([44,1,2,18,45,46,16,9,47]))),mU=x.lazy(()=>Ye(()=>import("./AgentDetailPage-Bw8wHgla.js"),__vite__mapDeps([48,1,2,19]))),gU=x.lazy(()=>Ye(()=>import("./NewAgentPage-D-Pj_KgZ.js"),__vite__mapDeps([49,1,11,2,18,19,20]))),yU=x.lazy(()=>Ye(()=>import("./AgentEditPage-CQ9Y3ez8.js"),__vite__mapDeps([50,1,11,2,18,19,20]))),vU=x.lazy(()=>Ye(()=>import("./ResourcesPage-Dq9DZFd7.js"),__vite__mapDeps([51,1,11,2,18,46,21,6,4,9,16]))),xU=x.lazy(()=>Ye(()=>import("./KnowledgePage-x9ShzjoT.js"),__vite__mapDeps([52,1,2,18,45,46,16,9,53,39]))),bU=x.lazy(()=>Ye(()=>import("./KnowledgeDetailPage-I9erHJXN.js"),__vite__mapDeps([54,1,2,18,19,4,47]))),wU=x.lazy(()=>Ye(()=>import("./KnowledgeEditPage-BfaWotPl.js"),__vite__mapDeps([55,1,11,23,24,27,2,19]))),SU=x.lazy(()=>Ye(()=>import("./NewKnowledgePage-CoVnCUx6.js"),__vite__mapDeps([56,1,11,23,24,27,2,19]))),EU=x.lazy(()=>Ye(()=>import("./ProjectPage-KwwOjk5b.js"),__vite__mapDeps([57,1,2,18]))),CU=x.lazy(()=>Ye(()=>import("./ProjectEditPage-d1cMZArt.js"),__vite__mapDeps([58,1,11,23,24,19,8]))),kU=x.lazy(()=>Ye(()=>import("./ArchitecturePage-Dpd6cyyT.js"),__vite__mapDeps([59,1,18]))),AU=x.lazy(()=>Ye(()=>import("./ArchitectureEditPage-DrEnTloL.js"),__vite__mapDeps([60,1,11,23,24,19,8]))),TU=x.lazy(()=>Ye(()=>import("./IdentityPage-Cvj6SDPj.js"),__vite__mapDeps([61,1,11,2,62,12,41,63,9,20]))),V0=x.lazy(()=>Ye(()=>import("./UserSettingsPage-CFEb7pD0.js"),__vite__mapDeps([64,1,11,20]))),RU=x.lazy(()=>Ye(()=>import("./AuthSettingsPage-wu1zFEx-.js"),__vite__mapDeps([65,1,11,66,2,67]))),NU=x.lazy(()=>Ye(()=>import("./ApiKeysSettingsPage-BgqGOa4p.js"),__vite__mapDeps([68,1,11,2,62,9,67]))),_U=x.lazy(()=>Ye(()=>import("./AgentsSettingsPage-CgoXxqGL.js"),__vite__mapDeps([69,1,11,2,9,70,35,41]))),MU=x.lazy(()=>Ye(()=>import("./IntegrationsSettingsPage-BgLXCF-u.js"),__vite__mapDeps([71,1,11]))),jU=x.lazy(()=>Ye(()=>import("./GitSettingsPage-B-1Nnid8.js"),__vite__mapDeps([72,1,11,38,34,5,14]))),DU=x.lazy(()=>Ye(()=>import("./McpSettingsPage-BHPjMqOX.js"),__vite__mapDeps([73,1,11,2,66,62,45,46,16,67,9,8]))),OU=x.lazy(()=>Ye(()=>import("./PromptsSettingsPage-fSs6HBAk.js"),__vite__mapDeps([74,1,11,2,9,63,21]))),PU=x.lazy(()=>Ye(()=>import("./RulesSettingsPage-SWRxKVNH.js"),__vite__mapDeps([75,1,11,2,9]))),LU=x.lazy(()=>Ye(()=>import("./GitPage-DYicFQBx.js"),__vite__mapDeps([76,1,11,12,5,14,39,53,34,67,3]))),zU=x.lazy(()=>Ye(()=>import("./SchedulePage-DGxD8ZaL.js"),__vite__mapDeps([77,1,2,11,66,12,34,9,35,70,7]))),IU=x.lazy(()=>Ye(()=>import("./UserPreferencesPage-DQMtobsK.js"),__vite__mapDeps([78,1,11])));function BU(){return g.jsxs($N,{children:[g.jsx(aN,{children:g.jsx(x.Suspense,{fallback:g.jsx(aD,{}),children:g.jsxs(OR,{children:[g.jsx(Le,{path:"/login",element:g.jsx(aU,{})}),g.jsx(Le,{path:"/auth/github/callback",element:g.jsx(iU,{})}),g.jsxs(Le,{path:"/",element:g.jsx(rD,{children:g.jsx(eU,{})}),children:[g.jsx(Le,{index:!0,element:g.jsx(rU,{})}),g.jsx(Le,{path:"proposals",element:g.jsx(oU,{})}),g.jsx(Le,{path:"proposals/new",element:g.jsx(uU,{})}),g.jsx(Le,{path:"proposals/:id",element:g.jsx(lU,{})}),g.jsx(Le,{path:"proposals/:id/edit",element:g.jsx(sU,{})}),g.jsx(Le,{path:"code",element:g.jsx(hU,{})}),g.jsx(Le,{path:"utilities",element:g.jsx(dU,{})}),g.jsx(Le,{path:"terminal",element:g.jsx(cU,{})}),g.jsx(Le,{path:"terminal/:proposalId",element:g.jsx(fU,{})}),g.jsx(Le,{path:"git",element:g.jsx(LU,{})}),g.jsx(Le,{path:"schedule",element:g.jsx(zU,{})}),g.jsx(Le,{path:"identity",element:g.jsx(TU,{})}),g.jsx(Le,{path:"agents",element:g.jsx(pU,{})}),g.jsx(Le,{path:"agents/new",element:g.jsx(gU,{})}),g.jsx(Le,{path:"agents/:id",element:g.jsx(mU,{})}),g.jsx(Le,{path:"agents/:id/edit",element:g.jsx(yU,{})}),g.jsx(Le,{path:"resources",element:g.jsx(vU,{})}),g.jsx(Le,{path:"context/project",element:g.jsx(EU,{})}),g.jsx(Le,{path:"context/project/edit",element:g.jsx(CU,{})}),g.jsx(Le,{path:"context/architecture",element:g.jsx(kU,{})}),g.jsx(Le,{path:"context/architecture/edit",element:g.jsx(AU,{})}),g.jsx(Le,{path:"context/knowledge",element:g.jsx(xU,{})}),g.jsx(Le,{path:"context/knowledge/new",element:g.jsx(SU,{})}),g.jsx(Le,{path:"context/knowledge/:filename",element:g.jsx(bU,{})}),g.jsx(Le,{path:"context/knowledge/:filename/edit",element:g.jsx(wU,{})}),g.jsxs(Le,{path:"settings",element:g.jsx(nU,{}),children:[g.jsx(Le,{index:!0,element:g.jsx(V0,{})}),g.jsx(Le,{path:"user",element:g.jsx(V0,{})}),g.jsx(Le,{path:"preferences",element:g.jsx(IU,{})}),g.jsx(Le,{path:"authentication",element:g.jsx(RU,{})}),g.jsx(Le,{path:"api-keys",element:g.jsx(NU,{})}),g.jsx(Le,{path:"agents",element:g.jsx(_U,{})}),g.jsx(Le,{path:"integrations",element:g.jsx(MU,{})}),g.jsx(Le,{path:"git",element:g.jsx(jU,{})}),g.jsx(Le,{path:"mcp",element:g.jsx(DU,{})}),g.jsx(Le,{path:"prompts",element:g.jsx(OU,{})}),g.jsx(Le,{path:"rules",element:g.jsx(PU,{})})]})]})]})})}),g.jsx(nD,{})]})}BT.createRoot(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsx(BU,{})}));export{mE as $,Et as A,St as B,J_ as C,Kc as D,UU as E,hM as F,Kw as G,QN as H,f1 as I,ij as J,QU as K,qr as L,Y9 as M,K9 as N,VC as O,$C as P,YC as Q,KC as R,Ql as S,fj as T,GC as U,QC as V,XC as W,oo as X,ms as Y,mj as Z,XU as _,ss as a,Sa as a$,bk as a0,p1 as a1,GM as a2,uj as a3,tD as a4,K8 as a5,X8 as a6,b2 as a7,S2 as a8,E2 as a9,fM as aA,Wc as aB,bc as aC,eH as aD,JU as aE,Um as aF,Gm as aG,Om as aH,Lp as aI,j5 as aJ,pL as aK,ZU as aL,nL as aM,vL as aN,lL as aO,yL as aP,_p as aQ,Pm as aR,EE as aS,Kl as aT,a6 as aU,G3 as aV,U5 as aW,ZE as aX,WU as aY,NL as aZ,Bh as a_,w2 as aa,VU as ab,nc as ac,WM as ad,W8 as ae,yj as af,qN as ag,Mc as ah,lM as ai,fp as aj,Aa as ak,Yn as al,Tc as am,pe as an,_e as ao,Ie as ap,Vc as aq,Sp as ar,rS as as,_S as at,xb as au,f6 as av,O9 as aw,C9 as ax,xM as ay,LM as az,us as b,nn as b0,_0 as b1,FU as b2,IM as b3,ej as b4,Xi as b5,NM as b6,mB as b7,Sk as b8,zB as b9,IB as ba,un as bb,rM as bc,_c as bd,vr as be,qU as bf,X_ as bg,EM as bh,De as c,cs as d,Ol as e,ue as f,ic as g,QM as h,zl as i,g as j,iM as k,Gn as l,yw as m,oc as n,HU as o,Lh as p,tM as q,x as r,Yw as s,op as t,Sc as u,Gb as v,Rp as w,Yb as x,Np as y,ni as z};
|