@c4a/server-cli 0.4.12-alpha.2 → 0.4.12-beta.14
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/index.js +4255 -1109
- package/package.json +2 -1
- package/serve.js +11236 -2504
- package/web/assets/ContentCard-D0mL7yOO.js +1 -0
- package/web/assets/ContentCard-_I22pq8z.js +1 -0
- package/web/assets/ContentDetail-BlCJjlr2.js +65 -0
- package/web/assets/ContentDetail-BtrIxG3F.js +1 -0
- package/web/assets/ContentDetail-DVIbcpNs.js +65 -0
- package/web/assets/EntityDetail-BBLfJ9LL.js +3 -0
- package/web/assets/EntityDetail-CHe5PkO9.js +1 -0
- package/web/assets/EntityDetail-CQNu3A3D.js +3 -0
- package/web/assets/JsonTree-BRUca2ED.js +1 -0
- package/web/assets/JsonTree-Dd_iNoWA.js +1 -0
- package/web/assets/RelationDetail-BoTv8wr4.js +1 -0
- package/web/assets/RelationDetail-CZwj9HUp.js +1 -0
- package/web/assets/RelationDetail-CkBj9cCj.js +1 -0
- package/web/assets/andromeeda-C4gqWexZ.js +1 -0
- package/web/assets/angular-html-DA-rfuFy.js +1 -0
- package/web/assets/angular-ts-BrjP3tb8.js +1 -0
- package/web/assets/astro-HNnZUWAn.js +1 -0
- package/web/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/web/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/web/assets/ayu-light-BA47KaF1.js +1 -0
- package/web/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/web/assets/blade-BjGOyj-B.js +1 -0
- package/web/assets/c-BIGW1oBm.js +1 -0
- package/web/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/web/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/web/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/web/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/web/assets/coffee-Ch7k5sss.js +1 -0
- package/web/assets/cpp-CofmeUqb.js +1 -0
- package/web/assets/css-CLj8gQPS.js +1 -0
- package/web/assets/csv-fuZLfV_i.js +1 -0
- package/web/assets/dark-plus-C3mMm8J8.js +1 -0
- package/web/assets/dracula-BzJJZx-M.js +1 -0
- package/web/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/web/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/web/assets/everforest-light-C8M2exoo.js +1 -0
- package/web/assets/github-dark-DHJKELXO.js +1 -0
- package/web/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/web/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/web/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/web/assets/github-light-DAi9KRSo.js +1 -0
- package/web/assets/github-light-default-D7oLnXFd.js +1 -0
- package/web/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/web/assets/glsl-DplSGwfg.js +1 -0
- package/web/assets/graphql-ChdNCCLP.js +1 -0
- package/web/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/web/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/web/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/web/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/web/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/web/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/web/assets/haml-D5jkg6IW.js +1 -0
- package/web/assets/handlebars-BpdQsYii.js +1 -0
- package/web/assets/horizon-BUw7H-hv.js +1 -0
- package/web/assets/horizon-bright-CUuTKBJd.js +1 -0
- package/web/assets/houston-DnULxvSX.js +1 -0
- package/web/assets/html-derivative-DlHx6ybY.js +1 -0
- package/web/assets/html-pp8916En.js +1 -0
- package/web/assets/http-jrhK8wxY.js +1 -0
- package/web/assets/hurl-irOxFIW8.js +1 -0
- package/web/assets/imba-DGztddWO.js +1 -0
- package/web/assets/index-1QkfhsIS.js +12 -0
- package/web/assets/index-8J6WgTr0.js +238 -0
- package/web/assets/index-B1KeXpYL.css +1 -0
- package/web/assets/index-B1zrTc3w.js +12 -0
- package/web/assets/index-B6uGMtfP.css +1 -0
- package/web/assets/index-BCzQnf3x.css +1 -0
- package/web/assets/index-BE9z9PQF.js +238 -0
- package/web/assets/index-BF6rVrre.js +238 -0
- package/web/assets/index-BLskFmu3.js +193 -0
- package/web/assets/index-BMVKFQ7h.js +238 -0
- package/web/assets/index-BRwgHwhm.js +12 -0
- package/web/assets/index-BU6YkKWq.css +1 -0
- package/web/assets/index-BXaK4HKi.js +12 -0
- package/web/assets/index-BaBWjAP7.css +1 -0
- package/web/assets/index-Be3yvSxB.js +12 -0
- package/web/assets/index-Bh0nrxkS.css +1 -0
- package/web/assets/index-BjM7CFih.js +12 -0
- package/web/assets/index-BoqItESG.js +13 -0
- package/web/assets/index-Bxc-msf3.js +238 -0
- package/web/assets/index-Bxkj7nBM.css +1 -0
- package/web/assets/index-ByCT34eF.css +1 -0
- package/web/assets/index-C0SbV7Fr.js +238 -0
- package/web/assets/index-C1T-mIJp.js +238 -0
- package/web/assets/index-C1tbhKrB.css +1 -0
- package/web/assets/index-C6uqUNjs.js +238 -0
- package/web/assets/index-CKPy6nsr.js +238 -0
- package/web/assets/index-CSQvEPnB.js +238 -0
- package/web/assets/index-CU-x3HVJ.js +12 -0
- package/web/assets/index-CVcqJsfJ.js +12 -0
- package/web/assets/index-CWKka1Dm.css +1 -0
- package/web/assets/index-Cs1wjzzB.css +1 -0
- package/web/assets/index-D0FYwi5D.css +1 -0
- package/web/assets/index-D9pKIRoL.js +12 -0
- package/web/assets/index-DHMM5gmZ.js +12 -0
- package/web/assets/index-DMIK6qP9.js +12 -0
- package/web/assets/index-DNSKIsZU.js +238 -0
- package/web/assets/index-DW-afpe4.js +12 -0
- package/web/assets/index-DYi5EQi6.css +1 -0
- package/web/assets/index-DaUMALOp.css +1 -0
- package/web/assets/index-DeStbuhs.css +1 -0
- package/web/assets/index-DfXQnmId.js +12 -0
- package/web/assets/index-DisDw0E0.css +1 -0
- package/web/assets/index-Dm-_KwmC.css +1 -0
- package/web/assets/index-DmRvWfJA.js +12 -0
- package/web/assets/index-Drfhm6bu.js +12 -0
- package/web/assets/index-DvnO8hAI.js +12 -0
- package/web/assets/index-G3fxfqeh.js +238 -0
- package/web/assets/index-JdgClnFG.css +1 -0
- package/web/assets/index-P648JtKx.js +12 -0
- package/web/assets/index-PGORoGGx.js +13 -0
- package/web/assets/index-VCinLKUc.css +1 -0
- package/web/assets/index-ZtrM6iGG.js +12 -0
- package/web/assets/index-oRdZsAv2.js +238 -0
- package/web/assets/index-snZ8He7E.js +12 -0
- package/web/assets/index-zH92nrE5.css +1 -0
- package/web/assets/java-CylS5w8V.js +1 -0
- package/web/assets/javascript-wDzz0qaB.js +1 -0
- package/web/assets/jinja-f2NsQr07.js +1 -0
- package/web/assets/jison-wvAkD_A8.js +1 -0
- package/web/assets/json-Cp-IABpG.js +1 -0
- package/web/assets/json5-C9tS-k6U.js +1 -0
- package/web/assets/jsonc-Des-eS-w.js +1 -0
- package/web/assets/jsonl-DcaNXYhu.js +1 -0
- package/web/assets/jsx-g9-lgVsj.js +1 -0
- package/web/assets/julia-CxzCAyBv.js +1 -0
- package/web/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/web/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/web/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/web/assets/laserwave-DUszq2jm.js +1 -0
- package/web/assets/less-B1dDrJ26.js +1 -0
- package/web/assets/light-plus-B7mTdjB0.js +1 -0
- package/web/assets/markdown-Cvjx9yec.js +1 -0
- package/web/assets/marko-DjSrsDqO.js +1 -0
- package/web/assets/material-theme-D5KoaKCx.js +1 -0
- package/web/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/web/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/web/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/web/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/web/assets/mdc-DTYItulj.js +1 -0
- package/web/assets/mdx-Cmh6b_Ma.js +1 -0
- package/web/assets/min-dark-CafNBF8u.js +1 -0
- package/web/assets/min-light-CTRr51gU.js +1 -0
- package/web/assets/monokai-D4h5O-jR.js +1 -0
- package/web/assets/night-owl-C39BiMTA.js +1 -0
- package/web/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/web/assets/nord-Ddv68eIx.js +1 -0
- package/web/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/web/assets/one-light-C3Wv6jpd.js +1 -0
- package/web/assets/php-R6g_5hLQ.js +1 -0
- package/web/assets/plastic-3e1v2bzS.js +1 -0
- package/web/assets/poimandres-CS3Unz2-.js +1 -0
- package/web/assets/postcss-CXtECtnM.js +1 -0
- package/web/assets/pug-DKIMFp6K.js +1 -0
- package/web/assets/python-B6aJPvgy.js +1 -0
- package/web/assets/r-Dspwwk_N.js +1 -0
- package/web/assets/red-bN70gL4F.js +1 -0
- package/web/assets/regexp-CDVJQ6XC.js +1 -0
- package/web/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/web/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/web/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/web/assets/sass-Cj5Yp3dK.js +1 -0
- package/web/assets/scss-D5BDwBP9.js +1 -0
- package/web/assets/shellscript-Yzrsuije.js +1 -0
- package/web/assets/slack-dark-BthQWCQV.js +1 -0
- package/web/assets/slack-ochin-DqwNpetd.js +1 -0
- package/web/assets/snazzy-light-Bw305WKR.js +1 -0
- package/web/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/web/assets/solarized-light-L9t79GZl.js +1 -0
- package/web/assets/sql-BLtJtn59.js +1 -0
- package/web/assets/stylus-BEDo0Tqx.js +1 -0
- package/web/assets/svelte-Cy7k_4gC.js +1 -0
- package/web/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/web/assets/tokyo-night-hegEt444.js +1 -0
- package/web/assets/ts-tags-DQrlYJgV.js +1 -0
- package/web/assets/tsx-COt5Ahok.js +1 -0
- package/web/assets/typescript-BPQ3VLAy.js +1 -0
- package/web/assets/vesper-DU1UobuO.js +1 -0
- package/web/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/web/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/web/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/web/assets/vue-D2xRrEX4.js +1 -0
- package/web/assets/vue-html-AaS7Mt5G.js +1 -0
- package/web/assets/vue-vine-BoDAl6tE.js +1 -0
- package/web/assets/wasm-CG6Dc4jp.js +1 -0
- package/web/assets/wasm-MzD3tlZU.js +1 -0
- package/web/assets/wgsl-Dx-B1_4e.js +1 -0
- package/web/assets/wit-5i3qLPDT.js +1 -0
- package/web/assets/xml-sdJ4AIDG.js +1 -0
- package/web/assets/yaml-Buea-lGh.js +1 -0
- package/web/index.html +2 -2
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
function s_(s,o){for(var l=0;l<o.length;l++){const c=o[l];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in s)){const d=Object.getOwnPropertyDescriptor(c,u);d&&Object.defineProperty(s,u,d.get?d:{enumerable:!0,get:()=>c[u]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(u){if(u.ep)return;u.ep=!0;const d=l(u);fetch(u.href,d)}})();function o_(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var kg={exports:{}},Uf={},Ug={exports:{}},Zc={exports:{}};Zc.exports;var I1;function r_(){return I1||(I1=1,(function(s,o){(function(){function l(x,O){Object.defineProperty(d.prototype,x,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function c(x){return x===null||typeof x!="object"?null:(x=xt&&x[xt]||x["@@iterator"],typeof x=="function"?x:null)}function u(x,O){x=(x=x.constructor)&&(x.displayName||x.name)||"ReactClass";var Z=x+"."+O;ft[Z]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,x),ft[Z]=!0)}function d(x,O,Z){this.props=x,this.context=O,this.refs=nt,this.updater=Z||Ht}function h(){}function g(x,O,Z){this.props=x,this.context=O,this.refs=nt,this.updater=Z||Ht}function b(){}function y(x){return""+x}function D(x){try{y(x);var O=!1}catch{O=!0}if(O){O=console;var Z=O.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return Z.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),y(x)}}function N(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===Sn?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case I:return"Fragment";case Ue:return"Profiler";case Ne:return"StrictMode";case Ke:return"Suspense";case Qt:return"SuspenseList";case he:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case He:return"Portal";case dt:return x.displayName||"Context";case Re:return(x._context.displayName||"Context")+".Consumer";case Tt:var O=x.render;return x=x.displayName,x||(x=O.displayName||O.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case De:return O=x.displayName||null,O!==null?O:N(x.type)||"Memo";case Lt:O=x._payload,x=x._init;try{return N(x(O))}catch{}}return null}function w(x){if(x===I)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===Lt)return"<...>";try{var O=N(x);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function R(){var x=Se.A;return x===null?null:x.getOwner()}function _(){return Error("react-stack-top-frame")}function H(x){if(wn.call(x,"key")){var O=Object.getOwnPropertyDescriptor(x,"key").get;if(O&&O.isReactWarning)return!1}return x.key!==void 0}function z(x,O){function Z(){Fa||(Fa=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}Z.isReactWarning=!0,Object.defineProperty(x,"key",{get:Z,configurable:!0})}function X(){var x=N(this.type);return ja[x]||(ja[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function K(x,O,Z,ae,de,ze){var Ee=Z.ref;return x={$$typeof:pe,type:x,key:O,props:Z,_owner:ae},(Ee!==void 0?Ee:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:X}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ze}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function W(x,O){return O=K(x.type,O,x.props,x._owner,x._debugStack,x._debugTask),x._store&&(O._store.validated=x._store.validated),O}function te(x){P(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===Lt&&(x._payload.status==="fulfilled"?P(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function P(x){return typeof x=="object"&&x!==null&&x.$$typeof===pe}function le(x){var O={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Z){return O[Z]})}function re(x,O){return typeof x=="object"&&x!==null&&x.key!=null?(D(x.key),le(""+x.key)):O.toString(36)}function k(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(b,b):(x.status="pending",x.then(function(O){x.status==="pending"&&(x.status="fulfilled",x.value=O)},function(O){x.status==="pending"&&(x.status="rejected",x.reason=O)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function $(x,O,Z,ae,de){var ze=typeof x;(ze==="undefined"||ze==="boolean")&&(x=null);var Ee=!1;if(x===null)Ee=!0;else switch(ze){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(x.$$typeof){case pe:case He:Ee=!0;break;case Lt:return Ee=x._init,$(Ee(x._payload),O,Z,ae,de)}}if(Ee){Ee=x,de=de(Ee);var Xe=ae===""?"."+re(Ee,0):ae;return Pt(de)?(Z="",Xe!=null&&(Z=Xe.replace(Ea,"$&/")+"/"),$(de,O,Z,"",function(Zt){return Zt})):de!=null&&(P(de)&&(de.key!=null&&(Ee&&Ee.key===de.key||D(de.key)),Z=W(de,Z+(de.key==null||Ee&&Ee.key===de.key?"":(""+de.key).replace(Ea,"$&/")+"/")+Xe),ae!==""&&Ee!=null&&P(Ee)&&Ee.key==null&&Ee._store&&!Ee._store.validated&&(Z._store.validated=2),de=Z),O.push(de)),1}if(Ee=0,Xe=ae===""?".":ae+":",Pt(x))for(var Be=0;Be<x.length;Be++)ae=x[Be],ze=Xe+re(ae,Be),Ee+=$(ae,O,Z,ze,de);else if(Be=c(x),typeof Be=="function")for(Be===x.entries&&(Qa||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qa=!0),x=Be.call(x),Be=0;!(ae=x.next()).done;)ae=ae.value,ze=Xe+re(ae,Be++),Ee+=$(ae,O,Z,ze,de);else if(ze==="object"){if(typeof x.then=="function")return $(k(x),O,Z,ae,de);throw O=String(x),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function B(x,O,Z){if(x==null)return x;var ae=[],de=0;return $(x,ae,"","",function(ze){return O.call(Z,ze,de++)}),ae}function me(x){if(x._status===-1){var O=x._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=x._result;var Z=O();if(Z.then(function(de){if(x._status===0||x._status===-1){x._status=1,x._result=de;var ze=x._ioInfo;ze!=null&&(ze.end=performance.now()),Z.status===void 0&&(Z.status="fulfilled",Z.value=de)}},function(de){if(x._status===0||x._status===-1){x._status=2,x._result=de;var ze=x._ioInfo;ze!=null&&(ze.end=performance.now()),Z.status===void 0&&(Z.status="rejected",Z.reason=de)}}),O=x._ioInfo,O!=null){O.value=Z;var ae=Z.displayName;typeof ae=="string"&&(O.name=ae)}x._status===-1&&(x._status=0,x._result=Z)}if(x._status===1)return O=x._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
+
|
|
3
|
+
Your code should look like:
|
|
4
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
+
|
|
6
|
+
Did you accidentally put curly braces around the import?`,O),"default"in O||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
+
|
|
8
|
+
Your code should look like:
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,O),O.default;throw x._result}function ee(){var x=Se.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
+
2. You might be breaking the Rules of Hooks
|
|
12
|
+
3. You might have more than one copy of React in the same app
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}function ce(){Se.asyncTransitions--}function ne(x){if(In===null)try{var O=("require"+Math.random()).slice(0,7);In=(s&&s[O]).call(s,"timers").setImmediate}catch{In=function(ae){ds===!1&&(ds=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var de=new MessageChannel;de.port1.onmessage=ae,de.port2.postMessage(void 0)}}return In(x)}function ge(x){return 1<x.length&&typeof AggregateError=="function"?new AggregateError(x):x[0]}function J(x,O){O!==Pa-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Pa=O}function ue(x,O,Z){var ae=Se.actQueue;if(ae!==null)if(ae.length!==0)try{ve(ae),ne(function(){return ue(x,O,Z)});return}catch(de){Se.thrownErrors.push(de)}else Se.actQueue=null;0<Se.thrownErrors.length?(ae=ge(Se.thrownErrors),Se.thrownErrors.length=0,Z(ae)):O(x)}function ve(x){if(!la){la=!0;var O=0;try{for(;O<x.length;O++){var Z=x[O];do{Se.didUsePromise=!1;var ae=Z(!1);if(ae!==null){if(Se.didUsePromise){x[O]=Z,x.splice(0,O);return}Z=ae}else break}while(!0)}x.length=0}catch(de){x.splice(0,O+1),Se.thrownErrors.push(de)}finally{la=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pe=Symbol.for("react.transitional.element"),He=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),Re=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),Tt=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),Qt=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),xt=Symbol.iterator,ft={},Ht={isMounted:function(){return!1},enqueueForceUpdate:function(x){u(x,"forceUpdate")},enqueueReplaceState:function(x){u(x,"replaceState")},enqueueSetState:function(x){u(x,"setState")}},Bt=Object.assign,nt={};Object.freeze(nt),d.prototype.isReactComponent={},d.prototype.setState=function(x,O){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,O,"setState")},d.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};var vt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(nn in vt)vt.hasOwnProperty(nn)&&l(nn,vt[nn]);h.prototype=d.prototype,vt=g.prototype=new h,vt.constructor=g,Bt(vt,d.prototype),vt.isPureReactComponent=!0;var Pt=Array.isArray,Sn=Symbol.for("react.client.reference"),Se={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},wn=Object.prototype.hasOwnProperty,wa=console.createTask?console.createTask:function(){return null};vt={react_stack_bottom_frame:function(x){return x()}};var Fa,En,ja={},Xa=vt.react_stack_bottom_frame.bind(vt,_)(),us=wa(w(_)),Qa=!1,Ea=/\/+/g,ga=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ds=!1,In=null,Pa=0,Fn=!1,la=!1,Xn=typeof queueMicrotask=="function"?function(x){queueMicrotask(function(){return queueMicrotask(x)})}:ne;vt=Object.freeze({__proto__:null,c:function(x){return ee().useMemoCache(x)}});var nn={map:B,forEach:function(x,O,Z){B(x,function(){O.apply(this,arguments)},Z)},count:function(x){var O=0;return B(x,function(){O++}),O},toArray:function(x){return B(x,function(O){return O})||[]},only:function(x){if(!P(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};o.Activity=he,o.Children=nn,o.Component=d,o.Fragment=I,o.Profiler=Ue,o.PureComponent=g,o.StrictMode=Ne,o.Suspense=Ke,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Se,o.__COMPILER_RUNTIME=vt,o.act=function(x){var O=Se.actQueue,Z=Pa;Pa++;var ae=Se.actQueue=O!==null?O:[],de=!1;try{var ze=x()}catch(Be){Se.thrownErrors.push(Be)}if(0<Se.thrownErrors.length)throw J(O,Z),x=ge(Se.thrownErrors),Se.thrownErrors.length=0,x;if(ze!==null&&typeof ze=="object"&&typeof ze.then=="function"){var Ee=ze;return Xn(function(){de||Fn||(Fn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Be,Zt){de=!0,Ee.then(function(Oa){if(J(O,Z),Z===0){try{ve(ae),ne(function(){return ue(Oa,Be,Zt)})}catch(Fs){Se.thrownErrors.push(Fs)}if(0<Se.thrownErrors.length){var Is=ge(Se.thrownErrors);Se.thrownErrors.length=0,Zt(Is)}}else Be(Oa)},function(Oa){J(O,Z),0<Se.thrownErrors.length&&(Oa=ge(Se.thrownErrors),Se.thrownErrors.length=0),Zt(Oa)})}}}var Xe=ze;if(J(O,Z),Z===0&&(ve(ae),ae.length!==0&&Xn(function(){de||Fn||(Fn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Se.actQueue=null),0<Se.thrownErrors.length)throw x=ge(Se.thrownErrors),Se.thrownErrors.length=0,x;return{then:function(Be,Zt){de=!0,Z===0?(Se.actQueue=ae,ne(function(){return ue(Xe,Be,Zt)})):Be(Xe)}}},o.cache=function(x){return function(){return x.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var x=Se.getCurrentStack;return x===null?null:x()},o.cloneElement=function(x,O,Z){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var ae=Bt({},x.props),de=x.key,ze=x._owner;if(O!=null){var Ee;e:{if(wn.call(O,"ref")&&(Ee=Object.getOwnPropertyDescriptor(O,"ref").get)&&Ee.isReactWarning){Ee=!1;break e}Ee=O.ref!==void 0}Ee&&(ze=R()),H(O)&&(D(O.key),de=""+O.key);for(Xe in O)!wn.call(O,Xe)||Xe==="key"||Xe==="__self"||Xe==="__source"||Xe==="ref"&&O.ref===void 0||(ae[Xe]=O[Xe])}var Xe=arguments.length-2;if(Xe===1)ae.children=Z;else if(1<Xe){Ee=Array(Xe);for(var Be=0;Be<Xe;Be++)Ee[Be]=arguments[Be+2];ae.children=Ee}for(ae=K(x.type,de,ae,ze,x._debugStack,x._debugTask),de=2;de<arguments.length;de++)te(arguments[de]);return ae},o.createContext=function(x){return x={$$typeof:dt,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:Re,_context:x},x._currentRenderer=null,x._currentRenderer2=null,x},o.createElement=function(x,O,Z){for(var ae=2;ae<arguments.length;ae++)te(arguments[ae]);ae={};var de=null;if(O!=null)for(Be in En||!("__self"in O)||"key"in O||(En=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),H(O)&&(D(O.key),de=""+O.key),O)wn.call(O,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(ae[Be]=O[Be]);var ze=arguments.length-2;if(ze===1)ae.children=Z;else if(1<ze){for(var Ee=Array(ze),Xe=0;Xe<ze;Xe++)Ee[Xe]=arguments[Xe+2];Object.freeze&&Object.freeze(Ee),ae.children=Ee}if(x&&x.defaultProps)for(Be in ze=x.defaultProps,ze)ae[Be]===void 0&&(ae[Be]=ze[Be]);de&&z(ae,typeof x=="function"?x.displayName||x.name||"Unknown":x);var Be=1e4>Se.recentlyCreatedOwnerStacks++;return K(x,de,ae,R(),Be?Error("react-stack-top-frame"):Xa,Be?wa(w(x)):us)},o.createRef=function(){var x={current:null};return Object.seal(x),x},o.forwardRef=function(x){x!=null&&x.$$typeof===De?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof x!="function"?console.error("forwardRef requires a render function but was given %s.",x===null?"null":typeof x):x.length!==0&&x.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",x.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),x!=null&&x.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:Tt,render:x},Z;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return Z},set:function(ae){Z=ae,x.name||x.displayName||(Object.defineProperty(x,"name",{value:ae}),x.displayName=ae)}}),O},o.isValidElement=P,o.lazy=function(x){x={_status:-1,_result:x};var O={$$typeof:Lt,_payload:x,_init:me},Z={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return x._ioInfo=Z,O._debugInfo=[{awaited:Z}],O},o.memo=function(x,O){x==null&&console.error("memo: The first argument must be a component. Instead received: %s",x===null?"null":typeof x),O={$$typeof:De,type:x,compare:O===void 0?null:O};var Z;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return Z},set:function(ae){Z=ae,x.name||x.displayName||(Object.defineProperty(x,"name",{value:ae}),x.displayName=ae)}}),O},o.startTransition=function(x){var O=Se.T,Z={};Z._updatedFibers=new Set,Se.T=Z;try{var ae=x(),de=Se.S;de!==null&&de(Z,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&(Se.asyncTransitions++,ae.then(ce,ce),ae.then(b,ga))}catch(ze){ga(ze)}finally{O===null&&Z._updatedFibers&&(x=Z._updatedFibers.size,Z._updatedFibers.clear(),10<x&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&Z.types!==null&&(O.types!==null&&O.types!==Z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=Z.types),Se.T=O}},o.unstable_useCacheRefresh=function(){return ee().useCacheRefresh()},o.use=function(x){return ee().use(x)},o.useActionState=function(x,O,Z){return ee().useActionState(x,O,Z)},o.useCallback=function(x,O){return ee().useCallback(x,O)},o.useContext=function(x){var O=ee();return x.$$typeof===Re&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(x)},o.useDebugValue=function(x,O){return ee().useDebugValue(x,O)},o.useDeferredValue=function(x,O){return ee().useDeferredValue(x,O)},o.useEffect=function(x,O){return x==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useEffect(x,O)},o.useEffectEvent=function(x){return ee().useEffectEvent(x)},o.useId=function(){return ee().useId()},o.useImperativeHandle=function(x,O,Z){return ee().useImperativeHandle(x,O,Z)},o.useInsertionEffect=function(x,O){return x==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useInsertionEffect(x,O)},o.useLayoutEffect=function(x,O){return x==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useLayoutEffect(x,O)},o.useMemo=function(x,O){return ee().useMemo(x,O)},o.useOptimistic=function(x,O){return ee().useOptimistic(x,O)},o.useReducer=function(x,O,Z){return ee().useReducer(x,O,Z)},o.useRef=function(x){return ee().useRef(x)},o.useState=function(x){return ee().useState(x)},o.useSyncExternalStore=function(x,O,Z){return ee().useSyncExternalStore(x,O,Z)},o.useTransition=function(){return ee().useTransition()},o.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Zc,Zc.exports)),Zc.exports}var F1;function cu(){return F1||(F1=1,Ug.exports=r_()),Ug.exports}var X1;function i_(){if(X1)return Uf;X1=1;return(function(){function s(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===me?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case z:return"Fragment";case K:return"Profiler";case X:return"StrictMode";case le:return"Suspense";case re:return"SuspenseList";case B:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case H:return"Portal";case te:return I.displayName||"Context";case W:return(I._context.displayName||"Context")+".Consumer";case P:var Ne=I.render;return I=I.displayName,I||(I=Ne.displayName||Ne.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case k:return Ne=I.displayName||null,Ne!==null?Ne:s(I.type)||"Memo";case $:Ne=I._payload,I=I._init;try{return s(I(Ne))}catch{}}return null}function o(I){return""+I}function l(I){try{o(I);var Ne=!1}catch{Ne=!0}if(Ne){Ne=console;var Ue=Ne.error,Re=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Ue.call(Ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Re),o(I)}}function c(I){if(I===z)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===$)return"<...>";try{var Ne=s(I);return Ne?"<"+Ne+">":"<...>"}catch{return"<...>"}}function u(){var I=ee.A;return I===null?null:I.getOwner()}function d(){return Error("react-stack-top-frame")}function h(I){if(ce.call(I,"key")){var Ne=Object.getOwnPropertyDescriptor(I,"key").get;if(Ne&&Ne.isReactWarning)return!1}return I.key!==void 0}function g(I,Ne){function Ue(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ne))}Ue.isReactWarning=!0,Object.defineProperty(I,"key",{get:Ue,configurable:!0})}function b(){var I=s(this.type);return ue[I]||(ue[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function y(I,Ne,Ue,Re,dt,Tt){var Ke=Ue.ref;return I={$$typeof:_,type:I,key:Ne,props:Ue,_owner:Re},(Ke!==void 0?Ke:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:b}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:dt}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Tt}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function D(I,Ne,Ue,Re,dt,Tt){var Ke=Ne.children;if(Ke!==void 0)if(Re)if(ne(Ke)){for(Re=0;Re<Ke.length;Re++)N(Ke[Re]);Object.freeze&&Object.freeze(Ke)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(Ke);if(ce.call(Ne,"key")){Ke=s(I);var Qt=Object.keys(Ne).filter(function(Lt){return Lt!=="key"});Re=0<Qt.length?"{key: someKey, "+Qt.join(": ..., ")+": ...}":"{key: someKey}",He[Ke+Re]||(Qt=0<Qt.length?"{"+Qt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
14
|
+
let props = %s;
|
|
15
|
+
<%s {...props} />
|
|
16
|
+
React keys must be passed directly to JSX without using spread:
|
|
17
|
+
let props = %s;
|
|
18
|
+
<%s key={someKey} {...props} />`,Re,Ke,Qt,Ke),He[Ke+Re]=!0)}if(Ke=null,Ue!==void 0&&(l(Ue),Ke=""+Ue),h(Ne)&&(l(Ne.key),Ke=""+Ne.key),"key"in Ne){Ue={};for(var De in Ne)De!=="key"&&(Ue[De]=Ne[De])}else Ue=Ne;return Ke&&g(Ue,typeof I=="function"?I.displayName||I.name||"Unknown":I),y(I,Ke,Ue,u(),dt,Tt)}function N(I){w(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===$&&(I._payload.status==="fulfilled"?w(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function w(I){return typeof I=="object"&&I!==null&&I.$$typeof===_}var R=cu(),_=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),te=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),ee=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,ne=Array.isArray,ge=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(I){return I()}};var J,ue={},ve=R.react_stack_bottom_frame.bind(R,d)(),pe=ge(c(d)),He={};Uf.Fragment=z,Uf.jsxDEV=function(I,Ne,Ue,Re){var dt=1e4>ee.recentlyCreatedOwnerStacks++;return D(I,Ne,Ue,Re,dt?Error("react-stack-top-frame"):ve,dt?ge(c(I)):pe)}})(),Uf}var Q1;function l_(){return Q1||(Q1=1,kg.exports=i_()),kg.exports}var m=l_();const Ge=s=>typeof s=="string",Ic=()=>{let s,o;const l=new Promise((c,u)=>{s=c,o=u});return l.resolve=s,l.reject=o,l},P1=s=>s==null?"":""+s,c_=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},u_=/###/g,Z1=s=>s&&s.indexOf("###")>-1?s.replace(u_,"."):s,J1=s=>!s||Ge(s),eu=(s,o,l)=>{const c=Ge(o)?o.split("."):o;let u=0;for(;u<c.length-1;){if(J1(s))return{};const d=Z1(c[u]);!s[d]&&l&&(s[d]=new l),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++u}return J1(s)?{}:{obj:s,k:Z1(c[u])}},K1=(s,o,l)=>{const{obj:c,k:u}=eu(s,o,Object);if(c!==void 0||o.length===1){c[u]=l;return}let d=o[o.length-1],h=o.slice(0,o.length-1),g=eu(s,h,Object);for(;g.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),g=eu(s,h,Object),g?.obj&&typeof g.obj[`${g.k}.${d}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${d}`]=l},d_=(s,o,l,c)=>{const{obj:u,k:d}=eu(s,o,Object);u[d]=u[d]||[],u[d].push(l)},Hf=(s,o)=>{const{obj:l,k:c}=eu(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},f_=(s,o,l)=>{const c=Hf(s,l);return c!==void 0?c:Hf(o,l)},gw=(s,o,l)=>{for(const c in o)c!=="__proto__"&&c!=="constructor"&&(c in s?Ge(s[c])||s[c]instanceof String||Ge(o[c])||o[c]instanceof String?l&&(s[c]=o[c]):gw(s[c],o[c],l):s[c]=o[c]);return s},ti=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const p_=s=>Ge(s)?s.replace(/[&<>"'\/]/g,o=>m_[o]):s;class h_{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){const l=this.regExpMap.get(o);if(l!==void 0)return l;const c=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,c),this.regExpQueue.push(o),c}}const g_=[" ",",","?","!",";"],b_=new h_(20),y_=(s,o,l)=>{o=o||"",l=l||"";const c=g_.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=b_.getRegExp(`(${c.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!u.test(s);if(!d){const h=s.indexOf(l);h>0&&!u.test(s.substring(0,h))&&(d=!0)}return d},Pg=(s,o,l=".")=>{if(!s)return;if(s[o])return Object.prototype.hasOwnProperty.call(s,o)?s[o]:void 0;const c=o.split(l);let u=s;for(let d=0;d<c.length;){if(!u||typeof u!="object")return;let h,g="";for(let b=d;b<c.length;++b)if(b!==d&&(g+=l),g+=c[b],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&b<c.length-1)continue;d+=b-d+1;break}u=h}return u},su=s=>s?.replace("_","-"),v_={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,o){console?.[s]?.apply?.(console,o)}};class Bf{constructor(o,l={}){this.init(o,l)}init(o,l={}){this.prefix=l.prefix||"i18next:",this.logger=o||v_,this.options=l,this.debug=l.debug}log(...o){return this.forward(o,"log","",!0)}warn(...o){return this.forward(o,"warn","",!0)}error(...o){return this.forward(o,"error","")}deprecate(...o){return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(o,l,c,u){return u&&!this.debug?null:(Ge(o[0])&&(o[0]=`${c}${this.prefix} ${o[0]}`),this.logger[l](o))}create(o){return new Bf(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Bf(this.logger,o)}}var Ys=new Bf;class Gf{constructor(){this.observers={}}on(o,l){return o.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const u=this.observers[c].get(l)||0;this.observers[c].set(l,u+1)}),this}off(o,l){if(this.observers[o]){if(!l){delete this.observers[o];return}this.observers[o].delete(l)}}emit(o,...l){this.observers[o]&&Array.from(this.observers[o].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u.apply(u,[o,...l])})}}class W1 extends Gf{constructor(o,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=o||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}getResource(o,l,c,u={}){const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;o.indexOf(".")>-1?g=o.split("."):(g=[o,l],c&&(Array.isArray(c)?g.push(...c):Ge(c)&&d?g.push(...c.split(d)):g.push(c)));const b=Hf(this.data,g);return!b&&!l&&!c&&o.indexOf(".")>-1&&(o=g[0],l=g[1],c=g.slice(2).join(".")),b||!h||!Ge(c)?b:Pg(this.data?.[o]?.[l],c,d)}addResource(o,l,c,u,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let g=[o,l];c&&(g=g.concat(h?c.split(h):c)),o.indexOf(".")>-1&&(g=o.split("."),u=l,l=g[1]),this.addNamespaces(l),K1(this.data,g,u),d.silent||this.emit("added",o,l,c,u)}addResources(o,l,c,u={silent:!1}){for(const d in c)(Ge(c[d])||Array.isArray(c[d]))&&this.addResource(o,l,d,c[d],{silent:!0});u.silent||this.emit("added",o,l,c)}addResourceBundle(o,l,c,u,d,h={silent:!1,skipCopy:!1}){let g=[o,l];o.indexOf(".")>-1&&(g=o.split("."),u=c,c=l,l=g[1]),this.addNamespaces(l);let b=Hf(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?gw(b,c,d):b={...b,...c},K1(this.data,g,b),h.silent||this.emit("added",o,l,c)}removeResourceBundle(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}hasResourceBundle(o,l){return this.getResource(o,l)!==void 0}getResourceBundle(o,l){return l||(l=this.options.defaultNS),this.getResource(o,l)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const l=this.getDataByLanguage(o);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var bw={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,o,l,c,u){return s.forEach(d=>{o=this.processors[d]?.process(o,l,c,u)??o}),o}};const yw=Symbol("i18next/PATH_KEY");function x_(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===yw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function Zg(s,o){const{[yw]:l}=s(x_());return l.join(o?.keySeparator??".")}const eS={},Cg=s=>!Ge(s)&&typeof s!="boolean"&&typeof s!="number";class $f extends Gf{constructor(o,l={}){super(),c_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ys.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,l={interpolation:{}}){const c={...l};if(o==null)return!1;const u=this.resolve(o,c);if(u?.res===void 0)return!1;const d=Cg(u.res);return!(c.returnObjects===!1&&d)}extractFromKey(o,l){let c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=l.ns||this.options.defaultNS||[];const h=c&&o.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!y_(o,c,u);if(h&&!g){const b=o.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:o,namespaces:Ge(d)?[d]:d};const y=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(y[0])>-1)&&(d=y.shift()),o=y.join(u)}return{key:o,namespaces:Ge(d)?[d]:d}}translate(o,l,c){let u=typeof l=="object"?{...l}:l;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),o==null)return"";typeof o=="function"&&(o=Zg(o,{...this.options,...u})),Array.isArray(o)||(o=[String(o)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:b}=this.extractFromKey(o[o.length-1],u),y=b[b.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const N=u.lng||this.language,w=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(N?.toLowerCase()==="cimode")return w?d?{res:`${y}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:N,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:`${y}${D}${g}`:d?{res:g,usedKey:g,exactUsedKey:g,usedLng:N,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let _=R?.res;const H=R?.usedKey||g,z=R?.exactUsedKey||g,X=["[object Number]","[object Function]","[object RegExp]"],K=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject,te=u.count!==void 0&&!Ge(u.count),P=$f.hasDefaultValue(u),le=te?this.pluralResolver.getSuffix(N,u.count,u):"",re=u.ordinal&&te?this.pluralResolver.getSuffix(N,u.count,{ordinal:!1}):"",k=te&&!u.ordinal&&u.count===0,$=k&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${le}`]||u[`defaultValue${re}`]||u.defaultValue;let B=_;W&&!_&&P&&(B=$);const me=Cg(B),ee=Object.prototype.toString.apply(B);if(W&&B&&me&&X.indexOf(ee)<0&&!(Ge(K)&&Array.isArray(B))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,B,{...u,ns:b}):`key '${g} (${this.language})' returned an object instead of string.`;return d?(R.res=ce,R.usedParams=this.getUsedParamsDetails(u),R):ce}if(h){const ce=Array.isArray(B),ne=ce?[]:{},ge=ce?z:H;for(const J in B)if(Object.prototype.hasOwnProperty.call(B,J)){const ue=`${ge}${h}${J}`;P&&!_?ne[J]=this.translate(ue,{...u,defaultValue:Cg($)?$[J]:void 0,joinArrays:!1,ns:b}):ne[J]=this.translate(ue,{...u,joinArrays:!1,ns:b}),ne[J]===ue&&(ne[J]=B[J])}_=ne}}else if(W&&Ge(K)&&Array.isArray(_))_=_.join(K),_&&(_=this.extendTranslation(_,o,u,c));else{let ce=!1,ne=!1;!this.isValidLookup(_)&&P&&(ce=!0,_=$),this.isValidLookup(_)||(ne=!0,_=g);const J=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:_,ue=P&&$!==_&&this.options.updateMissing;if(ne||ce||ue){if(this.logger.log(ue?"updateKey":"missingKey",N,y,g,ue?$:_),h){const I=this.resolve(g,{...u,keySeparator:!1});I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ve=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let I=0;I<pe.length;I++)ve.push(pe[I]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(u.lng||this.language):ve.push(u.lng||this.language);const He=(I,Ne,Ue)=>{const Re=P&&Ue!==_?Ue:J;this.options.missingKeyHandler?this.options.missingKeyHandler(I,y,Ne,Re,ue,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(I,y,Ne,Re,ue,u),this.emit("missingKey",I,y,Ne,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&te?ve.forEach(I=>{const Ne=this.pluralResolver.getSuffixes(I,u);k&&u[`defaultValue${this.options.pluralSeparator}zero`]&&Ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ne.push(`${this.options.pluralSeparator}zero`),Ne.forEach(Ue=>{He([I],g+Ue,u[`defaultValue${Ue}`]||$)})}):He(ve,g,$))}_=this.extendTranslation(_,o,u,R,c),ne&&_===g&&this.options.appendNamespaceToMissingKey&&(_=`${y}${D}${g}`),(ne||ce)&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}${D}${g}`:g,ce?_:void 0,u))}return d?(R.res=_,R.usedParams=this.getUsedParamsDetails(u),R):_}extendTranslation(o,l,c,u,d){if(this.i18nFormat?.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const b=Ge(o)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(b){const N=o.match(this.interpolator.nestingRegexp);y=N&&N.length}let D=c.replace&&!Ge(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),o=this.interpolator.interpolate(o,D,c.lng||this.language||u.usedLng,c),b){const N=o.match(this.interpolator.nestingRegexp),w=N&&N.length;y<w&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...N)=>d?.[0]===N[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${l[0]}`),null):this.translate(...N,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ge(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=bw.handle(g,o,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),o}resolve(o,l={}){let c,u,d,h,g;return Ge(o)&&(o=[o]),o.forEach(b=>{if(this.isValidLookup(c))return;const y=this.extractFromKey(b,l),D=y.key;u=D;let N=y.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const w=l.count!==void 0&&!Ge(l.count),R=w&&!l.ordinal&&l.count===0,_=l.context!==void 0&&(Ge(l.context)||typeof l.context=="number")&&l.context!=="",H=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);N.forEach(z=>{this.isValidLookup(c)||(g=z,!eS[`${H[0]}-${z}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(eS[`${H[0]}-${z}`]=!0,this.logger.warn(`key "${u}" for languages "${H.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(X=>{if(this.isValidLookup(c))return;h=X;const K=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(K,D,X,z,l);else{let te;w&&(te=this.pluralResolver.getSuffix(X,l.count,l));const P=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(l.ordinal&&te.indexOf(le)===0&&K.push(D+te.replace(le,this.options.pluralSeparator)),K.push(D+te),R&&K.push(D+P)),_){const re=`${D}${this.options.contextSeparator||"_"}${l.context}`;K.push(re),w&&(l.ordinal&&te.indexOf(le)===0&&K.push(re+te.replace(le,this.options.pluralSeparator)),K.push(re+te),R&&K.push(re+P))}}let W;for(;W=K.pop();)this.isValidLookup(c)||(d=W,c=this.getResource(X,z,W,l))}))})}),{res:c,usedKey:u,exactUsedKey:d,usedLng:h,usedNS:g}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,l,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(o,l,c,u):this.resourceStore.getResource(o,l,c,u)}getUsedParamsDetails(o={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=o.replace&&!Ge(o.replace);let u=c?o.replace:o;if(c&&typeof o.count<"u"&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!c){u={...u};for(const d of l)delete u[d]}return u}static hasDefaultValue(o){const l="defaultValue";for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&l===c.substring(0,l.length)&&o[c]!==void 0)return!0;return!1}}class tS{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ys.create("languageUtils")}getScriptPartFromCode(o){if(o=su(o),!o||o.indexOf("-")<0)return null;const l=o.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(o=su(o),!o||o.indexOf("-")<0)return o;const l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(Ge(o)&&o.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(o)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?o.toLowerCase():o)}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let l;return o.forEach(c=>{if(l)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&o.forEach(c=>{if(l)return;const u=this.getScriptPartFromCode(c);if(this.isSupportedCode(u))return l=u;const d=this.getLanguagePartFromCode(c);if(this.isSupportedCode(d))return l=d;l=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(o,l){if(!o)return[];if(typeof o=="function"&&(o=o(l)),Ge(o)&&(o=[o]),Array.isArray(o))return o;if(!l)return o.default||[];let c=o[l];return c||(c=o[this.getScriptPartFromCode(l)]),c||(c=o[this.formatLanguageCode(l)]),c||(c=o[this.getLanguagePartFromCode(l)]),c||(c=o.default),c||[]}toResolveHierarchy(o,l){const c=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],o),u=[],d=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return Ge(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(o))):Ge(o)&&d(this.formatLanguageCode(o)),c.forEach(h=>{u.indexOf(h)<0&&d(this.formatLanguageCode(h))}),u}}const aS={zero:0,one:1,two:2,few:3,many:4,other:5},nS={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class N_{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=Ys.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(o,l={}){const c=su(o==="dev"?"en":o),u=l.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:c,type:u});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),nS;if(!o.match(/-|_/))return nS;const b=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(b,l)}return this.pluralRulesCache[d]=h,h}needsPlural(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(o,l,c={}){return this.getSuffixes(o,c).map(u=>`${l}${u}`)}getSuffixes(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?c.resolvedOptions().pluralCategories.sort((u,d)=>aS[u]-aS[d]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(o,l,c={}){const u=this.getRule(o,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${o}`),this.getSuffix("dev",l,c))}}const sS=(s,o,l,c=".",u=!0)=>{let d=f_(s,o,l);return!d&&u&&Ge(l)&&(d=Pg(s,l,c),d===void 0&&(d=Pg(o,l,c))),d},Tg=s=>s.replace(/\$/g,"$$$$");class oS{constructor(o={}){this.logger=Ys.create("interpolator"),this.options=o,this.format=o?.interpolation?.format||(l=>l),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:d,prefixEscaped:h,suffix:g,suffixEscaped:b,formatSeparator:y,unescapeSuffix:D,unescapePrefix:N,nestingPrefix:w,nestingPrefixEscaped:R,nestingSuffix:_,nestingSuffixEscaped:H,nestingOptionsSeparator:z,maxReplaces:X,alwaysFormat:K}=o.interpolation;this.escape=l!==void 0?l:p_,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=d?ti(d):h||"{{",this.suffix=g?ti(g):b||"}}",this.formatSeparator=y||",",this.unescapePrefix=D?"":N||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=w?ti(w):R||ti("$t("),this.nestingSuffix=_?ti(_):H||ti(")"),this.nestingOptionsSeparator=z||",",this.maxReplaces=X||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=(l,c)=>l?.source===c?(l.lastIndex=0,l):new RegExp(c,"g");this.regexp=o(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=o(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=o(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(o,l,c,u){let d,h,g;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=R=>{if(R.indexOf(this.formatSeparator)<0){const X=sS(l,b,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,c,{...u,...l,interpolationkey:R}):X}const _=R.split(this.formatSeparator),H=_.shift().trim(),z=_.join(this.formatSeparator).trim();return this.format(sS(l,b,H,this.options.keySeparator,this.options.ignoreJSONStructure),z,c,{...u,...l,interpolationkey:H})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,N=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>Tg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?Tg(this.escape(R)):Tg(R)}].forEach(R=>{for(g=0;d=R.regex.exec(o);){const _=d[1].trim();if(h=y(_),h===void 0)if(typeof D=="function"){const z=D(o,d,u);h=Ge(z)?z:""}else if(u&&Object.prototype.hasOwnProperty.call(u,_))h="";else if(N){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${_} for interpolating ${o}`),h="";else!Ge(h)&&!this.useRawValueToEscape&&(h=P1(h));const H=R.safeValue(h);if(o=o.replace(d[0],H),N?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=d[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),o}nest(o,l,c={}){let u,d,h;const g=(b,y)=>{const D=this.nestingOptionsSeparator;if(b.indexOf(D)<0)return b;const N=b.split(new RegExp(`${ti(D)}[ ]*{`));let w=`{${N[1]}`;b=N[0],w=this.interpolate(w,h);const R=w.match(/'/g),_=w.match(/"/g);((R?.length??0)%2===0&&!_||(_?.length??0)%2!==0)&&(w=w.replace(/'/g,'"'));try{h=JSON.parse(w),y&&(h={...y,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,H),`${b}${D}${w}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,b};for(;u=this.nestingRegexp.exec(o);){let b=[];h={...c},h=h.replace&&!Ge(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const y=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(y!==-1&&(b=u[1].slice(y).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,y)),d=l(g.call(this,u[1].trim(),h),h),d&&u[0]===o&&!Ge(d))return d;Ge(d)||(d=P1(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),d=""),b.length&&(d=b.reduce((D,N)=>this.format(D,N,c.lng,{...c,interpolationkey:u[1].trim()}),d.trim())),o=o.replace(u[0],d),this.regexp.lastIndex=0}return o}}const S_=s=>{let o=s.toLowerCase().trim();const l={};if(s.indexOf("(")>-1){const c=s.split("(");o=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);o==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):o==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(h=>{if(h){const[g,...b]=h.split(":"),y=b.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=y),y==="false"&&(l[D]=!1),y==="true"&&(l[D]=!0),isNaN(y)||(l[D]=parseInt(y,10))}})}return{formatName:o,formatOptions:l}},rS=s=>{const o={};return(l,c,u)=>{let d=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(d={...d,[u.interpolationkey]:void 0});const h=c+JSON.stringify(d);let g=o[h];return g||(g=s(su(c),u),o[h]=g),g(l)}},w_=s=>(o,l,c)=>s(su(l),c)(o);class E_{constructor(o={}){this.logger=Ys.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?rS:w_;this.formats={number:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d});return g=>h.format(g)}),currency:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d,style:"currency"});return g=>h.format(g)}),datetime:c((u,d)=>{const h=new Intl.DateTimeFormat(u,{...d});return g=>h.format(g)}),relativetime:c((u,d)=>{const h=new Intl.RelativeTimeFormat(u,{...d});return g=>h.format(g,d.range||"day")}),list:c((u,d)=>{const h=new Intl.ListFormat(u,{...d});return g=>h.format(g)})}}add(o,l){this.formats[o.toLowerCase().trim()]=l}addCached(o,l){this.formats[o.toLowerCase().trim()]=rS(l)}format(o,l,c,u={}){const d=l.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(g=>g.indexOf(")")>-1)){const g=d.findIndex(b=>b.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,g)].join(this.formatSeparator)}return d.reduce((g,b)=>{const{formatName:y,formatOptions:D}=S_(b);if(this.formats[y]){let N=g;try{const w=u?.formatParams?.[u.interpolationkey]||{},R=w.locale||w.lng||u.locale||u.lng||c;N=this.formats[y](g,R,{...D,...u,...w})}catch(w){this.logger.warn(w)}return N}else this.logger.warn(`there was no format function for ${y}`);return g},o)}}const D_=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class R_ extends Gf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=Ys.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(o,l,c,u){const d={},h={},g={},b={};return o.forEach(y=>{let D=!0;l.forEach(N=>{const w=`${y}|${N}`;!c.reload&&this.store.hasResourceBundle(y,N)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?h[w]===void 0&&(h[w]=!0):(this.state[w]=1,D=!1,h[w]===void 0&&(h[w]=!0),d[w]===void 0&&(d[w]=!0),b[N]===void 0&&(b[N]=!0)))}),D||(g[y]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(b)}}loaded(o,l,c){const u=o.split("|"),d=u[0],h=u[1];l&&this.emit("failedLoading",d,h,l),!l&&c&&this.store.addResourceBundle(d,h,c,void 0,void 0,{skipCopy:!0}),this.state[o]=l?-1:2,l&&c&&(this.state[o]=0);const g={};this.queue.forEach(b=>{d_(b.loaded,[d],h),D_(b,o),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(y=>{g[y]||(g[y]={});const D=b.loaded[y];D.length&&D.forEach(N=>{g[y][N]===void 0&&(g[y][N]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(b=>!b.done)}read(o,l,c,u=0,d=this.retryTimeout,h){if(!o.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:c,tried:u,wait:d,callback:h});return}this.readingCalls++;const g=(y,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(y&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,d*2,h)},d);return}h(y,D)},b=this.backend[c].bind(this.backend);if(b.length===2){try{const y=b(o,l);y&&typeof y.then=="function"?y.then(D=>g(null,D)).catch(g):g(null,y)}catch(y){g(y)}return}return b(o,l,g)}prepareLoading(o,l,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();Ge(o)&&(o=this.languageUtils.toResolveHierarchy(o)),Ge(l)&&(l=[l]);const d=this.queueLoad(o,l,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(o,l,c){this.prepareLoading(o,l,{},c)}reload(o,l,c){this.prepareLoading(o,l,{reload:!0},c)}loadOne(o,l=""){const c=o.split("|"),u=c[0],d=c[1];this.read(u,d,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${l}loading namespace ${d} for language ${u} failed`,h),!h&&g&&this.logger.log(`${l}loaded namespace ${d} for language ${u}`,g),this.loaded(o,h,g)})}saveMissing(o,l,c,u,d,h={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${c}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend?.create){const b={...h,isUpdate:d},y=this.backend.create.bind(this.backend);if(y.length<6)try{let D;y.length===5?D=y(o,l,c,u,b):D=y(o,l,c,u),D&&typeof D.then=="function"?D.then(N=>g(null,N)).catch(g):g(null,D)}catch(D){g(D)}else y(o,l,c,u,g,b)}!o||!o[0]||this.store.addResource(o[0],l,c,u)}}}const jg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let o={};if(typeof s[1]=="object"&&(o=s[1]),Ge(s[1])&&(o.defaultValue=s[1]),Ge(s[2])&&(o.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const l=s[3]||s[2];Object.keys(l).forEach(c=>{o[c]=l[c]})}return o},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),iS=s=>(Ge(s.ns)&&(s.ns=[s.ns]),Ge(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ge(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s),Cf=()=>{},__=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},vw="__i18next_supportNoticeShown",k_=()=>typeof globalThis<"u"&&!!globalThis[vw],U_=()=>{typeof globalThis<"u"&&(globalThis[vw]=!0)},C_=s=>!!(s?.modules?.backend?.name?.indexOf("Locize")>0||s?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||s?.options?.backend?.backends&&s.options.backend.backends.some(o=>o?.name?.indexOf("Locize")>0||o?.constructor?.name?.indexOf("Locize")>0)||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some(o=>o?.projectId));class tu extends Gf{constructor(o={},l){if(super(),this.options=iS(o),this.services={},this.logger=Ys,this.modules={external:[]},__(this),l&&!this.isInitialized&&!o.isClone){if(!this.options.initAsync)return this.init(o,l),this;setTimeout(()=>{this.init(o,l)},0)}}init(o={},l){this.isInitializing=!0,typeof o=="function"&&(l=o,o={}),o.defaultNS==null&&o.ns&&(Ge(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const c=jg();this.options={...c,...this.options,...iS(o)},this.options.interpolation={...c.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!C_(this)&&!k_()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),U_());const u=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Ys.init(u(this.modules.logger),this.options):Ys.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=E_;const D=new tS(this.options);this.store=new W1(this.options.resources,this.options);const N=this.services;N.logger=Ys,N.resourceStore=this.store,N.languageUtils=D,N.pluralResolver=new N_(D,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(N.formatter=u(y),N.formatter.init&&N.formatter.init(N,this.options),this.options.interpolation.format=N.formatter.format.bind(N.formatter)),N.interpolator=new oS(this.options),N.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},N.backendConnector=new R_(u(this.modules.backend),N.resourceStore,N,this.options),N.backendConnector.on("*",(R,..._)=>{this.emit(R,..._)}),this.modules.languageDetector&&(N.languageDetector=u(this.modules.languageDetector),N.languageDetector.init&&N.languageDetector.init(N,this.options.detection,this.options)),this.modules.i18nFormat&&(N.i18nFormat=u(this.modules.i18nFormat),N.i18nFormat.init&&N.i18nFormat.init(this)),this.translator=new $f(this.services,this.options),this.translator.on("*",(R,..._)=>{this.emit(R,..._)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Cf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(y=>{this[y]=(...D)=>this.store[y](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=(...D)=>(this.store[y](...D),this)});const g=Ic(),b=()=>{const y=(D,N)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(N),l(D,N)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),g}loadResources(o,l=Cf){let c=l;const u=Ge(o)?o:this.language;if(typeof o=="function"&&(c=o),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],h=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(y=>{y!=="cimode"&&d.indexOf(y)<0&&d.push(y)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>h(b)),this.options.preload?.forEach?.(g=>h(g)),this.services.backendConnector.load(d,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(g)})}else c(null)}reloadResources(o,l,c){const u=Ic();return typeof o=="function"&&(c=o,o=void 0),typeof l=="function"&&(c=l,l=void 0),o||(o=this.languages),l||(l=this.options.ns),c||(c=Cf),this.services.backendConnector.reload(o,l,d=>{u.resolve(),c(d)}),u}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&bw.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1)){for(let l=0;l<this.languages.length;l++){const c=this.languages[l];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(o)<0&&this.store.hasLanguageSomeTranslations(o)&&(this.resolvedLanguage=o,this.languages.unshift(o))}}changeLanguage(o,l){this.isLanguageChangingTo=o;const c=Ic();this.emit("languageChanging",o);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},d=(g,b)=>{b?this.isLanguageChangingTo===o&&(u(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,c.resolve((...y)=>this.t(...y)),l&&l(g,(...y)=>this.t(...y))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const b=Ge(g)?g:g&&g[0],y=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes(Ge(g)?[g]:g);y&&(this.language||u(y),this.translator.language||this.translator.changeLanguage(y),this.services.languageDetector?.cacheUserLanguage?.(y)),this.loadResources(y,D=>{d(D,y)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),c}getFixedT(o,l,c){const u=(d,h,...g)=>{let b;typeof h!="object"?b=this.options.overloadTranslationOptionHandler([d,h].concat(g)):b={...h},b.lng=b.lng||u.lng,b.lngs=b.lngs||u.lngs,b.ns=b.ns||u.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||c||u.keyPrefix);const y=this.options.keySeparator||".";let D;return b.keyPrefix&&Array.isArray(d)?D=d.map(N=>(typeof N=="function"&&(N=Zg(N,{...this.options,...h})),`${b.keyPrefix}${y}${N}`)):(typeof d=="function"&&(d=Zg(d,{...this.options,...h})),D=b.keyPrefix?`${b.keyPrefix}${y}${d}`:d),this.t(D,b)};return Ge(o)?u.lng=o:u.lngs=o,u.ns=l,u.keyPrefix=c,u}t(...o){return this.translator?.translate(...o)}exists(...o){return this.translator?.exists(...o)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o,l={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=l.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const h=(g,b)=>{const y=this.services.backendConnector.state[`${g}|${b}`];return y===-1||y===0||y===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,o)&&(!u||h(d,o)))}loadNamespaces(o,l){const c=Ic();return this.options.ns?(Ge(o)&&(o=[o]),o.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{c.resolve(),l&&l(u)}),c):(l&&l(),Promise.resolve())}loadLanguages(o,l){const c=Ic();Ge(o)&&(o=[o]);const u=this.options.preload||[],d=o.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=u.concat(d),this.loadResources(h=>{c.resolve(),l&&l(h)}),c):(l&&l(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!o)return"rtl";try{const u=new Intl.Locale(o);if(u&&u.getTextInfo){const d=u.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const l=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services?.languageUtils||new tS(jg());return o.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(c.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(o={},l){const c=new tu(o,l);return c.createInstance=tu.createInstance,c}cloneInstance(o={},l=Cf){const c=o.forkResourceStore;c&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},d=new tu(u);if((o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o)),["store","services","language"].forEach(g=>{d[g]=this[g]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c){const g=Object.keys(this.store.data).reduce((b,y)=>(b[y]={...this.store.data[y]},b[y]=Object.keys(b[y]).reduce((D,N)=>(D[N]={...b[y][N]},D),b[y]),b),{});d.store=new W1(g,u),d.services.resourceStore=d.store}if(o.interpolation){const b={...jg().interpolation,...this.options.interpolation,...o.interpolation},y={...u,interpolation:b};d.services.interpolator=new oS(y)}return d.translator=new $f(d.services,u),d.translator.on("*",(g,...b)=>{d.emit(g,...b)}),d.init(u,l),d.translator.options=u,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ia=tu.createInstance();Ia.createInstance;Ia.dir;Ia.init;Ia.loadResources;Ia.reloadResources;Ia.use;Ia.changeLanguage;Ia.getFixedT;Ia.t;Ia.exists;Ia.setDefaultNamespace;Ia.hasLoadedNamespace;Ia.loadNamespaces;Ia.loadLanguages;var E=cu();const ul=o_(E),T_=s_({__proto__:null,default:ul},[E]),j_=(s,o,l,c)=>{const u=[l,{code:o,...c||{}}];if(s?.services?.logger?.forward)return s.services.logger.forward(u,"warn","react-i18next::",!0);ni(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...u):console?.warn&&console.warn(...u)},lS={},xw=(s,o,l,c)=>{ni(l)&&lS[l]||(ni(l)&&(lS[l]=new Date),j_(s,o,l,c))},Nw=(s,o)=>()=>{if(s.isInitialized)o();else{const l=()=>{setTimeout(()=>{s.off("initialized",l)},0),o()};s.on("initialized",l)}},Jg=(s,o,l)=>{s.loadNamespaces(o,Nw(s,l))},cS=(s,o,l,c)=>{if(ni(l)&&(l=[l]),s.options.preload&&s.options.preload.indexOf(o)>-1)return Jg(s,l,c);l.forEach(u=>{s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),s.loadLanguages(o,Nw(s,c))},O_=(s,o,l={})=>!o.languages||!o.languages.length?(xw(o,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:o.languages}),!0):o.hasLoadedNamespace(s,{lng:l.lng,precheck:(c,u)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!u(c.isLanguageChangingTo,s))return!1}}),ni=s=>typeof s=="string",A_=s=>typeof s=="object"&&s!==null,V_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,M_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},z_=s=>M_[s],L_=s=>s.replace(V_,z_);let Kg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:L_,transDefaultProps:void 0};const H_=(s={})=>{Kg={...Kg,...s}},B_=()=>Kg;let Sw;const $_=s=>{Sw=s},Y_=()=>Sw,q_={type:"3rdParty",init(s){H_(s.options.react),$_(s)}},G_=E.createContext();class I_{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Og={exports:{}},Ag={},uS;function F_(){if(uS)return Ag;uS=1;return(function(){function s(R,_){return R===_&&(R!==0||1/R===1/_)||R!==R&&_!==_}function o(R,_){D||u.startTransition===void 0||(D=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var H=_();if(!N){var z=_();d(H,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),N=!0)}z=h({inst:{value:H,getSnapshot:_}});var X=z[0].inst,K=z[1];return b(function(){X.value=H,X.getSnapshot=_,l(X)&&K({inst:X})},[R,H,_]),g(function(){return l(X)&&K({inst:X}),R(function(){l(X)&&K({inst:X})})},[R]),y(H),H}function l(R){var _=R.getSnapshot;R=R.value;try{var H=_();return!d(R,H)}catch{return!0}}function c(R,_){return _()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=cu(),d=typeof Object.is=="function"?Object.is:s,h=u.useState,g=u.useEffect,b=u.useLayoutEffect,y=u.useDebugValue,D=!1,N=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;Ag.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ag}var dS;function X_(){return dS||(dS=1,Og.exports=F_()),Og.exports}var Q_=X_();const P_=(s,o)=>ni(o)?o:A_(o)&&ni(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,Z_={t:P_,ready:!1},J_=()=>()=>{},qe=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=E.useContext(G_)||{},d=l||c||Y_();d&&!d.reportNamespaces&&(d.reportNamespaces=new I_),d||xw(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...B_(),...d?.options?.react,...o}),[d,o]),{useSuspense:g,keyPrefix:b}=h,y=u||d?.options?.defaultNS,D=ni(y)?[y]:y||["translation"],N=E.useMemo(()=>D,D);d?.reportNamespaces?.addUsedNamespaces?.(N);const w=E.useRef(0),R=E.useCallback($=>{if(!d)return J_;const{bindI18n:B,bindI18nStore:me}=h,ee=()=>{w.current+=1,$()};return B&&d.on(B,ee),me&&d.store.on(me,ee),()=>{B&&B.split(" ").forEach(ce=>d.off(ce,ee)),me&&me.split(" ").forEach(ce=>d.store.off(ce,ee))}},[d,h]),_=E.useRef(),H=E.useCallback(()=>{if(!d)return Z_;const $=!!(d.isInitialized||d.initializedStoreOnce)&&N.every(ge=>O_(ge,d,h)),B=o.lng||d.language,me=w.current,ee=_.current;if(ee&&ee.ready===$&&ee.lng===B&&ee.keyPrefix===b&&ee.revision===me)return ee;const ne={t:d.getFixedT(B,h.nsMode==="fallback"?N:N[0],b),ready:$,lng:B,keyPrefix:b,revision:me};return _.current=ne,ne},[d,N,b,h,o.lng]),[z,X]=E.useState(0),{t:K,ready:W}=Q_.useSyncExternalStore(R,H,H);E.useEffect(()=>{if(d&&!W&&!g){const $=()=>X(B=>B+1);o.lng?cS(d,o.lng,N,$):Jg(d,N,$)}},[d,o.lng,N,W,g,z]);const te=d||{},P=E.useRef(null),le=E.useRef(),re=$=>{const B=Object.getOwnPropertyDescriptors($);B.__original&&delete B.__original;const me=Object.create(Object.getPrototypeOf($),B);if(!Object.prototype.hasOwnProperty.call(me,"__original"))try{Object.defineProperty(me,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return me},k=E.useMemo(()=>{const $=te,B=$?.language;let me=$;$&&(P.current&&P.current.__original===$?le.current!==B?(me=re($),P.current=me,le.current=B):me=P.current:(me=re($),P.current=me,le.current=B));const ee=[K,me,W];return ee.t=K,ee.i18n=me,ee.ready=W,ee},[K,te,W,te.resolvedLanguage,te.language,te.languages]);if(d&&g&&!W)throw new Promise($=>{const B=()=>$();o.lng?cS(d,o.lng,N,B):Jg(d,N,B)});return k},{slice:K_,forEach:W_}=[];function ek(s){return W_.call(K_.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function tk(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(s))}const fS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ak=function(s,o){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(o);let d=`${s}=${u}`;if(c.maxAge>0){const h=c.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(h)}`}if(c.domain){if(!fS.test(c.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${c.domain}`}if(c.path){if(!fS.test(c.path))throw new TypeError("option path is invalid");d+=`; Path=${c.path}`}if(c.expires){if(typeof c.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${c.expires.toUTCString()}`}if(c.httpOnly&&(d+="; HttpOnly"),c.secure&&(d+="; Secure"),c.sameSite)switch(typeof c.sameSite=="string"?c.sameSite.toLowerCase():c.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c.partitioned&&(d+="; Partitioned"),d},mS={create(s,o,l,c){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+l*60*1e3)),c&&(u.domain=c),document.cookie=ak(s,o,u)},read(s){const o=`${s}=`,l=document.cookie.split(";");for(let c=0;c<l.length;c++){let u=l[c];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(o)===0)return u.substring(o.length,u.length)}return null},remove(s,o){this.create(s,"",-1,o)}};var nk={name:"cookie",lookup(s){let{lookupCookie:o}=s;if(o&&typeof document<"u")return mS.read(o)||void 0},cacheUserLanguage(s,o){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:d}=o;l&&typeof document<"u"&&mS.create(l,s,c,u,d)}},sk={name:"querystring",lookup(s){let{lookupQuerystring:o}=s,l;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const d=c.substring(1).split("&");for(let h=0;h<d.length;h++){const g=d[h].indexOf("=");g>0&&d[h].substring(0,g)===o&&(l=d[h].substring(g+1))}}return l}},ok={name:"hash",lookup(s){let{lookupHash:o,lookupFromHashIndex:l}=s,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const d=u.substring(1);if(o){const h=d.split("&");for(let g=0;g<h.length;g++){const b=h[g].indexOf("=");b>0&&h[g].substring(0,b)===o&&(c=h[g].substring(b+1))}}if(c)return c;if(!c&&l>-1){const h=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?h[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return c}};let il=null;const pS=()=>{if(il!==null)return il;try{if(il=typeof window<"u"&&window.localStorage!==null,!il)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{il=!1}return il};var rk={name:"localStorage",lookup(s){let{lookupLocalStorage:o}=s;if(o&&pS())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupLocalStorage:l}=o;l&&pS()&&window.localStorage.setItem(l,s)}};let ll=null;const hS=()=>{if(ll!==null)return ll;try{if(ll=typeof window<"u"&&window.sessionStorage!==null,!ll)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{ll=!1}return ll};var ik={name:"sessionStorage",lookup(s){let{lookupSessionStorage:o}=s;if(o&&hS())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupSessionStorage:l}=o;l&&hS()&&window.sessionStorage.setItem(l,s)}},lk={name:"navigator",lookup(s){const o=[];if(typeof navigator<"u"){const{languages:l,userLanguage:c,language:u}=navigator;if(l)for(let d=0;d<l.length;d++)o.push(l[d]);c&&o.push(c),u&&o.push(u)}return o.length>0?o:void 0}},ck={name:"htmlTag",lookup(s){let{htmlTag:o}=s,l;const c=o||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(l=c.getAttribute("lang")),l}},uk={name:"path",lookup(s){let{lookupFromPathIndex:o}=s;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof o=="number"?o:0]?.replace("/",""):void 0}},dk={name:"subdomain",lookup(s){let{lookupFromSubdomainIndex:o}=s;const l=typeof o=="number"?o+1:1,c=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(c)return c[l]}};let ww=!1;try{document.cookie,ww=!0}catch{}const Ew=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ww||Ew.splice(1,1);const fk=()=>({order:Ew,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class Dw{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(o,l)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=o,this.options=ek(l,this.options||{},fk()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(nk),this.addDetector(sk),this.addDetector(rk),this.addDetector(ik),this.addDetector(lk),this.addDetector(ck),this.addDetector(uk),this.addDetector(dk),this.addDetector(ok)}addDetector(o){return this.detectors[o.name]=o,this}detect(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return o.forEach(c=>{if(this.detectors[c]){let u=this.detectors[c].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(l=l.concat(u))}}),l=l.filter(c=>c!=null&&!tk(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(o)>-1||l.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(o,this.options)}))}}Dw.type="languageDetector";const mk={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.copyright_compact":"@Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.folder.name_placeholder":"Enter folder name","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Index outdated","sources.status.go_index":"Index","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain.","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.empty.folder.title":"This folder is empty","sources.empty.folder.daemon_description":"You can add or edit documents locally, and they will appear here after the next sync.","sources.safety.notice.repo":"In local mode, your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.safety.notice.dir":"The system extracts document content and summaries for knowledge modeling. Although unsafe text is filtered, please ensure sensitive data is not included in indexing or modeling.","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.confirm_heading":"About to import the following repository to {{name}}:","sources.import.packages":"Packages","sources.import.documents":"Documents","sources.import.loading_repo":"Loading repository info...","sources.import.loading_repo_slow":"Large repositories (>10 GB) may take 5–10 seconds...","sources.import.importing":"Importing...","sources.import.error_title":"Import Failed","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for new client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.overview":"Overview","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.path":"Path","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.detail.original_code_placeholder":"Package overview will be available after indexing.","sources.detail.original_doc_placeholder":"Document content will be available after upload.","sources.detail.dependencies":"Dependencies","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.folder_impact_generic":"All sub-folders and resources inside will be recursively deleted.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.repo_impact_generic":"All package and document index records will be deleted.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.move.current":"Current","sources.move.target":"Move to","sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items","common.loading":"Loading...","sources.import.no_entries":"No entries found","sources.import.allowed_dirs":"Client authorized directories","sources.import.allowed_dirs_tooltip_restrict":"Restrict to specific directories:","sources.import.allowed_dirs_tooltip_all":"Or allow all directories (default):","sources.import.wildcard_home":"Home","sources.import.wildcard_path_placeholder":"Enter a directory path…","sources.import.wildcard_go":"Go","sources.import.wildcard_goto":"Go to","sources.import.wildcard_go_title":"Go to Directory","sources.import.wildcard_path_not_found":"Path does not exist on the remote machine","sources.import.already_imported":"Imported","sources.import.dir_title":"Import Directory","sources.import.dir_step.select":"Select Directory","sources.import.dir_step.scan":"Scan","sources.import.dir_step.confirm":"Confirm Import","sources.import.dir_confirm_heading":"About to import the following directory to {{name}}:","sources.import.dir_name":"Directory Name","sources.import.dir_path":"Directory Path","sources.import.dir_files":"Files","sources.import.dir_subdirs":"Subdirectories","sources.import.dir_git_repos":"Repositories (skipped)","sources.import.dir_git_hint":"Git repositories inside the directory will not be expanded for indexing. Import them separately if needed.","sources.import.dir_scanning":"Scanning directory contents...","sources.import.dir_scan_complete":"Scan complete","sources.import.dir_scan_error":"Failed to scan directory","sources.import.dir_scan_retry":"Retry","sources.import.dir_code_packages":"Code Packages","sources.import.dir_code_packages_tip":"Supported: package.json, pyproject.toml, setup.py, go.mod, Cargo.toml, pom.xml, build.gradle","sources.import.dir_doc_files":"Documents","sources.import.dir_doc_files_tip":"Supported: Markdown (.md)","sources.import.dir_total_files":"Total Files","sources.import.dir_total_dirs":"Directories","sources.import.dir_git_skip_hint":"Git repos are skipped. Use 'Import Repository' instead.","sources.actions.upload":"Upload","sources.actions.upload_md":"Markdown Document","sources.actions.upload_doc":"Document","sources.actions.add":"Add","sources.actions.add_folder":"Folder","sources.actions.add_web":"Web Page","sources.actions.add_feishu":"Feishu Document","sources.actions.import_dir":"Import Directory","sources.actions.import_repo_url":"Import Repository","sources.upgrade.title":"Feature Upgrading","sources.upgrade.description":"This feature will be available in version 0.5.x. Stay tuned.","sources.upload.title":"Upload Documents","sources.upload.drop_hint":"Click to select or drag files here","sources.upload.supported_formats":"Supported: .md, .doc, .docx, .pdf, .ppt, .pptx, .txt (max 5MB each, up to 10 files)","sources.upload.file_too_large":'"{{name}}" exceeds 5MB limit',"sources.upload.too_many_files":"Maximum 10 files allowed, please re-select","sources.upload.unsupported_type":'"{{name}}" is not a supported file type',"sources.upload.uploading":"Uploading...","sources.upload.success":"Uploaded {{count}} documents","sources.upload.selected":"{{count}} files selected","sources.upload.remove":"Remove"},pk={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有","footer.copyright_compact":"@Context4AI {{year}}. 版权所有","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新文件夹","sources.folder.name_placeholder":"输入文件夹名称","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"有新变更未更新索引","sources.status.go_index":"去索引","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.empty.folder.title":"当前文件夹还没有内容","sources.empty.folder.daemon_description":"你可以在本地进行文档新增、编辑后查看。","sources.safety.notice.repo":"在本地模式下,你的代码保有绝对隐私,源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.safety.notice.dir":"系统会提取用于知识建模的文档内容及摘要,尽管会过滤不安全的文本内容,但请确保敏感数据不要参与索引及建模。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.confirm_heading":"即将导入以下仓库到 {{name}}:","sources.import.packages":"包数","sources.import.documents":"文档","sources.import.loading_repo":"正在加载仓库信息...","sources.import.loading_repo_slow":"大型仓库(>10 GB)可能需要 5~10 秒...","sources.import.importing":"导入中...","sources.import.error_title":"导入失败","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待新的客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.overview":"概览","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.path":"路径","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.detail.original_code_placeholder":"完成索引后即可查看包概览。","sources.detail.original_doc_placeholder":"文档内容将在上传后展示。","sources.detail.dependencies":"依赖","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.folder_impact_generic":"文件夹内的所有子文件夹和知识源将被递归删除。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.repo_impact_generic":"所有包和文档的索引记录将被删除。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.move.current":"当前位置","sources.move.target":"移动到","sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项","common.loading":"加载中...","sources.import.no_entries":"未找到任何条目","sources.import.allowed_dirs":"客户端授权目录","sources.import.allowed_dirs_tooltip_restrict":"通过参数设定有权限的目录:","sources.import.allowed_dirs_tooltip_all":"或默认允许全部目录:","sources.import.wildcard_home":"主目录","sources.import.wildcard_path_placeholder":"输入目录路径…","sources.import.wildcard_go":"前往","sources.import.wildcard_goto":"前往","sources.import.wildcard_go_title":"前往目录","sources.import.wildcard_path_not_found":"该路径在远程机器上不存在","sources.import.already_imported":"已导入","sources.import.dir_title":"导入目录","sources.import.dir_step.select":"选择目录","sources.import.dir_step.scan":"扫描","sources.import.dir_step.confirm":"确认导入","sources.import.dir_confirm_heading":"即将导入以下目录到 {{name}}:","sources.import.dir_name":"目录名","sources.import.dir_path":"目录路径","sources.import.dir_files":"文件数","sources.import.dir_subdirs":"子目录数","sources.import.dir_git_repos":"仓库(已跳过)","sources.import.dir_git_hint":"目录内的 Git 仓库不会被展开索引,如需索引请单独导入仓库。","sources.import.dir_scanning":"正在扫描目录内容...","sources.import.dir_scan_complete":"扫描完成","sources.import.dir_scan_error":"目录扫描失败","sources.import.dir_scan_retry":"重试","sources.import.dir_code_packages":"代码包","sources.import.dir_code_packages_tip":"支持:package.json、pyproject.toml、setup.py、go.mod、Cargo.toml、pom.xml、build.gradle","sources.import.dir_doc_files":"文档","sources.import.dir_doc_files_tip":"支持:Markdown (.md)","sources.import.dir_total_files":"文件总数","sources.import.dir_total_dirs":"目录","sources.import.dir_git_skip_hint":"Git 仓库将被跳过,建议单独使用「导入仓库」。","sources.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","sources.actions.upload_doc":"文档","sources.actions.add":"新增","sources.actions.add_folder":"文件夹","sources.actions.add_web":"网页","sources.actions.add_feishu":"飞书文档","sources.actions.import_dir":"导入目录","sources.actions.import_repo_url":"导入仓库","sources.upgrade.title":"功能升级中","sources.upgrade.description":"此功能将在 0.5.x 版本中推出,敬请期待。","sources.upload.title":"上传文档","sources.upload.drop_hint":"点击选择文件或拖拽至此","sources.upload.supported_formats":"支持格式:.md, .doc, .docx, .pdf, .ppt, .pptx, .txt(每个最大 5MB,最多 10 个)","sources.upload.file_too_large":'"{{name}}" 超过 5MB 限制',"sources.upload.too_many_files":"最多上传 10 个文件,请重新选择","sources.upload.unsupported_type":'"{{name}}" 不是支持的文件类型',"sources.upload.uploading":"上传中...","sources.upload.success":"已上传 {{count}} 个文档","sources.upload.selected":"已选择 {{count}} 个文件","sources.upload.remove":"移除"};Ia.use(Dw).use(q_).init({resources:{en:{translation:mk},zh:{translation:pk}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Vg={exports:{}},Fc={},Mg={exports:{}},zg={},gS;function hk(){return gS||(gS=1,(function(s){(function(){function o(){if(P=!1,$){var J=s.unstable_now();ee=J;var ue=!0;try{e:{W=!1,te&&(te=!1,re(B),B=-1),K=!0;var ve=X;try{t:{for(h(J),z=c(R);z!==null&&!(z.expirationTime>J&&b());){var pe=z.callback;if(typeof pe=="function"){z.callback=null,X=z.priorityLevel;var He=pe(z.expirationTime<=J);if(J=s.unstable_now(),typeof He=="function"){z.callback=He,h(J),ue=!0;break t}z===c(R)&&u(R),h(J)}else u(R);z=c(R)}if(z!==null)ue=!0;else{var I=c(_);I!==null&&y(g,I.startTime-J),ue=!1}}break e}finally{z=null,X=ve,K=!1}ue=void 0}}finally{ue?ce():$=!1}}}function l(J,ue){var ve=J.length;J.push(ue);e:for(;0<ve;){var pe=ve-1>>>1,He=J[pe];if(0<d(He,ue))J[pe]=ue,J[ve]=He,ve=pe;else break e}}function c(J){return J.length===0?null:J[0]}function u(J){if(J.length===0)return null;var ue=J[0],ve=J.pop();if(ve!==ue){J[0]=ve;e:for(var pe=0,He=J.length,I=He>>>1;pe<I;){var Ne=2*(pe+1)-1,Ue=J[Ne],Re=Ne+1,dt=J[Re];if(0>d(Ue,ve))Re<He&&0>d(dt,Ue)?(J[pe]=dt,J[Re]=ve,pe=Re):(J[pe]=Ue,J[Ne]=ve,pe=Ne);else if(Re<He&&0>d(dt,ve))J[pe]=dt,J[Re]=ve,pe=Re;else break e}}return ue}function d(J,ue){var ve=J.sortIndex-ue.sortIndex;return ve!==0?ve:J.id-ue.id}function h(J){for(var ue=c(_);ue!==null;){if(ue.callback===null)u(_);else if(ue.startTime<=J)u(_),ue.sortIndex=ue.expirationTime,l(R,ue);else break;ue=c(_)}}function g(J){if(te=!1,h(J),!W)if(c(R)!==null)W=!0,$||($=!0,ce());else{var ue=c(_);ue!==null&&y(g,ue.startTime-J)}}function b(){return P?!0:!(s.unstable_now()-ee<me)}function y(J,ue){B=le(function(){J(s.unstable_now())},ue)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;s.unstable_now=function(){return D.now()}}else{var N=Date,w=N.now();s.unstable_now=function(){return N.now()-w}}var R=[],_=[],H=1,z=null,X=3,K=!1,W=!1,te=!1,P=!1,le=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null,$=!1,B=-1,me=5,ee=-1;if(typeof k=="function")var ce=function(){k(o)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ge=ne.port2;ne.port1.onmessage=o,ce=function(){ge.postMessage(null)}}else ce=function(){le(o,0)};s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(J){J.callback=null},s.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<J?Math.floor(1e3/J):5},s.unstable_getCurrentPriorityLevel=function(){return X},s.unstable_next=function(J){switch(X){case 1:case 2:case 3:var ue=3;break;default:ue=X}var ve=X;X=ue;try{return J()}finally{X=ve}},s.unstable_requestPaint=function(){P=!0},s.unstable_runWithPriority=function(J,ue){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var ve=X;X=J;try{return ue()}finally{X=ve}},s.unstable_scheduleCallback=function(J,ue,ve){var pe=s.unstable_now();switch(typeof ve=="object"&&ve!==null?(ve=ve.delay,ve=typeof ve=="number"&&0<ve?pe+ve:pe):ve=pe,J){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=ve+He,J={id:H++,callback:ue,priorityLevel:J,startTime:ve,expirationTime:He,sortIndex:-1},ve>pe?(J.sortIndex=ve,l(_,J),c(R)===null&&J===c(_)&&(te?(re(B),B=-1):te=!0,y(g,ve-pe))):(J.sortIndex=He,l(R,J),W||K||(W=!0,$||($=!0,ce()))),J},s.unstable_shouldYield=b,s.unstable_wrapCallback=function(J){var ue=X;return function(){var ve=X;X=ue;try{return J.apply(this,arguments)}finally{X=ve}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(zg)),zg}var bS;function gk(){return bS||(bS=1,Mg.exports=hk()),Mg.exports}var Lg={exports:{}},Ua={},yS;function bk(){if(yS)return Ua;yS=1;return(function(){function s(){}function o(N){return""+N}function l(N,w,R){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(_);var H=!1}catch{H=!0}return H&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"),o(_)),{$$typeof:y,key:_==null?null:""+_,children:N,containerInfo:w,implementation:R}}function c(N,w){if(N==="font")return"";if(typeof w=="string")return w==="use-credentials"?w:""}function u(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":'something with type "'+typeof N+'"'}function d(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":typeof N=="string"?JSON.stringify(N):typeof N=="number"?"`"+N+"`":'something with type "'+typeof N+'"'}function h(){var N=D.H;return N===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
19
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
20
|
+
2. You might be breaking the Rules of Hooks
|
|
21
|
+
3. You might have more than one copy of React in the same app
|
|
22
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=cu(),b={d:{f:s,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},y=Symbol.for("react.portal"),D=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,Ua.createPortal=function(N,w){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)throw Error("Target container is not a DOM element.");return l(N,w,null,R)},Ua.flushSync=function(N){var w=D.T,R=b.p;try{if(D.T=null,b.p=2,N)return N()}finally{D.T=w,b.p=R,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ua.preconnect=function(N,w){typeof N=="string"&&N?w!=null&&typeof w!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",d(w)):w!=null&&typeof w.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(w.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(N)),typeof N=="string"&&(w?(w=w.crossOrigin,w=typeof w=="string"?w==="use-credentials"?w:"":void 0):w=null,b.d.C(N,w))},Ua.prefetchDNS=function(N){if(typeof N!="string"||!N)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(N));else if(1<arguments.length){var w=arguments[1];typeof w=="object"&&w.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(w)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(w))}typeof N=="string"&&b.d.D(N)},Ua.preinit=function(N,w){if(typeof N=="string"&&N?w==null||typeof w!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",d(w)):w.as!=="style"&&w.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',d(w.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(N)),typeof N=="string"&&w&&typeof w.as=="string"){var R=w.as,_=c(R,w.crossOrigin),H=typeof w.integrity=="string"?w.integrity:void 0,z=typeof w.fetchPriority=="string"?w.fetchPriority:void 0;R==="style"?b.d.S(N,typeof w.precedence=="string"?w.precedence:void 0,{crossOrigin:_,integrity:H,fetchPriority:z}):R==="script"&&b.d.X(N,{crossOrigin:_,integrity:H,fetchPriority:z,nonce:typeof w.nonce=="string"?w.nonce:void 0})}},Ua.preinitModule=function(N,w){var R="";typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),w!==void 0&&typeof w!="object"?R+=" The `options` argument encountered was "+u(w)+".":w&&"as"in w&&w.as!=="script"&&(R+=" The `as` option encountered was "+d(w.as)+"."),R?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R):(R=w&&typeof w.as=="string"?w.as:"script",R)==="script"||(R=d(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,N)),typeof N=="string"&&(typeof w=="object"&&w!==null?(w.as==null||w.as==="script")&&(R=c(w.as,w.crossOrigin),b.d.M(N,{crossOrigin:R,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0})):w==null&&b.d.M(N))},Ua.preload=function(N,w){var R="";if(typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),w==null||typeof w!="object"?R+=" The `options` argument encountered was "+u(w)+".":typeof w.as=="string"&&w.as||(R+=" The `as` option encountered was "+u(w.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof N=="string"&&typeof w=="object"&&w!==null&&typeof w.as=="string"){R=w.as;var _=c(R,w.crossOrigin);b.d.L(N,R,{crossOrigin:_,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0,type:typeof w.type=="string"?w.type:void 0,fetchPriority:typeof w.fetchPriority=="string"?w.fetchPriority:void 0,referrerPolicy:typeof w.referrerPolicy=="string"?w.referrerPolicy:void 0,imageSrcSet:typeof w.imageSrcSet=="string"?w.imageSrcSet:void 0,imageSizes:typeof w.imageSizes=="string"?w.imageSizes:void 0,media:typeof w.media=="string"?w.media:void 0})}},Ua.preloadModule=function(N,w){var R="";typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),w!==void 0&&typeof w!="object"?R+=" The `options` argument encountered was "+u(w)+".":w&&"as"in w&&typeof w.as!="string"&&(R+=" The `as` option encountered was "+u(w.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof N=="string"&&(w?(R=c(w.as,w.crossOrigin),b.d.m(N,{as:typeof w.as=="string"&&w.as!=="script"?w.as:void 0,crossOrigin:R,integrity:typeof w.integrity=="string"?w.integrity:void 0})):b.d.m(N))},Ua.requestFormReset=function(N){b.d.r(N)},Ua.unstable_batchedUpdates=function(N,w){return N(w)},Ua.useFormState=function(N,w,R){return h().useFormState(N,w,R)},Ua.useFormStatus=function(){return h().useHostTransitionStatus()},Ua.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ua}var vS;function yk(){return vS||(vS=1,Lg.exports=bk()),Lg.exports}var xS;function vk(){if(xS)return Fc;xS=1;return(function(){function s(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,a,n){if(a>=t.length)return n;var r=t[a],i=oa(e)?e.slice():et({},e);return i[r]=o(e[r],t,a+1,n),i}function l(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var n=0;n<a.length-1;n++)if(t[n]!==a[n]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,n){var r=t[n],i=oa(e)?e.slice():et({},e);return n+1===t.length?(i[a[n]]=i[r],oa(i)?i.splice(r,1):delete i[r]):i[r]=c(e[r],t,a,n+1),i}function u(e,t,a){var n=t[a],r=oa(e)?e.slice():et({},e);return a+1===t.length?(oa(r)?r.splice(n,1):delete r[n],r):(r[n]=u(e[n],t,a+1),r)}function d(){return!1}function h(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function y(){}function D(){}function N(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function w(e,t,a,n){return new I4(e,t,a,n)}function R(e,t){e.context===Fo&&(Xp(e.current,2,t,e,null,null),yi())}function _(e,t){if(Cn!==null){var a=t.staleFamilies;t=t.updatedFamilies,Bl(),Jb(e.current,t,a),yi()}}function H(e){Cn=e}function z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function X(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function K(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function W(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function te(e){if(X(e)!==e)throw Error("Unable to find node on an unmounted component.")}function P(e){var t=e.alternate;if(!t){if(t=X(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return te(r),e;if(i===n)return te(r),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=r,n=i;else{for(var f=!1,p=r.child;p;){if(p===a){f=!0,a=r,n=i;break}if(p===n){f=!0,n=r,a=i;break}p=p.sibling}if(!f){for(p=i.child;p;){if(p===a){f=!0,a=i,n=r;break}if(p===n){f=!0,n=i,a=r;break}p=p.sibling}if(!f)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=le(e),t!==null)return t;e=e.sibling}return null}function re(e){return e===null||typeof e!="object"?null:(e=sx&&e[sx]||e["@@iterator"],typeof e=="function"?e:null)}function k(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===mD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Di:return"Fragment";case eh:return"Profiler";case Sd:return"StrictMode";case ah:return"Suspense";case nh:return"SuspenseList";case sh:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Ei:return"Portal";case js:return e.displayName||"Context";case th:return(e._context.displayName||"Context")+".Consumer";case Zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wd:return t=e.displayName||null,t!==null?t:k(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}function $(e){return typeof e.tag=="number"?B(e):typeof e.name=="string"?e.name:null}function B(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(t);case 8:return t===Sd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return B(e.return)}return null}function me(e){return{current:e}}function ee(e,t){0>ao?console.error("Unexpected pop."):(t!==rh[ao]&&console.error("Unexpected Fiber popped."),e.current=oh[ao],oh[ao]=null,rh[ao]=null,ao--)}function ce(e,t,a){ao++,oh[ao]=e.current,rh[ao]=a,e.current=t}function ne(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function ge(e,t){ce(Bo,t,e),ce(Jl,e,e),ce(Ho,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?k0(t):yo;break;default:if(a=t.tagName,t=t.namespaceURI)t=k0(t),t=U0(t,a);else switch(a){case"svg":t=ol;break;case"math":t=Sf;break;default:t=yo}}a=a.toLowerCase(),a=bu(null,a),a={context:t,ancestorInfo:a},ee(Ho,e),ce(Ho,a,e)}function J(e){ee(Ho,e),ee(Jl,e),ee(Bo,e)}function ue(){return ne(Ho.current)}function ve(e){e.memoizedState!==null&&ce(Ed,e,e);var t=ne(Ho.current),a=e.type,n=U0(t.context,a);a=bu(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(ce(Jl,e,e),ce(Ho,n,e))}function pe(e){Jl.current===e&&(ee(Ho,e),ee(Jl,e)),Ed.current===e&&(ee(Ed,e),Yc._currentValue=ei)}function He(){}function I(){if(Kl===0){ox=console.log,rx=console.info,ix=console.warn,lx=console.error,cx=console.group,ux=console.groupCollapsed,dx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:He,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Kl++}function Ne(){if(Kl--,Kl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:et({},e,{value:ox}),info:et({},e,{value:rx}),warn:et({},e,{value:ix}),error:et({},e,{value:lx}),group:et({},e,{value:cx}),groupCollapsed:et({},e,{value:ux}),groupEnd:et({},e,{value:dx})})}0>Kl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ue(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
23
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
24
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
25
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Re(e){if(ih===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ih=t&&t[1]||"",fx=-1<a.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+ih+e+fx}function dt(e,t){if(!e||lh)return"";var a=ch.get(e);if(a!==void 0)return a;lh=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=F.H,F.H=null,I();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(fe){var Y=fe}Reflect.construct(e,[],T)}else{try{T.call()}catch(fe){Y=fe}e.call(T.prototype)}}else{try{throw Error()}catch(fe){Y=fe}(T=e())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(fe){if(fe&&Y&&typeof fe.stack=="string")return[fe.stack,Y.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),p=f[0],v=f[1];if(p&&v){var S=p.split(`
|
|
28
|
+
`),V=v.split(`
|
|
29
|
+
`);for(f=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(i===S.length||f===V.length)for(i=S.length-1,f=V.length-1;1<=i&&0<=f&&S[i]!==V[f];)f--;for(;1<=i&&0<=f;i--,f--)if(S[i]!==V[f]){if(i!==1||f!==1)do if(i--,f--,0>f||S[i]!==V[f]){var M=`
|
|
30
|
+
`+S[i].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&ch.set(e,M),M}while(1<=i&&0<=f);break}}}finally{lh=!1,F.H=n,Ne(),Error.prepareStackTrace=a}return S=(S=e?e.displayName||e.name:"")?Re(S):"",typeof e=="function"&&ch.set(e,S),S}function Tt(e,t){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re("Lazy");case 13:return e.child!==t&&t!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return Re("Activity");default:return""}}function Ke(e){try{var t="",a=null;do{t+=Tt(e,a);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var i=n[r];if(typeof i.name=="string"){var f=t;e:{var p=i.name,v=i.env,S=i.debugLocation;if(S!=null){var V=Ue(S),M=V.lastIndexOf(`
|
|
31
|
+
`),T=M===-1?V:V.slice(M+1);if(T.indexOf(p)!==-1){var Y=`
|
|
32
|
+
`+T;break e}}Y=Re(p+(v?" ["+v+"]":""))}t=f+Y}}a=e,e=e.return}while(e);return t}catch(fe){return`
|
|
33
|
+
Error generating stack: `+fe.message+`
|
|
34
|
+
`+fe.stack}}function Qt(e){return(e=e?e.displayName||e.name:"")?Re(e):""}function De(){if(mn===null)return null;var e=mn._debugOwner;return e!=null?$(e):null}function Lt(){if(mn===null)return"";var e=mn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Re(e.type);break;case 13:t+=Re("Suspense");break;case 19:t+=Re("SuspenseList");break;case 31:t+=Re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Qt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Qt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var r=Ue(n);r!==""&&(t+=`
|
|
35
|
+
`+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
|
|
36
|
+
`+Ue(i))}else break;var f=t}catch(p){f=`
|
|
37
|
+
Error generating stack: `+p.message+`
|
|
38
|
+
`+p.stack}return f}function he(e,t,a,n,r,i,f){var p=mn;xt(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,r,i,f)):t(a,n,r,i,f)}finally{xt(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function xt(e){F.getCurrentStack=e===null?null:Lt,Os=!1,mn=e}function ft(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ht(e){try{return Bt(e),!1}catch{return!0}}function Bt(e){return""+e}function nt(e,t){if(Ht(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ft(e)),Bt(e)}function vt(e,t){if(Ht(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ft(e)),Bt(e)}function Pt(e){if(Ht(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ft(e)),Bt(e)}function Sn(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{_i=t.inject(e),_a=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function Se(e){if(typeof xD=="function"&&ND(e),_a&&typeof _a.setStrictMode=="function")try{_a.setStrictMode(_i,e)}catch(t){As||(As=!0,console.error("React instrumentation encountered an error: %o",t))}}function wn(e){return e>>>=0,e===0?32:31-(SD(e)/wD|0)|0}function wa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Fa(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~i,n!==0?r=wa(n):(f&=p,f!==0?r=wa(f):a||(a=p&~e,a!==0&&(r=wa(a))))):(p=n&~i,p!==0?r=wa(p):f!==0?r=wa(f):a||(a=n&~e,a!==0&&(r=wa(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function En(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ja(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Xa(){var e=_d;return _d<<=1,(_d&62914560)===0&&(_d=4194304),e}function us(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ea(e,t,a,n,r,i){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,v=e.expirationTimes,S=e.hiddenUpdates;for(a=f&~a;0<a;){var V=31-Ma(a),M=1<<V;p[V]=0,v[V]=-1;var T=S[V];if(T!==null)for(S[V]=null,V=0;V<T.length;V++){var Y=T[V];Y!==null&&(Y.lane&=-536870913)}a&=~M}n!==0&&ga(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function ga(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ma(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ds(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ma(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function In(e,t){var a=t&-t;return a=(a&42)!==0?1:Pa(a),(a&(e.suspendedLanes|t))!==0?0:a}function Pa(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Fn(e,t,a){if(Vs)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-Ma(a),r=1<<n;e[n].add(t),a&=~r}}function la(e,t){if(Vs)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-Ma(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(i){var f=i.alternate;f!==null&&n.has(f)||n.add(i)}),r.clear()),t&=~e}}function Xn(e){return e&=-e,_n<e?Ms<e?(e&134217727)!==0?no:kd:Ms:_n}function nn(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?no:J0(e.type))}function x(e,t){var a=gt.p;try{return gt.p=e,t()}finally{gt.p=a}}function O(e){delete e[xa],delete e[za],delete e[ph],delete e[ED],delete e[DD]}function Z(e){var t=e[xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Yo]||a[xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=z0(e);e!==null;){if(a=e[xa])return a;e=z0(e)}return t}e=a,a=e.parentNode}return null}function ae(e){if(e=e[xa]||e[Yo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function de(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ze(e){var t=e[mx];return t||(t=e[mx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[Wl]=!0}function Xe(e,t){Be(e,t),Be(e+"Capture",t)}function Be(e,t){Tr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Tr[e]=t;var a=e.toLowerCase();for(hh[a]=e,e==="onDoubleClick"&&(hh.ondblclick=e),e=0;e<t.length;e++)px.add(t[e])}function Zt(e,t){RD[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Oa(e){return ts.call(gx,e)?!0:ts.call(hx,e)?!1:_D.test(e)?gx[e]=!0:(hx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Is(e,t,a){if(Oa(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(nt(a,t),e===""+a?a:e)}}function Fs(e,t,a){if(Oa(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}nt(a,t),e.setAttribute(t,""+a)}}function li(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}nt(a,t),e.setAttribute(t,""+a)}}function Qn(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}nt(n,a),e.setAttributeNS(t,a,""+n)}}function C(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Pt(e),e;default:return""}}function L(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(f){Pt(f),a=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){Pt(f),a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oe(e){if(!e._valueTracker){var t=L(e)?"checked":"value";e._valueTracker=G(e,t,""+e[t])}}function ie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=L(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function ke(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e){return e.replace(kD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Te(e,t){t.checked===void 0||t.defaultChecked===void 0||yx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component",t.type),yx=!0),t.value===void 0||t.defaultValue===void 0||bx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component",t.type),bx=!0)}function we(e,t,a,n,r,i,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(nt(f,"type"),e.type=f):e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+C(t)):e.value!==""+C(t)&&(e.value=""+C(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Ae(e,f,C(t)):a!=null?Ae(e,f,C(a)):n!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(nt(p,"name"),e.name=""+C(p)):e.removeAttribute("name")}function Ve(e,t,a,n,r,i,f,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(nt(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){oe(e);return}a=a!=null?""+C(a):"",t=t!=null?""+C(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(nt(f,"name"),e.name=f),oe(e)}function Ae(e,t,a){t==="number"&&ke(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ce(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Wp.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||xx||(xx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Nx||(Nx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||vx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vx=!0)}function mt(){var e=De();return e?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+e+"`.":""}function tt(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+C(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Rt(e,t){for(e=0;e<wx.length;e++){var a=wx[e];if(t[a]!=null){var n=oa(t[a]);t.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,mt()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,mt())}}t.value===void 0||t.defaultValue===void 0||Sx||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Sx=!0)}function Gt(e,t){t.value===void 0||t.defaultValue===void 0||Ex||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component"),Ex=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ca(e,t,a){if(t!=null&&(t=""+C(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+C(a):""}function pt(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(oa(n)){if(1<n.length)throw Error("<textarea> can only have at most one child.");n=n[0]}a=n}a==null&&(a=""),t=a}a=C(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),oe(e)}function Aa(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Aa(e.children[0],t):e}function It(e){return" "+" ".repeat(e)}function Dn(e){return"+ "+" ".repeat(e)}function Da(e){return"- "+" ".repeat(e)}function sn(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Xs(e,t){return Dx.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function fs(e,t,a){var n=120-2*a;if(t===null)return Dn(a)+Xs(e,n)+`
|
|
41
|
+
`;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>n-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Dn(a)+Xs(e,n)+`
|
|
42
|
+
`+Da(a)+Xs(t,n)+`
|
|
43
|
+
`}return It(a)+Xs(e,n)+`
|
|
44
|
+
`}function Pn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function ms(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(oa(e))return"[...]";if(e.$$typeof===Ts)return(t=k(e.type))?"<"+t+">":"<...>";var a=Pn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=ms(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Zn(e,t){return typeof e!="string"||Dx.test(e)?"{"+ms(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ot(e,t,a){var n=120-a.length-e.length,r=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=Zn(t[i],120-a.length-i.length-1);n-=i.length+f.length+2,r.push(i+"="+f)}return r.length===0?a+"<"+e+`>
|
|
45
|
+
`:0<n?a+"<"+e+" "+r.join(" ")+`>
|
|
46
|
+
`:a+"<"+e+`
|
|
47
|
+
`+a+" "+r.join(`
|
|
48
|
+
`+a+" ")+`
|
|
49
|
+
`+a+`>
|
|
50
|
+
`}function ua(e,t,a){var n="",r=et({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var f=120-2*a-i.length-2,p=ms(e[i],f);t.hasOwnProperty(i)?(f=ms(t[i],f),n+=Dn(a)+i+": "+p+`
|
|
51
|
+
`,n+=Da(a)+i+": "+f+`
|
|
52
|
+
`):n+=Dn(a)+i+": "+p+`
|
|
53
|
+
`}for(var v in r)r.hasOwnProperty(v)&&(e=ms(r[v],120-2*a-v.length-2),n+=Da(a)+v+": "+e+`
|
|
54
|
+
`);return n}function Do(e,t,a,n){var r="",i=new Map;for(S in a)a.hasOwnProperty(S)&&i.set(S.toLowerCase(),S);if(i.size===1&&i.has("children"))r+=ot(e,t,It(n));else{for(var f in t)if(t.hasOwnProperty(f)&&f!=="children"){var p=120-2*(n+1)-f.length-1,v=i.get(f.toLowerCase());if(v!==void 0){i.delete(f.toLowerCase());var S=t[f];v=a[v];var V=Zn(S,p);p=Zn(v,p),typeof S=="object"&&S!==null&&typeof v=="object"&&v!==null&&Pn(S)==="Object"&&Pn(v)==="Object"&&(2<Object.keys(S).length||2<Object.keys(v).length||-1<V.indexOf("...")||-1<p.indexOf("..."))?r+=It(n+1)+f+`={{
|
|
55
|
+
`+ua(S,v,n+2)+It(n+1)+`}}
|
|
56
|
+
`:(r+=Dn(n+1)+f+"="+V+`
|
|
57
|
+
`,r+=Da(n+1)+f+"="+p+`
|
|
58
|
+
`)}else r+=It(n+1)+f+"="+Zn(t[f],p)+`
|
|
59
|
+
`}i.forEach(function(M){if(M!=="children"){var T=120-2*(n+1)-M.length-1;r+=Da(n+1)+M+"="+Zn(a[M],T)+`
|
|
60
|
+
`}}),r=r===""?It(n)+"<"+e+`>
|
|
61
|
+
`:It(n)+"<"+e+`
|
|
62
|
+
`+r+It(n)+`>
|
|
63
|
+
`}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(i="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(i=""+t),r+=fs(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+fs(""+t,null,n+1):r+fs(""+t,void 0,n+1)),r}function ps(e,t){var a=sn(e);if(a===null){for(a="",e=e.child;e;)a+=ps(e,t),e=e.sibling;return a}return It(t)+"<"+a+`>
|
|
64
|
+
`}function _t(e,t){var a=Aa(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return It(t)+`...
|
|
65
|
+
`+_t(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var r=0;r<n.length;r++){var i=n[r].name;typeof i=="string"&&(a+=It(t)+"<"+i+`>
|
|
66
|
+
`,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=fs(r,e.serverProps,t),t++;else if(i=sn(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var f=120-2*n-i.length-2,p="";for(S in r)if(r.hasOwnProperty(S)&&S!=="children"){var v=Zn(r[S],15);if(f-=S.length+v.length+2,0>f){p+=" ...";break}p+=" "+S+"="+v}n=It(n)+"<"+i+p+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(n=ot(i,r,Dn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(n=Do(i,r,e.serverProps,t),t++);var S="";for(r=e.fiber.child,i=0;r&&i<e.children.length;)f=e.children[i],f.fiber===r?(S+=_t(f,t),i++):S+=ps(r,t),r=r.sibling;for(r&&0<e.children.length&&(S+=It(t)+`...
|
|
68
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],S=typeof i=="string"?S+(Da(t)+Xs(i,120-2*t)+`
|
|
69
|
+
`):S+ot(i.type,i.props,Da(t));return a+n+S}function Ro(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+_t(e,0)}catch{return""}}function bl(e,t,a){for(var n=t,r=null,i=0;n;)n===e&&(i=0),r={fiber:n,children:r!==null?[r]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,n=n.return;return r!==null?Ro(r).replaceAll(/^[+-]/gm,">"):""}function bu(e,t){var a=et({},e||_x),n={tag:t};return Rx.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),CD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),UD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=n,t==="form"&&(a.formTag=n),t==="a"&&(a.aTagInScope=n),t==="button"&&(a.buttonTagInScope=n),t==="nobr"&&(a.nobrTagInScope=n),t==="p"&&(a.pTagInButtonScope=n),t==="li"&&(a.listItemTagAutoclosing=n),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=n),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=n),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function wb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return TD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function D4(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Eb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function em(e,t){t=t||_x;var a=t.current;if(t=(a=wb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:D4(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,Ud[t])return!1;Ud[t]=!0;var r=(t=mn)?Eb(t.return,n):null,i=t!==null&&r!==null?bl(r,t,null):"",f="<"+e+">";return a?(a="",n==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
72
|
+
This will cause a hydration error.%s`,f,n,a,i)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
73
|
+
This will cause a hydration error.%s`,f,n,i),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||he(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,n,f)})),!1}function yu(e,t,a){if(a||wb("#text",t,!1))return!0;if(a="#text|"+t,Ud[a])return!1;Ud[a]=!0;var n=(a=mn)?Eb(a,t):null;return a=a!==null&&n!==null?bl(n,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
75
|
+
This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
76
|
+
This will cause a hydration error.%s`,t,a),!1}function yl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function R4(e){return e.replace(AD,function(t,a){return a.toUpperCase()})}function Db(e,t,a){var n=t.indexOf("--")===0;n||(-1<t.indexOf("-")?ki.hasOwnProperty(t)&&ki[t]||(ki[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,R4(t.replace(OD,"ms-")))):jD.test(t)?ki.hasOwnProperty(t)&&ki[t]||(ki[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Cx.test(a)||bh.hasOwnProperty(a)&&bh[a]||(bh[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(Cx,""))),typeof a=="number"&&(isNaN(a)?Tx||(Tx=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||jx||(jx=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Ox.has(t)?t==="float"?e.cssFloat=a:(vt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Rb(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var n={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var i=gh[r]||[r],f=0;f<i.length;f++)n[i[f]]=r}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(r=gh[p]||[p],i=0;i<r.length;i++)n[r[i]]=p;p={};for(var v in t)for(r=gh[v]||[v],i=0;i<r.length;i++)p[r[i]]=v;v={};for(var S in n)if(r=n[S],(i=p[S])&&r!==i&&(f=r+","+i,!v[f])){v[f]=!0,f=console;var V=t[r];f.error.call(f,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",V==null||typeof V=="boolean"||V===""?"Removing":"Updating",r,i)}}for(var M in a)!a.hasOwnProperty(M)||t!=null&&t.hasOwnProperty(M)||(M.indexOf("--")===0?e.setProperty(M,""):M==="float"?e.cssFloat="":e[M]="");for(var T in t)S=t[T],t.hasOwnProperty(T)&&a[T]!==S&&Db(e,T,S)}else for(n in t)t.hasOwnProperty(n)&&Db(e,n,t[n])}function vl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _b(e){return VD.get(e)||e}function _4(e,t){if(ts.call(Ci,t)&&Ci[t])return!0;if(zD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Ax.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ci[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ci[t]=!0}if(MD.test(t)){if(e=t.toLowerCase(),e=Ax.hasOwnProperty(e)?e:null,e==null)return Ci[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ci[t]=!0)}return!0}function k4(e,t){var a=[],n;for(n in t)_4(e,n)||a.push(n);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function U4(e,t,a,n){if(ts.call(La,t)&&La[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),La[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),La[t]=!0;if(Mx.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),La[t]=!0}else if(Mx.test(t))return LD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),La[t]=!0;if(HD.test(t)||BD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),La[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),La[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),La[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),La[t]=!0;if(Td.hasOwnProperty(r)){if(r=Td[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),La[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),La[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),La[t]=!0)}case"function":case"symbol":return La[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),La[t]=!0}}return!0}function C4(e,t,a){var n=[],r;for(r in t)U4(e,r,t[r],a)||n.push(r);t=n.map(function(i){return"`"+i+"`"}).join(", "),n.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<n.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function xl(e){return $D.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qs(){}function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function kb(e){var t=ae(e);if(t&&(e=t.stateNode)){var a=e[za]||null;e:switch(e=t.stateNode,t.type){case"input":if(we(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(nt(t,"name"),a=a.querySelectorAll('input[name="'+ye(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[za]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");we(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ie(n)}break e;case"textarea":ca(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tt(e,!!a.multiple,t,!1)}}}function Ub(e,t,a){if(yh)return e(t,a);yh=!0;try{var n=e(t);return n}finally{if(yh=!1,(Ti!==null||ji!==null)&&(yi(),Ti&&(t=Ti,e=ji,ji=Ti=null,kb(t),e)))for(t=0;t<e.length;t++)kb(e[t])}}function Nl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[za]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Cb(){if(jd)return jd;var e,t=xh,a=t.length,n,r="value"in qo?qo.value:qo.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===r[i-n];n++);return jd=r.slice(e,1<n?1-n:void 0)}function vu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xu(){return!0}function Tb(){return!1}function Za(e){function t(a,n,r,i,f){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xu:Tb,this.isPropagationStopped=Tb,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),t}function T4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eR[e])?!!t[e]:!1}function am(){return T4}function jb(e,t){switch(e){case"keyup":return fR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Bx;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ob(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function j4(e,t){switch(e){case"compositionend":return Ob(t);case"keypress":return t.which!==Yx?null:(Gx=!0,qx);case"textInput":return e=t.data,e===qx&&Gx?null:e;default:return null}}function O4(e,t){if(Oi)return e==="compositionend"||!Eh&&jb(e,t)?(e=Cb(),jd=xh=qo=null,Oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $x&&t.locale!=="ko"?null:t.data;default:return null}}function Ab(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pR[e.type]:t==="textarea"}function A4(e){if(!zs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Vb(e,t,a,n){Ti?ji?ji.push(n):ji=[n]:Ti=n,t=fd(t,"onChange"),0<t.length&&(a=new Od("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function V4(e){b0(e,0)}function Nu(e){var t=de(e);if(ie(t))return e}function Mb(e,t){if(e==="change")return t}function zb(){oc&&(oc.detachEvent("onpropertychange",Lb),rc=oc=null)}function Lb(e){if(e.propertyName==="value"&&Nu(rc)){var t=[];Vb(t,rc,e,tm(e)),Ub(V4,t)}}function M4(e,t,a){e==="focusin"?(zb(),oc=t,rc=a,oc.attachEvent("onpropertychange",Lb)):e==="focusout"&&zb()}function z4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nu(rc)}function L4(e,t){if(e==="click")return Nu(t)}function H4(e,t){if(e==="input"||e==="change")return Nu(t)}function B4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Sl(e,t){if(Ha(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!ts.call(t,r)||!Ha(e[r],t[r]))return!1}return!0}function Hb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bb(e,t){var a=Hb(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hb(a)}}function $b(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$b(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ke(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ke(e.document)}return t}function nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qb(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Rh||Ai==null||Ai!==ke(n)||(n=Ai,"selectionStart"in n&&nm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ic&&Sl(ic,n)||(ic=n,n=fd(Dh,"onSelect"),0<n.length&&(t=new Od("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ai)))}function br(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function yr(e){if(_h[e])return _h[e];if(!Vi[e])return e;var t=Vi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Fx)return _h[e]=t[a];return e}function Jn(e,t){Jx.set(e,t),Xe(t,[e])}function $4(e){for(var t=Vd,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(oa(n)&&n.length===2&&typeof n[0]=="string"){if(t!==Vd&&t!==jh)return Ch;t=jh}else return Ch;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Vd&&t!==Th)return Ch;t=Th}}return t}function sm(e,t,a,n){for(var r in e)ts.call(e,r)&&r[0]!=="_"&&hs(r,e[r],t,a,n)}function hs(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ts){var i=k(t.type)||"…",f=t.key;t=t.props;var p=Object.keys(t),v=p.length;if(f==null&&v===0){t="<"+i+" />";break}if(3>n||v===1&&p[0]==="children"&&f==null){t="<"+i+" … />";break}a.push([r+" ".repeat(n)+e,"<"+i]),f!==null&&hs("key",f,a,n+1,r),e=!1;for(var S in t)S==="children"?t.children!=null&&(!oa(t.children)||0<t.children.length)&&(e=!0):ts.call(t,S)&&S[0]!=="_"&&hs(S,t[S],a,n+1,r);a.push(["",e?">…</"+i+">":"/>"]);return}if(i=Object.prototype.toString.call(t),i=i.slice(8,i.length-1),i==="Array"){if(S=$4(t),S===Th||S===Vd){t=JSON.stringify(t);break}else if(S===jh){for(a.push([r+" ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],hs(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,hs(e,t.value,a,n,r),a.length>i){a=a[i],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(i=a.length,hs(e,t.reason,a,n,r),a.length>i)){a=a[i],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(n)+e,"Promise"]);return}i==="Object"&&(S=Object.getPrototypeOf(t))&&typeof S.constructor=="function"&&(i=S.constructor.name),a.push([r+" ".repeat(n)+e,i==="Object"?3>n?"":"…":i]),3>n&&sm(t,a,n+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===NR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+" ".repeat(n)+e,t])}function Gb(e,t,a,n){var r=!0;for(f in e)f in t||(a.push([Md+" ".repeat(n)+f,"…"]),r=!1);for(var i in t)if(i in e){var f=e[i],p=t[i];if(f!==p){if(n===0&&i==="children")r=" ".repeat(n)+i,a.push([Md+r,"…"],[zd+r,"…"]);else{if(!(3<=n)){if(typeof f=="object"&&typeof p=="object"&&f!==null&&p!==null&&f.$$typeof===p.$$typeof)if(p.$$typeof===Ts){if(f.type===p.type&&f.key===p.key){f=k(p.type)||"…",r=" ".repeat(n)+i,f="<"+f+" … />",a.push([Md+r,f],[zd+r,f]),r=!1;continue}}else{var v=Object.prototype.toString.call(f),S=Object.prototype.toString.call(p);if(v===S&&(S==="[object Object]"||S==="[object Array]")){v=[eN+" ".repeat(n)+i,S==="[object Array]"?"Array":""],a.push(v),S=a.length,Gb(f,p,a,n+1)?S===a.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof f=="function"&&typeof p=="function"&&f.name===p.name&&f.length===p.length&&(v=Function.prototype.toString.call(f),S=Function.prototype.toString.call(p),v===S)){f=p.name===""?"() => {}":p.name+"() {}",a.push([eN+" ".repeat(n)+i,f+" Referentially unequal function closure. Consider memoization."]);continue}}hs(i,f,a,n,Md),hs(i,p,a,n,zd)}r=!1}}else a.push([zd+" ".repeat(n)+i,"…"]),r=!1;return r}function Kn(e){ct=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function gs(e,t,a,n){kt&&(Io.start=t,Io.end=a,so.color="warning",so.tooltipText=n,so.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Io)):performance.measure(n,Io))}function Su(e,t,a){gs(e,t,a,"Reconnect")}function wu(e,t,a,n,r){var i=B(e);if(i!==null&&kt){var f=e.alternate,p=e.actualDuration;if(f===null||f.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)p-=v.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var S=e.memoizedProps;p=e._debugTask,S!==null&&f!==null&&f.memoizedProps!==S?(v=[SR],S=Gb(f.memoizedProps,S,v,0),1<v.length&&(S&&!Go&&(f.lanes&r)===0&&100<e.actualDuration?(Go=!0,v[0]=wR,so.color="warning",so.tooltipText=tN):(so.color=n,so.tooltipText=i),so.properties=v,Io.start=t,Io.end=a,p!=null?p.run(performance.measure.bind(performance,""+i,Io)):performance.measure(""+i,Io))):p!=null?p.run(console.timeStamp.bind(console,i,t,a,kn,void 0,n)):console.timeStamp(i,t,a,kn,void 0,n)}}function om(e,t,a,n){if(kt){var r=B(e);if(r!==null){for(var i=null,f=[],p=0;p<n.length;p++){var v=n[p];i==null&&v.source!==null&&(i=v.source._debugTask),v=v.value,f.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e.key!==null&&hs("key",e.key,f,0,""),e.memoizedProps!==null&&sm(e.memoizedProps,f,0,""),i==null&&(i=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:kn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},i?i.run(performance.measure.bind(performance,""+r,e)):performance.measure(""+r,e)}}}function bs(e,t,a,n,r){if(r!==null){if(kt){var i=B(e);if(i!==null){n=[];for(var f=0;f<r.length;f++){var p=r[f].value;n.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&hs("key",e.key,n,0,""),e.memoizedProps!==null&&sm(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:kn,tooltipText:"A lifecycle or effect errored",properties:n}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+i,t)):performance.measure(""+i,t)}}}else i=B(e),i!==null&&kt&&(r=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,i,t,a,kn,void 0,r)):console.timeStamp(i,t,a,kn,void 0,r))}function Y4(e,t,a,n){if(kt&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,a,e,t,ct,it,r)):console.timeStamp(a,e,t,ct,it,r)}}function Ib(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Prewarm",e,t,ct,it,a)):console.timeStamp("Prewarm",e,t,ct,it,a))}function Fb(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Suspended",e,t,ct,it,a)):console.timeStamp("Suspended",e,t,ct,it,a))}function q4(e,t,a,n,r,i){if(kt&&!(t<=e)){a=[];for(var f=0;f<n.length;f++){var p=n[f].value;a.push(["Recoverable Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:ct,trackGroup:it,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},i?i.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function rm(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,ct,it,"error")):console.timeStamp("Errored",e,t,ct,it,"error"))}function G4(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,ct,it,"secondary-light")):console.timeStamp(a,e,t,ct,it,"secondary-light"))}function Xb(e,t,a,n,r){if(kt&&!(t<=e)){for(var i=[],f=0;f<a.length;f++){var p=a[f].value;i.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:ct,trackGroup:it,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:i}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function im(e,t,a){!kt||t<=e||console.timeStamp("Animating",e,t,ct,it,"secondary-dark")}function Eu(){for(var e=Mi,t=Oh=Mi=0;t<e;){var a=Un[t];Un[t++]=null;var n=Un[t];Un[t++]=null;var r=Un[t];Un[t++]=null;var i=Un[t];if(Un[t++]=null,n!==null&&r!==null){var f=n.pending;f===null?r.next=r:(r.next=f.next,f.next=r),n.pending=r}i!==0&&Qb(a,r,i)}}function Du(e,t,a,n){Un[Mi++]=e,Un[Mi++]=t,Un[Mi++]=a,Un[Mi++]=n,Oh|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function lm(e,t,a,n){return Du(e,t,a,n),Ru(e)}function Ra(e,t){return Du(e,null,null,t),Ru(e)}function Qb(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&lc||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-Ma(a),e=i.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),i):null}function Ru(e){if(Vc>HR)throw Qr=Vc=0,Mc=fg=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Qr>BR&&(Qr=0,Mc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&u0(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&u0(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function vr(e){if(Cn===null)return e;var t=Cn(e);return t===void 0?e:t.current}function cm(e){if(Cn===null)return e;var t=Cn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=vr(e.render),e.render!==t)?(t={$$typeof:Zl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Pb(e,t){if(Cn===null)return!1;var a=e.elementType;t=t.type;var n=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||r===fn)&&(n=!0);break;case 11:(r===Zl||r===fn)&&(n=!0);break;case 14:case 15:(r===wd||r===fn)&&(n=!0);break;default:return!1}return!!(n&&(e=Cn(a),e!==void 0&&e===Cn(t)))}function Zb(e){Cn!==null&&typeof WeakSet=="function"&&(zi===null&&(zi=new WeakSet),zi.add(e))}function Jb(e,t,a){do{var n=e,r=n.alternate,i=n.child,f=n.sibling,p=n.tag;n=n.type;var v=null;switch(p){case 0:case 15:case 1:v=n;break;case 11:v=n.render}if(Cn===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(n=!1,v!==null&&(v=Cn(v),v!==void 0&&(a.has(v)?n=!0:t.has(v)&&(p===1?n=!0:S=!0))),zi!==null&&(zi.has(e)||r!==null&&zi.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||S)&&(r=Ra(e,2),r!==null&&Mt(r,e,2)),i===null||n||Jb(i,t,a),f===null)break;e=f}while(!0)}function I4(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,aN||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function um(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ps(e,t){var a=e.alternate;switch(a===null?(a=w(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=vr(e.type);break;case 1:a.type=vr(e.type);break;case 11:a.type=cm(e.type)}return a}function Kb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function dm(e,t,a,n,r,i){var f=0,p=e;if(typeof e=="function")um(e)&&(f=1),p=vr(p);else if(typeof e=="string")f=ue(),f=eD(e,a,f)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sh:return t=w(31,a,t,r),t.elementType=sh,t.lanes=i,t;case Di:return xr(a.children,r,i,t);case Sd:f=8,r|=ka,r|=as;break;case eh:return e=a,n=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=w(12,e,t,n|Qe),t.elementType=eh,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ah:return t=w(13,a,t,r),t.elementType=ah,t.lanes=i,t;case nh:return t=w(19,a,t,r),t.elementType=nh,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case js:f=10;break e;case th:f=9;break e;case Zl:f=11,p=cm(p);break e;case wd:f=14;break e;case fn:f=16,p=null;break e}p="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":oa(e)?a="array":e!==void 0&&e.$$typeof===Ts?(a="<"+(k(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(f=n?$(n):null)&&(p+=`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+f+"`."),f=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=w(f,a,t,r),t.elementType=e,t.type=p,t.lanes=i,t._debugOwner=n,t}function _u(e,t,a){return t=dm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function xr(e,t,a,n){return e=w(7,e,n,t),e.lanes=a,e}function fm(e,t,a){return e=w(6,e,null,t),e.lanes=a,e}function Wb(e){var t=w(18,null,null,Le);return t.stateNode=e,t}function mm(e,t,a){return t=w(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function on(e,t){if(typeof e=="object"&&e!==null){var a=Ah.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ke(t)},Ah.set(e,t),t)}return{value:e,source:t,stack:Ke(t)}}function Zs(e,t){_o(),Li[Hi++]=cc,Li[Hi++]=Ld,Ld=e,cc=t}function ey(e,t,a){_o(),Tn[jn++]=ro,Tn[jn++]=io,Tn[jn++]=Or,Or=e;var n=ro;e=io;var r=32-Ma(n)-1;n&=~(1<<r),a+=1;var i=32-Ma(t)+r;if(30<i){var f=r-r%5;i=(n&(1<<f)-1).toString(32),n>>=f,r-=f,ro=1<<32-Ma(t)+r|a<<r|n,io=i+e}else ro=1<<i|a<<r|n,io=e}function pm(e){_o(),e.return!==null&&(Zs(e,1),ey(e,1,0))}function hm(e){for(;e===Ld;)Ld=Li[--Hi],Li[Hi]=null,cc=Li[--Hi],Li[Hi]=null;for(;e===Or;)Or=Tn[--jn],Tn[jn]=null,io=Tn[--jn],Tn[jn]=null,ro=Tn[--jn],Tn[jn]=null}function ty(){return _o(),Or!==null?{id:ro,overflow:io}:null}function ay(e,t){_o(),Tn[jn++]=ro,Tn[jn++]=io,Tn[jn++]=Or,ro=t.id,io=t.overflow,Or=e}function _o(){st||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Nr(e,t){if(e.return===null){if(pn===null)pn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(pn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");pn.distanceFromLeaf>t&&(pn.distanceFromLeaf=t)}return pn}var a=Nr(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function ny(){st&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ku(e,t){Ls||(e=Nr(e,0),e.serverProps=null,t!==null&&(t=V0(t),e.serverTail.push(t)))}function ko(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=pn;throw n!==null&&(pn=null,a=Ro(n)),wl(on(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
79
|
+
|
|
80
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
81
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
82
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
83
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
84
|
+
- Invalid HTML tag nesting.
|
|
85
|
+
|
|
86
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
87
|
+
|
|
88
|
+
https://react.dev/link/hydration-mismatch`+a),e)),Vh}function sy(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[xa]=e,t[za]=n,Vp(a,n),a){case"dialog":rt("cancel",t),rt("close",t);break;case"iframe":case"object":case"embed":rt("load",t);break;case"video":case"audio":for(a=0;a<zc.length;a++)rt(zc[a],t);break;case"source":rt("error",t);break;case"img":case"image":case"link":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"input":Zt("input",n),rt("invalid",t),Te(t,n),Ve(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Ce(t,n);break;case"select":Zt("select",n),rt("invalid",t),Rt(t,n);break;case"textarea":Zt("textarea",n),rt("invalid",t),Gt(t,n),pt(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||N0(t.textContent,a)?(n.popover!=null&&(rt("beforetoggle",t),rt("toggle",t)),n.onScroll!=null&&rt("scroll",t),n.onScrollEnd!=null&&rt("scrollend",t),n.onClick!=null&&(t.onclick=Qs),t=!0):t=!1,t||ko(e,!0)}function oy(e){for(Na=e.return;Na;)switch(Na.tag){case 5:case 31:case 13:On=!1;return;case 27:case 3:On=!0;return;default:Na=Na.return}}function ci(e){if(e!==Na)return!1;if(!st)return oy(e),st=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Bp(e.type,e.memoizedProps)),a=!a),a&&Ut){for(a=Ut;a;){var n=Nr(e,0),r=V0(a);n.serverTail.push(r),a=r.type==="Suspense"?Gp(a):dn(a.nextSibling)}ko(e)}if(oy(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=Gp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=Gp(e)}else t===27?(t=Ut,Lo(e.type)?(e=Eg,Eg=null,Ut=e):Ut=t):Ut=Na?dn(e.stateNode.nextSibling):null;return!0}function Sr(){Ut=Na=null,Ls=st=!1}function gm(){var e=Xo;return e!==null&&(qa===null?qa=e:qa.push.apply(qa,e),Xo=null),e}function wl(e){Xo===null?Xo=[e]:Xo.push(e)}function bm(){var e=pn;if(e!==null){pn=null;for(var t=Ro(e);0<e.children.length;)e=e.children[0];he(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
89
|
+
|
|
90
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
91
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
92
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
93
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
94
|
+
- Invalid HTML tag nesting.
|
|
95
|
+
|
|
96
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
97
|
+
|
|
98
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Uu(){Bi=Hd=null,$i=!1}function Uo(e,t,a){ce(Mh,t._currentValue,e),t._currentValue=a,ce(zh,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sN&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sN}function Js(e,t){e._currentValue=Mh.current;var a=zh.current;ee(zh,t),e._currentRenderer=a,ee(Mh,t)}function ym(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function vm(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var f=r.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=r;for(var v=0;v<t.length;v++)if(p.context===t[v]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),ym(i.return,a,e),n||(f=null);break e}i=p.next}}else if(r.tag===18){if(f=r.return,f===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes|=a,i=f.alternate,i!==null&&(i.lanes|=a),ym(f,a,e),f=null}else f=r.child;if(f!==null)f.return=r;else for(f=r;f!==null;){if(f===e){f=null;break}if(r=f.sibling,r!==null){r.return=f.return,f=r;break}f=f.return}r=f}}function ui(e,t,a,n){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var f=r.alternate;if(f===null)throw Error("Should have a current fiber. This is a bug in React.");if(f=f.memoizedProps,f!==null){var p=r.type;Ha(r.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(r===Ed.current){if(f=r.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Yc):e=[Yc])}r=r.return}e!==null&&vm(t,e,a,n),t.flags|=262144}function Cu(e){for(e=e.firstContext;e!==null;){if(!Ha(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wr(e){Hd=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return $i&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ry(Hd,e)}function Tu(e,t){return Hd===null&&wr(e),ry(e,t)}function ry(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Bi===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Bi=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Bi=Bi.next=t;return a}function xm(){return{controller:new RR,data:new Map,refCount:0}}function Er(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function El(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&_R(kR,function(){e.controller.abort()})}function ys(e,t,a){(e&127)!==0?0>Hs&&(Hs=Wt(),dc=Bd(t),Lh=t,a!=null&&(Hh=B(a)),(ut&(ia|bn))!==ha&&(zt=!0,Po=uc),e=Il(),t=Gl(),e!==Yi||t!==fc?Yi=-1.1:t!==null&&(Po=uc),Mr=e,fc=t):(e&4194048)!==0&&0>An&&(An=Wt(),mc=Bd(t),oN=t,a!=null&&(rN=B(a)),0>fo)&&(e=Il(),t=Gl(),(e!==Jo||t!==zr)&&(Jo=-1.1),Zo=e,zr=t)}function F4(e){if(0>Hs){Hs=Wt(),dc=e._debugTask!=null?e._debugTask:null,(ut&(ia|bn))!==ha&&(Po=uc);var t=Il(),a=Gl();t!==Yi||a!==fc?Yi=-1.1:a!==null&&(Po=uc),Mr=t,fc=a}0>An&&(An=Wt(),mc=e._debugTask!=null?e._debugTask:null,0>fo)&&(e=Il(),t=Gl(),(e!==Jo||t!==zr)&&(Jo=-1.1),Zo=e,zr=t)}function Ks(){var e=Ar;return Ar=0,e}function ju(e){var t=Ar;return Ar=e,t}function Dl(e){var t=Ar;return Ar+=e,t}function Ou(){Me=Oe=-1.1}function rn(){var e=Oe;return Oe=-1.1,e}function ln(e){0<=e&&(Oe=e)}function vs(){var e=At;return At=-0,e}function xs(e){0<=e&&(At=e)}function Ns(){var e=Ot;return Ot=null,e}function Ss(){var e=zt;return zt=!1,e}function Nm(e){Ba=Wt(),0>e.actualStartTime&&(e.actualStartTime=Ba)}function Sm(e){if(0<=Ba){var t=Wt()-Ba;e.actualDuration+=t,e.selfBaseDuration=t,Ba=-1}}function iy(e){if(0<=Ba){var t=Wt()-Ba;e.actualDuration+=t,Ba=-1}}function ws(){if(0<=Ba){var e=Wt(),t=e-Ba;Ba=-1,Ar+=t,At+=t,Me=e}}function ly(e){Ot===null&&(Ot=[]),Ot.push(e),co===null&&(co=[]),co.push(e)}function Es(){Ba=Wt(),0>Oe&&(Oe=Ba)}function Rl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function X4(e,t){if(hc===null){var a=hc=[];$h=0,Lr=Tp(),qi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return $h++,t.then(cy,cy),t}function cy(){if(--$h===0&&(-1<An||(fo=-1.1),hc!==null)){qi!==null&&(qi.status="fulfilled");var e=hc;hc=null,Lr=0,qi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Q4(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}function wm(){var e=Hr.current;return e!==null?e:wt.pooledCache}function Au(e,t){t===null?ce(Hr,Hr.current,e):ce(Hr,t.pool,e)}function uy(){var e=wm();return e===null?null:{parent:Kt._currentValue,pool:e}}function dy(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function fy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function my(e,t,a){F.actQueue!==null&&(F.didUsePromise=!0);var n=e.thenables;if(a=n[a],a===void 0?n.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Qs,Qs),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var r={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hy(e),e;default:if(typeof t.status=="string")t.then(Qs,Qs);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=i}},function(i){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hy(e),e}throw $r=t,Sc=!0,Gi}}function Co(e){try{return OR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?($r=t,Sc=!0,Gi):t}}function py(){if($r===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=$r;return $r=null,Sc=!1,e}function hy(e){if(e===Gi||e===Qd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ba(e){var t=Pe;return e!=null&&(Pe=t===null?e:t.concat(e)),t}function Em(){var e=Pe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Vu(e,t,a){for(var n=Object.keys(e.props),r=0;r<n.length;r++){var i=n[r];if(i!=="children"&&i!=="key"){t===null&&(t=_u(e,a.mode,0),t._debugInfo=Pe,t.return=a),he(t,function(f){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f)},i);break}}}function Mu(e){var t=wc;return wc+=1,Ii===null&&(Ii=dy()),my(Ii,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gy(e,t){throw t.$$typeof===dD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
99
|
+
- Multiple copies of the "react" package is used.
|
|
100
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
101
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function zu(e,t){var a=Em();a!==null?a.run(gy.bind(null,e,t)):gy(e,t)}function by(e,t){var a=B(e)||"Component";RN[a]||(RN[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
102
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
103
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function Lu(e,t){var a=Em();a!==null?a.run(by.bind(null,e,t)):by(e,t)}function yy(e,t){var a=B(e)||"Component";_N[a]||(_N[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
104
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
105
|
+
<%s>%s</%s>`,a,t,a))}function Hu(e,t){var a=Em();a!==null?a.run(yy.bind(null,e,t)):yy(e,t)}function vy(e){function t(U,j){if(e){var A=U.deletions;A===null?(U.deletions=[j],U.flags|=16):A.push(j)}}function a(U,j){if(!e)return null;for(;j!==null;)t(U,j),j=j.sibling;return null}function n(U){for(var j=new Map;U!==null;)U.key!==null?j.set(U.key,U):j.set(U.index,U),U=U.sibling;return j}function r(U,j){return U=Ps(U,j),U.index=0,U.sibling=null,U}function i(U,j,A){return U.index=A,e?(A=U.alternate,A!==null?(A=A.index,A<j?(U.flags|=67108866,j):A):(U.flags|=67108866,j)):(U.flags|=1048576,j)}function f(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function p(U,j,A,Q){return j===null||j.tag!==6?(j=fm(A,U.mode,Q),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j):(j=r(j,A),j.return=U,j._debugInfo=Pe,j)}function v(U,j,A,Q){var be=A.type;return be===Di?(j=V(U,j,A.props.children,Q,A.key),Vu(A,j,U),j):j!==null&&(j.elementType===be||Pb(j,A)||typeof be=="object"&&be!==null&&be.$$typeof===fn&&Co(be)===j.type)?(j=r(j,A.props),_l(j,A),j.return=U,j._debugOwner=A._owner,j._debugInfo=Pe,j):(j=_u(A,U.mode,Q),_l(j,A),j.return=U,j._debugInfo=Pe,j)}function S(U,j,A,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=mm(A,U.mode,Q),j.return=U,j._debugInfo=Pe,j):(j=r(j,A.children||[]),j.return=U,j._debugInfo=Pe,j)}function V(U,j,A,Q,be){return j===null||j.tag!==7?(j=xr(A,U.mode,Q,be),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j):(j=r(j,A),j.return=U,j._debugInfo=Pe,j)}function M(U,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=fm(""+j,U.mode,A),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ts:return A=_u(j,U.mode,A),_l(A,j),A.return=U,U=ba(j._debugInfo),A._debugInfo=Pe,Pe=U,A;case Ei:return j=mm(j,U.mode,A),j.return=U,j._debugInfo=Pe,j;case fn:var Q=ba(j._debugInfo);return j=Co(j),U=M(U,j,A),Pe=Q,U}if(oa(j)||re(j))return A=xr(j,U.mode,A,null),A.return=U,A._debugOwner=U,A._debugTask=U._debugTask,U=ba(j._debugInfo),A._debugInfo=Pe,Pe=U,A;if(typeof j.then=="function")return Q=ba(j._debugInfo),U=M(U,Mu(j),A),Pe=Q,U;if(j.$$typeof===js)return M(U,Tu(U,j),A);zu(U,j)}return typeof j=="function"&&Lu(U,j),typeof j=="symbol"&&Hu(U,j),null}function T(U,j,A,Q){var be=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return be!==null?null:p(U,j,""+A,Q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Ts:return A.key===be?(be=ba(A._debugInfo),U=v(U,j,A,Q),Pe=be,U):null;case Ei:return A.key===be?S(U,j,A,Q):null;case fn:return be=ba(A._debugInfo),A=Co(A),U=T(U,j,A,Q),Pe=be,U}if(oa(A)||re(A))return be!==null?null:(be=ba(A._debugInfo),U=V(U,j,A,Q,null),Pe=be,U);if(typeof A.then=="function")return be=ba(A._debugInfo),U=T(U,j,Mu(A),Q),Pe=be,U;if(A.$$typeof===js)return T(U,j,Tu(U,A),Q);zu(U,A)}return typeof A=="function"&&Lu(U,A),typeof A=="symbol"&&Hu(U,A),null}function Y(U,j,A,Q,be){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return U=U.get(A)||null,p(j,U,""+Q,be);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case Ts:return A=U.get(Q.key===null?A:Q.key)||null,U=ba(Q._debugInfo),j=v(j,A,Q,be),Pe=U,j;case Ei:return U=U.get(Q.key===null?A:Q.key)||null,S(j,U,Q,be);case fn:var Ye=ba(Q._debugInfo);return Q=Co(Q),j=Y(U,j,A,Q,be),Pe=Ye,j}if(oa(Q)||re(Q))return A=U.get(A)||null,U=ba(Q._debugInfo),j=V(j,A,Q,be,null),Pe=U,j;if(typeof Q.then=="function")return Ye=ba(Q._debugInfo),j=Y(U,j,A,Mu(Q),be),Pe=Ye,j;if(Q.$$typeof===js)return Y(U,j,A,Tu(j,Q),be);zu(j,Q)}return typeof Q=="function"&&Lu(j,Q),typeof Q=="symbol"&&Hu(j,Q),null}function fe(U,j,A,Q){if(typeof A!="object"||A===null)return Q;switch(A.$$typeof){case Ts:case Ei:D(U,j,A);var be=A.key;if(typeof be!="string")break;if(Q===null){Q=new Set,Q.add(be);break}if(!Q.has(be)){Q.add(be);break}he(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",be)});break;case fn:A=Co(A),fe(U,j,A,Q)}return Q}function xe(U,j,A,Q){for(var be=null,Ye=null,je=null,_e=j,Ie=j=0,Ct=null;_e!==null&&Ie<A.length;Ie++){_e.index>Ie?(Ct=_e,_e=null):Ct=_e.sibling;var Xt=T(U,_e,A[Ie],Q);if(Xt===null){_e===null&&(_e=Ct);break}be=fe(U,Xt,A[Ie],be),e&&_e&&Xt.alternate===null&&t(U,_e),j=i(Xt,j,Ie),je===null?Ye=Xt:je.sibling=Xt,je=Xt,_e=Ct}if(Ie===A.length)return a(U,_e),st&&Zs(U,Ie),Ye;if(_e===null){for(;Ie<A.length;Ie++)_e=M(U,A[Ie],Q),_e!==null&&(be=fe(U,_e,A[Ie],be),j=i(_e,j,Ie),je===null?Ye=_e:je.sibling=_e,je=_e);return st&&Zs(U,Ie),Ye}for(_e=n(_e);Ie<A.length;Ie++)Ct=Y(_e,U,Ie,A[Ie],Q),Ct!==null&&(be=fe(U,Ct,A[Ie],be),e&&Ct.alternate!==null&&_e.delete(Ct.key===null?Ie:Ct.key),j=i(Ct,j,Ie),je===null?Ye=Ct:je.sibling=Ct,je=Ct);return e&&_e.forEach(function(xo){return t(U,xo)}),st&&Zs(U,Ie),Ye}function Dt(U,j,A,Q){if(A==null)throw Error("An iterable object provided no iterator.");for(var be=null,Ye=null,je=j,_e=j=0,Ie=null,Ct=null,Xt=A.next();je!==null&&!Xt.done;_e++,Xt=A.next()){je.index>_e?(Ie=je,je=null):Ie=je.sibling;var xo=T(U,je,Xt.value,Q);if(xo===null){je===null&&(je=Ie);break}Ct=fe(U,xo,Xt.value,Ct),e&&je&&xo.alternate===null&&t(U,je),j=i(xo,j,_e),Ye===null?be=xo:Ye.sibling=xo,Ye=xo,je=Ie}if(Xt.done)return a(U,je),st&&Zs(U,_e),be;if(je===null){for(;!Xt.done;_e++,Xt=A.next())je=M(U,Xt.value,Q),je!==null&&(Ct=fe(U,je,Xt.value,Ct),j=i(je,j,_e),Ye===null?be=je:Ye.sibling=je,Ye=je);return st&&Zs(U,_e),be}for(je=n(je);!Xt.done;_e++,Xt=A.next())Ie=Y(je,U,_e,Xt.value,Q),Ie!==null&&(Ct=fe(U,Ie,Xt.value,Ct),e&&Ie.alternate!==null&&je.delete(Ie.key===null?_e:Ie.key),j=i(Ie,j,_e),Ye===null?be=Ie:Ye.sibling=Ie,Ye=Ie);return e&&je.forEach(function(n_){return t(U,n_)}),st&&Zs(U,_e),be}function lt(U,j,A,Q){if(typeof A=="object"&&A!==null&&A.type===Di&&A.key===null&&(Vu(A,null,U),A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case Ts:var be=ba(A._debugInfo);e:{for(var Ye=A.key;j!==null;){if(j.key===Ye){if(Ye=A.type,Ye===Di){if(j.tag===7){a(U,j.sibling),Q=r(j,A.props.children),Q.return=U,Q._debugOwner=A._owner,Q._debugInfo=Pe,Vu(A,Q,U),U=Q;break e}}else if(j.elementType===Ye||Pb(j,A)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===fn&&Co(Ye)===j.type){a(U,j.sibling),Q=r(j,A.props),_l(Q,A),Q.return=U,Q._debugOwner=A._owner,Q._debugInfo=Pe,U=Q;break e}a(U,j);break}else t(U,j);j=j.sibling}A.type===Di?(Q=xr(A.props.children,U.mode,Q,A.key),Q.return=U,Q._debugOwner=U,Q._debugTask=U._debugTask,Q._debugInfo=Pe,Vu(A,Q,U),U=Q):(Q=_u(A,U.mode,Q),_l(Q,A),Q.return=U,Q._debugInfo=Pe,U=Q)}return U=f(U),Pe=be,U;case Ei:e:{for(be=A,A=be.key;j!==null;){if(j.key===A)if(j.tag===4&&j.stateNode.containerInfo===be.containerInfo&&j.stateNode.implementation===be.implementation){a(U,j.sibling),Q=r(j,be.children||[]),Q.return=U,U=Q;break e}else{a(U,j);break}else t(U,j);j=j.sibling}Q=mm(be,U.mode,Q),Q.return=U,U=Q}return f(U);case fn:return be=ba(A._debugInfo),A=Co(A),U=lt(U,j,A,Q),Pe=be,U}if(oa(A))return be=ba(A._debugInfo),U=xe(U,j,A,Q),Pe=be,U;if(re(A)){if(be=ba(A._debugInfo),Ye=re(A),typeof Ye!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var je=Ye.call(A);return je===A?(U.tag!==0||Object.prototype.toString.call(U.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(je)!=="[object Generator]")&&(EN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),EN=!0):A.entries!==Ye||Ih||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ih=!0),U=Dt(U,j,je,Q),Pe=be,U}if(typeof A.then=="function")return be=ba(A._debugInfo),U=lt(U,j,Mu(A),Q),Pe=be,U;if(A.$$typeof===js)return lt(U,j,Tu(U,A),Q);zu(U,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(be=""+A,j!==null&&j.tag===6?(a(U,j.sibling),Q=r(j,be),Q.return=U,U=Q):(a(U,j),Q=fm(be,U.mode,Q),Q.return=U,Q._debugOwner=U,Q._debugTask=U._debugTask,Q._debugInfo=Pe,U=Q),f(U)):(typeof A=="function"&&Lu(U,A),typeof A=="symbol"&&Hu(U,A),a(U,j))}return function(U,j,A,Q){var be=Pe;Pe=null;try{wc=0;var Ye=lt(U,j,A,Q);return Ii=null,Ye}catch(Ct){if(Ct===Gi||Ct===Qd)throw Ct;var je=w(29,Ct,null,U.mode);je.lanes=Q,je.return=U;var _e=je._debugInfo=Pe;if(je._debugOwner=U._debugOwner,je._debugTask=U._debugTask,_e!=null){for(var Ie=_e.length-1;0<=Ie;Ie--)if(typeof _e[Ie].stack=="string"){je._debugOwner=_e[Ie],je._debugTask=_e[Ie].debugTask;break}}return je}finally{Pe=be}}}function xy(e,t){var a=oa(e);return e=!a&&typeof re(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function Dm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function To(e){return{lane:e,tag:UN,payload:null,callback:null,next:null}}function jo(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xh===n&&!jN){var r=B(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
106
|
+
|
|
107
|
+
Please update the following component: %s`,r),jN=!0}return(ut&ia)!==ha?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Ru(e),Qb(e,null,a),t):(Du(e,n,t,a),Ru(e))}function kl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function Bu(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=f:i=i.next=f,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Ul(){if(Qh){var e=qi;if(e!==null)throw e}}function Cl(e,t,a,n){Qh=!1;var r=e.updateQueue;Ko=!1,Xh=r.shared;var i=r.firstBaseUpdate,f=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var v=p,S=v.next;v.next=null,f===null?i=S:f.next=S,f=v;var V=e.alternate;V!==null&&(V=V.updateQueue,p=V.lastBaseUpdate,p!==f&&(p===null?V.firstBaseUpdate=S:p.next=S,V.lastBaseUpdate=v))}if(i!==null){var M=r.baseState;f=0,V=S=v=null,p=i;do{var T=p.lane&-536870913,Y=T!==p.lane;if(Y?(Ze&T)===T:(n&T)===T){T!==0&&T===Lr&&(Qh=!0),V!==null&&(V=V.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{T=e;var fe=p,xe=t,Dt=a;switch(fe.tag){case CN:if(fe=fe.payload,typeof fe=="function"){$i=!0;var lt=fe.call(Dt,M,xe);if(T.mode&ka){Se(!0);try{fe.call(Dt,M,xe)}finally{Se(!1)}}$i=!1,M=lt;break e}M=fe;break e;case Fh:T.flags=T.flags&-65537|128;case UN:if(lt=fe.payload,typeof lt=="function"){if($i=!0,fe=lt.call(Dt,M,xe),T.mode&ka){Se(!0);try{lt.call(Dt,M,xe)}finally{Se(!1)}}$i=!1}else fe=lt;if(fe==null)break e;M=et({},M,fe);break e;case TN:Ko=!0}}T=p.callback,T!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=r.callbacks,Y===null?r.callbacks=[T]:Y.push(T))}else Y={lane:T,tag:p.tag,payload:p.payload,callback:p.callback,next:null},V===null?(S=V=Y,v=M):V=V.next=Y,f|=T;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;Y=p,p=Y.next,Y.next=null,r.lastBaseUpdate=Y,r.shared.pending=null}}while(!0);V===null&&(v=M),r.baseState=v,r.firstBaseUpdate=S,r.lastBaseUpdate=V,i===null&&(r.shared.lanes=0),tr|=f,e.lanes=f,e.memoizedState=M}Xh=null}function Ny(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function P4(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)Ny(a[e],t)}function Sy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ny(a[e],t)}function wy(e,t){var a=$s;ce(Zd,a,e),ce(Fi,t,e),$s=a|t.baseLanes}function _m(e){ce(Zd,$s,e),ce(Fi,Fi.current,e)}function km(e){$s=Zd.current,ee(Fi,e),ee(Zd,e)}function Oo(e){var t=e.alternate;ce(Ft,Ft.current&Xi,e),ce(hn,e,e),Vn===null&&(t===null||Fi.current!==null||t.memoizedState!==null)&&(Vn=e)}function Um(e){ce(Ft,Ft.current,e),ce(hn,e,e),Vn===null&&(Vn=e)}function Ey(e){e.tag===22?(ce(Ft,Ft.current,e),ce(hn,e,e),Vn===null&&(Vn=e)):Ao(e)}function Ao(e){ce(Ft,Ft.current,e),ce(hn,hn.current,e)}function cn(e){ee(hn,e),Vn===e&&(Vn=null),ee(Ft,e)}function $u(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Yp(a)||qp(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function We(){var e=q;zn===null?zn=[e]:zn.push(e)}function se(){var e=q;if(zn!==null&&(ho++,zn[ho]!==e)){var t=B($e);if(!ON.has(t)&&(ON.add(t),zn!==null)){for(var a="",n=0;n<=ho;n++){var r=zn[n],i=n===ho?e:r;for(r=n+1+". "+r;30>r.length;)r+=" ";r+=i+`
|
|
108
|
+
`,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
109
|
+
|
|
110
|
+
Previous render Next render
|
|
111
|
+
------------------------------------------------------
|
|
112
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
113
|
+
`,t,a)}}}function di(e){e==null||oa(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",q,typeof e)}function Yu(){var e=B($e);VN.has(e)||(VN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function $t(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
114
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
115
|
+
2. You might be breaking the Rules of Hooks
|
|
116
|
+
3. You might have more than one copy of React in the same app
|
|
117
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Cm(e,t){if(Rc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",q),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
118
|
+
|
|
119
|
+
Previous: %s
|
|
120
|
+
Incoming: %s`,q,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ha(e[a],t[a]))return!1;return!0}function Tm(e,t,a,n,r,i){mo=i,$e=t,zn=e!==null?e._debugHookTypes:null,ho=-1,Rc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=B($e),Ph.has(i)||(Ph.add(i),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",i===null?"An unknown Component":"<"+i+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e!==null&&e.memoizedState!==null?Jh:zn!==null?MN:Zh,qr=i=(t.mode&ka)!==Le;var f=Yh(a,n,r);if(qr=!1,Pi&&(f=jm(t,a,n,r)),i){Se(!0);try{f=jm(t,a,n,r)}finally{Se(!1)}}return Dy(e,t),f}function Dy(e,t){t._debugHookTypes=zn,t.dependencies===null?po!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:po}):t.dependencies._debugThenableState=po,F.H=_c;var a=St!==null&&St.next!==null;if(mo=0,zn=q=ea=St=$e=null,ho=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Kd=!1,Dc=0,po=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ta||(e=e.dependencies,e!==null&&Cu(e)&&(ta=!0)),Sc?(Sc=!1,e=!0):e=!1,e&&(t=B(t)||"Unknown",AN.has(t)||Ph.has(t)||(AN.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function jm(e,t,a,n){$e=e;var r=0;do{if(Pi&&(po=null),Dc=0,Pi=!1,r>=VR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Rc=!1,ea=St=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ho=-1,F.H=zN,i=Yh(t,a,n)}while(Pi);return i}function Z4(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?Tl(t):t,e=e.useState()[0],(St!==null?St.memoizedState:null)!==e&&($e.flags|=1024),t}function Om(){var e=Wd!==0;return Wd=0,e}function Am(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&as)!==Le?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Vm(e){if(Kd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kd=!1}mo=0,zn=ea=St=$e=null,ho=-1,q=null,Pi=!1,Dc=Wd=0,po=null}function Va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?$e.memoizedState=ea=e:ea=ea.next=e,ea}function bt(){if(St===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=St.next;var t=ea===null?$e.memoizedState:ea.next;if(t!==null)ea=t,St=e;else{if(e===null)throw $e.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");St=e,e={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},ea===null?$e.memoizedState=ea=e:ea=ea.next=e}return ea}function qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(e){var t=Dc;return Dc+=1,po===null&&(po=dy()),e=my(po,e,t),t=$e,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?Jh:Zh),e}function Vo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tl(e);if(e.$$typeof===js)return jt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Dr(e){var t=null,a=$e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=$e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=qu(),$e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Rc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=fD;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function Mm(e,t,a){var n=Va();if(a!==void 0){var r=a(t);if(qr){Se(!0);try{a(t)}finally{Se(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=tE.bind(null,$e,e),[n.memoizedState,e]}function fi(e){var t=bt();return zm(t,St,e)}function zm(e,t,a){var n=e.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=a;var r=e.baseQueue,i=n.pending;if(i!==null){if(r!==null){var f=r.next;r.next=i.next,i.next=f}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=i,n.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var p=f=null,v=null,S=t,V=!1;do{var M=S.lane&-536870913;if(M!==S.lane?(Ze&M)===M:(mo&M)===M){var T=S.revertLane;if(T===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),M===Lr&&(V=!0);else if((mo&T)===T){S=S.next,T===Lr&&(V=!0);continue}else M={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(p=v=M,f=i):v=v.next=M,$e.lanes|=T,tr|=T;M=S.action,qr&&a(i,M),i=S.hasEagerState?S.eagerState:a(i,M)}else T={lane:M,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(p=v=T,f=i):v=v.next=T,$e.lanes|=M,tr|=M;S=S.next}while(S!==null&&S!==t);if(v===null?f=i:v.next=p,!Ha(i,e.memoizedState)&&(ta=!0,V&&(a=qi,a!==null)))throw a;e.memoizedState=i,e.baseState=f,e.baseQueue=v,n.lastRenderedState=i}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function jl(e){var t=bt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var f=r=r.next;do i=e(i,f.action),f=f.next;while(f!==r);Ha(i,t.memoizedState)||(ta=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function Lm(e,t,a){var n=$e,r=Va();if(st){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var i=a();Qi||i===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qi=!0)}else{if(i=t(),Qi||(a=t(),Ha(i,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qi=!0)),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ze&127)!==0||Ry(n,t,i)}return r.memoizedState=i,a={value:i,getSnapshot:t},r.queue=a,Xu(ky.bind(null,n,a,e),[e]),n.flags|=2048,pi(Mn|Ya,{destroy:void 0},_y.bind(null,n,a,i,t),null),i}function Gu(e,t,a){var n=$e,r=bt(),i=st;if(i){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Qi){var f=t();Ha(a,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qi=!0)}(f=!Ha((St||r).memoizedState,a))&&(r.memoizedState=a,ta=!0),r=r.queue;var p=ky.bind(null,n,r,e);if(Ja(2048,Ya,p,[e]),r.getSnapshot!==t||f||ea!==null&&ea.memoizedState.tag&Mn){if(n.flags|=2048,pi(Mn|Ya,{destroy:void 0},_y.bind(null,n,r,a,t),null),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(mo&127)!==0||Ry(n,t,a)}return a}function Ry(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=$e.updateQueue,t===null?(t=qu(),$e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _y(e,t,a,n){t.value=a,t.getSnapshot=n,Uy(t)&&Cy(e)}function ky(e,t,a){return a(function(){Uy(t)&&(ys(2,"updateSyncExternalStore()",e),Cy(e))})}function Uy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ha(e,a)}catch{return!0}}function Cy(e){var t=Ra(e,2);t!==null&&Mt(t,e,2)}function Hm(e){var t=Va();if(typeof e=="function"){var a=e;if(e=a(),qr){Se(!0);try{a()}finally{Se(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function Bm(e){e=Hm(e);var t=e.queue,a=Py.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]}function $m(e){var t=Va();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=tp.bind(null,$e,!0,a),a.dispatch=t,[e,t]}function Ty(e,t){var a=bt();return jy(a,St,e,t)}function jy(e,t,a,n){return e.baseState=a,zm(e,St,typeof n=="function"?n:Wn)}function Oy(e,t){var a=bt();return St!==null?jy(a,St,e,t):(a.baseState=e,[e,a.queue.dispatch])}function J4(e,t,a,n,r){if(Wu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};F.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,Ay(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Ay(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var i=F.T,f={};f._updatedFibers=new Set,F.T=f;try{var p=a(r,n),v=F.S;v!==null&&v(f,p),Vy(e,t,p)}catch(S){Ym(e,t,S)}finally{i!==null&&f.types!==null&&(i.types!==null&&i.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=f.types),F.T=i,i===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{f=a(r,n),Vy(e,t,f)}catch(S){Ym(e,t,S)}}function Vy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(F.asyncTransitions++,a.then(Ku,Ku),a.then(function(n){My(e,t,n)},function(n){return Ym(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):My(e,t,a)}function My(e,t,a){t.status="fulfilled",t.value=a,zy(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ay(e,a)))}function Ym(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,zy(t),t=t.next;while(t!==n)}e.action=null}function zy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ly(e,t){return t}function mi(e,t){if(st){var a=wt.formState;if(a!==null){e:{var n=$e;if(st){if(Ut){t:{for(var r=Ut,i=On;r.nodeType!==8;){if(!i){r=null;break t}if(r=dn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===xg||i===S1?r:null}if(r){Ut=dn(r.nextSibling),n=r.data===xg;break e}}ko(n)}n=!1}n&&(t=a[0])}}return a=Va(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ly,lastRenderedState:t},a.queue=n,a=Py.bind(null,$e,n),n.dispatch=a,n=Hm(!1),i=tp.bind(null,$e,!1,n.queue),n=Va(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=J4.bind(null,$e,r,i,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Iu(e){var t=bt();return Hy(t,St,e)}function Hy(e,t,a){if(t=zm(e,t,Ly)[0],e=fi(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Tl(t)}catch(f){throw f===Gi?Qd:f}else n=t;t=bt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&($e.flags|=2048,pi(Mn|Ya,{destroy:void 0},K4.bind(null,r,a),null)),[n,i,e]}function K4(e,t){e.action=t}function Fu(e){var t=bt(),a=St;if(a!==null)return Hy(t,a,e);bt(),t=t.memoizedState,a=bt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function pi(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=$e.updateQueue,t===null&&(t=qu(),$e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function qm(e){var t=Va();return e={current:e},t.memoizedState=e}function Rr(e,t,a,n){var r=Va();$e.flags|=e,r.memoizedState=pi(Mn|t,{destroy:void 0},a,n===void 0?null:n)}function Ja(e,t,a,n){var r=bt();n=n===void 0?null:n;var i=r.memoizedState.inst;St!==null&&n!==null&&Cm(n,St.memoizedState.deps)?r.memoizedState=pi(t,i,a,n):($e.flags|=e,r.memoizedState=pi(Mn|t,i,a,n))}function Xu(e,t){($e.mode&as)!==Le?Rr(276826112,Ya,e,t):Rr(8390656,Ya,e,t)}function W4(e){$e.flags|=4;var t=$e.updateQueue;if(t===null)t=qu(),$e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Gm(e){var t=Va(),a={impl:e};return t.memoizedState=a,function(){if((ut&ia)!==ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Qu(e){var t=bt().memoizedState;return W4({ref:t,nextImpl:e}),function(){if((ut&ia)!==ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Im(e,t){var a=4194308;return($e.mode&as)!==Le&&(a|=134217728),Rr(a,gn,e,t)}function By(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Fm(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var n=4194308;($e.mode&as)!==Le&&(n|=134217728),Rr(n,gn,By.bind(null,t,e),a)}function Pu(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ja(4,gn,By.bind(null,t,e),a)}function Xm(e,t){return Va().memoizedState=[e,t===void 0?null:t],e}function Zu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Cm(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Qm(e,t){var a=Va();t=t===void 0?null:t;var n=e();if(qr){Se(!0);try{e()}finally{Se(!1)}}return a.memoizedState=[n,t],n}function Ju(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Cm(t,n[1]))return n[0];if(n=e(),qr){Se(!0);try{e()}finally{Se(!1)}}return a.memoizedState=[n,t],n}function Pm(e,t){var a=Va();return Zm(a,e,t)}function $y(e,t){var a=bt();return qy(a,St.memoizedState,e,t)}function Yy(e,t){var a=bt();return St===null?Zm(a,e,t):qy(a,St.memoizedState,e,t)}function Zm(e,t,a){return a===void 0||(mo&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Gv(),$e.lanes|=e,tr|=e,a)}function qy(e,t,a,n){return Ha(a,t)?a:Fi.current!==null?(e=Zm(e,a,n),Ha(e,t)||(ta=!0),e):(mo&42)===0||(mo&1073741824)!==0&&(Ze&261930)===0?(ta=!0,e.memoizedState=a):(e=Gv(),$e.lanes|=e,tr|=e,t)}function Ku(){F.asyncTransitions--}function Gy(e,t,a,n,r){var i=gt.p;gt.p=i!==0&&i<Ms?i:Ms;var f=F.T,p={};p._updatedFibers=new Set,F.T=p,tp(e,!1,t,a);try{var v=r(),S=F.S;if(S!==null&&S(p,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){F.asyncTransitions++,v.then(Ku,Ku);var V=Q4(v,n);Ol(e,t,V,un(e))}else Ol(e,t,n,un(e))}catch(M){Ol(e,t,{then:function(){},status:"rejected",reason:M},un(e))}finally{gt.p=i,f!==null&&p.types!==null&&(f.types!==null&&f.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=p.types),F.T=f,f===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Jm(e,t,a,n){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Iy(e).queue;F4(e),Gy(e,r,t,ei,a===null?y:function(){return Fy(e),a(n)})}function Iy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ei,baseState:ei,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:ei},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fy(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Iy(e);t.next===null&&(t=e.alternate.memoizedState),Ol(e,t.next.queue,{},un(e))}function Km(){var e=Hm(!1);return e=Gy.bind(null,$e,e.queue,!0,!1),Va().memoizedState=e,[!1,e]}function Xy(){var e=fi(Wn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]}function Qy(){var e=jl(Wn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]}function _r(){return jt(Yc)}function Wm(){var e=Va(),t=wt.identifierPrefix;if(st){var a=io,n=ro;a=(n&~(1<<32-Ma(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=AR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function ep(){return Va().memoizedState=eE.bind(null,$e)}function eE(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=un(a),r=To(n),i=jo(a,r,n);i!==null&&(ys(n,"refresh()",e),Mt(i,a,n),kl(i,a,n)),e=xm(),t!=null&&i!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function tE(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=un(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Wu(e)?Zy(t,r):(r=lm(e,t,r,n),r!==null&&(ys(n,"dispatch()",e),Mt(r,e,n),Jy(r,t,n)))}function Py(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=un(e),Ol(e,t,a,n)&&ys(n,"setState()",e)}function Ol(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Wu(e))Zy(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var f=F.H;F.H=ss;try{var p=t.lastRenderedState,v=i(p,a);if(r.hasEagerState=!0,r.eagerState=v,Ha(v,p))return Du(e,t,r,0),wt===null&&Eu(),!1}catch{}finally{F.H=f}}if(a=lm(e,t,r,n),a!==null)return Mt(a,e,n),Jy(a,t,n),!0}return!1}function tp(e,t,a,n){if(F.T===null&&Lr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:Tp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=lm(e,a,n,2),t!==null&&(ys(2,"setOptimistic()",e),Mt(t,e,2))}function Wu(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Zy(e,t){Pi=Kd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Jy(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function ap(e){if(e!==null&&typeof e!="function"){var t=String(e);QN.has(t)||(QN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function np(e,t,a,n){var r=e.memoizedState,i=a(n,r);if(e.mode&ka){Se(!0);try{i=a(n,r)}finally{Se(!1)}}i===void 0&&(t=k(t)||"Component",GN.has(t)||(GN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=i==null?r:et({},r,i),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Ky(e,t,a,n,r,i,f){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(a=p.shouldComponentUpdate(n,i,f),e.mode&ka){Se(!0);try{a=p.shouldComponentUpdate(n,i,f)}finally{Se(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",k(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Sl(a,n)||!Sl(r,i):!0}function Wy(e,t,a,n){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==r&&(e=B(e)||"Component",HN.has(e)||(HN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Kh.enqueueReplaceState(t,t.state,null))}function kr(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=et({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function ev(e){Uh(e),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,Zi?"An error occurred in the <"+Zi+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
124
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function tv(e){var t=Zi?"The above error occurred in the <"+Zi+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Wh||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var n=e.environmentName;e=[`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,C1+" "+e[0],T1,Df+n+Df,j1):e.splice(0,0,C1,T1,Df+n+Df,j1),e.unshift(console),n=t_.apply(console.error,e),n()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,e,t,a)}function av(e){Uh(e)}function ed(e,t){try{Zi=t.source?B(t.source):null,Wh=null;var a=t.value;if(F.actQueue!==null)F.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function nv(e,t,a){try{Zi=a.source?B(a.source):null,Wh=B(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function sp(e,t,a){return a=To(a),a.tag=Fh,a.payload={element:null},a.callback=function(){he(t.source,ed,e,t)},a}function op(e){return e=To(e),e.tag=Fh,e}function rp(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;e.payload=function(){return r(i)},e.callback=function(){Zb(a),he(n.source,nv,t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Zb(a),he(n.source,nv,t,a,n),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this)),CR(this,n),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",B(a)||"Unknown")})}function aE(e,t,a,n,r){if(a.flags|=32768,Vs&&$l(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ui(t,a,r,!0),st&&(Ls=!0),a=hn.current,a!==null){switch(a.tag){case 31:case 13:return Vn===null?cd():a.alternate===null&&Vt===bo&&(Vt=af),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Pd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),_p(e,n,r)),!1;case 22:return a.flags|=65536,n===Pd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),_p(e,n,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return _p(e,n,r),cd(),!1}if(st)return Ls=!0,t=hn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Vh&&wl(on(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:n}),a))):(n!==Vh&&wl(on(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:n}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=on(n,a),r=sp(e.stateNode,n,r),Bu(e,r),Vt!==Wo&&(Vt=Gr)),!1;var i=on(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:n}),a);if(Oc===null?Oc=[i]:Oc.push(i),Vt!==Wo&&(Vt=Gr),t===null)return!0;n=on(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=sp(a.stateNode,n,e),Bu(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(nr===null||!nr.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=op(r),rp(r,e,a,n),Bu(a,r),!1}a=a.return}while(a!==null);return!1}function ya(e,t,a,n){t.child=e===null?kN(t,null,a,n):Yr(t,e.child,a,n)}function sv(e,t,a,n,r){a=a.render;var i=t.ref;if("ref"in n){var f={};for(var p in n)p!=="ref"&&(f[p]=n[p])}else f=n;return wr(t),n=Tm(e,t,a,f,i,r),p=Om(),e!==null&&!ta?(Am(e,t,r),Ws(e,t,r)):(st&&p&&pm(t),t.flags|=1,ya(e,t,n,r),t.child)}function ov(e,t,a,n,r){if(e===null){var i=a.type;return typeof i=="function"&&!um(i)&&i.defaultProps===void 0&&a.compare===null?(a=vr(i),t.tag=15,t.type=a,lp(t,i),rv(e,t,a,n,r)):(e=dm(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!pp(e,r)){var f=i.memoizedProps;if(a=a.compare,a=a!==null?a:Sl,a(f,n)&&e.ref===t.ref)return Ws(e,t,r)}return t.flags|=1,e=Ps(i,n),e.ref=t.ref,e.return=t,t.child=e}function rv(e,t,a,n,r){if(e!==null){var i=e.memoizedProps;if(Sl(i,n)&&e.ref===t.ref&&t.type===e.type)if(ta=!1,t.pendingProps=n=i,pp(e,r))(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,Ws(e,t,r)}return ip(e,t,a,n,r)}function iv(e,t,a,n){var r=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:lc,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,t.child=null;return lv(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Au(t,i!==null?i.cachePool:null),i!==null?wy(t,i):_m(t),Ey(t);else return n=t.lanes=536870912,lv(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(Au(t,i.cachePool),wy(t,i),Ao(t),t.memoizedState=null):(e!==null&&Au(t,null),_m(t),Ao(t));return ya(e,t,r,a),t.child}function Al(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:lc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lv(e,t,a,n,r){var i=wm();return i=i===null?null:{parent:Kt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Au(t,null),_m(t),Ey(t),e!==null&&ui(e,t,n,!0),t.childLanes=r,null}function td(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
135
|
+
- <Activity %s>
|
|
136
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=nd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cv(e,t,a){return Yr(t,e.child,null,a),e=td(t,t.pendingProps),e.flags|=2,cn(t),t.memoizedState=null,e}function nE(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(st){if(n.mode==="hidden")return e=td(t,n),t.lanes=536870912,Al(null,e);if(Um(t),(e=Ut)?(a=A0(e,On),a=a!==null&&a.data===Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:ty(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Wb(a),n.return=t,t.child=n,Na=t,Ut=null)):a=null,a===null)throw ku(t,e),ko(t);return t.lanes=536870912,null}return td(t,n)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(Um(t),r)if(t.flags&256)t.flags&=-257,t=cv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(ny(),(a&536870912)!==0&&ld(t),ta||ui(e,t,a,!1),r=(a&e.childLanes)!==0,ta||r){if(n=wt,n!==null&&(f=In(n,a),f!==0&&f!==i.retryLane))throw i.retryLane=f,Ra(e,f),Mt(n,e,f),eg;cd(),t=cv(e,t,a)}else e=i.treeContext,Ut=dn(f.nextSibling),Na=t,st=!0,Xo=null,Ls=!1,pn=null,On=!1,e!==null&&ay(t,e),t=td(t,n),t.flags|=4096;return t}return i=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&ld(t),e=Ps(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function ad(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ip(e,t,a,n,r){if(a.prototype&&typeof a.prototype.render=="function"){var i=k(a)||"Unknown";PN[i]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",i,i),PN[i]=!0)}return t.mode&ka&&ns.recordLegacyContextWarning(t,null),e===null&&(lp(t,t.type),a.contextTypes&&(i=k(a)||"Unknown",JN[i]||(JN[i]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",i)))),wr(t),a=Tm(e,t,a,n,void 0,r),n=Om(),e!==null&&!ta?(Am(e,t,r),Ws(e,t,r)):(st&&n&&pm(t),t.flags|=1,ya(e,t,a,r),t.child)}function uv(e,t,a,n,r,i){return wr(t),ho=-1,Rc=e!==null&&e.type!==t.type,t.updateQueue=null,a=jm(t,n,a,r),Dy(e,t),n=Om(),e!==null&&!ta?(Am(e,t,i),Ws(e,t,i)):(st&&n&&pm(t),t.flags|=1,ya(e,t,a,i),t.child)}function dv(e,t,a,n,r){switch(h(t)){case!1:var i=t.stateNode,f=new t.type(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,f,null);break;case!0:t.flags|=128,t.flags|=65536,i=Error("Simulated error coming from DevTools");var p=r&-r;if(t.lanes|=p,f=wt,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=op(p),rp(p,f,t,on(i,t)),Bu(t,p)}if(wr(t),t.stateNode===null){if(f=Fo,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==js)&&!XN.has(a)&&(XN.add(a),p=i===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof i!="object"?" However, it is set to a "+typeof i+".":i.$$typeof===th?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",k(a)||"Component",p)),typeof i=="object"&&i!==null&&(f=jt(i)),i=new a(n,f),t.mode&ka){Se(!0);try{i=new a(n,f)}finally{Se(!1)}}if(f=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Kh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=LN,typeof a.getDerivedStateFromProps=="function"&&f===null&&(f=k(a)||"Component",BN.has(f)||(BN.add(f),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,i.state===null?"null":"undefined",f))),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"){var v=p=f=null;if(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0?f="componentWillMount":typeof i.UNSAFE_componentWillMount=="function"&&(f="UNSAFE_componentWillMount"),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof i.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(v="UNSAFE_componentWillUpdate"),f!==null||p!==null||v!==null){i=k(a)||"Component";var S=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";YN.has(i)||(YN.add(i),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
137
|
+
|
|
138
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
139
|
+
|
|
140
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
141
|
+
https://react.dev/link/unsafe-component-lifecycles`,i,S,f!==null?`
|
|
142
|
+
`+f:"",p!==null?`
|
|
143
|
+
`+p:"",v!==null?`
|
|
144
|
+
`+v:""))}}i=t.stateNode,f=k(a)||"Component",i.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",f):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",f)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),i.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),a.childContextTypes&&!FN.has(a)&&(FN.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",f)),a.contextTypes&&!IN.has(a)&&(IN.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",f)),typeof i.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),a.prototype&&a.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",k(a)||"A pure component"),typeof i.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof i.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof i.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof i.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f),p=i.props!==n,i.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f),i.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof i.getSnapshotBeforeUpdate!="function"||typeof i.componentDidUpdate=="function"||$N.has(a)||($N.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(a))),typeof i.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof i.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f),(p=i.state)&&(typeof p!="object"||oa(p))&&console.error("%s.state: must be set to an object or null",f),typeof i.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f),i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},Dm(t),f=a.contextType,i.context=typeof f=="object"&&f!==null?jt(f):Fo,i.state===n&&(f=k(a)||"Component",qN.has(f)||(qN.add(f),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",f))),t.mode&ka&&ns.recordLegacyContextWarning(t,i),ns.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(np(t,a,f,n),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",B(t)||"Component"),Kh.enqueueReplaceState(i,i.state,null)),Cl(t,n,i,r),Ul(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==Le&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var V=t.memoizedProps;p=kr(a,V),i.props=p;var M=i.context;v=a.contextType,f=Fo,typeof v=="object"&&v!==null&&(f=jt(v)),S=a.getDerivedStateFromProps,v=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function",V=t.pendingProps!==V,v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(V||M!==f)&&Wy(t,i,n,f),Ko=!1;var T=t.memoizedState;i.state=T,Cl(t,n,i,r),Ul(),M=t.memoizedState,V||T!==M||Ko?(typeof S=="function"&&(np(t,a,S,n),M=t.memoizedState),(p=Ko||Ky(t,a,p,n,T,M,f))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==Le&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==Le&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=M),i.props=n,i.state=M,i.context=f,i=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==Le&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Rm(e,t),f=t.memoizedProps,v=kr(a,f),i.props=v,S=t.pendingProps,T=i.context,M=a.contextType,p=Fo,typeof M=="object"&&M!==null&&(p=jt(M)),V=a.getDerivedStateFromProps,(M=typeof V=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==S||T!==p)&&Wy(t,i,n,p),Ko=!1,T=t.memoizedState,i.state=T,Cl(t,n,i,r),Ul();var Y=t.memoizedState;f!==S||T!==Y||Ko||e!==null&&e.dependencies!==null&&Cu(e.dependencies)?(typeof V=="function"&&(np(t,a,V,n),Y=t.memoizedState),(v=Ko||Ky(t,a,v,n,T,Y,p)||e!==null&&e.dependencies!==null&&Cu(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,Y,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,Y,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=Y),i.props=n,i.state=Y,i.context=p,i=v):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,ad(e,t),f=(t.flags&128)!==0,p||f){if(p=t.stateNode,xt(t),f&&typeof a.getDerivedStateFromError!="function")a=null,Ba=-1;else if(a=pN(p),t.mode&ka){Se(!0);try{pN(p)}finally{Se(!1)}}t.flags|=1,e!==null&&f?(t.child=Yr(t,e.child,null,r),t.child=Yr(t,null,a,r)):ya(e,t,a,r),t.memoizedState=p.state,e=t.child}else e=Ws(e,t,r);return r=t.stateNode,i&&r.props!==n&&(Ji||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",B(t)||"a component"),Ji=!0),e}function fv(e,t,a,n){return Sr(),t.flags|=256,ya(e,t,a,n),t.child}function lp(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
145
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=k(t)||"Unknown",KN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),KN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=k(t)||"Unknown",ZN[t]||(console.error("%s: Function components do not support contextType.",t),ZN[t]=!0))}function cp(e){return{baseLanes:e,cachePool:uy()}}function up(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=an),e}function mv(e,t,a){var n,r=t.pendingProps;d(t)&&(t.flags|=128);var i=!1,f=(t.flags&128)!==0;if((n=f)||(n=e!==null&&e.memoizedState===null?!1:(Ft.current&Ec)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(st){if(i?Oo(t):Ao(t),(e=Ut)?(a=A0(e,On),a=a!==null&&a.data!==Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:ty(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Wb(a),n.return=t,t.child=n,Na=t,Ut=null)):a=null,a===null)throw ku(t,e),ko(t);return qp(a)?t.lanes=32:t.lanes=536870912,null}var p=r.children;if(r=r.fallback,i){Ao(t);var v=t.mode;return p=nd({mode:"hidden",children:p},v),r=xr(r,v,a,null),p.return=t,r.return=t,p.sibling=r,t.child=p,r=t.child,r.memoizedState=cp(a),r.childLanes=up(e,n,a),t.memoizedState=tg,Al(null,r)}return Oo(t),dp(t,p)}var S=e.memoizedState;if(S!==null){var V=S.dehydrated;if(V!==null){if(f)t.flags&256?(Oo(t),t.flags&=-257,t=fp(e,t,a)):t.memoizedState!==null?(Ao(t),t.child=e.child,t.flags|=128,t=null):(Ao(t),p=r.fallback,v=t.mode,r=nd({mode:"visible",children:r.children},v),p=xr(p,v,a,null),p.flags|=2,r.return=t,p.return=t,r.sibling=p,t.child=r,Yr(t,e.child,null,a),r=t.child,r.memoizedState=cp(a),r.childLanes=up(e,n,a),t.memoizedState=tg,t=Al(null,r));else if(Oo(t),ny(),(a&536870912)!==0&&ld(t),qp(V)){if(n=V.nextSibling&&V.nextSibling.dataset,n){p=n.dgst;var M=n.msg;v=n.stck;var T=n.cstck}i=M,n=p,r=v,V=T,p=i,v=V,p=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=r||"",p.digest=n,n=v===void 0?null:v,r={value:p,source:null,stack:n},typeof n=="string"&&Ah.set(p,r),wl(r),t=fp(e,t,a)}else if(ta||ui(e,t,a,!1),n=(a&e.childLanes)!==0,ta||n){if(n=wt,n!==null&&(r=In(n,a),r!==0&&r!==S.retryLane))throw S.retryLane=r,Ra(e,r),Mt(n,e,r),eg;Yp(V)||cd(),t=fp(e,t,a)}else Yp(V)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ut=dn(V.nextSibling),Na=t,st=!0,Xo=null,Ls=!1,pn=null,On=!1,e!==null&&ay(t,e),t=dp(t,r.children),t.flags|=4096);return t}}return i?(Ao(t),p=r.fallback,v=t.mode,T=e.child,V=T.sibling,r=Ps(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,V!==null?p=Ps(V,p):(p=xr(p,v,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,Al(null,r),r=t.child,p=e.child.memoizedState,p===null?p=cp(a):(v=p.cachePool,v!==null?(T=Kt._currentValue,v=v.parent!==T?{parent:T,pool:T}:v):v=uy(),p={baseLanes:p.baseLanes|a,cachePool:v}),r.memoizedState=p,r.childLanes=up(e,n,a),t.memoizedState=tg,Al(e.child,r)):(S!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&ld(t),Oo(t),a=e.child,e=a.sibling,a=Ps(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function dp(e,t){return t=nd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nd(e,t){return e=w(22,e,null,t),e.lanes=0,e}function fp(e,t,a){return Yr(t,e.child,null,a),e=dp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pv(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ym(e.return,t,a)}function mp(e,t,a,n,r,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=r,f.treeForkCount=i)}function hv(e,t,a){var n=t.pendingProps,r=n.revealOrder,i=n.tail,f=n.children,p=Ft.current;if((n=(p&Ec)!==0)?(p=p&Xi|Ec,t.flags|=128):p&=Xi,ce(Ft,p,t),p=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!WN[p])if(WN[p]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);p=i??"null",tf[p]||(i==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(tf[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):i!=="visible"&&i!=="collapsed"&&i!=="hidden"?(tf[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',i)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(tf[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(oa(f)){for(p=0;p<f.length;p++)if(!xy(f[p],p))break e}else if(p=re(f),typeof p=="function"){if(p=p.call(f))for(var v=p.next(),S=0;!v.done;v=p.next()){if(!xy(v.value,S))break e;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(ya(e,t,f,a),st?(_o(),f=cc):f=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pv(e,a,t);else if(e.tag===19)pv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&$u(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),mp(t,!1,r,a,i,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&$u(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}mp(t,!0,a,null,i,f);break;case"together":mp(t,!1,null,null,void 0,f);break;default:t.memoizedState=null}return t.child}function Ws(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ba=-1,tr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ui(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Ps(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ps(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function pp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Cu(e)))}function sE(e,t,a){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Uo(t,Kt,e.memoizedState.cache),Sr();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Uo(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var n=t.stateNode;n.effectDuration=-0,n.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Um(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Oo(t),t.flags|=128,null):(a&t.child.childLanes)!==0?mv(e,t,a):(Oo(t),e=Ws(e,t,a),e!==null?e.sibling:null);Oo(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ui(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return hv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ce(Ft,Ft.current,t),n)break;return null;case 22:return t.lanes=0,iv(e,t,a,t.pendingProps);case 24:Uo(t,Kt,e.memoizedState.cache)}return Ws(e,t,a)}function hp(e,t,a){if(t._debugNeedsRemount&&e!==null){a=dm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var n=t.return;if(n===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===n.child)n.child=a;else{var r=n.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ta=!0;else{if(!pp(e,a)&&(t.flags&128)===0)return ta=!1,sE(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,(n=st)&&(_o(),n=(t.flags&1048576)!==0),n&&(n=t.index,_o(),ey(t,cc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=Co(t.elementType),t.type=e,typeof e=="function")um(e)?(n=kr(e,n),t.tag=1,t.type=e=vr(e),t=dv(null,t,e,n,a)):(t.tag=0,lp(t,e),t.type=e=vr(e),t=ip(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===Zl){t.tag=11,t.type=e=cm(e),t=sv(null,t,e,n,a);break e}else if(r===wd){t.tag=14,t=ov(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===fn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=k(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return ip(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=kr(n,t.pendingProps),dv(e,t,n,r,a);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");n=t.pendingProps;var i=t.memoizedState;r=i.element,Rm(e,t),Cl(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Uo(t,Kt,n),n!==i.cache&&vm(t,[Kt],a,!0),Ul(),n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=fv(e,t,n,a);break e}else if(n!==r){r=on(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),wl(r),t=fv(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ut=dn(e.firstChild),Na=t,st=!0,Xo=null,Ls=!1,pn=null,On=!0,a=kN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Sr(),n===r){t=Ws(e,t,a);break e}ya(e,t,n,a)}t=t.child}return t;case 26:return ad(e,t),e===null?(a=B0(t.type,null,t.pendingProps,null))?t.memoizedState=a:st||(a=t.type,e=t.pendingProps,n=ne(Bo.current),n=md(n).createElement(a),n[xa]=t,n[za]=e,va(n,a,e),Ee(n),t.stateNode=n):t.memoizedState=B0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&st&&(n=ne(Bo.current),r=ue(),n=t.stateNode=L0(t.type,t.pendingProps,n,r,!1),Ls||(r=R0(n,t.type,t.pendingProps,r),r!==null&&(Nr(t,0).serverProps=r)),Na=t,On=!0,r=Ut,Lo(t.type)?(Eg=r,Ut=dn(n.firstChild)):Ut=r),ya(e,t,t.pendingProps.children,a),ad(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&st&&(i=ue(),n=em(t.type,i.ancestorInfo),r=Ut,(f=!r)||(f=FE(r,t.type,t.pendingProps,On),f!==null?(t.stateNode=f,Ls||(i=R0(f,t.type,t.pendingProps,i),i!==null&&(Nr(t,0).serverProps=i)),Na=t,Ut=dn(f.firstChild),On=!1,i=!0):i=!1,f=!i),f&&(n&&ku(t,r),ko(t))),ve(t),r=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,n=i.children,Bp(r,i)?n=null:f!==null&&Bp(r,f)&&(t.flags|=32),t.memoizedState!==null&&(r=Tm(e,t,Z4,null,null,a),Yc._currentValue=r),ad(e,t),ya(e,t,n,a),t.child;case 6:return e===null&&st&&(a=t.pendingProps,e=ue(),n=e.ancestorInfo.current,a=n!=null?yu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ut,(n=!e)||(n=XE(e,t.pendingProps,On),n!==null?(t.stateNode=n,Na=t,Ut=null,n=!0):n=!1,n=!n),n&&(a&&ku(t,e),ko(t))),null;case 13:return mv(e,t,a);case 4:return ge(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Yr(t,null,n,a):ya(e,t,n,a),t.child;case 11:return sv(e,t,t.type,t.pendingProps,a);case 7:return ya(e,t,t.pendingProps,a),t.child;case 8:return ya(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,n=t.stateNode,n.effectDuration=-0,n.passiveEffectDuration=-0,ya(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,i=r.value,"value"in r||e1||(e1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Uo(t,n,i),ya(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),wr(t),r=jt(r),n=Yh(n,r,void 0),t.flags|=1,ya(e,t,n,a),t.child;case 14:return ov(e,t,t.type,t.pendingProps,a);case 15:return rv(e,t,t.type,t.pendingProps,a);case 19:return hv(e,t,a);case 31:return nE(e,t,a);case 22:return iv(e,t,a,t.pendingProps);case 24:return wr(t),n=jt(Kt),e===null?(r=wm(),r===null&&(r=wt,i=xm(),r.pooledCache=i,Er(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},Dm(t),Uo(t,Kt,r)):((e.lanes&a)!==0&&(Rm(e,t),Cl(t,null,null,a),Ul()),r=e.memoizedState,i=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Uo(t,Kt,n)):(n=i.cache,Uo(t,Kt,n),n!==r.cache&&vm(t,[Kt],a,!0))),ya(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eo(e){e.flags|=4}function gp(e,t,a,n,r){if((t=(e.mode&DR)!==Le)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Qv())e.flags|=8192;else throw $r=Pd,Gh}else e.flags&=-16777217}function gv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Ln)!==Wr)e.flags&=-16777217;else if(e.flags|=16777216,!I0(t))if(Qv())e.flags|=8192;else throw $r=Pd,Gh}function sd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xa():536870912,e.lanes|=t,Xr|=t)}function Vl(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Qe)!==Le){for(var r=e.selfBaseDuration,i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,r+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Qe)!==Le){r=e.actualDuration,i=e.selfBaseDuration;for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,n|=f.subtreeFlags,n|=f.flags,r+=f.actualDuration,i+=f.treeBaseDuration,f=f.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function oE(e,t,a){var n=t.pendingProps;switch(hm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Js(Kt,t),J(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ci(t)?(bm(),eo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gm())),Et(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(eo(t),i!==null?(Et(t),gv(t,i)):(Et(t),gp(t,r,null,n,a))):i?i!==e.memoizedState?(eo(t),Et(t),gv(t,i)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&eo(t),Et(t),gp(t,r,e,n,a)),null;case 27:if(pe(t),a=ne(Bo.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}e=ue(),ci(t)?sy(t):(e=L0(r,n,a,e,!0),t.stateNode=e,eo(t))}return Et(t),null;case 5:if(pe(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}var f=ue();if(ci(t))sy(t);else{switch(i=ne(Bo.current),em(r,f.ancestorInfo),f=f.context,i=md(i),f){case ol:i=i.createElementNS(Ui,r);break;case Sf:i=i.createElementNS(Cd,r);break;default:switch(r){case"svg":i=i.createElementNS(Ui,r);break;case"math":i=i.createElementNS(Cd,r);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||ts.call(E1,r)||(E1[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}i[xa]=t,i[za]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(va(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&eo(t)}}return Et(t),gp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ne(Bo.current),a=ue(),ci(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Ls,n=null,i=Na,i!==null)switch(i.tag){case 3:r&&(r=M0(e,a,n),r!==null&&(Nr(t,0).serverProps=r));break;case 27:case 5:n=i.memoizedProps,r&&(r=M0(e,a,n),r!==null&&(Nr(t,0).serverProps=r))}e[xa]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||N0(e.nodeValue,a)),e||ko(t,!0)}else r=a.ancestorInfo.current,r!=null&&yu(n,r.tag,a.ancestorInfo.implicitRootScope),e=md(e).createTextNode(n),e[xa]=t,t.stateNode=e}return Et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=ci(t),a!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[xa]=t,Et(t),(t.mode&Qe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else bm(),Sr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Qe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(cn(t),t):(cn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Et(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=n,i=ci(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");i[xa]=t,Et(t),(t.mode&Qe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else bm(),Sr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Qe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(cn(t),t):(cn(t),null)}return cn(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Qe)!==Le&&Rl(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),sd(t,t.updateQueue),Et(t),(t.mode&Qe)!==Le&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return J(t),e===null&&Op(t.stateNode.containerInfo),Et(t),null;case 10:return Js(t.type,t),Et(t),null;case 19:if(ee(Ft,t),n=t.memoizedState,n===null)return Et(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)Vl(n,!1);else{if(Vt!==bo||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=$u(e),i!==null){for(t.flags|=128,Vl(n,!1),e=i.updateQueue,t.updateQueue=e,sd(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Kb(a,e),a=a.sibling;return ce(Ft,Ft.current&Xi|Ec,t),st&&Zs(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&fa()>cf&&(t.flags|=128,r=!0,Vl(n,!1),t.lanes=4194304)}else{if(!r)if(e=$u(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,sd(t,e),Vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!st)return Et(t),null}else 2*fa()-n.renderingStartTime>cf&&a!==536870912&&(t.flags|=128,r=!0,Vl(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=fa(),e.sibling=null,a=Ft.current,a=r?a&Xi|Ec:a&Xi,ce(Ft,a,t),st&&Zs(t,n.treeForkCount),e):(Et(t),null);case 22:case 23:return cn(t),km(t),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),a=t.updateQueue,a!==null&&sd(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&ee(Hr,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Js(Kt,t),Et(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function rE(e,t){switch(hm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==Le&&Rl(t),t):null;case 3:return Js(Kt,t),J(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(cn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==Le&&Rl(t),t):null;case 13:if(cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==Le&&Rl(t),t):null;case 19:return ee(Ft,t),null;case 4:return J(t),null;case 10:return Js(t.type,t),null;case 22:case 23:return cn(t),km(t),e!==null&&ee(Hr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==Le&&Rl(t),t):null;case 24:return Js(Kt,t),null;case 25:return null;default:return null}}function bv(e,t){switch(hm(t),t.tag){case 3:Js(Kt,t),J(t);break;case 26:case 27:case 5:pe(t);break;case 4:J(t);break;case 31:t.memoizedState!==null&&cn(t);break;case 13:cn(t);break;case 19:ee(Ft,t);break;case 10:Js(t.type,t);break;case 22:case 23:cn(t),km(t),e!==null&&ee(Hr,t);break;case 24:Js(Kt,t)}}function Ds(e){return(e.mode&Qe)!==Le}function yv(e,t){Ds(e)?(Es(),Ml(t,e),ws()):Ml(t,e)}function bp(e,t,a){Ds(e)?(Es(),hi(a,e,t),ws()):hi(a,e,t)}function Ml(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&$a)!==Jd&&(al=!0),n=he(t,TR,a),(e&$a)!==Jd&&(al=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&gn)!==0?"useLayoutEffect":(a.tag&$a)!==0?"useInsertionEffect":"useEffect";var f=void 0;f=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
|
|
146
|
+
|
|
147
|
+
It looks like you wrote `+i+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+i+`(() => {
|
|
150
|
+
async function fetchData() {
|
|
151
|
+
// You can await here
|
|
152
|
+
const response = await MyAPI.getData(someId);
|
|
153
|
+
// ...
|
|
154
|
+
}
|
|
155
|
+
fetchData();
|
|
156
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
157
|
+
|
|
158
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,he(t,function(p,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,v)},i,f)}a=a.next}while(a!==r)}}catch(p){ht(t,t.return,p)}}function hi(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){var f=n.inst,p=f.destroy;p!==void 0&&(f.destroy=void 0,(e&$a)!==Jd&&(al=!0),r=t,he(r,jR,r,a,p),(e&$a)!==Jd&&(al=!1))}n=n.next}while(n!==i)}}catch(v){ht(t,t.return,v)}}function vv(e,t){Ds(e)?(Es(),Ml(t,e),ws()):Ml(t,e)}function yp(e,t,a){Ds(e)?(Es(),hi(a,e,t),ws()):hi(a,e,t)}function xv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ji||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(e)||"instance"));try{he(e,Sy,t,a)}catch(n){ht(e,e.return,n)}}}function iE(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function lE(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ji||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(e)||"instance"));try{var r=kr(e.type,a),i=he(e,iE,t,r,n);a=t1,i!==void 0||a.has(e.type)||(a.add(e.type),he(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",B(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(f){ht(e,e.return,f)}}function Nv(e,t,a){a.props=kr(e.type,e.memoizedProps),a.state=e.memoizedState,Ds(e)?(Es(),he(e,xN,e,t,a),ws()):he(e,xN,e,t,a)}function cE(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(Ds(e))try{Es(),e.refCleanup=t(a)}finally{ws()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",B(e)),t.current=a}}function zl(e,t){try{he(e,cE,e)}catch(a){ht(e,t,a)}}function Rs(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(Ds(e))try{Es(),he(e,n)}finally{ws(e)}else he(e,n)}catch(r){ht(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(Ds(e))try{Es(),he(e,a,null)}finally{ws(e)}else he(e,a,null)}catch(r){ht(e,t,r)}else a.current=null}function Sv(e,t,a,n){var r=e.memoizedProps,i=r.id,f=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Id&&(t="nested-update"),typeof r=="function"&&r(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof f=="function"&&f(i,t,n,a)}function uE(e,t,a,n){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Id&&(t="nested-update"),typeof r=="function"&&r(e,t,n,a)}function wv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{he(e,AE,n,t,a,e)}catch(r){ht(e,e.return,r)}}function vp(e,t,a){try{he(e,ME,e.stateNode,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function Ev(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Lo(e.type)||e.tag===4}function xp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ev(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Lo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Np(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(T0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(T0(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qs));else if(n!==4&&(n===27&&Lo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Np(e,t,a),e=e.sibling;e!==null;)Np(e,t,a),e=e.sibling}function od(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Lo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(od(e,t,a),e=e.sibling;e!==null;)od(e,t,a),e=e.sibling}function dE(e){for(var t,a=e.return;a!==null;){if(Ev(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=xp(e),od(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(C0(a),t.flags&=-33),t=xp(e),od(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=xp(e),Np(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Dv(e){var t=e.stateNode,a=e.memoizedProps;try{he(e,KE,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function Rv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function fE(e,t){if(e=e.containerInfo,Ng=Rf,e=Yb(e),nm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var f=0,p=-1,v=-1,S=0,V=0,M=e,T=null;t:for(;;){for(var Y;M!==a||r!==0&&M.nodeType!==3||(p=f+r),M!==i||n!==0&&M.nodeType!==3||(v=f+n),M.nodeType===3&&(f+=M.nodeValue.length),(Y=M.firstChild)!==null;)T=M,M=Y;for(;;){if(M===e)break t;if(T===a&&++S===r&&(p=f),T===i&&++V===n&&(v=f),(Y=M.nextSibling)!==null)break;M=T,T=M.parentNode}M=Y}a=p===-1||v===-1?null:{start:p,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Sg={focusedElem:e,selectionRange:a},Rf=!1,pa=t;pa!==null;)if(t=pa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pa=e;else for(;pa!==null;){switch(e=t=pa,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&lE(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)$p(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$p(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,pa=e;break}pa=t.return}}function _v(e,t,a){var n=rn(),r=vs(),i=Ns(),f=Ss(),p=a.flags;switch(a.tag){case 0:case 11:case 15:_s(e,a),p&4&&yv(a,gn|Mn);break;case 1:if(_s(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ji||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(a)||"instance")),Ds(a)?(Es(),he(a,qh,a,e),ws()):he(a,qh,a,e);else{var v=kr(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ji||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(a)||"instance")),Ds(a)?(Es(),he(a,bN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate),ws()):he(a,bN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&xv(a),p&512&&zl(a,a.return);break;case 3:if(t=Ks(),_s(e,a),p&64&&(p=a.updateQueue,p!==null)){if(v=null,a.child!==null)switch(a.child.tag){case 27:case 5:v=a.child.stateNode;break;case 1:v=a.child.stateNode}try{he(a,Sy,p,v)}catch(V){ht(a,a.return,V)}}e.effectDuration+=ju(t);break;case 27:t===null&&p&4&&Dv(a);case 26:case 5:if(_s(e,a),t===null){if(p&4)wv(a);else if(p&64){e=a.type,t=a.memoizedProps,v=a.stateNode;try{he(a,VE,v,e,t,a)}catch(V){ht(a,a.return,V)}}}p&512&&zl(a,a.return);break;case 12:if(p&4){p=Ks(),_s(e,a),e=a.stateNode,e.effectDuration+=Dl(p);try{he(a,Sv,a,t,Qo,e.effectDuration)}catch(V){ht(a,a.return,V)}}else _s(e,a);break;case 31:_s(e,a),p&4&&Cv(e,a);break;case 13:_s(e,a),p&4&&Tv(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=NE.bind(null,a),QE(e,p))));break;case 22:if(p=a.memoizedState!==null||go,!p){t=t!==null&&t.memoizedState!==null||aa,v=go;var S=aa;go=p,(aa=t)&&!S?(ks(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&Su(a,Oe,Me)):_s(e,a),go=v,aa=S}break;case 30:break;default:_s(e,a)}(a.mode&Qe)!==Le&&0<=Oe&&0<=Me&&((zt||.05<At)&&bs(a,Oe,Me,At,Ot),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Me-Oe&&(Rv(a.return.alternate,a.return)||gs(a,Oe,Me,"Mount"))),ln(n),xs(r),Ot=i,zt=f}function kv(e){var t=e.alternate;t!==null&&(e.alternate=null,kv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&O(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function to(e,t,a){for(a=a.child;a!==null;)Uv(e,t,a),a=a.sibling}function Uv(e,t,a){if(_a&&typeof _a.onCommitFiberUnmount=="function")try{_a.onCommitFiberUnmount(_i,a)}catch(S){As||(As=!0,console.error("React instrumentation encountered an error: %o",S))}var n=rn(),r=vs(),i=Ns(),f=Ss();switch(a.tag){case 26:aa||Rs(a,t),to(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:aa||Rs(a,t);var p=na,v=en;Lo(a.type)&&(na=a.stateNode,en=!1),to(e,t,a),he(a,Fl,a.stateNode),na=p,en=v;break;case 5:aa||Rs(a,t);case 6:if(p=na,v=en,na=null,to(e,t,a),na=p,en=v,na!==null)if(en)try{he(a,HE,na,a.stateNode)}catch(S){ht(a,t,S)}else try{he(a,LE,na,a.stateNode)}catch(S){ht(a,t,S)}break;case 18:na!==null&&(en?(e=na,j0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wi(e)):j0(na,a.stateNode));break;case 4:p=na,v=en,na=a.stateNode.containerInfo,en=!0,to(e,t,a),na=p,en=v;break;case 0:case 11:case 14:case 15:hi($a,a,t),aa||bp(a,t,gn),to(e,t,a);break;case 1:aa||(Rs(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&Nv(a,t,p)),to(e,t,a);break;case 21:to(e,t,a);break;case 22:aa=(p=aa)||a.memoizedState!==null,to(e,t,a),aa=p;break;default:to(e,t,a)}(a.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(a,Oe,Me,At,Ot),ln(n),xs(r),Ot=i,zt=f}function Cv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{he(t,ZE,e)}catch(a){ht(t,t.return,a)}}}function Tv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{he(t,JE,e)}catch(a){ht(t,t.return,a)}}function mE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new a1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new a1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function rd(e,t){var a=mE(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Vs)if(Ki!==null&&Wi!==null)$l(Wi,Ki);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=SE.bind(null,e,n);n.then(r,r)}})}function Ka(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=e,i=t,f=a[n],p=rn(),v=i;e:for(;v!==null;){switch(v.tag){case 27:if(Lo(v.type)){na=v.stateNode,en=!1;break e}break;case 5:na=v.stateNode,en=!1;break e;case 3:case 4:na=v.stateNode.containerInfo,en=!0;break e}v=v.return}if(na===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Uv(r,i,f),na=null,en=!1,(f.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&gs(f,Oe,Me,"Unmount"),ln(p),r=f,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jv(t,e),t=t.sibling}function jv(e,t){var a=rn(),n=vs(),r=Ns(),i=Ss(),f=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ka(t,e),Wa(e),p&4&&(hi($a|Mn,e,e.return),Ml($a|Mn,e),bp(e,e.return,gn|Mn));break;case 1:if(Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),p&64&&go&&(p=e.updateQueue,p!==null&&(f=p.callbacks,f!==null))){var v=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=v===null?f:v.concat(f)}break;case 26:if(v=os,Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),p&4){var S=f!==null?f.memoizedState:null;if(p=e.memoizedState,f===null)if(p===null)if(e.stateNode===null){e:{p=e.type,f=e.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":S=v.getElementsByTagName("title")[0],(!S||S[Wl]||S[xa]||S.namespaceURI===Ui||S.hasAttribute("itemprop"))&&(S=v.createElement(p),v.head.insertBefore(S,v.querySelector("head > title"))),va(S,p,f),S[xa]=e,Ee(S),p=S;break e;case"link":var V=q0("link","href",v).get(p+(f.href||""));if(V){for(var M=0;M<V.length;M++)if(S=V[M],S.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&S.getAttribute("rel")===(f.rel==null?null:f.rel)&&S.getAttribute("title")===(f.title==null?null:f.title)&&S.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){V.splice(M,1);break t}}S=v.createElement(p),va(S,p,f),v.head.appendChild(S);break;case"meta":if(V=q0("meta","content",v).get(p+(f.content||""))){for(M=0;M<V.length;M++)if(S=V[M],nt(f.content,"content"),S.getAttribute("content")===(f.content==null?null:""+f.content)&&S.getAttribute("name")===(f.name==null?null:f.name)&&S.getAttribute("property")===(f.property==null?null:f.property)&&S.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&S.getAttribute("charset")===(f.charSet==null?null:f.charSet)){V.splice(M,1);break t}}S=v.createElement(p),va(S,p,f),v.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}S[xa]=e,Ee(S),p=S}e.stateNode=p}else G0(v,e.type,e.stateNode);else e.stateNode=Y0(v,p,e.memoizedProps);else S!==p?(S===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):S.count--,p===null?G0(v,e.type,e.stateNode):Y0(v,p,e.memoizedProps)):p===null&&e.stateNode!==null&&vp(e,e.memoizedProps,f.memoizedProps)}break;case 27:Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),f!==null&&p&4&&vp(e,e.memoizedProps,f.memoizedProps);break;case 5:if(Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),e.flags&32){v=e.stateNode;try{he(e,C0,v)}catch(xe){ht(e,e.return,xe)}}p&4&&e.stateNode!=null&&(v=e.memoizedProps,vp(e,v,f!==null?f.memoizedProps:v)),p&1024&&(ag=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ka(t,e),Wa(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,f=f!==null?f.memoizedProps:p,v=e.stateNode;try{he(e,zE,v,f,p)}catch(xe){ht(e,e.return,xe)}}break;case 3:if(v=Ks(),wf=null,S=os,os=pd(t.containerInfo),Ka(t,e),os=S,Wa(e),p&4&&f!==null&&f.memoizedState.isDehydrated)try{he(e,PE,t.containerInfo)}catch(xe){ht(e,e.return,xe)}ag&&(ag=!1,Ov(e)),t.effectDuration+=ju(v);break;case 4:p=os,os=pd(e.stateNode.containerInfo),Ka(t,e),Wa(e),os=p;break;case 12:p=Ks(),Ka(t,e),Wa(e),e.stateNode.effectDuration+=Dl(p);break;case 31:Ka(t,e),Wa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,rd(e,p)));break;case 13:Ka(t,e),Wa(e),e.child.flags&8192&&e.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(lf=fa()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,rd(e,p)));break;case 22:v=e.memoizedState!==null;var T=f!==null&&f.memoizedState!==null,Y=go,fe=aa;if(go=Y||v,aa=fe||T,Ka(t,e),aa=fe,go=Y,T&&!v&&!Y&&!fe&&(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&Su(e,Oe,Me),Wa(e),p&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~lc:t._visibility|lc,!v||f===null||T||go||aa||(Ur(e),(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&gs(e,Oe,Me,"Disconnect")),f=null,t=e;;){if(t.tag===5||t.tag===26){if(f===null){T=f=t;try{S=T.stateNode,v?he(T,$E,S):he(T,GE,T.stateNode,T.memoizedProps)}catch(xe){ht(T,T.return,xe)}}}else if(t.tag===6){if(f===null){T=t;try{V=T.stateNode,v?he(T,YE,V):he(T,IE,V,T.memoizedProps)}catch(xe){ht(T,T.return,xe)}}}else if(t.tag===18){if(f===null){T=t;try{M=T.stateNode,v?he(T,BE,M):he(T,qE,T.stateNode)}catch(xe){ht(T,T.return,xe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;f===t&&(f=null),t=t.return}f===t&&(f=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,rd(e,f))));break;case 19:Ka(t,e),Wa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,rd(e,p)));break;case 30:break;case 21:break;default:Ka(t,e),Wa(e)}(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&((zt||.05<At)&&bs(e,Oe,Me,At,Ot),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Me-Oe&&(Rv(e.return.alternate,e.return)||gs(e,Oe,Me,"Mount"))),ln(a),xs(n),Ot=r,zt=i}function Wa(e){var t=e.flags;if(t&2){try{he(e,dE,e)}catch(a){ht(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ov(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ov(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _s(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_v(e,t.alternate,t),t=t.sibling}function Av(e){var t=rn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 14:case 15:bp(e,e.return,gn),Ur(e);break;case 1:Rs(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Nv(e,e.return,i),Ur(e);break;case 27:he(e,Fl,e.stateNode);case 26:case 5:Rs(e,e.return),Ur(e);break;case 22:e.memoizedState===null&&Ur(e);break;case 30:Ur(e);break;default:Ur(e)}(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(e,Oe,Me,At,Ot),ln(t),xs(a),Ot=n,zt=r}function Ur(e){for(e=e.child;e!==null;)Av(e),e=e.sibling}function Vv(e,t,a,n){var r=rn(),i=vs(),f=Ns(),p=Ss(),v=a.flags;switch(a.tag){case 0:case 11:case 15:ks(e,a,n),yv(a,gn);break;case 1:if(ks(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&he(a,qh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{he(a,P4,t,e)}catch(S){ht(a,a.return,S)}}n&&v&64&&xv(a),zl(a,a.return);break;case 27:Dv(a);case 26:case 5:ks(e,a,n),n&&t===null&&v&4&&wv(a),zl(a,a.return);break;case 12:if(n&&v&4){v=Ks(),ks(e,a,n),n=a.stateNode,n.effectDuration+=Dl(v);try{he(a,Sv,a,t,Qo,n.effectDuration)}catch(S){ht(a,a.return,S)}}else ks(e,a,n);break;case 31:ks(e,a,n),n&&v&4&&Cv(e,a);break;case 13:ks(e,a,n),n&&v&4&&Tv(e,a);break;case 22:a.memoizedState===null&&ks(e,a,n),zl(a,a.return);break;case 30:break;default:ks(e,a,n)}(a.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(a,Oe,Me,At,Ot),ln(r),xs(i),Ot=f,zt=p}function ks(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Vv(e,t.alternate,t,a),t=t.sibling}function Sp(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&Er(e),a!=null&&El(a))}function wp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Er(t),e!=null&&El(e))}function es(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var i=t.sibling;Mv(e,t,a,n,i!==null?i.actualStartTime:r),t=i}}function Mv(e,t,a,n,r){var i=rn(),f=vs(),p=Ns(),v=Ss(),S=Go,V=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Qe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&wu(t,t.actualStartTime,r,ra,a),es(e,t,a,n,r),V&2048&&vv(t,Ya|Mn);break;case 1:(t.mode&Qe)!==Le&&0<t.actualStartTime&&((t.flags&128)!==0?om(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&wu(t,t.actualStartTime,r,ra,a)),es(e,t,a,n,r);break;case 3:var M=Ks(),T=ra;ra=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,es(e,t,a,n,r),ra=T,V&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(Er(n),a!=null&&El(a))),e.passiveEffectDuration+=ju(M);break;case 12:if(V&2048){V=Ks(),es(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=Dl(V);try{he(t,uE,t,t.alternate,Qo,e.passiveEffectDuration)}catch(Y){ht(t,t.return,Y)}}else es(e,t,a,n,r);break;case 31:V=ra,M=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,M!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ra=!1,M=M.hydrationErrors,M!==null&&om(t,t.actualStartTime,r,M)):ra=!0):ra=!1,es(e,t,a,n,r),ra=V;break;case 13:V=ra,M=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,M===null||M.dehydrated===null||T!==null&&T.dehydrated!==null?ra=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ra=!1,M=M.hydrationErrors,M!==null&&om(t,t.actualStartTime,r,M)):ra=!0),es(e,t,a,n,r),ra=V;break;case 23:break;case 22:T=t.stateNode,M=t.alternate,t.memoizedState!==null?T._visibility&oo?es(e,t,a,n,r):Ll(e,t,a,n,r):T._visibility&oo?es(e,t,a,n,r):(T._visibility|=oo,gi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Qe)===Le||ra||(e=t.actualStartTime,0<=e&&.05<r-e&&Su(t,e,r),0<=Oe&&0<=Me&&.05<Me-Oe&&Su(t,Oe,Me))),V&2048&&Sp(M,t);break;case 24:es(e,t,a,n,r),V&2048&&wp(t.alternate,t);break;default:es(e,t,a,n,r)}(t.mode&Qe)!==Le&&((e=!ra&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&gs(t,a,r,"Mount")),0<=Oe&&0<=Me&&((zt||.05<At)&&bs(t,Oe,Me,At,Ot),e&&.05<Me-Oe&&gs(t,Oe,Me,"Mount"))),ln(i),xs(f),Ot=p,zt=v,Go=S}function gi(e,t,a,n,r,i){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var f=t.sibling;zv(e,t,a,n,r,f!==null?f.actualStartTime:i),t=f}}function zv(e,t,a,n,r,i){var f=rn(),p=vs(),v=Ns(),S=Ss(),V=Go;r&&(t.mode&Qe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&wu(t,t.actualStartTime,i,ra,a);var M=t.flags;switch(t.tag){case 0:case 11:case 15:gi(e,t,a,n,r,i),vv(t,Ya);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&oo?gi(e,t,a,n,r,i):Ll(e,t,a,n,i):(T._visibility|=oo,gi(e,t,a,n,r,i)),r&&M&2048&&Sp(t.alternate,t);break;case 24:gi(e,t,a,n,r,i),r&&M&2048&&wp(t.alternate,t);break;default:gi(e,t,a,n,r,i)}(t.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(t,Oe,Me,At,Ot),ln(f),xs(p),Ot=v,zt=S,Go=V}function Ll(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var i=t.child;i!==null;){t=i.sibling;var f=e,p=a,v=n,S=t!==null?t.actualStartTime:r,V=Go;(i.mode&Qe)!==Le&&0<i.actualStartTime&&(i.flags&1)!==0&&wu(i,i.actualStartTime,S,ra,p);var M=i.flags;switch(i.tag){case 22:Ll(f,i,p,v,S),M&2048&&Sp(i.alternate,i);break;case 24:Ll(f,i,p,v,S),M&2048&&wp(i.alternate,i);break;default:Ll(f,i,p,v,S)}Go=V,i=t}}function bi(e,t,a){if(e.subtreeFlags&kc)for(e=e.child;e!==null;)Lv(e,t,a),e=e.sibling}function Lv(e,t,a){switch(e.tag){case 26:bi(e,t,a),e.flags&kc&&e.memoizedState!==null&&tD(a,os,e.memoizedState,e.memoizedProps);break;case 5:bi(e,t,a);break;case 3:case 4:var n=os;os=pd(e.stateNode.containerInfo),bi(e,t,a),os=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=kc,kc=16777216,bi(e,t,a),kc=n):bi(e,t,a));break;default:bi(e,t,a)}}function Hv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=rn();pa=n,Yv(n,e),(n.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&gs(n,Oe,Me,"Unmount"),ln(r)}Hv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bv(e),e=e.sibling}function Bv(e){var t=rn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:Hl(e),e.flags&2048&&yp(e,e.return,Ya|Mn);break;case 3:var i=Ks();Hl(e),e.stateNode.passiveEffectDuration+=ju(i);break;case 12:i=Ks(),Hl(e),e.stateNode.passiveEffectDuration+=Dl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&oo&&(e.return===null||e.return.tag!==13)?(i._visibility&=~oo,id(e),(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&gs(e,Oe,Me,"Disconnect")):Hl(e);break;default:Hl(e)}(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(e,Oe,Me,At,Ot),ln(t),xs(a),zt=r,Ot=n}function id(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=rn();pa=n,Yv(n,e),(n.mode&Qe)!==Le&&0<=Oe&&0<=Me&&.05<Me-Oe&&gs(n,Oe,Me,"Unmount"),ln(r)}Hv(e)}for(e=e.child;e!==null;)$v(e),e=e.sibling}function $v(e){var t=rn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:yp(e,e.return,Ya),id(e);break;case 22:var i=e.stateNode;i._visibility&oo&&(i._visibility&=~oo,id(e));break;default:id(e)}(e.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(e,Oe,Me,At,Ot),ln(t),xs(a),zt=r,Ot=n}function Yv(e,t){for(;pa!==null;){var a=pa,n=a,r=t,i=rn(),f=vs(),p=Ns(),v=Ss();switch(n.tag){case 0:case 11:case 15:yp(n,r,Ya);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&Er(r));break;case 24:El(n.memoizedState.cache)}if((n.mode&Qe)!==Le&&0<=Oe&&0<=Me&&(zt||.05<At)&&bs(n,Oe,Me,At,Ot),ln(i),xs(f),zt=v,Ot=p,n=a.child,n!==null)n.return=a,pa=n;else e:for(a=e;pa!==null;){if(n=pa,i=n.sibling,f=n.return,kv(n),n===a){pa=null;break e}if(i!==null){i.return=f,pa=i;break e}pa=f}}}function pE(){zR.forEach(function(e){return e()})}function qv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function un(e){if((ut&ia)!==ha&&Ze!==0)return Ze&-Ze;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Tp()):nn()}function Gv(){if(an===0)if((Ze&536870912)===0||st){var e=Rd;Rd<<=1,(Rd&3932160)===0&&(Rd=262144),an=e}else an=536870912;return e=hn.current,e!==null&&(e.flags|=32),an}function Mt(e,t,a){if(al&&console.error("useInsertionEffect must not schedule updates."),mg&&(ff=!0),(e===wt&&(yt===Ir||yt===Fr)||e.cancelPendingCommit!==null)&&(vi(e,0),Mo(e,Ze,an,!1)),Qa(e,a),(ut&ia)!==ha&&e===wt){if(Os)switch(t.tag){case 0:case 11:case 15:e=Je&&B(Je)||"Unknown",b1.has(e)||(b1.add(e),t=B(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:g1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),g1=!0)}}else Vs&&Fn(e,t,a),EE(t),e===wt&&((ut&ia)===ha&&(ar|=a),Vt===Wo&&Mo(e,Ze,an,!1)),Us(e)}function Iv(e,t,a){if((ut&(ia|bn))!==ha)throw Error("Should not already be working.");if(Ze!==0&&Je!==null){var n=Je,r=fa();switch(cN){case Tc:case Ir:var i=pc;kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,kn,void 0,"primary-light")):console.timeStamp("Suspended",i,r,kn,void 0,"primary-light"));break;case Fr:i=pc,kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,kn,void 0,"primary-light")):console.timeStamp("Action",i,r,kn,void 0,"primary-light"));break;default:kt&&(n=r-pc,3>n||console.timeStamp("Blocked",pc,r,kn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||En(e,t))?gE(e,t):Dp(e,t,!0);var f=a;do{if(i===bo){el&&!a&&Mo(e,t,0,!1),t=yt,pc=Wt(),cN=t;break}else{if(n=fa(),r=e.current.alternate,f&&!hE(r)){Kn(t),r=ma,i=n,!kt||i<=r||(Yt?Yt.run(console.timeStamp.bind(console,"Teared Render",r,i,ct,it,"error")):console.timeStamp("Teared Render",r,i,ct,it,"error")),Cr(t,n),i=Dp(e,t,!1),f=!1;continue}if(i===Gr){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Kn(t),rm(ma,n,t,Yt),Cr(t,n),t=p;e:{n=e,i=f,f=Oc;var v=n.current.memoizedState.isDehydrated;if(v&&(vi(n,p).flags|=256),p=Dp(n,p,!1),p!==Gr){if(og&&!v){n.errorRecoveryDisabledLanes|=i,ar|=i,i=Wo;break e}n=qa,qa=f,n!==null&&(qa===null?qa=n:qa.push.apply(qa,n))}i=p}if(f=!1,i!==Gr)continue;n=fa()}}if(i===Cc){Kn(t),rm(ma,n,t,Yt),Cr(t,n),vi(e,0),Mo(e,t,0,!0);break}e:{switch(a=e,i){case bo:case Cc:throw Error("Root did not complete. This is a bug in React.");case Wo:if((t&4194048)!==t)break;case nf:Kn(t),Ib(ma,n,t,Yt),Cr(t,n),r=t,(r&127)!==0?Yd=n:(r&4194048)!==0&&(qd=n),Mo(a,t,an,!er);break e;case Gr:qa=null;break;case af:case n1:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)Rp(a,r,t,qa,Ac,rf,an,ar,Xr,i,null,null,ma,n);else{if((t&62914560)===t&&(f=lf+r1-fa(),10<f)){if(Mo(a,t,an,!er),Fa(a,0,!0)!==0)break e;rs=t,a.timeoutHandle=D1(Fv.bind(null,a,r,qa,Ac,rf,t,an,ar,Xr,er,i,"Throttled",ma,n),f);break e}Fv(a,r,qa,Ac,rf,t,an,ar,Xr,er,i,null,ma,n)}}}break}while(!0);Us(e)}function Fv(e,t,a,n,r,i,f,p,v,S,V,M,T,Y){e.timeoutHandle=Kr;var fe=t.subtreeFlags,xe=null;if((fe&8192||(fe&16785408)===16785408)&&(xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qs},Lv(t,i,xe),fe=(i&62914560)===i?lf-fa():(i&4194048)===i?o1-fa():0,fe=aD(xe,fe),fe!==null)){rs=i,e.cancelPendingCommit=fe(Rp.bind(null,e,t,i,a,n,r,f,p,v,V,xe,xe.waitingForViewTransition?"Waiting for the previous Animation":0<xe.count?0<xe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":xe.imgCount===1?"Suspended on an Image":0<xe.imgCount?"Suspended on Images":null,T,Y)),Mo(e,i,f,!S);return}Rp(e,t,i,a,n,r,f,p,v,V,xe,M,T,Y)}function hE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!Ha(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mo(e,t,a,n){t&=~rg,t&=~ar,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var i=31-Ma(r),f=1<<i;n[i]=-1,r&=~f}a!==0&&ga(e,a,t)}function yi(){return(ut&(ia|bn))===ha?(Yl(0),!1):!0}function Ep(){if(Je!==null){if(yt===tn)var e=Je.return;else e=Je,Uu(),Vm(e),Ii=null,wc=0,e=Je;for(;e!==null;)bv(e.alternate,e),e=e.return;Je=null}}function Cr(e,t){(e&127)!==0&&(Vr=t),(e&4194048)!==0&&(uo=t),(e&62914560)!==0&&(iN=t),(e&2080374784)!==0&&(lN=t)}function vi(e,t){kt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",it,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",it,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",it,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",it,"primary-light"));var a=ma;if(ma=Wt(),Ze!==0&&0<a){if(Kn(Ze),Vt===af||Vt===Wo)Ib(a,ma,t,Yt);else{var n=ma,r=Yt;if(kt&&!(n<=a)){var i=(t&738197653)===t?"tertiary-dark":"primary-dark",f=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,f,a,n,ct,it,i)):console.timeStamp(f,a,n,ct,it,i)}}Cr(Ze,ma)}if(a=Yt,Yt=null,(t&127)!==0){Yt=dc,r=0<=Hs&&Hs<Vr?Vr:Hs,n=0<=Mr&&Mr<Vr?Vr:Mr,i=0<=n?n:0<=r?r:ma,0<=Yd?(Kn(2),Fb(Yd,i,t,a)):Gd&127,a=r;var p=n,v=fc,S=0<Yi,V=Po===uc,M=Po===$d;if(r=ma,n=dc,i=Lh,f=Hh,kt){if(ct="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,v!==null&&a>p){var T=S?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+v,p,a,ct,it,T)):console.timeStamp(S?"Consecutive":"Event: "+v,p,a,ct,it,T)}r>a&&(p=V?"error":(t&738197653)===t?"tertiary-light":"primary-light",V=M?"Promise Resolved":V?"Cascading Update":5<r-a?"Update Blocked":"Update",M=[],f!=null&&M.push(["Component name",f]),i!=null&&M.push(["Method name",i]),a={start:a,end:r,detail:{devtools:{properties:M,track:ct,trackGroup:it,color:p}}},n?n.run(performance.measure.bind(performance,V,a)):performance.measure(V,a))}Hs=-1.1,Po=0,Hh=Lh=null,Yd=-1.1,Yi=Mr,Mr=-1.1,Vr=Wt()}if((t&4194048)!==0&&(Yt=mc,r=0<=fo&&fo<uo?uo:fo,a=0<=An&&An<uo?uo:An,n=0<=Zo&&Zo<uo?uo:Zo,i=0<=n?n:0<=a?a:ma,0<=qd?(Kn(256),Fb(qd,i,t,Yt)):Gd&4194048,M=n,p=zr,v=0<Jo,S=Bh===$d,i=ma,n=mc,f=oN,V=rN,kt&&(ct="Transition",0<a?a>i&&(a=i):a=i,0<r?r>a&&(r=a):r=a,0<M?M>r&&(M=r):M=r,r>M&&p!==null&&(T=v?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+p,M,r,ct,it,T)):console.timeStamp(v?"Consecutive":"Event: "+p,M,r,ct,it,T)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,ct,it,"primary-dark")):console.timeStamp("Action",r,a,ct,it,"primary-dark")),i>a&&(r=S?"Promise Resolved":5<i-a?"Update Blocked":"Update",M=[],V!=null&&M.push(["Component name",V]),f!=null&&M.push(["Method name",f]),a={start:a,end:i,detail:{devtools:{properties:M,track:ct,trackGroup:it,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),An=fo=-1.1,Bh=0,qd=-1.1,Jo=Zo,Zo=-1.1,uo=Wt()),(t&62914560)!==0&&(Gd&62914560)!==0&&(Kn(4194304),im(iN,ma)),(t&2080374784)!==0&&(Gd&2080374784)!==0&&(Kn(268435456),im(lN,ma)),a=e.timeoutHandle,a!==Kr&&(e.timeoutHandle=Kr,ZR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rs=0,Ep(),wt=e,Je=a=Ps(e.current,null),Ze=t,yt=tn,yn=null,er=!1,el=En(e,t),og=!1,Vt=bo,Xr=an=rg=ar=tr=0,qa=Oc=null,rf=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-Ma(n),i=1<<r,t|=e[r],n&=~i;return $s=t,Eu(),e=Wx(),1e3<e-Kx&&(F.recentlyCreatedOwnerStacks=0,Kx=e),ns.discardPendingWarnings(),a}function Xv(e,t){$e=null,F.H=_c,F.getCurrentStack=null,Os=!1,mn=null,t===Gi||t===Qd?(t=py(),yt=Tc):t===Gh?(t=py(),yt=s1):yt=t===eg?sg:t!==null&&typeof t=="object"&&typeof t.then=="function"?jc:sf,yn=t;var a=Je;a===null?(Vt=Cc,ed(e,on(t,e.current))):a.mode&Qe&&Sm(a)}function Qv(){var e=hn.current;return e===null?!0:(Ze&4194048)===Ze?Vn===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===Vn:!1}function Pv(){var e=F.H;return F.H=_c,e===null?_c:e}function Zv(){var e=F.A;return F.A=MR,e}function ld(e){Yt===null&&(Yt=e._debugTask==null?null:e._debugTask)}function cd(){Vt=Wo,er||(Ze&4194048)!==Ze&&hn.current!==null||(el=!0),(tr&134217727)===0&&(ar&134217727)===0||wt===null||Mo(wt,Ze,an,!1)}function Dp(e,t,a){var n=ut;ut|=ia;var r=Pv(),i=Zv();if(wt!==e||Ze!==t){if(Vs){var f=e.memoizedUpdaters;0<f.size&&($l(e,Ze),f.clear()),la(e,t)}Ac=null,vi(e,t)}t=!1,f=Vt;e:do try{if(yt!==tn&&Je!==null){var p=Je,v=yn;switch(yt){case sg:Ep(),f=nf;break e;case Tc:case Ir:case Fr:case jc:hn.current===null&&(t=!0);var S=yt;if(yt=tn,yn=null,xi(e,p,v,S),a&&el){f=bo;break e}break;default:S=yt,yt=tn,yn=null,xi(e,p,v,S)}}Jv(),f=Vt;break}catch(V){Xv(e,V)}while(!0);return t&&e.shellSuspendCounter++,Uu(),ut=n,F.H=r,F.A=i,Je===null&&(wt=null,Ze=0,Eu()),f}function Jv(){for(;Je!==null;)Kv(Je)}function gE(e,t){var a=ut;ut|=ia;var n=Pv(),r=Zv();if(wt!==e||Ze!==t){if(Vs){var i=e.memoizedUpdaters;0<i.size&&($l(e,Ze),i.clear()),la(e,t)}Ac=null,cf=fa()+i1,vi(e,t)}else el=En(e,t);e:do try{if(yt!==tn&&Je!==null)t:switch(t=Je,i=yn,yt){case sf:yt=tn,yn=null,xi(e,t,i,sf);break;case Ir:case Fr:if(fy(i)){yt=tn,yn=null,Wv(t);break}t=function(){yt!==Ir&&yt!==Fr||wt!==e||(yt=of),Us(e)},i.then(t,t);break e;case Tc:yt=of;break e;case s1:yt=ng;break e;case of:fy(i)?(yt=tn,yn=null,Wv(t)):(yt=tn,yn=null,xi(e,t,i,of));break;case ng:var f=null;switch(Je.tag){case 26:f=Je.memoizedState;case 5:case 27:var p=Je;if(f?I0(f):p.stateNode.complete){yt=tn,yn=null;var v=p.sibling;if(v!==null)Je=v;else{var S=p.return;S!==null?(Je=S,ud(S)):Je=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}yt=tn,yn=null,xi(e,t,i,ng);break;case jc:yt=tn,yn=null,xi(e,t,i,jc);break;case sg:Ep(),Vt=nf;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?Jv():bE();break}catch(V){Xv(e,V)}while(!0);return Uu(),F.H=n,F.A=r,ut=a,Je!==null?bo:(wt=null,Ze=0,Eu(),Vt)}function bE(){for(;Je!==null&&!gD();)Kv(Je)}function Kv(e){var t=e.alternate;(e.mode&Qe)!==Le?(Nm(e),t=he(e,hp,t,e,$s),Sm(e)):t=he(e,hp,t,e,$s),e.memoizedProps=e.pendingProps,t===null?ud(e):Je=t}function Wv(e){var t=he(e,yE,e);e.memoizedProps=e.pendingProps,t===null?ud(e):Je=t}function yE(e){var t=e.alternate,a=(e.mode&Qe)!==Le;switch(a&&Nm(e),e.tag){case 15:case 0:t=uv(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=uv(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:Vm(e);default:bv(t,e),e=Je=Kb(e,$s),t=hp(t,e,$s)}return a&&Sm(e),t}function xi(e,t,a,n){Uu(),Vm(t),Ii=null,wc=0;var r=t.return;try{if(aE(e,r,t,a,Ze)){Vt=Cc,ed(e,on(a,e.current)),Je=null;return}}catch(i){if(r!==null)throw Je=r,i;Vt=Cc,ed(e,on(a,e.current)),Je=null;return}t.flags&32768?(st||n===sf?e=!0:el||(Ze&536870912)!==0?e=!1:(er=e=!0,(n===Ir||n===Fr||n===Tc||n===jc)&&(n=hn.current,n!==null&&n.tag===13&&(n.flags|=16384))),e0(t,e)):ud(t)}function ud(e){var t=e;do{if((t.flags&32768)!==0){e0(t,er);return}var a=t.alternate;if(e=t.return,Nm(t),a=he(t,oE,a,t,$s),(t.mode&Qe)!==Le&&iy(t),a!==null){Je=a;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);Vt===bo&&(Vt=n1)}function e0(e,t){do{var a=rE(e.alternate,e);if(a!==null){a.flags&=32767,Je=a;return}if((e.mode&Qe)!==Le){iy(e),a=e.actualDuration;for(var n=e.child;n!==null;)a+=n.actualDuration,n=n.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Je=e;return}Je=e=a}while(e!==null);Vt=nf,Je=null}function Rp(e,t,a,n,r,i,f,p,v,S,V,M,T,Y){e.cancelPendingCommit=null;do Bl();while(sa!==sr);if(ns.flushLegacyContextWarning(),ns.flushPendingUnsafeLifecycleWarnings(),(ut&(ia|bn))!==ha)throw Error("Should not already be working.");if(Kn(a),S===Gr?rm(T,Y,a,Yt):n!==null?q4(T,Y,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Yt):Y4(T,Y,a,Yt),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(i=t.lanes|t.childLanes,i|=Oh,Ea(e,a,i,f,p,v),e===wt&&(Je=wt=null,Ze=0),tl=t,or=e,rs=a,cg=i,dg=r,m1=n,ug=Y,p1=M,is=uf,h1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,wE(Ri,function(){return Bc=window.event,is===uf&&(is=lg),o0(),null})):(e.callbackNode=null,e.callbackPriority=0),co=null,Qo=Wt(),M!==null&&G4(Y,Qo,M,Yt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null,r=gt.p,gt.p=_n,f=ut,ut|=bn;try{fE(e,t,a)}finally{ut=f,gt.p=r,F.T=n}}sa=c1,t0(),a0(),n0()}}function t0(){if(sa===c1){sa=sr;var e=or,t=tl,a=rs,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null;var r=gt.p;gt.p=_n;var i=ut;ut|=bn;try{Ki=a,Wi=e,Ou(),jv(t,e),Wi=Ki=null,a=Sg;var f=Yb(e.containerInfo),p=a.focusedElem,v=a.selectionRange;if(f!==p&&p&&p.ownerDocument&&$b(p.ownerDocument.documentElement,p)){if(v!==null&&nm(p)){var S=v.start,V=v.end;if(V===void 0&&(V=S),"selectionStart"in p)p.selectionStart=S,p.selectionEnd=Math.min(V,p.value.length);else{var M=p.ownerDocument||document,T=M&&M.defaultView||window;if(T.getSelection){var Y=T.getSelection(),fe=p.textContent.length,xe=Math.min(v.start,fe),Dt=v.end===void 0?xe:Math.min(v.end,fe);!Y.extend&&xe>Dt&&(f=Dt,Dt=xe,xe=f);var lt=Bb(p,xe),U=Bb(p,Dt);if(lt&&U&&(Y.rangeCount!==1||Y.anchorNode!==lt.node||Y.anchorOffset!==lt.offset||Y.focusNode!==U.node||Y.focusOffset!==U.offset)){var j=M.createRange();j.setStart(lt.node,lt.offset),Y.removeAllRanges(),xe>Dt?(Y.addRange(j),Y.extend(U.node,U.offset)):(j.setEnd(U.node,U.offset),Y.addRange(j))}}}}for(M=[],Y=p;Y=Y.parentNode;)Y.nodeType===1&&M.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<M.length;p++){var A=M[p];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}Rf=!!Ng,Sg=Ng=null}finally{ut=i,gt.p=r,F.T=n}}e.current=t,sa=u1}}function a0(){if(sa===u1){sa=sr;var e=h1;if(e!==null){Qo=Wt();var t=lo,a=Qo;!kt||a<=t||console.timeStamp(e,t,a,ct,it,"secondary-light")}e=or,t=tl,a=rs;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var r=gt.p;gt.p=_n;var i=ut;ut|=bn;try{Ki=a,Wi=e,Ou(),_v(e,t.alternate,t),Wi=Ki=null}finally{ut=i,gt.p=r,F.T=n}}e=ug,t=p1,lo=Wt(),e=t===null?e:Qo,t=lo,a=is===ig,n=Yt,co!==null?Xb(e,t,co,!1,n):!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ct,it,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ct,it,a?"error":"secondary-dark")),sa=d1}}function n0(){if(sa===f1||sa===d1){if(sa===f1){var e=lo;lo=Wt();var t=lo,a=is===ig;!kt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ct,it,a?" error":"secondary-light"),is!==ig&&(is=l1)}sa=sr,bD(),e=or;var n=tl;t=rs,a=m1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?sa=df:(sa=sr,tl=or=null,s0(e,e.pendingLanes),Qr=0,Mc=null);var i=e.pendingLanes;if(i===0&&(nr=null),r||c0(e),i=Xn(t),n=n.stateNode,_a&&typeof _a.onCommitFiberRoot=="function")try{var f=(n.current.flags&128)===128;switch(i){case _n:var p=dh;break;case Ms:p=fh;break;case no:p=Ri;break;case kd:p=mh;break;default:p=Ri}_a.onCommitFiberRoot(_i,n,p,f)}catch(M){As||(As=!0,console.error("React instrumentation encountered an error: %o",M))}if(Vs&&e.memoizedUpdaters.clear(),pE(),a!==null){f=F.T,p=gt.p,gt.p=_n,F.T=null;try{var v=e.onRecoverableError;for(n=0;n<a.length;n++){var S=a[n],V=vE(S.stack);he(S.source,v,S.value,V)}}finally{F.T=f,gt.p=p}}(rs&3)!==0&&Bl(),Us(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Fd=!0,e===fg?Vc++:(Vc=0,fg=e)):Vc=0,r||Cr(t,lo),Yl(0)}}function vE(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function s0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,El(t)))}function Bl(){return t0(),a0(),n0(),o0()}function o0(){if(sa!==df)return!1;var e=or,t=cg;cg=0;var a=Xn(rs),n=no>a?no:a;a=F.T;var r=gt.p;try{gt.p=n,F.T=null;var i=dg;dg=null,n=or;var f=rs;if(sa=sr,tl=or=null,rs=0,(ut&(ia|bn))!==ha)throw Error("Cannot flush passive effects while already rendering.");Kn(f),mg=!0,ff=!1;var p=0;if(co=null,p=fa(),is===l1)im(lo,p,UR);else{var v=lo,S=p,V=is===lg;!kt||S<=v||(Yt?Yt.run(console.timeStamp.bind(console,V?"Waiting for Paint":"Waiting",v,S,ct,it,"secondary-light")):console.timeStamp(V?"Waiting for Paint":"Waiting",v,S,ct,it,"secondary-light"))}v=ut,ut|=bn;var M=n.current;Ou(),Bv(M);var T=n.current;M=ug,Ou(),Mv(n,T,f,i,M),c0(n),ut=v;var Y=fa();if(T=p,M=Yt,co!==null?Xb(T,Y,co,!0,M):!kt||Y<=T||(M?M.run(console.timeStamp.bind(console,"Remaining Effects",T,Y,ct,it,"secondary-dark")):console.timeStamp("Remaining Effects",T,Y,ct,it,"secondary-dark")),Cr(f,Y),Yl(0,!1),ff?n===Mc?Qr++:(Qr=0,Mc=n):Qr=0,ff=mg=!1,_a&&typeof _a.onPostCommitFiberRoot=="function")try{_a.onPostCommitFiberRoot(_i,n)}catch(xe){As||(As=!0,console.error("React instrumentation encountered an error: %o",xe))}var fe=n.current.stateNode;return fe.effectDuration=0,fe.passiveEffectDuration=0,!0}finally{gt.p=r,F.T=a,s0(e,t)}}function r0(e,t,a){t=on(a,t),ly(t),t=sp(e.stateNode,t,2),e=jo(e,t,2),e!==null&&(Qa(e,2),Us(e))}function ht(e,t,a){if(al=!1,e.tag===3)r0(e,e,a);else{for(;t!==null;){if(t.tag===3){r0(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(nr===null||!nr.has(n))){e=on(a,e),ly(e),a=op(2),n=jo(t,a,2),n!==null&&(rp(a,n,t,e),Qa(n,2),Us(n));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
159
|
+
|
|
160
|
+
Error message:
|
|
161
|
+
|
|
162
|
+
%s`,a)}}function _p(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new LR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(og=!0,r.add(a),n=xE.bind(null,e,t,a),Vs&&$l(e,a),t.then(n,n))}function xE(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Hs&&(Vr=Hs=Wt(),dc=Bd("Promise Resolved"),Po=$d):(a&4194048)!==0&&0>An&&(uo=An=Wt(),mc=Bd("Promise Resolved"),Bh=$d),qv()&&F.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
163
|
+
|
|
164
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
165
|
+
|
|
166
|
+
act(() => {
|
|
167
|
+
/* finish loading suspended data */
|
|
168
|
+
});
|
|
169
|
+
/* assert on the output */
|
|
170
|
+
|
|
171
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),wt===e&&(Ze&a)===a&&(Vt===Wo||Vt===af&&(Ze&62914560)===Ze&&fa()-lf<r1?(ut&ia)===ha&&vi(e,0):rg|=a,Xr===Ze&&(Xr=0)),Us(e)}function i0(e,t){t===0&&(t=Xa()),e=Ra(e,t),e!==null&&(Qa(e,t),Us(e))}function NE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),i0(e,a)}function SE(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}n!==null&&n.delete(t),i0(e,a)}function kp(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,r=t,i=r.type===Sd;i=a||i,r.tag!==22?r.flags&67108864?i&&he(r,l0,n,r):kp(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?he(r,l0,n,r):r.subtreeFlags&67108864&&he(r,kp,n,r,i)),t=t.sibling}}function l0(e,t){Se(!0);try{Av(t),$v(t),Vv(e,t.alternate,t,!1),zv(e,t,0,null,!1,0)}finally{Se(!1)}}function c0(e){var t=!0;e.current.mode&(ka|as)||(t=!1),kp(e,e.current,t)}function u0(e){if((ut&ia)===ha){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=B(e)||"ReactComponent",mf!==null){if(mf.has(t))return;mf.add(t)}else mf=new Set([t]);he(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function $l(e,t){Vs&&e.memoizedUpdaters.forEach(function(a){Fn(e,a,t)})}function wE(e,t){var a=F.actQueue;return a!==null?(a.push(t),$R):uh(e,t)}function EE(e){qv()&&F.actQueue===null&&he(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
172
|
+
|
|
173
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
174
|
+
|
|
175
|
+
act(() => {
|
|
176
|
+
/* fire events that update state */
|
|
177
|
+
});
|
|
178
|
+
/* assert on the output */
|
|
179
|
+
|
|
180
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,B(e))})}function Us(e){e!==nl&&e.next===null&&(nl===null?pf=nl=e:nl=nl.next=e),hf=!0,F.actQueue!==null?hg||(hg=!0,p0()):pg||(pg=!0,p0())}function Yl(e,t){if(!gg&&hf){gg=!0;do for(var a=!1,n=pf;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var f=n.suspendedLanes,p=n.pingedLanes;i=(1<<31-Ma(42|e)+1)-1,i&=r&~(f&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,m0(n,i))}else i=Ze,i=Fa(n,n===wt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Kr),(i&3)===0||En(n,i)||(a=!0,m0(n,i));n=n.next}while(a);gg=!1}}function DE(){Bc=window.event,Up()}function Up(){hf=hg=pg=!1;var e=0;rr!==0&&jE()&&(e=rr);for(var t=fa(),a=null,n=pf;n!==null;){var r=n.next,i=d0(n,t);i===0?(n.next=null,a===null?pf=r:a.next=r,r===null&&(nl=a)):(a=n,(e!==0||(i&3)!==0)&&(hf=!0)),n=r}sa!==sr&&sa!==df||Yl(e),rr!==0&&(rr=0)}function d0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-Ma(i),p=1<<f,v=r[f];v===-1?((p&a)===0||(p&n)!==0)&&(r[f]=ja(p,t)):v<=t&&(e.expiredLanes|=p),i&=~p}if(t=wt,a=Ze,a=Fa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Kr),n=e.callbackNode,a===0||e===t&&(yt===Ir||yt===Fr)||e.cancelPendingCommit!==null)return n!==null&&Cp(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||En(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&n!==bg)Cp(n);else return t;switch(Xn(a)){case _n:case Ms:a=fh;break;case no:a=Ri;break;case kd:a=mh;break;default:a=Ri}return n=f0.bind(null,e),F.actQueue!==null?(F.actQueue.push(n),a=bg):a=uh(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&Cp(n),e.callbackPriority=2,e.callbackNode=null,2}function f0(e,t){if(Fd=Id=!1,Bc=window.event,sa!==sr&&sa!==df)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(is===uf&&(is=lg),Bl()&&e.callbackNode!==a)return null;var n=Ze;return n=Fa(e,e===wt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Kr),n===0?null:(Iv(e,n,t),d0(e,fa()),e.callbackNode!=null&&e.callbackNode===a?f0.bind(null,e):null)}function m0(e,t){if(Bl())return null;Id=Fd,Fd=!1,Iv(e,t,!0)}function Cp(e){e!==bg&&e!==null&&hD(e)}function p0(){F.actQueue!==null&&F.actQueue.push(function(){return Up(),null}),JR(function(){(ut&(ia|bn))!==ha?uh(dh,DE):Up()})}function Tp(){if(rr===0){var e=Lr;e===0&&(e=Dd,Dd<<=1,(Dd&261888)===0&&(Dd=256)),rr=e}return rr}function h0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(nt(e,"action"),xl(""+e))}function g0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function RE(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=h0((r[za]||null).action),f=n.submitter;f&&(t=(t=f[za]||null)?h0(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var p=new Od("action","action",null,n,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(rr!==0){var v=f?g0(r,f):new FormData(r),S={pending:!0,data:v,method:r.method,action:i};Object.freeze(S),Jm(a,S,null,v)}}else typeof i=="function"&&(p.preventDefault(),v=f?g0(r,f):new FormData(r),S={pending:!0,data:v,method:r.method,action:i},Object.freeze(S),Jm(a,S,i,v))},currentTarget:r}]})}}function dd(e,t,a){e.currentTarget=a;try{t(e)}catch(n){Uh(n)}e.currentTarget=null}function b0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var r=void 0,i=n.event;if(n=n.listeners,t)for(var f=n.length-1;0<=f;f--){var p=n[f],v=p.instance,S=p.currentTarget;if(p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,dd,i,p,S):dd(i,p,S),r=v}else for(f=0;f<n.length;f++){if(p=n[f],v=p.instance,S=p.currentTarget,p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,dd,i,p,S):dd(i,p,S),r=v}}}}function rt(e,t){yg.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[ph];a===void 0&&(a=t[ph]=new Set);var n=e+"__bubble";a.has(n)||(y0(t,e,2,!1),a.add(n))}function jp(e,t,a){yg.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var n=0;t&&(n|=4),y0(a,e,n,t)}function Op(e){if(!e[gf]){e[gf]=!0,px.forEach(function(a){a!=="selectionchange"&&(yg.has(a)||jp(a,!1,e),jp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gf]||(t[gf]=!0,jp("selectionchange",!1,t))}}function y0(e,t,a,n){switch(J0(t)){case _n:var r=rD;break;case Ms:r=iD;break;default:r=Pp}a=r.bind(null,t,a,e),r=void 0,!vh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Ap(e,t,a,n,r){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var p=n.stateNode.containerInfo;if(p===r)break;if(f===4)for(f=n.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===r)return;f=f.return}for(;p!==null;){if(f=Z(p),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){n=i=f;continue e}p=p.parentNode}}n=n.return}Ub(function(){var S=i,V=tm(a),M=[];e:{var T=Jx.get(e);if(T!==void 0){var Y=Od,fe=e;switch(e){case"keypress":if(vu(a)===0)break e;case"keydown":case"keyup":Y=aR;break;case"focusin":fe="focus",Y=wh;break;case"focusout":fe="blur",Y=wh;break;case"beforeblur":case"afterblur":Y=wh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=zx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=GD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=oR;break;case Xx:case Qx:case Px:Y=XD;break;case Zx:Y=iR;break;case"scroll":case"scrollend":Y=YD;break;case"wheel":Y=cR;break;case"copy":case"cut":case"paste":Y=PD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Hx;break;case"toggle":case"beforetoggle":Y=dR}var xe=(t&4)!==0,Dt=!xe&&(e==="scroll"||e==="scrollend"),lt=xe?T!==null?T+"Capture":null:T;xe=[];for(var U=S,j;U!==null;){var A=U;if(j=A.stateNode,A=A.tag,A!==5&&A!==26&&A!==27||j===null||lt===null||(A=Nl(U,lt),A!=null&&xe.push(ql(U,A,j))),Dt)break;U=U.return}0<xe.length&&(T=new Y(T,fe,null,a,V),M.push({event:T,listeners:xe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",T&&a!==ec&&(fe=a.relatedTarget||a.fromElement)&&(Z(fe)||fe[Yo]))break e;if((Y||T)&&(T=V.window===V?V:(T=V.ownerDocument)?T.defaultView||T.parentWindow:window,Y?(fe=a.relatedTarget||a.toElement,Y=S,fe=fe?Z(fe):null,fe!==null&&(Dt=X(fe),xe=fe.tag,fe!==Dt||xe!==5&&xe!==27&&xe!==6)&&(fe=null)):(Y=null,fe=S),Y!==fe)){if(xe=zx,A="onMouseLeave",lt="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Hx,A="onPointerLeave",lt="onPointerEnter",U="pointer"),Dt=Y==null?T:de(Y),j=fe==null?T:de(fe),T=new xe(A,U+"leave",Y,a,V),T.target=Dt,T.relatedTarget=j,A=null,Z(V)===S&&(xe=new xe(lt,U+"enter",fe,a,V),xe.target=j,xe.relatedTarget=Dt,A=xe),Dt=A,Y&&fe)t:{for(xe=_E,lt=Y,U=fe,j=0,A=lt;A;A=xe(A))j++;A=0;for(var Q=U;Q;Q=xe(Q))A++;for(;0<j-A;)lt=xe(lt),j--;for(;0<A-j;)U=xe(U),A--;for(;j--;){if(lt===U||U!==null&<===U.alternate){xe=lt;break t}lt=xe(lt),U=xe(U)}xe=null}else xe=null;Y!==null&&v0(M,T,Y,xe,!1),fe!==null&&Dt!==null&&v0(M,Dt,fe,xe,!0)}}e:{if(T=S?de(S):window,Y=T.nodeName&&T.nodeName.toLowerCase(),Y==="select"||Y==="input"&&T.type==="file")var be=Mb;else if(Ab(T))if(Ix)be=H4;else{be=z4;var Ye=M4}else Y=T.nodeName,!Y||Y.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?S&&vl(S.elementType)&&(be=Mb):be=L4;if(be&&(be=be(e,S))){Vb(M,be,a,V);break e}Ye&&Ye(e,T,S),e==="focusout"&&S&&T.type==="number"&&S.memoizedProps.value!=null&&Ae(T,"number",T.value)}switch(Ye=S?de(S):window,e){case"focusin":(Ab(Ye)||Ye.contentEditable==="true")&&(Ai=Ye,Dh=S,ic=null);break;case"focusout":ic=Dh=Ai=null;break;case"mousedown":Rh=!0;break;case"contextmenu":case"mouseup":case"dragend":Rh=!1,qb(M,a,V);break;case"selectionchange":if(hR)break;case"keydown":case"keyup":qb(M,a,V)}var je;if(Eh)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Oi?jb(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===Bx&&(_e="onCompositionStart");_e&&($x&&a.locale!=="ko"&&(Oi||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Oi&&(je=Cb()):(qo=V,xh="value"in qo?qo.value:qo.textContent,Oi=!0)),Ye=fd(S,_e),0<Ye.length&&(_e=new Lx(_e,e,null,a,V),M.push({event:_e,listeners:Ye}),je?_e.data=je:(je=Ob(a),je!==null&&(_e.data=je)))),(je=mR?j4(e,a):O4(e,a))&&(_e=fd(S,"onBeforeInput"),0<_e.length&&(Ye=new JD("onBeforeInput","beforeinput",null,a,V),M.push({event:Ye,listeners:_e}),Ye.data=je)),RE(M,e,S,a,V)}b0(M,t)})}function ql(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fd(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=Nl(e,a),r!=null&&n.unshift(ql(e,r,i)),r=Nl(e,t),r!=null&&n.push(ql(e,r,i))),e.tag===3)return n;e=e.return}return[]}function _E(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function v0(e,t,a,n,r){for(var i=t._reactName,f=[];a!==null&&a!==n;){var p=a,v=p.alternate,S=p.stateNode;if(p=p.tag,v!==null&&v===n)break;p!==5&&p!==26&&p!==27||S===null||(v=S,r?(S=Nl(a,i),S!=null&&f.unshift(ql(a,S,v))):r||(S=Nl(a,i),S!=null&&f.push(ql(a,S,v)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}function Vp(e,t){k4(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||Vx||(Vx=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Tr,possibleRegistrationNames:hh};vl(e)||typeof t.is=="string"||C4(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function da(e,t,a,n){t!==a&&(a=zo(a),zo(t)!==a&&(n[e]=t))}function kE(e,t,a){t.forEach(function(n){a[S0(n)]=n==="style"?zp(e):e.getAttribute(n)})}function Cs(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function x0(e,t){return e=e.namespaceURI===Cd||e.namespaceURI===Ui?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function zo(e){return Ht(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ft(e)),Bt(e)),(typeof e=="string"?e:""+e).replace(YR,`
|
|
181
|
+
`).replace(qR,"")}function N0(e,t){return t=zo(t),zo(e)===t}function Nt(e,t,a,n,r,i){switch(a){case"children":typeof n=="string"?(yu(n,t,!1),t==="body"||t==="textarea"&&n===""||yl(e,n)):(typeof n=="number"||typeof n=="bigint")&&(yu(""+n,t,!1),t!=="body"&&yl(e,""+n));break;case"className":li(e,"class",n);break;case"tabIndex":li(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":li(e,a,n);break;case"style":Rb(e,n,i);break;case"data":if(t!=="object"){li(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}nt(n,a),n=xl(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(n!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof n=="function"&&(r.encType==null&&r.method==null||vf||(vf=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||yf||(yf=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||bf?t!=="button"||r.type==null||r.type==="submit"||bf?typeof n=="function"&&(r.name==null||x1||(x1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||vf||(vf=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||yf||(yf=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(bf=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(bf=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof n=="function"){e.setAttribute(a,"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 i=="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",r.name,r,null),Nt(e,t,"formEncType",r.formEncType,r,null),Nt(e,t,"formMethod",r.formMethod,r,null),Nt(e,t,"formTarget",r.formTarget,r,null)):(Nt(e,t,"encType",r.encType,r,null),Nt(e,t,"method",r.method,r,null),Nt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}nt(n,a),n=xl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scrollend",e));break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}nt(n,a),a=xl(""+n),e.setAttributeNS(Pr,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?(nt(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||xf[a]||(xf[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?(nt(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?(nt(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):(nt(n,a),e.setAttribute(a,n));break;case"popover":rt("beforetoggle",e),rt("toggle",e),Fs(e,"popover",n);break;case"xlinkActuate":Qn(e,Pr,"xlink:actuate",n);break;case"xlinkArcrole":Qn(e,Pr,"xlink:arcrole",n);break;case"xlinkRole":Qn(e,Pr,"xlink:role",n);break;case"xlinkShow":Qn(e,Pr,"xlink:show",n);break;case"xlinkTitle":Qn(e,Pr,"xlink:title",n);break;case"xlinkType":Qn(e,Pr,"xlink:type",n);break;case"xmlBase":Qn(e,vg,"xml:base",n);break;case"xmlLang":Qn(e,vg,"xml:lang",n);break;case"xmlSpace":Qn(e,vg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Fs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":N1||n==null||typeof n!="object"||(N1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",n));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=_b(a),Fs(e,a,n)):Tr.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Cs(a,n)}}function Mp(e,t,a,n,r,i){switch(a){case"style":Rb(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?yl(e,n):(typeof n=="number"||typeof n=="bigint")&&yl(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Tr.hasOwnProperty(a))n!=null&&typeof n!="function"&&Cs(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[za]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof n=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Fs(e,a,n)}}}function va(e,t,a){switch(Vp(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",e),rt("load",e);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var f=a[i];if(f!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,i,f,a,null)}}r&&Nt(e,t,"srcSet",a.srcSet,a,null),n&&Nt(e,t,"src",a.src,a,null);return;case"input":Zt("input",a),rt("invalid",e);var p=i=f=r=null,v=null,S=null;for(n in a)if(a.hasOwnProperty(n)){var V=a[n];if(V!=null)switch(n){case"name":r=V;break;case"type":f=V;break;case"checked":v=V;break;case"defaultChecked":S=V;break;case"value":i=V;break;case"defaultValue":p=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,n,V,a,null)}}Te(e,a),Ve(e,i,p,v,S,f,r,!1);return;case"select":Zt("select",a),rt("invalid",e),n=f=i=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":i=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:Nt(e,t,r,p,a,null)}Rt(e,a),t=i,a=f,e.multiple=!!n,t!=null?tt(e,!!n,t,!1):a!=null&&tt(e,!!n,a,!0);return;case"textarea":Zt("textarea",a),rt("invalid",e),i=r=n=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":r=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,f,p,a,null)}Gt(e,a),pt(e,n,r,i);return;case"option":Ce(e,a);for(v in a)a.hasOwnProperty(v)&&(n=a[v],n!=null)&&(v==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Nt(e,t,v,n,a,null));return;case"dialog":rt("beforetoggle",e),rt("toggle",e),rt("cancel",e),rt("close",e);break;case"iframe":case"object":rt("load",e);break;case"video":case"audio":for(n=0;n<zc.length;n++)rt(zc[n],e);break;case"image":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"embed":case"source":case"link":rt("error",e),rt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,S,n,a,null)}return;default:if(vl(t)){for(V in a)a.hasOwnProperty(V)&&(n=a[V],n!==void 0&&Mp(e,t,V,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&Nt(e,t,p,n,a,null))}function UE(e,t,a,n){switch(Vp(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,f=null,p=null,v=null,S=null,V=null;for(Y in a){var M=a[Y];if(a.hasOwnProperty(Y)&&M!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":v=M;default:n.hasOwnProperty(Y)||Nt(e,t,Y,null,n,M)}}for(var T in n){var Y=n[T];if(M=a[T],n.hasOwnProperty(T)&&(Y!=null||M!=null))switch(T){case"type":i=Y;break;case"name":r=Y;break;case"checked":S=Y;break;case"defaultChecked":V=Y;break;case"value":f=Y;break;case"defaultValue":p=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Y!==M&&Nt(e,t,T,Y,n,M)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,n=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,t||!n||v1||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),v1=!0),!t||n||y1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),y1=!0),we(e,f,p,v,S,V,i,r);return;case"select":Y=f=p=T=null;for(i in a)if(v=a[i],a.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":Y=v;default:n.hasOwnProperty(i)||Nt(e,t,i,null,n,v)}for(r in n)if(i=n[r],v=a[r],n.hasOwnProperty(r)&&(i!=null||v!=null))switch(r){case"value":T=i;break;case"defaultValue":p=i;break;case"multiple":f=i;default:i!==v&&Nt(e,t,r,i,n,v)}n=p,t=f,a=Y,T!=null?tt(e,!!t,T,!1):!!a!=!!t&&(n!=null?tt(e,!!t,n,!0):tt(e,!!t,t?[]:"",!1));return;case"textarea":Y=T=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Nt(e,t,p,null,n,r)}for(f in n)if(r=n[f],i=a[f],n.hasOwnProperty(f)&&(r!=null||i!=null))switch(f){case"value":T=r;break;case"defaultValue":Y=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&Nt(e,t,f,r,n,i)}ca(e,T,Y);return;case"option":for(var fe in a)T=a[fe],a.hasOwnProperty(fe)&&T!=null&&!n.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Nt(e,t,fe,null,n,T));for(v in n)T=n[v],Y=a[v],n.hasOwnProperty(v)&&T!==Y&&(T!=null||Y!=null)&&(v==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":Nt(e,t,v,T,n,Y));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 xe in a)T=a[xe],a.hasOwnProperty(xe)&&T!=null&&!n.hasOwnProperty(xe)&&Nt(e,t,xe,null,n,T);for(S in n)if(T=n[S],Y=a[S],n.hasOwnProperty(S)&&T!==Y&&(T!=null||Y!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,S,T,n,Y)}return;default:if(vl(t)){for(var Dt in a)T=a[Dt],a.hasOwnProperty(Dt)&&T!==void 0&&!n.hasOwnProperty(Dt)&&Mp(e,t,Dt,void 0,n,T);for(V in n)T=n[V],Y=a[V],!n.hasOwnProperty(V)||T===Y||T===void 0&&Y===void 0||Mp(e,t,V,T,n,Y);return}}for(var lt in a)T=a[lt],a.hasOwnProperty(lt)&&T!=null&&!n.hasOwnProperty(lt)&&Nt(e,t,lt,null,n,T);for(M in n)T=n[M],Y=a[M],!n.hasOwnProperty(M)||T===Y||T==null&&Y==null||Nt(e,t,M,T,n,Y)}function S0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function zp(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var n=e[a];t[n]=e.getPropertyValue(n)}return t}function w0(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var n,r=n="",i;for(i in t)if(t.hasOwnProperty(i)){var f=t[i];f!=null&&typeof f!="boolean"&&f!==""&&(i.indexOf("--")===0?(vt(f,i),n+=r+i+":"+(""+f).trim()):typeof f!="number"||f===0||Ox.has(i)?(vt(f,i),n+=r+i.replace(kx,"-$1").toLowerCase().replace(Ux,"-ms-")+":"+(""+f).trim()):n+=r+i.replace(kx,"-$1").toLowerCase().replace(Ux,"-ms-")+":"+f+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=zo(n),zo(t)!==n&&(a.style=zp(e)))}}function Rn(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(nt(n,t),e===""+n)return}da(t,e,n,i)}function E0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}da(t,e,n,i)}function Lp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":return}else if(n!=null)switch(typeof n){case"function":case"symbol":break;default:if(nt(n,a),e===""+n)return}da(t,e,n,i)}function D0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(n))return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(!isNaN(n)&&(nt(n,t),e===""+n))return}da(t,e,n,i)}function Hp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(nt(n,t),a=xl(""+n),e===a)return}da(t,e,n,i)}function R0(e,t,a,n){for(var r={},i=new Set,f=e.attributes,p=0;p<f.length;p++)switch(f[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:i.add(f[p].name)}if(vl(t)){for(var v in a)if(a.hasOwnProperty(v)){var S=a[v];if(S!=null){if(Tr.hasOwnProperty(v))typeof S!="function"&&Cs(v,S);else if(a.suppressHydrationWarning!==!0)switch(v){case"children":typeof S!="string"&&typeof S!="number"||da("children",e.textContent,S,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=x0(e,S),da(v,f,S,r));continue;case"style":i.delete(v),w0(e,S,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(v.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",v);continue;case"className":i.delete("class"),f=Is(e,"class",S),da("className",f,S,r);continue;default:n.context===yo&&t!=="svg"&&t!=="math"?i.delete(v.toLowerCase()):i.delete(v),f=Is(e,v,S),da(v,f,S,r)}}}}else for(S in a)if(a.hasOwnProperty(S)&&(v=a[S],v!=null)){if(Tr.hasOwnProperty(S))typeof v!="function"&&Cs(S,v);else if(a.suppressHydrationWarning!==!0)switch(S){case"children":typeof v!="string"&&typeof v!="number"||da("children",e.textContent,v,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=x0(e,v),f!==v&&(r[S]={__html:f}));continue;case"className":Rn(e,S,"class",v,i,r);continue;case"tabIndex":Rn(e,S,"tabindex",v,i,r);continue;case"style":i.delete(S),w0(e,v,r);continue;case"multiple":i.delete(S),da(S,e.multiple,v,r);continue;case"muted":i.delete(S),da(S,e.muted,v,r);continue;case"autoFocus":i.delete("autofocus"),da(S,e.autofocus,v,r);continue;case"data":if(t!=="object"){i.delete(S),f=e.getAttribute("data"),da(S,f,v,r);continue}case"src":case"href":if(!(v!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){console.error(S==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}Hp(e,S,S,v,i,r);continue;case"action":case"formAction":if(f=e.getAttribute(S),typeof v=="function"){i.delete(S.toLowerCase()),S==="formAction"?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}else if(f===GR){i.delete(S.toLowerCase()),da(S,"function",v,r);continue}Hp(e,S,S.toLowerCase(),v,i,r);continue;case"xlinkHref":Hp(e,S,"xlink:href",v,i,r);continue;case"contentEditable":Lp(e,S,"contenteditable",v,i,r);continue;case"spellCheck":Lp(e,S,"spellcheck",v,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Lp(e,S,S,v,i,r);continue;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":E0(e,S,S.toLowerCase(),v,i,r);continue;case"capture":case"download":e:{p=e;var V=f=S,M=r;if(i.delete(V),p=p.getAttribute(V),p===null)switch(typeof v){case"undefined":case"function":case"symbol":break e;default:if(v===!1)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":break;case"boolean":if(v===!0&&p==="")break e;break;default:if(nt(v,f),p===""+v)break e}da(f,p,v,M)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,V=f=S,M=r,i.delete(V),p=p.getAttribute(V),p===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(v)||1>v)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(v)||1>v)&&(nt(v,f),p===""+v))break e}da(f,p,v,M)}continue;case"rowSpan":D0(e,S,"rowspan",v,i,r);continue;case"start":D0(e,S,S,v,i,r);continue;case"xHeight":Rn(e,S,"x-height",v,i,r);continue;case"xlinkActuate":Rn(e,S,"xlink:actuate",v,i,r);continue;case"xlinkArcrole":Rn(e,S,"xlink:arcrole",v,i,r);continue;case"xlinkRole":Rn(e,S,"xlink:role",v,i,r);continue;case"xlinkShow":Rn(e,S,"xlink:show",v,i,r);continue;case"xlinkTitle":Rn(e,S,"xlink:title",v,i,r);continue;case"xlinkType":Rn(e,S,"xlink:type",v,i,r);continue;case"xmlBase":Rn(e,S,"xml:base",v,i,r);continue;case"xmlLang":Rn(e,S,"xml:lang",v,i,r);continue;case"xmlSpace":Rn(e,S,"xml:space",v,i,r);continue;case"inert":v!==""||xf[S]||(xf[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),E0(e,S,S,v,i,r);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){p=_b(S),f=!1,n.context===yo&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(V=S.toLowerCase(),V=Td.hasOwnProperty(V)&&Td[V]||null,V!==null&&V!==S&&(f=!0,i.delete(V)),i.delete(p));e:if(V=e,M=p,p=v,Oa(M))if(V.hasAttribute(M))V=V.getAttribute(M),nt(p,M),p=V===""+p?p:V;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(V=M.toLowerCase().slice(0,5),V!=="data-"&&V!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;f||da(S,p,v,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&kE(e,i,r),Object.keys(r).length===0?null:r}function CE(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function _0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,f=r.initiatorType,p=r.duration;if(i&&p&&_0(f)){for(f=0,p=r.responseEnd,n+=1;n<a.length;n++){var v=a[n],S=v.startTime;if(S>p)break;var V=v.transferSize,M=v.initiatorType;V&&_0(M)&&(v=v.responseEnd,f+=V*(v<p?1:(p-S)/(v-S)))}if(--n,t+=8*(i+f)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function md(e){return e.nodeType===9?e:e.ownerDocument}function k0(e){switch(e){case Ui:return ol;case Cd:return Sf;default:return yo}}function U0(e,t){if(e===yo)switch(t){case"svg":return ol;case"math":return Sf;default:return yo}return e===ol&&t==="foreignObject"?yo:e}function Bp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function jE(){var e=window.event;return e&&e.type==="popstate"?e===wg?!1:(wg=e,!0):(wg=null,!1)}function Gl(){var e=window.event;return e&&e!==Bc?e.type:null}function Il(){var e=window.event;return e&&e!==Bc?e.timeStamp:-1.1}function OE(e){setTimeout(function(){throw e})}function AE(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function VE(){}function ME(e,t,a,n){UE(e,t,a,n),e[za]=n}function C0(e){yl(e,"")}function zE(e,t,a){e.nodeValue=a}function T0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[za]||null;if(t!==null){var a=ae(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Lo(e){return e==="head"}function LE(e,t){e.removeChild(t)}function HE(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function j0(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===Hc||a===Nf){if(n===0){e.removeChild(r),wi(t);return}n--}else if(a===Lc||a===ir||a===Jr||a===sl||a===Zr)n++;else if(a===FR)Fl(e.ownerDocument.documentElement);else if(a===QR){a=e.ownerDocument.head,Fl(a);for(var i=a.firstChild;i;){var f=i.nextSibling,p=i.nodeName;i[Wl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=f}}else a===XR&&Fl(e.ownerDocument.body);a=r}while(a);wi(t)}function O0(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a===Hc){if(e===0)break;e--}else a!==Lc&&a!==ir&&a!==Jr&&a!==sl||e++;a=n}while(a)}function BE(e){O0(e,!0)}function $E(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function YE(e){e.nodeValue=""}function qE(e){O0(e,!1)}function GE(e,t){t=t[PR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function IE(e,t){e.nodeValue=t}function $p(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":$p(a),O(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function FE(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Wl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){nt(r.name,"name");var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function XE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=dn(e.nextSibling),e===null))return null;return e}function A0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function Yp(e){return e.data===ir||e.data===Jr}function qp(e){return e.data===sl||e.data===ir&&e.ownerDocument.readyState!==w1}function QE(e,t){var a=e.ownerDocument;if(e.data===Jr)e._reactRetry=t;else if(e.data!==ir||a.readyState!==w1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Lc||t===sl||t===ir||t===Jr||t===Zr||t===xg||t===S1)break;if(t===Hc||t===Nf)return null}}return e}function V0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,r=0;r<n.length;r++){var i=n[r];a[S0(i.name)]=i.name.toLowerCase()==="style"?zp(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Zr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function M0(e,t,a){return a===null||a[IR]!==!0?(e.nodeValue===t?e=null:(t=zo(t),e=zo(e.nodeValue)===t?null:e.nodeValue),e):null}function Gp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Hc||a===Nf){if(t===0)return dn(e.nextSibling);t--}else a!==Lc&&a!==sl&&a!==ir&&a!==Jr&&a!==Zr||t++}e=e.nextSibling}return null}function z0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Lc||a===sl||a===ir||a===Jr||a===Zr){if(t===0)return e;t--}else a!==Hc&&a!==Nf||t++}e=e.previousSibling}return null}function PE(e){wi(e)}function ZE(e){wi(e)}function JE(e){wi(e)}function L0(e,t,a,n,r){switch(r&&em(e,n.ancestorInfo),t=md(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function KE(e,t,a,n){if(!a[Yo]&&ae(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);va(a,e,t),a[xa]=n,a[za]=t}function Fl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);O(e)}function pd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function H0(e,t,a){var n=rl;if(n&&typeof t=="string"&&t){var r=ye(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),U1.has(r)||(U1.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),va(t,"link",e),Ee(t),n.head.appendChild(t)))}}function B0(e,t,a,n){var r=(r=Bo.current)?pd(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ni(a.href),t=ze(r).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ni(a.href);var i=ze(r).hoistableStyles,f=i.get(e);if(!f&&(r=r.ownerDocument||r,f={type:"stylesheet",instance:null,count:0,state:{loading:Wr,preload:null}},i.set(e,f),(i=r.querySelector(Xl(e)))&&!i._p&&(f.instance=i,f.state.loading=$c|Ln),!Hn.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Hn.set(e,p),i||WE(r,e,p,f.state)}if(t&&n===null)throw a=`
|
|
182
|
+
|
|
183
|
+
- `+hd(t)+`
|
|
184
|
+
+ `+hd(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return f}if(t&&n!==null)throw a=`
|
|
185
|
+
|
|
186
|
+
- `+hd(t)+`
|
|
187
|
+
+ `+hd(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Si(a),t=ze(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function hd(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):ts.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):ts.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):ts.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Ni(e){return'href="'+ye(e)+'"'}function Xl(e){return'link[rel="stylesheet"]['+e+"]"}function $0(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function WE(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=$c:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=$c}),t.addEventListener("error",function(){return n.loading|=_1}),va(t,"link",a),Ee(t),e.head.appendChild(t))}function Si(e){return'[src="'+ye(e)+'"]'}function Ql(e){return"script[async]"+e}function Y0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ye(a.href)+'"]');if(n)return t.instance=n,Ee(n),n;var r=et({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ee(n),va(n,"style",r),gd(n,a.precedence,e),t.instance=n;case"stylesheet":r=Ni(a.href);var i=e.querySelector(Xl(r));if(i)return t.state.loading|=Ln,t.instance=i,Ee(i),i;n=$0(a),(r=Hn.get(r))&&Ip(n,r),i=(e.ownerDocument||e).createElement("link"),Ee(i);var f=i;return f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),va(i,"link",n),t.state.loading|=Ln,gd(i,a.precedence,e),t.instance=i;case"script":return i=Si(a.src),(r=e.querySelector(Ql(i)))?(t.instance=r,Ee(r),r):(n=a,(r=Hn.get(i))&&(n=et({},a),Fp(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ee(r),va(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Ln)===Wr&&(n=t.instance,t.state.loading|=Ln,gd(n,a.precedence,e));return t.instance}function gd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===t)i=p;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ip(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function q0(e,t,a){if(wf===null){var n=new Map,r=wf=new Map;r.set(a,n)}else r=wf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[Wl]||i[xa]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!==Ui){var f=i.getAttribute(t)||"";f=e+f;var p=n.get(f);p?p.push(i):n.set(f,[i])}}return n}function G0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function eD(e,t,a){var n=!a.ancestorInfo.containerTagInScope;if(a.context===ol||t.itemProp!=null)return!n||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){n&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,i=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),i!=null&&a.push("`disabled`"),r=CE(a,"and"),r+=a.length===1?" prop":" props",i=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,i,r)}n&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&n&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){n&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":n&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function I0(e){return!(e.type==="stylesheet"&&(e.state.loading&k1)===Wr)}function tD(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Ln)===Wr){if(a.instance===null){var r=Ni(n.href),i=t.querySelector(Xl(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bd.bind(e),t.then(e,e)),a.state.loading|=Ln,a.instance=i,Ee(i);return}i=t.ownerDocument||t,n=$0(n),(r=Hn.get(r))&&Ip(n,r),i=i.createElement("link"),Ee(i);var f=i;f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),va(i,"link",n),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&k1)===Wr&&(e.count++,a=bd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function aD(e,t){return e.stylesheets&&e.count===0&&yd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&yd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},KR+t);0<e.imgBytes&&Dg===0&&(Dg=125*TE()*e_);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Dg?50:WR)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function bd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function yd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ef=new Map,t.forEach(nD,e),Ef=null,bd.call(e))}function nD(e,t){if(!(t.state.loading&Ln)){var a=Ef.get(e);if(a)var n=a.get(Rg);else{a=new Map,Ef.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var f=r[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(Rg,n)}r=t.instance,f=r.getAttribute("data-precedence"),i=a.get(f)||n,i===n&&a.set(Rg,r),a.set(f,r),this.count++,n=bd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Ln}}function sD(e,t,a,n,r,i,f,p,v){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Kr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function F0(e,t,a,n,r,i,f,p,v,S,V,M){return e=new sD(e,t,a,f,v,S,V,M,p),t=ER,i===!0&&(t|=ka|as),t|=Qe,i=w(3,null,null,t),e.current=i,i.stateNode=e,t=xm(),Er(t),e.pooledCache=t,Er(t),i.memoizedState={element:n,isDehydrated:a,cache:t},Dm(i),e}function X0(e){return e?(e=Fo,e):Fo}function Xp(e,t,a,n,r,i){if(_a&&typeof _a.onScheduleFiberRoot=="function")try{_a.onScheduleFiberRoot(_i,n,a)}catch(f){As||(As=!0,console.error("React instrumentation encountered an error: %o",f))}r=X0(r),n.context===null?n.context=r:n.pendingContext=r,Os&&mn!==null&&!O1&&(O1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
188
|
+
|
|
189
|
+
Check the render method of %s.`,B(mn)||"Unknown")),n=To(t),n.payload={element:a},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i),n.callback=i),a=jo(e,n,t),a!==null&&(ys(t,"root.render()",null),Mt(a,e,t),kl(a,e,t))}function Q0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Qp(e,t){Q0(e,t),(e=e.alternate)&&Q0(e,t)}function P0(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&Mt(t,e,67108864),Qp(e,67108864)}}function Z0(e){if(e.tag===13||e.tag===31){var t=un(e);t=Pa(t);var a=Ra(e,t);a!==null&&Mt(a,e,t),Qp(e,t)}}function oD(){return mn}function rD(e,t,a,n){var r=F.T;F.T=null;var i=gt.p;try{gt.p=_n,Pp(e,t,a,n)}finally{gt.p=i,F.T=r}}function iD(e,t,a,n){var r=F.T;F.T=null;var i=gt.p;try{gt.p=Ms,Pp(e,t,a,n)}finally{gt.p=i,F.T=r}}function Pp(e,t,a,n){if(Rf){var r=Zp(n);if(r===null)Ap(e,t,n,_f,a),K0(e,n);else if(lD(r,e,t,a,n))n.stopPropagation();else if(K0(e,n),t&4&&-1<a_.indexOf(e)){for(;r!==null;){var i=ae(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=wa(i.pendingLanes);if(f!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var v=1<<31-Ma(f);p.entanglements[1]|=v,f&=~v}Us(i),(ut&(ia|bn))===ha&&(cf=fa()+i1,Yl(0))}}break;case 31:case 13:p=Ra(i,2),p!==null&&Mt(p,i,2),yi(),Qp(i,2)}if(i=Zp(n),i===null&&Ap(e,t,n,_f,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else Ap(e,t,n,null,a)}}function Zp(e){return e=tm(e),Jp(e)}function Jp(e){if(_f=null,e=Z(e),e!==null){var t=X(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=K(t),e!==null)return e;e=null}else if(a===31){if(e=W(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _f=e,null}function J0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return _n;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 Ms;case"message":switch(yD()){case dh:return _n;case fh:return Ms;case Ri:case vD:return no;case mh:return kd;default:return no}default:return no}}function K0(e,t){switch(e){case"focusin":case"focusout":lr=null;break;case"dragenter":case"dragleave":cr=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":qc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gc.delete(t.pointerId)}}function Pl(e,t,a,n,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},t!==null&&(t=ae(t),t!==null&&P0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function lD(e,t,a,n,r){switch(t){case"focusin":return lr=Pl(lr,e,t,a,n,r),!0;case"dragenter":return cr=Pl(cr,e,t,a,n,r),!0;case"mouseover":return ur=Pl(ur,e,t,a,n,r),!0;case"pointerover":var i=r.pointerId;return qc.set(i,Pl(qc.get(i)||null,e,t,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,Gc.set(i,Pl(Gc.get(i)||null,e,t,a,n,r)),!0}return!1}function W0(e){var t=Z(e.target);if(t!==null){var a=X(t);if(a!==null){if(t=a.tag,t===13){if(t=K(a),t!==null){e.blockedOn=t,x(e.priority,function(){Z0(a)});return}}else if(t===31){if(t=W(a),t!==null){e.blockedOn=t,x(e.priority,function(){Z0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zp(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),r=n;ec!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ec=r,a.target.dispatchEvent(n),ec===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ec=null}else return t=ae(a),t!==null&&P0(t),e.blockedOn=a,!1;t.shift()}return!0}function ex(e,t,a){vd(e)&&a.delete(t)}function cD(){_g=!1,lr!==null&&vd(lr)&&(lr=null),cr!==null&&vd(cr)&&(cr=null),ur!==null&&vd(ur)&&(ur=null),qc.forEach(ex),Gc.forEach(ex)}function xd(e,t){e.blockedOn===t&&(e.blockedOn=null,_g||(_g=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,cD)))}function tx(e){kf!==e&&(kf=e,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,function(){kf===e&&(kf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Jp(n||a)===null)continue;break}var i=ae(a);i!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:n},Object.freeze(a),Jm(i,a,n,r))}}))}function wi(e){function t(v){return xd(v,e)}lr!==null&&xd(lr,e),cr!==null&&xd(cr,e),ur!==null&&xd(ur,e),qc.forEach(t),Gc.forEach(t);for(var a=0;a<dr.length;a++){var n=dr[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<dr.length&&(a=dr[0],a.blockedOn===null);)W0(a),a.blockedOn===null&&dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],f=r[za]||null;if(typeof i=="function")f||tx(a);else if(f){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,f=i[za]||null)p=f.formAction;else if(Jp(r)!==null)continue}else p=f.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),tx(a)}}}function ax(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return r=f})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Kp(e){this._internalRoot=e}function Nd(e){this._internalRoot=e}function nx(e){e[Yo]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Jt=gk(),Wp=cu(),uD=yk(),et=Object.assign,dD=Symbol.for("react.element"),Ts=Symbol.for("react.transitional.element"),Ei=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),Sd=Symbol.for("react.strict_mode"),eh=Symbol.for("react.profiler"),th=Symbol.for("react.consumer"),js=Symbol.for("react.context"),Zl=Symbol.for("react.forward_ref"),ah=Symbol.for("react.suspense"),nh=Symbol.for("react.suspense_list"),wd=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),sh=Symbol.for("react.activity"),fD=Symbol.for("react.memo_cache_sentinel"),sx=Symbol.iterator,mD=Symbol.for("react.client.reference"),oa=Array.isArray,F=Wp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=uD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pD=Object.freeze({pending:!1,data:null,method:null,action:null}),oh=[],rh=[],ao=-1,Ho=me(null),Jl=me(null),Bo=me(null),Ed=me(null),Kl=0,ox,rx,ix,lx,cx,ux,dx;He.__reactDisabledLog=!0;var ih,fx,lh=!1,ch=new(typeof WeakMap=="function"?WeakMap:Map),mn=null,Os=!1,ts=Object.prototype.hasOwnProperty,uh=Jt.unstable_scheduleCallback,hD=Jt.unstable_cancelCallback,gD=Jt.unstable_shouldYield,bD=Jt.unstable_requestPaint,fa=Jt.unstable_now,yD=Jt.unstable_getCurrentPriorityLevel,dh=Jt.unstable_ImmediatePriority,fh=Jt.unstable_UserBlockingPriority,Ri=Jt.unstable_NormalPriority,vD=Jt.unstable_LowPriority,mh=Jt.unstable_IdlePriority,xD=Jt.log,ND=Jt.unstable_setDisableYieldValue,_i=null,_a=null,As=!1,Vs=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ma=Math.clz32?Math.clz32:wn,SD=Math.log,wD=Math.LN2,Dd=256,Rd=262144,_d=4194304,_n=2,Ms=8,no=32,kd=268435456,$o=Math.random().toString(36).slice(2),xa="__reactFiber$"+$o,za="__reactProps$"+$o,Yo="__reactContainer$"+$o,ph="__reactEvents$"+$o,ED="__reactListeners$"+$o,DD="__reactHandles$"+$o,mx="__reactResources$"+$o,Wl="__reactMarker$"+$o,px=new Set,Tr={},hh={},RD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},_D=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]*$"),hx={},gx={},kD=/[\n"\\]/g,bx=!1,yx=!1,vx=!1,xx=!1,Nx=!1,Sx=!1,wx=["value","defaultValue"],Ex=!1,Dx=/["'&<>\n\t]|^\s|\s$/,UD="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Rx="applet caption html table td th marquee object template foreignObject desc title".split(" "),CD=Rx.concat(["button"]),TD="dd dt li option optgroup p rp rt".split(" "),_x={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ud={},gh={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},kx=/([A-Z])/g,Ux=/^ms-/,jD=/^(?:webkit|moz|o)[A-Z]/,OD=/^-ms-/,AD=/-(.)/g,Cx=/;\s*$/,ki={},bh={},Tx=!1,jx=!1,Ox=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(" ")),Cd="http://www.w3.org/1998/Math/MathML",Ui="http://www.w3.org/2000/svg",VD=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"]]),Td={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ax={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ci={},MD=RegExp("^(aria)-[: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]*$"),zD=RegExp("^(aria)[A-Z][: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]*$"),Vx=!1,La={},Mx=/^on./,LD=/^on[^A-Z]/,HD=RegExp("^(aria)-[: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]*$"),BD=RegExp("^(aria)[A-Z][: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]*$"),$D=/^[\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,ec=null,Ti=null,ji=null,yh=!1,zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vh=!1;if(zs)try{var tc={};Object.defineProperty(tc,"passive",{get:function(){vh=!0}}),window.addEventListener("test",tc,tc),window.removeEventListener("test",tc,tc)}catch{vh=!1}var qo=null,xh=null,jd=null,jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Od=Za(jr),ac=et({},jr,{view:0,detail:0}),YD=Za(ac),Nh,Sh,nc,Ad=et({},ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:am,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nc&&(nc&&e.type==="mousemove"?(Nh=e.screenX-nc.screenX,Sh=e.screenY-nc.screenY):Sh=Nh=0,nc=e),Nh)},movementY:function(e){return"movementY"in e?e.movementY:Sh}}),zx=Za(Ad),qD=et({},Ad,{dataTransfer:0}),GD=Za(qD),ID=et({},ac,{relatedTarget:0}),wh=Za(ID),FD=et({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),XD=Za(FD),QD=et({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PD=Za(QD),ZD=et({},jr,{data:0}),Lx=Za(ZD),JD=Lx,KD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WD={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"},eR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},tR=et({},ac,{key:function(e){if(e.key){var t=KD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?WD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:am,charCode:function(e){return e.type==="keypress"?vu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aR=Za(tR),nR=et({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hx=Za(nR),sR=et({},ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:am}),oR=Za(sR),rR=et({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),iR=Za(rR),lR=et({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cR=Za(lR),uR=et({},jr,{newState:0,oldState:0}),dR=Za(uR),fR=[9,13,27,32],Bx=229,Eh=zs&&"CompositionEvent"in window,sc=null;zs&&"documentMode"in document&&(sc=document.documentMode);var mR=zs&&"TextEvent"in window&&!sc,$x=zs&&(!Eh||sc&&8<sc&&11>=sc),Yx=32,qx=String.fromCharCode(Yx),Gx=!1,Oi=!1,pR={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},oc=null,rc=null,Ix=!1;zs&&(Ix=A4("input")&&(!document.documentMode||9<document.documentMode));var Ha=typeof Object.is=="function"?Object.is:B4,hR=zs&&"documentMode"in document&&11>=document.documentMode,Ai=null,Dh=null,ic=null,Rh=!1,Vi={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionrun:br("Transition","TransitionRun"),transitionstart:br("Transition","TransitionStart"),transitioncancel:br("Transition","TransitionCancel"),transitionend:br("Transition","TransitionEnd")},_h={},Fx={};zs&&(Fx=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);var Xx=yr("animationend"),Qx=yr("animationiteration"),Px=yr("animationstart"),gR=yr("transitionrun"),bR=yr("transitionstart"),yR=yr("transitioncancel"),Zx=yr("transitionend"),Jx=new Map,kh="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(" ");kh.push("scrollEnd");var Kx=0;if(typeof performance=="object"&&typeof performance.now=="function")var vR=performance,Wx=function(){return vR.now()};else{var xR=Date;Wx=function(){return xR.now()}}var Uh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},NR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Vd=0,Ch=1,Th=2,jh=3,Md="– ",zd="+ ",eN=" ",kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",kn="Components ⚛",it="Scheduler ⚛",ct="Blocking",Go=!1,so={color:"primary",properties:null,tooltipText:"",track:kn},Io={start:-0,end:-0,detail:{devtools:so}},SR=["Changed Props",""],tN="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",wR=["Changed Props",tN],lc=1,oo=2,Un=[],Mi=0,Oh=0,Fo={};Object.freeze(Fo);var Cn=null,zi=null,Le=0,ER=1,Qe=2,ka=8,as=16,DR=32,aN=!1;try{var nN=Object.preventExtensions({})}catch{aN=!0}var Ah=new WeakMap,Li=[],Hi=0,Ld=null,cc=0,Tn=[],jn=0,Or=null,ro=1,io="",Na=null,Ut=null,st=!1,Ls=!1,pn=null,Xo=null,On=!1,Vh=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Mh=me(null),zh=me(null),sN={},Hd=null,Bi=null,$i=!1,RR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},_R=Jt.unstable_scheduleCallback,kR=Jt.unstable_NormalPriority,Kt={$$typeof:js,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wt=Jt.unstable_now,Bd=console.createTask?console.createTask:function(){return null},uc=1,$d=2,ma=-0,Qo=-0,lo=-0,co=null,Ba=-1.1,Ar=-0,At=-0,Oe=-1.1,Me=-1.1,Ot=null,zt=!1,Vr=-0,Hs=-1.1,dc=null,Po=0,Lh=null,Hh=null,Mr=-1.1,fc=null,Yi=-1.1,Yd=-1.1,uo=-0,fo=-1.1,An=-1.1,Bh=0,mc=null,oN=null,rN=null,Zo=-1.1,zr=null,Jo=-1.1,qd=-1.1,iN=-0,lN=-0,Gd=0,UR=null,cN=0,pc=-1.1,Id=!1,Fd=!1,hc=null,$h=0,Lr=0,qi=null,uN=F.S;F.S=function(e,t){if(o1=fa(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>fo&&0>An){fo=Wt();var a=Il(),n=Gl();(a!==Jo||n!==zr)&&(Jo=-1.1),Zo=a,zr=n}X4(e,t)}uN!==null&&uN(e,t)};var Hr=me(null),ns={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gc=[],bc=[],yc=[],vc=[],xc=[],Nc=[],Br=new Set;ns.recordUnsafeLifecycleWarnings=function(e,t){Br.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&gc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillMount=="function"&&bc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&yc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&vc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&xc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillUpdate=="function"&&Nc.push(e))},ns.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<gc.length&&(gc.forEach(function(p){e.add(B(p)||"Component"),Br.add(p.type)}),gc=[]);var t=new Set;0<bc.length&&(bc.forEach(function(p){t.add(B(p)||"Component"),Br.add(p.type)}),bc=[]);var a=new Set;0<yc.length&&(yc.forEach(function(p){a.add(B(p)||"Component"),Br.add(p.type)}),yc=[]);var n=new Set;0<vc.length&&(vc.forEach(function(p){n.add(B(p)||"Component"),Br.add(p.type)}),vc=[]);var r=new Set;0<xc.length&&(xc.forEach(function(p){r.add(B(p)||"Component"),Br.add(p.type)}),xc=[]);var i=new Set;if(0<Nc.length&&(Nc.forEach(function(p){i.add(B(p)||"Component"),Br.add(p.type)}),Nc=[]),0<t.size){var f=N(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
190
|
+
|
|
191
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,f)}0<n.size&&(f=N(n),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
197
|
+
|
|
198
|
+
Please update the following components: %s`,f)),0<i.size&&(f=N(i),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
+
|
|
200
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,f)),0<e.size&&(f=N(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
205
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
206
|
+
|
|
207
|
+
Please update the following components: %s`,f)),0<a.size&&(f=N(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
+
|
|
209
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
210
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
211
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,f)),0<r.size&&(f=N(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
214
|
+
|
|
215
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
216
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
217
|
+
|
|
218
|
+
Please update the following components: %s`,f))};var Xd=new Map,dN=new Set;ns.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&ka&&(a=n),n=n.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!dN.has(e.type)&&(n=Xd.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],Xd.set(a,n)),n.push(e))},ns.flushLegacyContextWarning=function(){Xd.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(B(r)||"Component"),dN.add(r.type)});var n=N(a);he(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
219
|
+
|
|
220
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
221
|
+
|
|
222
|
+
Please update the following components: %s
|
|
223
|
+
|
|
224
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,n)})}})},ns.discardPendingWarnings=function(){gc=[],bc=[],yc=[],vc=[],xc=[],Nc=[],Xd=new Map};var fN={react_stack_bottom_frame:function(e,t,a){var n=Os;Os=!0;try{return e(t,a)}finally{Os=n}}},Yh=fN.react_stack_bottom_frame.bind(fN),mN={react_stack_bottom_frame:function(e){var t=Os;Os=!0;try{return e.render()}finally{Os=t}}},pN=mN.react_stack_bottom_frame.bind(mN),hN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(e,e.return,a)}}},qh=hN.react_stack_bottom_frame.bind(hN),gN={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(i){ht(e,e.return,i)}}},bN=gN.react_stack_bottom_frame.bind(gN),yN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},CR=yN.react_stack_bottom_frame.bind(yN),vN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(e,t,n)}}},xN=vN.react_stack_bottom_frame.bind(vN),NN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},TR=NN.react_stack_bottom_frame.bind(NN),SN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},jR=SN.react_stack_bottom_frame.bind(SN),wN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},OR=wN.react_stack_bottom_frame.bind(wN),Gi=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Gh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Qd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Pd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},$r=null,Sc=!1,Ii=null,wc=0,Pe=null,Ih,EN=Ih=!1,DN={},RN={},_N={};D=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var n=B(e),r=n||"null";if(!DN[r]){DN[r]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(r=B(e))&&(i=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+r+"`."),i||n&&(i=`
|
|
227
|
+
|
|
228
|
+
Check the top-level render call using <`+n+">.");var f="";a!=null&&e!==a&&(n=null,typeof a.tag=="number"?n=B(a):typeof a.name=="string"&&(n=a.name),n&&(f=" It was passed a child from "+n+".")),he(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,f)})}}};var Yr=vy(!0),kN=vy(!1),UN=0,CN=1,TN=2,Fh=3,Ko=!1,jN=!1,Xh=null,Qh=!1,Fi=me(null),Zd=me(0),hn=me(null),Vn=null,Xi=1,Ec=2,Ft=me(0),Jd=0,Mn=1,$a=2,gn=4,Ya=8,Qi,ON=new Set,AN=new Set,Ph=new Set,VN=new Set,mo=0,$e=null,St=null,ea=null,Kd=!1,Pi=!1,qr=!1,Wd=0,Dc=0,po=null,AR=0,VR=25,q=null,zn=null,ho=-1,Rc=!1,_c={readContext:jt,use:Vo,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};_c.useEffectEvent=$t;var Zh=null,MN=null,Jh=null,zN=null,Bs=null,ss=null,ef=null;Zh={readContext:function(e){return jt(e)},use:Vo,useCallback:function(e,t){return q="useCallback",We(),di(t),Xm(e,t)},useContext:function(e){return q="useContext",We(),jt(e)},useEffect:function(e,t){return q="useEffect",We(),di(t),Xu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",We(),di(a),Fm(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",We(),di(t),Rr(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",We(),di(t),Im(e,t)},useMemo:function(e,t){q="useMemo",We(),di(t);var a=F.H;F.H=Bs;try{return Qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",We();var n=F.H;F.H=Bs;try{return Mm(e,t,a)}finally{F.H=n}},useRef:function(e){return q="useRef",We(),qm(e)},useState:function(e){q="useState",We();var t=F.H;F.H=Bs;try{return Bm(e)}finally{F.H=t}},useDebugValue:function(){q="useDebugValue",We()},useDeferredValue:function(e,t){return q="useDeferredValue",We(),Pm(e,t)},useTransition:function(){return q="useTransition",We(),Km()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",We(),Lm(e,t,a)},useId:function(){return q="useId",We(),Wm()},useFormState:function(e,t){return q="useFormState",We(),Yu(),mi(e,t)},useActionState:function(e,t){return q="useActionState",We(),mi(e,t)},useOptimistic:function(e){return q="useOptimistic",We(),$m(e)},useHostTransitionStatus:_r,useMemoCache:Dr,useCacheRefresh:function(){return q="useCacheRefresh",We(),ep()},useEffectEvent:function(e){return q="useEffectEvent",We(),Gm(e)}},MN={readContext:function(e){return jt(e)},use:Vo,useCallback:function(e,t){return q="useCallback",se(),Xm(e,t)},useContext:function(e){return q="useContext",se(),jt(e)},useEffect:function(e,t){return q="useEffect",se(),Xu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",se(),Fm(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",se(),Rr(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",se(),Im(e,t)},useMemo:function(e,t){q="useMemo",se();var a=F.H;F.H=Bs;try{return Qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",se();var n=F.H;F.H=Bs;try{return Mm(e,t,a)}finally{F.H=n}},useRef:function(e){return q="useRef",se(),qm(e)},useState:function(e){q="useState",se();var t=F.H;F.H=Bs;try{return Bm(e)}finally{F.H=t}},useDebugValue:function(){q="useDebugValue",se()},useDeferredValue:function(e,t){return q="useDeferredValue",se(),Pm(e,t)},useTransition:function(){return q="useTransition",se(),Km()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",se(),Lm(e,t,a)},useId:function(){return q="useId",se(),Wm()},useActionState:function(e,t){return q="useActionState",se(),mi(e,t)},useFormState:function(e,t){return q="useFormState",se(),Yu(),mi(e,t)},useOptimistic:function(e){return q="useOptimistic",se(),$m(e)},useHostTransitionStatus:_r,useMemoCache:Dr,useCacheRefresh:function(){return q="useCacheRefresh",se(),ep()},useEffectEvent:function(e){return q="useEffectEvent",se(),Gm(e)}},Jh={readContext:function(e){return jt(e)},use:Vo,useCallback:function(e,t){return q="useCallback",se(),Zu(e,t)},useContext:function(e){return q="useContext",se(),jt(e)},useEffect:function(e,t){q="useEffect",se(),Ja(2048,Ya,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",se(),Pu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",se(),Ja(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",se(),Ja(4,gn,e,t)},useMemo:function(e,t){q="useMemo",se();var a=F.H;F.H=ss;try{return Ju(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",se();var n=F.H;F.H=ss;try{return fi(e,t,a)}finally{F.H=n}},useRef:function(){return q="useRef",se(),bt().memoizedState},useState:function(){q="useState",se();var e=F.H;F.H=ss;try{return fi(Wn)}finally{F.H=e}},useDebugValue:function(){q="useDebugValue",se()},useDeferredValue:function(e,t){return q="useDeferredValue",se(),$y(e,t)},useTransition:function(){return q="useTransition",se(),Xy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",se(),Gu(e,t,a)},useId:function(){return q="useId",se(),bt().memoizedState},useFormState:function(e){return q="useFormState",se(),Yu(),Iu(e)},useActionState:function(e){return q="useActionState",se(),Iu(e)},useOptimistic:function(e,t){return q="useOptimistic",se(),Ty(e,t)},useHostTransitionStatus:_r,useMemoCache:Dr,useCacheRefresh:function(){return q="useCacheRefresh",se(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",se(),Qu(e)}},zN={readContext:function(e){return jt(e)},use:Vo,useCallback:function(e,t){return q="useCallback",se(),Zu(e,t)},useContext:function(e){return q="useContext",se(),jt(e)},useEffect:function(e,t){q="useEffect",se(),Ja(2048,Ya,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",se(),Pu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",se(),Ja(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",se(),Ja(4,gn,e,t)},useMemo:function(e,t){q="useMemo",se();var a=F.H;F.H=ef;try{return Ju(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",se();var n=F.H;F.H=ef;try{return jl(e,t,a)}finally{F.H=n}},useRef:function(){return q="useRef",se(),bt().memoizedState},useState:function(){q="useState",se();var e=F.H;F.H=ef;try{return jl(Wn)}finally{F.H=e}},useDebugValue:function(){q="useDebugValue",se()},useDeferredValue:function(e,t){return q="useDeferredValue",se(),Yy(e,t)},useTransition:function(){return q="useTransition",se(),Qy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",se(),Gu(e,t,a)},useId:function(){return q="useId",se(),bt().memoizedState},useFormState:function(e){return q="useFormState",se(),Yu(),Fu(e)},useActionState:function(e){return q="useActionState",se(),Fu(e)},useOptimistic:function(e,t){return q="useOptimistic",se(),Oy(e,t)},useHostTransitionStatus:_r,useMemoCache:Dr,useCacheRefresh:function(){return q="useCacheRefresh",se(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",se(),Qu(e)}},Bs={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Vo(e)},useCallback:function(e,t){return q="useCallback",g(),We(),Xm(e,t)},useContext:function(e){return q="useContext",g(),We(),jt(e)},useEffect:function(e,t){return q="useEffect",g(),We(),Xu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),We(),Fm(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",g(),We(),Rr(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),We(),Im(e,t)},useMemo:function(e,t){q="useMemo",g(),We();var a=F.H;F.H=Bs;try{return Qm(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",g(),We();var n=F.H;F.H=Bs;try{return Mm(e,t,a)}finally{F.H=n}},useRef:function(e){return q="useRef",g(),We(),qm(e)},useState:function(e){q="useState",g(),We();var t=F.H;F.H=Bs;try{return Bm(e)}finally{F.H=t}},useDebugValue:function(){q="useDebugValue",g(),We()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),We(),Pm(e,t)},useTransition:function(){return q="useTransition",g(),We(),Km()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),We(),Lm(e,t,a)},useId:function(){return q="useId",g(),We(),Wm()},useFormState:function(e,t){return q="useFormState",g(),We(),mi(e,t)},useActionState:function(e,t){return q="useActionState",g(),We(),mi(e,t)},useOptimistic:function(e){return q="useOptimistic",g(),We(),$m(e)},useMemoCache:function(e){return g(),Dr(e)},useHostTransitionStatus:_r,useCacheRefresh:function(){return q="useCacheRefresh",We(),ep()},useEffectEvent:function(e){return q="useEffectEvent",g(),We(),Gm(e)}},ss={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Vo(e)},useCallback:function(e,t){return q="useCallback",g(),se(),Zu(e,t)},useContext:function(e){return q="useContext",g(),se(),jt(e)},useEffect:function(e,t){q="useEffect",g(),se(),Ja(2048,Ya,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),se(),Pu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",g(),se(),Ja(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),se(),Ja(4,gn,e,t)},useMemo:function(e,t){q="useMemo",g(),se();var a=F.H;F.H=ss;try{return Ju(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",g(),se();var n=F.H;F.H=ss;try{return fi(e,t,a)}finally{F.H=n}},useRef:function(){return q="useRef",g(),se(),bt().memoizedState},useState:function(){q="useState",g(),se();var e=F.H;F.H=ss;try{return fi(Wn)}finally{F.H=e}},useDebugValue:function(){q="useDebugValue",g(),se()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),se(),$y(e,t)},useTransition:function(){return q="useTransition",g(),se(),Xy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),se(),Gu(e,t,a)},useId:function(){return q="useId",g(),se(),bt().memoizedState},useFormState:function(e){return q="useFormState",g(),se(),Iu(e)},useActionState:function(e){return q="useActionState",g(),se(),Iu(e)},useOptimistic:function(e,t){return q="useOptimistic",g(),se(),Ty(e,t)},useMemoCache:function(e){return g(),Dr(e)},useHostTransitionStatus:_r,useCacheRefresh:function(){return q="useCacheRefresh",se(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",g(),se(),Qu(e)}},ef={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Vo(e)},useCallback:function(e,t){return q="useCallback",g(),se(),Zu(e,t)},useContext:function(e){return q="useContext",g(),se(),jt(e)},useEffect:function(e,t){q="useEffect",g(),se(),Ja(2048,Ya,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),se(),Pu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",g(),se(),Ja(4,$a,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),se(),Ja(4,gn,e,t)},useMemo:function(e,t){q="useMemo",g(),se();var a=F.H;F.H=ss;try{return Ju(e,t)}finally{F.H=a}},useReducer:function(e,t,a){q="useReducer",g(),se();var n=F.H;F.H=ss;try{return jl(e,t,a)}finally{F.H=n}},useRef:function(){return q="useRef",g(),se(),bt().memoizedState},useState:function(){q="useState",g(),se();var e=F.H;F.H=ss;try{return jl(Wn)}finally{F.H=e}},useDebugValue:function(){q="useDebugValue",g(),se()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),se(),Yy(e,t)},useTransition:function(){return q="useTransition",g(),se(),Qy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),se(),Gu(e,t,a)},useId:function(){return q="useId",g(),se(),bt().memoizedState},useFormState:function(e){return q="useFormState",g(),se(),Fu(e)},useActionState:function(e){return q="useActionState",g(),se(),Fu(e)},useOptimistic:function(e,t){return q="useOptimistic",g(),se(),Oy(e,t)},useMemoCache:function(e){return g(),Dr(e)},useHostTransitionStatus:_r,useCacheRefresh:function(){return q="useCacheRefresh",se(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",g(),se(),Qu(e)}};var LN={},HN=new Set,BN=new Set,$N=new Set,YN=new Set,qN=new Set,GN=new Set,IN=new Set,FN=new Set,XN=new Set,QN=new Set;Object.freeze(LN);var Kh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=un(e),r=To(n);r.payload=t,a!=null&&(ap(a),r.callback=a),t=jo(e,r,n),t!==null&&(ys(n,"this.setState()",e),Mt(t,e,n),kl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=un(e),r=To(n);r.tag=CN,r.payload=t,a!=null&&(ap(a),r.callback=a),t=jo(e,r,n),t!==null&&(ys(n,"this.replaceState()",e),Mt(t,e,n),kl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=un(e),n=To(a);n.tag=TN,t!=null&&(ap(t),n.callback=t),t=jo(e,n,a),t!==null&&(ys(a,"this.forceUpdate()",e),Mt(t,e,a),kl(t,e,a))}},Zi=null,Wh=null,eg=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ta=!1,PN={},ZN={},JN={},KN={},Ji=!1,WN={},tf={},tg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},e1=!1,t1=null;t1=new Set;var go=!1,aa=!1,ag=!1,a1=typeof WeakSet=="function"?WeakSet:Set,pa=null,Ki=null,Wi=null,na=null,en=!1,os=null,ra=!1,kc=8192,MR={getCacheForType:function(e){var t=jt(Kt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return jt(Kt).controller.signal},getOwner:function(){return mn}};if(typeof Symbol=="function"&&Symbol.for){var Uc=Symbol.for;Uc("selector.component"),Uc("selector.has_pseudo_class"),Uc("selector.role"),Uc("selector.test_id"),Uc("selector.text")}var zR=[],LR=typeof WeakMap=="function"?WeakMap:Map,ha=0,ia=2,bn=4,bo=0,Cc=1,Gr=2,af=3,Wo=4,nf=6,n1=5,ut=ha,wt=null,Je=null,Ze=0,tn=0,sf=1,Ir=2,Tc=3,s1=4,ng=5,jc=6,of=7,sg=8,Fr=9,yt=tn,yn=null,er=!1,el=!1,og=!1,$s=0,Vt=bo,tr=0,ar=0,rg=0,an=0,Xr=0,Oc=null,qa=null,rf=!1,lf=0,o1=0,r1=300,cf=1/0,i1=500,Ac=null,Yt=null,nr=null,uf=0,ig=1,lg=2,l1=3,sr=0,c1=1,u1=2,d1=3,f1=4,df=5,sa=0,or=null,tl=null,rs=0,cg=0,ug=-0,dg=null,m1=null,p1=null,is=uf,h1=null,HR=50,Vc=0,fg=null,mg=!1,ff=!1,BR=50,Qr=0,Mc=null,al=!1,mf=null,g1=!1,b1=new Set,$R={},pf=null,nl=null,pg=!1,hg=!1,hf=!1,gg=!1,rr=0,bg={};(function(){for(var e=0;e<kh.length;e++){var t=kh[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Jn(a,"on"+t)}Jn(Xx,"onAnimationEnd"),Jn(Qx,"onAnimationIteration"),Jn(Px,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(gR,"onTransitionRun"),Jn(bR,"onTransitionStart"),Jn(yR,"onTransitionCancel"),Jn(Zx,"onTransitionEnd")})(),Be("onMouseEnter",["mouseout","mouseover"]),Be("onMouseLeave",["mouseout","mouseover"]),Be("onPointerEnter",["pointerout","pointerover"]),Be("onPointerLeave",["pointerout","pointerover"]),Xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zc="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(" "),yg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zc)),gf="_reactListening"+Math.random().toString(36).slice(2),y1=!1,v1=!1,bf=!1,x1=!1,yf=!1,vf=!1,N1=!1,xf={},YR=/\r\n?/g,qR=/\u0000|\uFFFD/g,Pr="http://www.w3.org/1999/xlink",vg="http://www.w3.org/XML/1998/namespace",GR="javascript:throw new Error('React form unexpectedly submitted.')",IR="suppressHydrationWarning",Zr="&",Nf="/&",Lc="$",Hc="/$",ir="$?",Jr="$~",sl="$!",FR="html",XR="body",QR="head",xg="F!",S1="F",w1="loading",PR="style",yo=0,ol=1,Sf=2,Ng=null,Sg=null,E1={dialog:!0,webview:!0},wg=null,Bc=void 0,D1=typeof setTimeout=="function"?setTimeout:void 0,ZR=typeof clearTimeout=="function"?clearTimeout:void 0,Kr=-1,R1=typeof Promise=="function"?Promise:void 0,JR=typeof queueMicrotask=="function"?queueMicrotask:typeof R1<"u"?function(e){return R1.resolve(null).then(e).catch(OE)}:D1,Eg=null,Wr=0,$c=1,_1=2,k1=3,Ln=4,Hn=new Map,U1=new Set,vo=gt.d;gt.d={f:function(){var e=vo.f(),t=yi();return e||t},r:function(e){var t=ae(e);t!==null&&t.tag===5&&t.type==="form"?Fy(t):vo.r(e)},D:function(e){vo.D(e),H0("dns-prefetch",e,null)},C:function(e,t){vo.C(e,t),H0("preconnect",e,t)},L:function(e,t,a){vo.L(e,t,a);var n=rl;if(n&&e&&t){var r='link[rel="preload"][as="'+ye(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ye(a.imageSizes)+'"]')):r+='[href="'+ye(e)+'"]';var i=r;switch(t){case"style":i=Ni(e);break;case"script":i=Si(e)}Hn.has(i)||(e=et({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Hn.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Xl(i))||t==="script"&&n.querySelector(Ql(i))||(t=n.createElement("link"),va(t,"link",e),Ee(t),n.head.appendChild(t)))}},m:function(e,t){vo.m(e,t);var a=rl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ye(n)+'"][href="'+ye(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Si(e)}if(!Hn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Hn.set(i,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ql(i)))return}n=a.createElement("link"),va(n,"link",e),Ee(n),a.head.appendChild(n)}}},X:function(e,t){vo.X(e,t);var a=rl;if(a&&e){var n=ze(a).hoistableScripts,r=Si(e),i=n.get(r);i||(i=a.querySelector(Ql(r)),i||(e=et({src:e,async:!0},t),(t=Hn.get(r))&&Fp(e,t),i=a.createElement("script"),Ee(i),va(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,a){vo.S(e,t,a);var n=rl;if(n&&e){var r=ze(n).hoistableStyles,i=Ni(e);t=t||"default";var f=r.get(i);if(!f){var p={loading:Wr,preload:null};if(f=n.querySelector(Xl(i)))p.loading=$c|Ln;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Hn.get(i))&&Ip(e,a);var v=f=n.createElement("link");Ee(v),va(v,"link",e),v._p=new Promise(function(S,V){v.onload=S,v.onerror=V}),v.addEventListener("load",function(){p.loading|=$c}),v.addEventListener("error",function(){p.loading|=_1}),p.loading|=Ln,gd(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:p},r.set(i,f)}}},M:function(e,t){vo.M(e,t);var a=rl;if(a&&e){var n=ze(a).hoistableScripts,r=Si(e),i=n.get(r);i||(i=a.querySelector(Ql(r)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Hn.get(r))&&Fp(e,t),i=a.createElement("script"),Ee(i),va(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var rl=typeof document>"u"?null:document,wf=null,KR=6e4,WR=800,e_=500,Dg=0,Rg=null,Ef=null,ei=pD,Yc={$$typeof:js,Provider:null,Consumer:null,_currentValue:ei,_currentValue2:ei,_threadCount:0},C1="%c%s%c",T1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",j1="",Df=" ",t_=Function.prototype.bind,O1=!1,A1=null,V1=null,M1=null,z1=null,L1=null,H1=null,B1=null,$1=null,Y1=null,q1=null;A1=function(e,t,a,n){t=s(e,t),t!==null&&(a=o(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},V1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},M1=function(e,t,a,n){t=s(e,t),t!==null&&(a=l(t.memoizedState,a,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},z1=function(e,t,a){e.pendingProps=o(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},L1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},H1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},B1=function(e){var t=Ra(e,2);t!==null&&Mt(t,e,2)},$1=function(e){var t=Xa(),a=Ra(e,t);a!==null&&Mt(a,e,t)},Y1=function(e){h=e},q1=function(e){d=e};var Rf=!0,_f=null,_g=!1,lr=null,cr=null,ur=null,qc=new Map,Gc=new Map,dr=[],a_="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(" "),kf=null;if(Nd.prototype.render=Kp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):z(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=un(n);Xp(n,r,a,t,null,null)},Nd.prototype.unmount=Kp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ut&(ia|bn))!==ha&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Xp(e.current,2,null,e,null,null),yi(),t[Yo]=null}},Nd.prototype.unstable_scheduleHydration=function(e){if(e){var t=nn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<dr.length&&t!==0&&t<dr[a].priority;a++);dr.splice(a,0,e),a===0&&W0(e)}},(function(){var e=Wp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
229
|
+
- react: `+(e+`
|
|
230
|
+
- react-dom: 19.2.4
|
|
231
|
+
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),gt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=P(t),e=e!==null?le(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};return e.overrideHookState=A1,e.overrideHookStateDeletePath=V1,e.overrideHookStateRenamePath=M1,e.overrideProps=z1,e.overridePropsDeletePath=L1,e.overridePropsRenamePath=H1,e.scheduleUpdate=B1,e.scheduleRetry=$1,e.setErrorHandler=Y1,e.setSuspenseHandler=q1,e.scheduleRefresh=_,e.scheduleRoot=R,e.setRefreshHandler=H,e.getCurrentFiber=oD,Sn(e)})()&&zs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var G1=window.location.protocol;/^(https?|file):$/.test(G1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(G1==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Fc.createRoot=function(e,t){if(!z(e))throw Error("Target container is not a DOM element.");nx(e);var a=!1,n="",r=ev,i=tv,f=av;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ts&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
233
|
+
|
|
234
|
+
let root = createRoot(domContainer);
|
|
235
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=F0(e,1,!1,null,null,a,n,null,r,i,f,ax),e[Yo]=t.current,Op(e),new Kp(t)},Fc.hydrateRoot=function(e,t,a){if(!z(e))throw Error("Target container is not a DOM element.");nx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,r="",i=ev,f=tv,p=av,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=F0(e,1,!0,t,a??null,n,r,v,i,f,p,ax),t.context=X0(null),a=t.current,n=un(a),n=Pa(n),r=To(n),r.callback=null,jo(a,r,n),ys(n,"hydrateRoot()",null),a=n,t.current.lanes=a,Qa(t,a),Us(t),e[Yo]=t.current,Op(e),new Nd(t)},Fc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Fc}var NS;function xk(){return NS||(NS=1,Vg.exports=vk()),Vg.exports}var Nk=xk();var Rw=s=>{throw TypeError(s)},Sk=(s,o,l)=>o.has(s)||Rw("Cannot "+l),Hg=(s,o,l)=>(Sk(s,o,"read from private field"),l?l.call(s):o.get(s)),wk=(s,o,l)=>o.has(s)?Rw("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,l),SS="popstate";function wS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function Ek(s={}){function o(c,u){let d=u.state?.masked,{pathname:h,search:g,hash:b}=d||c.location;return ou("",{pathname:h,search:g,hash:b},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function l(c,u){return typeof u=="string"?u:qs(u)}return Rk(o,l,null,s)}function at(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function qt(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Dk(){return Math.random().toString(36).substring(2,10)}function ES(s,o){return{usr:s.state,key:s.key,idx:o,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function ou(s,o,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?Eo(o):o,state:l,key:o&&o.key||c||Dk(),unstable_mask:u}}function qs({pathname:s="/",search:o="",hash:l=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function Eo(s){let o={};if(s){let l=s.indexOf("#");l>=0&&(o.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(o.search=s.substring(c),s=s.substring(0,c)),s&&(o.pathname=s)}return o}function Rk(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:d=!1}=c,h=u.history,g="POP",b=null,y=D();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function D(){return(h.state||{idx:null}).idx}function N(){g="POP";let z=D(),X=z==null?null:z-y;y=z,b&&b({action:g,location:H.location,delta:X})}function w(z,X){g="PUSH";let K=wS(z)?z:ou(H.location,z,X);y=D()+1;let W=ES(K,y),te=H.createHref(K.unstable_mask||K);try{h.pushState(W,"",te)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;u.location.assign(te)}d&&b&&b({action:g,location:H.location,delta:1})}function R(z,X){g="REPLACE";let K=wS(z)?z:ou(H.location,z,X);y=D();let W=ES(K,y),te=H.createHref(K.unstable_mask||K);h.replaceState(W,"",te),d&&b&&b({action:g,location:H.location,delta:0})}function _(z){return _w(z)}let H={get action(){return g},get location(){return s(u,h)},listen(z){if(b)throw new Error("A history only accepts one active listener");return u.addEventListener(SS,N),b=z,()=>{u.removeEventListener(SS,N),b=null}},createHref(z){return o(u,z)},createURL:_,encodeLocation(z){let X=_(z);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:w,replace:R,go(z){return h.go(z)}};return H}function _w(s,o=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),at(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:qs(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Jc,DS=class{constructor(s){if(wk(this,Jc,new Map),s)for(let[o,l]of s)this.set(o,l)}get(s){if(Hg(this,Jc).has(s))return Hg(this,Jc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,o){Hg(this,Jc).set(s,o)}};Jc=new WeakMap;var _k=new Set(["lazy","caseSensitive","path","id","index","children"]);function kk(s){return _k.has(s)}var Uk=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Ck(s){return Uk.has(s)}function Tk(s){return s.index===!0}function ru(s,o,l=[],c={},u=!1){return s.map((d,h)=>{let g=[...l,String(h)],b=typeof d.id=="string"?d.id:g.join("-");if(at(d.index!==!0||!d.children,"Cannot specify children on an index route"),at(u||!c[b],`Found a route id collision on id "${b}". Route id's must be globally unique within Data Router usages`),Tk(d)){let y={...d,id:b};return c[b]=RS(y,o(y)),y}else{let y={...d,id:b,children:void 0};return c[b]=RS(y,o(y)),d.children&&(y.children=ru(d.children,o,g,c,u)),y}})}function RS(s,o){return Object.assign(s,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...s.lazy,...o.lazy}}:{}})}function fr(s,o,l="/"){return Kc(s,o,l,!1)}function Kc(s,o,l,c){let u=typeof o=="string"?Eo(o):o,d=Yn(u.pathname||"/",l);if(d==null)return null;let h=kw(s);Ok(h);let g=null;for(let b=0;g==null&&b<h.length;++b){let y=Gk(d);g=Yk(h[b],y,c)}return g}function jk(s,o){let{route:l,pathname:c,params:u}=s;return{id:l.id,pathname:c,params:u,data:o[l.id],loaderData:o[l.id],handle:l.handle}}function kw(s,o=[],l=[],c="",u=!1){let d=(h,g,b=u,y)=>{let D={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&b)return;at(D.relativePath.startsWith(c),`Absolute route path "${D.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(c.length)}let N=ls([c,D.relativePath]),w=l.concat(D);h.children&&h.children.length>0&&(at(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),kw(h.children,o,w,N,b)),!(h.path==null&&!h.index)&&o.push({path:N,score:Bk(N,h.index),routesMeta:w})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))d(h,g);else for(let b of Uw(h.path))d(h,g,!0,b)}),o}function Uw(s){let o=s.split("/");if(o.length===0)return[];let[l,...c]=o,u=l.endsWith("?"),d=l.replace(/\?$/,"");if(c.length===0)return u?[d,""]:[d];let h=Uw(c.join("/")),g=[];return g.push(...h.map(b=>b===""?d:[d,b].join("/"))),u&&g.push(...h),g.map(b=>s.startsWith("/")&&b===""?"/":b)}function Ok(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:$k(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var Ak=/^:[\w-]+$/,Vk=3,Mk=2,zk=1,Lk=10,Hk=-2,_S=s=>s==="*";function Bk(s,o){let l=s.split("/"),c=l.length;return l.some(_S)&&(c+=Hk),o&&(c+=Mk),l.filter(u=>!_S(u)).reduce((u,d)=>u+(Ak.test(d)?Vk:d===""?zk:Lk),c)}function $k(s,o){return s.length===o.length&&s.slice(0,-1).every((c,u)=>c===o[u])?s[s.length-1]-o[o.length-1]:0}function Yk(s,o,l=!1){let{routesMeta:c}=s,u={},d="/",h=[];for(let g=0;g<c.length;++g){let b=c[g],y=g===c.length-1,D=d==="/"?o:o.slice(d.length)||"/",N=Yf({path:b.relativePath,caseSensitive:b.caseSensitive,end:y},D),w=b.route;if(!N&&y&&l&&!c[c.length-1].route.index&&(N=Yf({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},D)),!N)return null;Object.assign(u,N.params),h.push({params:u,pathname:ls([d,N.pathname]),pathnameBase:Xk(ls([d,N.pathnameBase])),route:w}),N.pathnameBase!=="/"&&(d=ls([d,N.pathnameBase]))}return h}function Yf(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=qk(s.path,s.caseSensitive,s.end),u=o.match(l);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((y,{paramName:D,isOptional:N},w)=>{if(D==="*"){let _=g[w]||"";h=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const R=g[w];return N&&!R?y[D]=void 0:y[D]=(R||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:s}}function qk(s,o=!1,l=!0){qt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let c=[],u="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,b,y,D)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let N=D.charAt(y+h.length);return N&&N!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),c]}function Gk(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return qt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),s}}function Yn(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let l=o.endsWith("/")?o.length-1:o.length,c=s.charAt(l);return c&&c!=="/"?null:s.slice(l)||"/"}function Ik({basename:s,pathname:o}){return o==="/"?s:ls([s,o])}var Cw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,db=s=>Cw.test(s);function Fk(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?Eo(s):s,d;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?d=kS(l.substring(1),"/"):d=kS(l,o)):d=o,{pathname:d,search:Qk(c),hash:Pk(u)}}function kS(s,o){let l=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function Bg(s,o,l,c){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tw(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function If(s){let o=Tw(s);return o.map((l,c)=>c===o.length-1?l.pathname:l.pathnameBase)}function uu(s,o,l,c=!1){let u;typeof s=="string"?u=Eo(s):(u={...s},at(!u.pathname||!u.pathname.includes("?"),Bg("?","pathname","search",u)),at(!u.pathname||!u.pathname.includes("#"),Bg("#","pathname","hash",u)),at(!u.search||!u.search.includes("#"),Bg("#","search","hash",u)));let d=s===""||u.pathname==="",h=d?"/":u.pathname,g;if(h==null)g=l;else{let N=o.length-1;if(!c&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),N-=1;u.pathname=w.join("/")}g=N>=0?o[N]:"/"}let b=Fk(u,g),y=h&&h!=="/"&&h.endsWith("/"),D=(d||h===".")&&l.endsWith("/");return!b.pathname.endsWith("/")&&(y||D)&&(b.pathname+="/"),b}var ls=s=>s.join("/").replace(/\/\/+/g,"/"),Xk=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Qk=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Pk=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,du=class{constructor(s,o,l,c=!1){this.status=s,this.statusText=o||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function iu(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function fu(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var jw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ow(s,o){let l=s;if(typeof l!="string"||!Cw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(jw)try{let d=new URL(window.location.href),h=l.startsWith("//")?new URL(d.protocol+l):new URL(l),g=Yn(h.pathname,o);h.origin===d.origin&&g!=null?l=g+h.search+h.hash:u=!0}catch{qt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:u,to:l}}var pr=Symbol("Uninstrumented");function Zk(s,o){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};s.forEach(u=>u({id:o.id,index:o.index,path:o.path,instrument(d){let h=Object.keys(l);for(let g of h)d[g]&&l[g].push(d[g])}}));let c={};if(typeof o.lazy=="function"&&l.lazy.length>0){let u=dl(l.lazy,o.lazy,()=>{});u&&(c.lazy=u)}if(typeof o.lazy=="object"){let u=o.lazy;["middleware","loader","action"].forEach(d=>{let h=u[d],g=l[`lazy.${d}`];if(typeof h=="function"&&g.length>0){let b=dl(g,h,()=>{});b&&(c.lazy=Object.assign(c.lazy||{},{[d]:b}))}})}return["loader","action"].forEach(u=>{let d=o[u];if(typeof d=="function"&&l[u].length>0){let h=d[pr]??d,g=dl(l[u],h,(...b)=>US(b[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[pr]=h,c[u]=g)}}),o.middleware&&o.middleware.length>0&&l.middleware.length>0&&(c.middleware=o.middleware.map(u=>{let d=u[pr]??u,h=dl(l.middleware,d,(...g)=>US(g[0]));return h?(h[pr]=d,h):u})),c}function Jk(s,o){let l={navigate:[],fetch:[]};if(o.forEach(c=>c({instrument(u){let d=Object.keys(u);for(let h of d)u[h]&&l[h].push(u[h])}})),l.navigate.length>0){let c=s.navigate[pr]??s.navigate,u=dl(l.navigate,c,(...d)=>{let[h,g]=d;return{to:typeof h=="number"||typeof h=="string"?h:h?qs(h):".",...CS(s,g??{})}});u&&(u[pr]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[pr]??s.fetch,u=dl(l.fetch,c,(...d)=>{let[h,,g,b]=d;return{href:g??".",fetcherKey:h,...CS(s,b??{})}});u&&(u[pr]=c,s.fetch=u)}return s}function dl(s,o,l){return s.length===0?null:async(...c)=>{let u=await Aw(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function Aw(s,o,l,c){let u=s[c],d;if(u){let h,g=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=Aw(s,o,l,c-1),d=await h,at(d,"Expected a result"),d.type==="error"&&d.value instanceof Error?{status:"error",error:d.value}:{status:"success",error:void 0});try{await u(g,o)}catch(b){console.error("An instrumentation function threw an error:",b)}h||await g(),await h}else try{d={type:"success",value:await l()}}catch(h){d={type:"error",value:h}}return d||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function US(s){let{request:o,context:l,params:c,unstable_pattern:u}=s;return{request:Kk(o),params:{...c},unstable_pattern:u,context:Wk(l)}}function CS(s,o){return{currentUrl:qs(s.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function Kk(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function Wk(s){if(tU(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var eU=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tU(s){if(s===null||typeof s!="object")return!1;const o=Object.getPrototypeOf(s);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===eU}var Vw=["POST","PUT","PATCH","DELETE"],aU=new Set(Vw),nU=["GET",...Vw],sU=new Set(nU),Mw=new Set([301,302,303,307,308]),oU=new Set([307,308]),$g={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},iU=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),zw="remix-router-transitions",Lw=Symbol("ResetLoaderData");function lU(s){const o=s.window?s.window:typeof window<"u"?window:void 0,l=typeof o<"u"&&typeof o.document<"u"&&typeof o.document.createElement<"u";at(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||iU,d=u;if(s.unstable_instrumentations){let C=s.unstable_instrumentations;d=L=>({...u(L),...Zk(C.map(G=>G.route).filter(Boolean),L)})}let h={},g=ru(s.routes,d,void 0,h),b,y=s.basename||"/";y.startsWith("/")||(y=`/${y}`);let D=s.dataStrategy||mU,N={...s.future},w=null,R=new Set,_=null,H=null,z=null,X=s.hydrationData!=null,K=fr(g,s.history.location,y),W=!1,te=null,P,le;if(K==null&&!s.patchRoutesOnNavigation){let C=Bn(404,{pathname:s.history.location.pathname}),{matches:L,route:G}=Tf(g);P=!0,le=!P,K=L,te={[G.id]:C}}else if(K&&!s.hydrationData&&Oa(K,g,s.history.location.pathname).active&&(K=null),K)if(K.some(C=>C.route.lazy))P=!1,le=!P;else if(!K.some(C=>fb(C.route)))P=!0,le=!P;else{let C=s.hydrationData?s.hydrationData.loaderData:null,L=s.hydrationData?s.hydrationData.errors:null,G=K;if(L){let oe=K.findIndex(ie=>L[ie.route.id]!==void 0);G=G.slice(0,oe+1)}le=!1,P=G.every(oe=>{let ie=Hw(oe.route,C,L);return le=le||ie.renderFallback,!ie.shouldLoad})}else{P=!1,le=!P,K=[];let C=Oa(null,g,s.history.location.pathname);C.active&&C.matches&&(W=!0,K=C.matches)}let re,k={historyAction:s.history.action,location:s.history.location,matches:K,initialized:P,renderFallback:le,navigation:$g,restoreScrollPosition:s.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:s.hydrationData&&s.hydrationData.loaderData||{},actionData:s.hydrationData&&s.hydrationData.actionData||null,errors:s.hydrationData&&s.hydrationData.errors||te,fetchers:new Map,blockers:new Map},$="POP",B=null,me=!1,ee,ce=!1,ne=new Map,ge=null,J=!1,ue=!1,ve=new Set,pe=new Map,He=0,I=-1,Ne=new Map,Ue=new Set,Re=new Map,dt=new Map,Tt=new Set,Ke=new Map,Qt,De=null;function Lt(){if(w=s.history.listen(({action:C,location:L,delta:G})=>{if(Qt){Qt(),Qt=void 0;return}qt(Ke.size===0||G!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let oe=de({currentLocation:k.location,nextLocation:L,historyAction:C});if(oe&&G!=null){let ie=new Promise(ke=>{Qt=ke});s.history.go(G*-1),ae(oe,{state:"blocked",location:L,proceed(){ae(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),ie.then(()=>s.history.go(G))},reset(){let ke=new Map(k.blockers);ke.set(oe,Xc),ft({blockers:ke})}}),B?.resolve(),B=null;return}return vt(C,L)}),l){TU(o,ne);let C=()=>jU(o,ne);o.addEventListener("pagehide",C),ge=()=>o.removeEventListener("pagehide",C)}return k.initialized||vt("POP",k.location,{initialHydration:!0}),re}function he(){w&&w(),ge&&ge(),R.clear(),ee&&ee.abort(),k.fetchers.forEach((C,L)=>Pa(L)),k.blockers.forEach((C,L)=>Z(L))}function xt(C){return R.add(C),()=>R.delete(C)}function ft(C,L={}){C.matches&&(C.matches=C.matches.map(ie=>{let ke=h[ie.route.id],ye=ie.route;return ye.element!==ke.element||ye.errorElement!==ke.errorElement||ye.hydrateFallbackElement!==ke.hydrateFallbackElement?{...ie,route:ke}:ie})),k={...k,...C};let G=[],oe=[];k.fetchers.forEach((ie,ke)=>{ie.state==="idle"&&(Tt.has(ke)?G.push(ke):oe.push(ke))}),Tt.forEach(ie=>{!k.fetchers.has(ie)&&!pe.has(ie)&&G.push(ie)}),[...R].forEach(ie=>ie(k,{deletedFetchers:G,newErrors:C.errors??null,viewTransitionOpts:L.viewTransitionOpts,flushSync:L.flushSync===!0})),G.forEach(ie=>Pa(ie)),oe.forEach(ie=>k.fetchers.delete(ie))}function Ht(C,L,{flushSync:G}={}){let oe=k.actionData!=null&&k.navigation.formMethod!=null&&Ca(k.navigation.formMethod)&&k.navigation.state==="loading"&&C.state?._isRedirect!==!0,ie;L.actionData?Object.keys(L.actionData).length>0?ie=L.actionData:ie=null:oe?ie=k.actionData:ie=null;let ke=L.loaderData?BS(k.loaderData,L.loaderData,L.matches||[],L.errors):k.loaderData,ye=k.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((Ae,Ce)=>ye.set(Ce,Xc)));let Te=J?!1:Zt(C,L.matches||k.matches),we=me===!0||k.navigation.formMethod!=null&&Ca(k.navigation.formMethod)&&C.state?._isRedirect!==!0;b&&(g=b,b=void 0),J||$==="POP"||($==="PUSH"?s.history.push(C,C.state):$==="REPLACE"&&s.history.replace(C,C.state));let Ve;if($==="POP"){let Ae=ne.get(k.location.pathname);Ae&&Ae.has(C.pathname)?Ve={currentLocation:k.location,nextLocation:C}:ne.has(C.pathname)&&(Ve={currentLocation:C,nextLocation:k.location})}else if(ce){let Ae=ne.get(k.location.pathname);Ae?Ae.add(C.pathname):(Ae=new Set([C.pathname]),ne.set(k.location.pathname,Ae)),Ve={currentLocation:k.location,nextLocation:C}}ft({...L,actionData:ie,loaderData:ke,historyAction:$,location:C,initialized:!0,renderFallback:!1,navigation:$g,revalidation:"idle",restoreScrollPosition:Te,preventScrollReset:we,blockers:ye},{viewTransitionOpts:Ve,flushSync:G===!0}),$="POP",me=!1,ce=!1,J=!1,ue=!1,B?.resolve(),B=null,De?.resolve(),De=null}async function Bt(C,L){if(B?.resolve(),B=null,typeof C=="number"){B||(B=GS());let Rt=B.promise;return s.history.go(C),Rt}let G=Wg(k.location,k.matches,y,C,L?.fromRouteId,L?.relative),{path:oe,submission:ie,error:ke}=TS(!1,G,L),ye;L?.unstable_mask&&(ye={pathname:"",search:"",hash:"",...typeof L.unstable_mask=="string"?Eo(L.unstable_mask):{...k.location.unstable_mask,...L.unstable_mask}});let Te=k.location,we=ou(Te,oe,L&&L.state,void 0,ye);we={...we,...s.history.encodeLocation(we)};let Ve=L&&L.replace!=null?L.replace:void 0,Ae="PUSH";Ve===!0?Ae="REPLACE":Ve===!1||ie!=null&&Ca(ie.formMethod)&&ie.formAction===k.location.pathname+k.location.search&&(Ae="REPLACE");let Ce=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,mt=(L&&L.flushSync)===!0,tt=de({currentLocation:Te,nextLocation:we,historyAction:Ae});if(tt){ae(tt,{state:"blocked",location:we,proceed(){ae(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:we}),Bt(C,L)},reset(){let Rt=new Map(k.blockers);Rt.set(tt,Xc),ft({blockers:Rt})}});return}await vt(Ae,we,{submission:ie,pendingError:ke,preventScrollReset:Ce,replace:L&&L.replace,enableViewTransition:L&&L.viewTransition,flushSync:mt,callSiteDefaultShouldRevalidate:L&&L.unstable_defaultShouldRevalidate})}function nt(){De||(De=GS()),Qa(),ft({revalidation:"loading"});let C=De.promise;return k.navigation.state==="submitting"?C:k.navigation.state==="idle"?(vt(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),C):(vt($||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:ce===!0}),C)}async function vt(C,L,G){ee&&ee.abort(),ee=null,$=C,J=(G&&G.startUninterruptedRevalidation)===!0,Be(k.location,k.matches),me=(G&&G.preventScrollReset)===!0,ce=(G&&G.enableViewTransition)===!0;let oe=b||g,ie=G&&G.overrideNavigation,ke=G?.initialHydration&&k.matches&&k.matches.length>0&&!W?k.matches:fr(oe,L,y),ye=(G&&G.flushSync)===!0;if(ke&&k.initialized&&!ue&&NU(k.location,L)&&!(G&&G.submission&&Ca(G.submission.formMethod))){Ht(L,{matches:ke},{flushSync:ye});return}let Te=Oa(ke,oe,L.pathname);if(Te.active&&Te.matches&&(ke=Te.matches),!ke){let{error:Gt,notFoundMatches:ca,route:pt}=ze(L.pathname);Ht(L,{matches:ca,loaderData:{},errors:{[pt.id]:Gt}},{flushSync:ye});return}ee=new AbortController;let we=cl(s.history,L,ee.signal,G&&G.submission),Ve=s.getContext?await s.getContext():new DS,Ae;if(G&&G.pendingError)Ae=[mr(ke).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&Ca(G.submission.formMethod)){let Gt=await Pt(we,L,G.submission,ke,Ve,Te.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:ye});if(Gt.shortCircuited)return;if(Gt.pendingActionResult){let[ca,pt]=Gt.pendingActionResult;if(vn(pt)&&iu(pt.error)&&pt.error.status===404){ee=null,Ht(L,{matches:Gt.matches,loaderData:{},errors:{[ca]:pt.error}});return}}ke=Gt.matches||ke,Ae=Gt.pendingActionResult,ie=Yg(L,G.submission),ye=!1,Te.active=!1,we=cl(s.history,we.url,we.signal)}let{shortCircuited:Ce,matches:mt,loaderData:tt,errors:Rt}=await Sn(we,L,ke,Ve,Te.active,ie,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,ye,Ae,G&&G.callSiteDefaultShouldRevalidate);Ce||(ee=null,Ht(L,{matches:mt||ke,...$S(Ae),loaderData:tt,errors:Rt}))}async function Pt(C,L,G,oe,ie,ke,ye,Te={}){Qa();let we=UU(L,G);if(ft({navigation:we},{flushSync:Te.flushSync===!0}),ke){let Ce=await Is(oe,L.pathname,C.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){if(Ce.partialMatches.length===0){let{matches:tt,route:Rt}=Tf(g);return{matches:tt,pendingActionResult:[Rt.id,{type:"error",error:Ce.error}]}}let mt=mr(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[mt,{type:"error",error:Ce.error}]}}else if(Ce.matches)oe=Ce.matches;else{let{notFoundMatches:mt,error:tt,route:Rt}=ze(L.pathname);return{matches:mt,pendingActionResult:[Rt.id,{type:"error",error:tt}]}}}let Ve,Ae=Mf(oe,L);if(!Ae.route.action&&!Ae.route.lazy)Ve={type:"error",error:Bn(405,{method:C.method,pathname:L.pathname,routeId:Ae.route.id})};else{let Ce=fl(d,h,C,oe,Ae,ye?[]:c,ie),mt=await Xa(C,Ce,ie,null);if(Ve=mt[Ae.route.id],!Ve){for(let tt of oe)if(mt[tt.route.id]){Ve=mt[tt.route.id];break}}if(C.signal.aborted)return{shortCircuited:!0}}if(ai(Ve)){let Ce;return Te&&Te.replace!=null?Ce=Te.replace:Ce=zS(Ve.response.headers.get("Location"),new URL(C.url),y,s.history)===k.location.pathname+k.location.search,await ja(C,Ve,!0,{submission:G,replace:Ce}),{shortCircuited:!0}}if(vn(Ve)){let Ce=mr(oe,Ae.route.id);return(Te&&Te.replace)!==!0&&($="PUSH"),{matches:oe,pendingActionResult:[Ce.route.id,Ve,Ae.route.id]}}return{matches:oe,pendingActionResult:[Ae.route.id,Ve]}}async function Sn(C,L,G,oe,ie,ke,ye,Te,we,Ve,Ae,Ce,mt){let tt=ke||Yg(L,ye),Rt=ye||Te||qS(tt),Gt=!J&&!Ve;if(ie){if(Gt){let ua=Se(Ce);ft({navigation:tt,...ua!==void 0?{actionData:ua}:{}},{flushSync:Ae})}let ot=await Is(G,L.pathname,C.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:Do,route:ps}=Tf(g);return{matches:Do,loaderData:{},errors:{[ps.id]:ot.error}}}let ua=mr(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[ua]:ot.error}}}else if(ot.matches)G=ot.matches;else{let{error:ua,notFoundMatches:Do,route:ps}=ze(L.pathname);return{matches:Do,loaderData:{},errors:{[ps.id]:ua}}}}let ca=b||g,{dsMatches:pt,revalidatingFetchers:Aa}=jS(C,oe,d,h,s.history,k,G,Rt,L,Ve?[]:c,Ve===!0,ue,ve,Tt,Re,Ue,ca,y,s.patchRoutesOnNavigation!=null,Ce,mt);if(I=++He,!s.dataStrategy&&!pt.some(ot=>ot.shouldLoad)&&!pt.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&Aa.length===0){let ot=nn();return Ht(L,{matches:G,loaderData:{},errors:Ce&&vn(Ce[1])?{[Ce[0]]:Ce[1].error}:null,...$S(Ce),...ot?{fetchers:new Map(k.fetchers)}:{}},{flushSync:Ae}),{shortCircuited:!0}}if(Gt){let ot={};if(!ie){ot.navigation=tt;let ua=Se(Ce);ua!==void 0&&(ot.actionData=ua)}Aa.length>0&&(ot.fetchers=wn(Aa)),ft(ot,{flushSync:Ae})}Aa.forEach(ot=>{la(ot.key),ot.controller&&pe.set(ot.key,ot.controller)});let It=()=>Aa.forEach(ot=>la(ot.key));ee&&ee.signal.addEventListener("abort",It);let{loaderResults:Dn,fetcherResults:Da}=await us(pt,Aa,C,oe);if(C.signal.aborted)return{shortCircuited:!0};ee&&ee.signal.removeEventListener("abort",It),Aa.forEach(ot=>pe.delete(ot.key));let sn=jf(Dn);if(sn)return await ja(C,sn.result,!0,{replace:we}),{shortCircuited:!0};if(sn=jf(Da),sn)return Ue.add(sn.key),await ja(C,sn.result,!0,{replace:we}),{shortCircuited:!0};let{loaderData:Xs,errors:fs}=HS(k,G,Dn,Ce,Aa,Da);Ve&&k.errors&&(fs={...k.errors,...fs});let Pn=nn(),ms=x(I),Zn=Pn||ms||Aa.length>0;return{matches:G,loaderData:Xs,errors:fs,...Zn?{fetchers:new Map(k.fetchers)}:{}}}function Se(C){if(C&&!vn(C[1]))return{[C[0]]:C[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function wn(C){return C.forEach(L=>{let G=k.fetchers.get(L.key),oe=Qc(void 0,G?G.data:void 0);k.fetchers.set(L.key,oe)}),new Map(k.fetchers)}async function wa(C,L,G,oe){la(C);let ie=(oe&&oe.flushSync)===!0,ke=b||g,ye=Wg(k.location,k.matches,y,G,L,oe?.relative),Te=fr(ke,ye,y),we=Oa(Te,ke,ye);if(we.active&&we.matches&&(Te=we.matches),!Te){ga(C,L,Bn(404,{pathname:ye}),{flushSync:ie});return}let{path:Ve,submission:Ae,error:Ce}=TS(!0,ye,oe);if(Ce){ga(C,L,Ce,{flushSync:ie});return}let mt=s.getContext?await s.getContext():new DS,tt=(oe&&oe.preventScrollReset)===!0;if(Ae&&Ca(Ae.formMethod)){await Fa(C,L,Ve,Te,mt,we.active,ie,tt,Ae,oe&&oe.unstable_defaultShouldRevalidate);return}Re.set(C,{routeId:L,path:Ve}),await En(C,L,Ve,Te,mt,we.active,ie,tt,Ae)}async function Fa(C,L,G,oe,ie,ke,ye,Te,we,Ve){Qa(),Re.delete(C);let Ae=k.fetchers.get(C);Ea(C,CU(we,Ae),{flushSync:ye});let Ce=new AbortController,mt=cl(s.history,G,Ce.signal,we);if(ke){let _t=await Is(oe,new URL(mt.url).pathname,mt.signal,C);if(_t.type==="aborted")return;if(_t.type==="error"){ga(C,L,_t.error,{flushSync:ye});return}else if(_t.matches)oe=_t.matches;else{ga(C,L,Bn(404,{pathname:G}),{flushSync:ye});return}}let tt=Mf(oe,G);if(!tt.route.action&&!tt.route.lazy){let _t=Bn(405,{method:we.formMethod,pathname:G,routeId:L});ga(C,L,_t,{flushSync:ye});return}pe.set(C,Ce);let Rt=He,Gt=fl(d,h,mt,oe,tt,c,ie),ca=await Xa(mt,Gt,ie,C),pt=ca[tt.route.id];if(!pt){for(let _t of Gt)if(ca[_t.route.id]){pt=ca[_t.route.id];break}}if(mt.signal.aborted){pe.get(C)===Ce&&pe.delete(C);return}if(Tt.has(C)){if(ai(pt)||vn(pt)){Ea(C,No(void 0));return}}else{if(ai(pt))if(pe.delete(C),I>Rt){Ea(C,No(void 0));return}else return Ue.add(C),Ea(C,Qc(we)),ja(mt,pt,!1,{fetcherSubmission:we,preventScrollReset:Te});if(vn(pt)){ga(C,L,pt.error);return}}let Aa=k.navigation.location||k.location,It=cl(s.history,Aa,Ce.signal),Dn=b||g,Da=k.navigation.state!=="idle"?fr(Dn,k.navigation.location,y):k.matches;at(Da,"Didn't find any matches after fetcher action");let sn=++He;Ne.set(C,sn);let Xs=Qc(we,pt.data);k.fetchers.set(C,Xs);let{dsMatches:fs,revalidatingFetchers:Pn}=jS(It,ie,d,h,s.history,k,Da,we,Aa,c,!1,ue,ve,Tt,Re,Ue,Dn,y,s.patchRoutesOnNavigation!=null,[tt.route.id,pt],Ve);Pn.filter(_t=>_t.key!==C).forEach(_t=>{let Ro=_t.key,bl=k.fetchers.get(Ro),bu=Qc(void 0,bl?bl.data:void 0);k.fetchers.set(Ro,bu),la(Ro),_t.controller&&pe.set(Ro,_t.controller)}),ft({fetchers:new Map(k.fetchers)});let ms=()=>Pn.forEach(_t=>la(_t.key));Ce.signal.addEventListener("abort",ms);let{loaderResults:Zn,fetcherResults:ot}=await us(fs,Pn,It,ie);if(Ce.signal.aborted)return;if(Ce.signal.removeEventListener("abort",ms),Ne.delete(C),pe.delete(C),Pn.forEach(_t=>pe.delete(_t.key)),k.fetchers.has(C)){let _t=No(pt.data);k.fetchers.set(C,_t)}let ua=jf(Zn);if(ua)return ja(It,ua.result,!1,{preventScrollReset:Te});if(ua=jf(ot),ua)return Ue.add(ua.key),ja(It,ua.result,!1,{preventScrollReset:Te});let{loaderData:Do,errors:ps}=HS(k,Da,Zn,void 0,Pn,ot);x(sn),k.navigation.state==="loading"&&sn>I?(at($,"Expected pending action"),ee&&ee.abort(),Ht(k.navigation.location,{matches:Da,loaderData:Do,errors:ps,fetchers:new Map(k.fetchers)})):(ft({errors:ps,loaderData:BS(k.loaderData,Do,Da,ps),fetchers:new Map(k.fetchers)}),ue=!1)}async function En(C,L,G,oe,ie,ke,ye,Te,we){let Ve=k.fetchers.get(C);Ea(C,Qc(we,Ve?Ve.data:void 0),{flushSync:ye});let Ae=new AbortController,Ce=cl(s.history,G,Ae.signal);if(ke){let pt=await Is(oe,new URL(Ce.url).pathname,Ce.signal,C);if(pt.type==="aborted")return;if(pt.type==="error"){ga(C,L,pt.error,{flushSync:ye});return}else if(pt.matches)oe=pt.matches;else{ga(C,L,Bn(404,{pathname:G}),{flushSync:ye});return}}let mt=Mf(oe,G);pe.set(C,Ae);let tt=He,Rt=fl(d,h,Ce,oe,mt,c,ie),ca=(await Xa(Ce,Rt,ie,C))[mt.route.id];if(pe.get(C)===Ae&&pe.delete(C),!Ce.signal.aborted){if(Tt.has(C)){Ea(C,No(void 0));return}if(ai(ca))if(I>tt){Ea(C,No(void 0));return}else{Ue.add(C),await ja(Ce,ca,!1,{preventScrollReset:Te});return}if(vn(ca)){ga(C,L,ca.error);return}Ea(C,No(ca.data))}}async function ja(C,L,G,{submission:oe,fetcherSubmission:ie,preventScrollReset:ke,replace:ye}={}){G||(B?.resolve(),B=null),L.response.headers.has("X-Remix-Revalidate")&&(ue=!0);let Te=L.response.headers.get("Location");at(Te,"Expected a Location header on the redirect Response"),Te=zS(Te,new URL(C.url),y,s.history);let we=ou(k.location,Te,{_isRedirect:!0});if(l){let Rt=!1;if(L.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(db(Te)){const Gt=_w(Te,!0);Rt=Gt.origin!==o.location.origin||Yn(Gt.pathname,y)==null}if(Rt){ye?o.location.replace(Te):o.location.assign(Te);return}}ee=null;let Ve=ye===!0||L.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ae,formAction:Ce,formEncType:mt}=k.navigation;!oe&&!ie&&Ae&&Ce&&mt&&(oe=qS(k.navigation));let tt=oe||ie;if(oU.has(L.response.status)&&tt&&Ca(tt.formMethod))await vt(Ve,we,{submission:{...tt,formAction:Te},preventScrollReset:ke||me,enableViewTransition:G?ce:void 0});else{let Rt=Yg(we,oe);await vt(Ve,we,{overrideNavigation:Rt,fetcherSubmission:ie,preventScrollReset:ke||me,enableViewTransition:G?ce:void 0})}}async function Xa(C,L,G,oe){let ie,ke={};try{ie=await hU(D,C,L,oe,G,!1)}catch(ye){return L.filter(Te=>Te.shouldLoad).forEach(Te=>{ke[Te.route.id]={type:"error",error:ye}}),ke}if(C.signal.aborted)return ke;if(!Ca(C.method))for(let ye of L){if(ie[ye.route.id]?.type==="error")break;!ie.hasOwnProperty(ye.route.id)&&!k.loaderData.hasOwnProperty(ye.route.id)&&(!k.errors||!k.errors.hasOwnProperty(ye.route.id))&&ye.shouldCallHandler()&&(ie[ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ye.route.id}`)})}for(let[ye,Te]of Object.entries(ie))if(DU(Te)){let we=Te.result;ke[ye]={type:"redirect",response:vU(we,C,ye,L,y)}}else ke[ye]=await yU(Te);return ke}async function us(C,L,G,oe){let ie=Xa(G,C,oe,null),ke=Promise.all(L.map(async we=>{if(we.matches&&we.match&&we.request&&we.controller){let Ae=(await Xa(we.request,we.matches,oe,we.key))[we.match.route.id];return{[we.key]:Ae}}else return Promise.resolve({[we.key]:{type:"error",error:Bn(404,{pathname:we.path})}})})),ye=await ie,Te=(await ke).reduce((we,Ve)=>Object.assign(we,Ve),{});return{loaderResults:ye,fetcherResults:Te}}function Qa(){ue=!0,Re.forEach((C,L)=>{pe.has(L)&&ve.add(L),la(L)})}function Ea(C,L,G={}){k.fetchers.set(C,L),ft({fetchers:new Map(k.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function ga(C,L,G,oe={}){let ie=mr(k.matches,L);Pa(C),ft({errors:{[ie.route.id]:G},fetchers:new Map(k.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function ds(C){return dt.set(C,(dt.get(C)||0)+1),Tt.has(C)&&Tt.delete(C),k.fetchers.get(C)||rU}function In(C,L){la(C,L?.reason),Ea(C,No(null))}function Pa(C){let L=k.fetchers.get(C);pe.has(C)&&!(L&&L.state==="loading"&&Ne.has(C))&&la(C),Re.delete(C),Ne.delete(C),Ue.delete(C),Tt.delete(C),ve.delete(C),k.fetchers.delete(C)}function Fn(C){let L=(dt.get(C)||0)-1;L<=0?(dt.delete(C),Tt.add(C)):dt.set(C,L),ft({fetchers:new Map(k.fetchers)})}function la(C,L){let G=pe.get(C);G&&(G.abort(L),pe.delete(C))}function Xn(C){for(let L of C){let G=ds(L),oe=No(G.data);k.fetchers.set(L,oe)}}function nn(){let C=[],L=!1;for(let G of Ue){let oe=k.fetchers.get(G);at(oe,`Expected fetcher: ${G}`),oe.state==="loading"&&(Ue.delete(G),C.push(G),L=!0)}return Xn(C),L}function x(C){let L=[];for(let[G,oe]of Ne)if(oe<C){let ie=k.fetchers.get(G);at(ie,`Expected fetcher: ${G}`),ie.state==="loading"&&(la(G),Ne.delete(G),L.push(G))}return Xn(L),L.length>0}function O(C,L){let G=k.blockers.get(C)||Xc;return Ke.get(C)!==L&&Ke.set(C,L),G}function Z(C){k.blockers.delete(C),Ke.delete(C)}function ae(C,L){let G=k.blockers.get(C)||Xc;at(G.state==="unblocked"&&L.state==="blocked"||G.state==="blocked"&&L.state==="blocked"||G.state==="blocked"&&L.state==="proceeding"||G.state==="blocked"&&L.state==="unblocked"||G.state==="proceeding"&&L.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${L.state}`);let oe=new Map(k.blockers);oe.set(C,L),ft({blockers:oe})}function de({currentLocation:C,nextLocation:L,historyAction:G}){if(Ke.size===0)return;Ke.size>1&&qt(!1,"A router only supports one blocker at a time");let oe=Array.from(Ke.entries()),[ie,ke]=oe[oe.length-1],ye=k.blockers.get(ie);if(!(ye&&ye.state==="proceeding")&&ke({currentLocation:C,nextLocation:L,historyAction:G}))return ie}function ze(C){let L=Bn(404,{pathname:C}),G=b||g,{matches:oe,route:ie}=Tf(G);return{notFoundMatches:oe,route:ie,error:L}}function Ee(C,L,G){if(_=C,z=L,H=G||null,!X&&k.navigation===$g){X=!0;let oe=Zt(k.location,k.matches);oe!=null&&ft({restoreScrollPosition:oe})}return()=>{_=null,z=null,H=null}}function Xe(C,L){return H&&H(C,L.map(oe=>jk(oe,k.loaderData)))||C.key}function Be(C,L){if(_&&z){let G=Xe(C,L);_[G]=z()}}function Zt(C,L){if(_){let G=Xe(C,L),oe=_[G];if(typeof oe=="number")return oe}return null}function Oa(C,L,G){if(s.patchRoutesOnNavigation)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Kc(L,G,y,!0)}}else return{active:!0,matches:Kc(L,G,y,!0)||[]};return{active:!1,matches:null}}async function Is(C,L,G,oe){if(!s.patchRoutesOnNavigation)return{type:"success",matches:C};let ie=C;for(;;){let ke=b==null,ye=b||g,Te=h;try{await s.patchRoutesOnNavigation({signal:G,path:L,matches:ie,fetcherKey:oe,patch:(Ae,Ce)=>{G.aborted||OS(Ae,Ce,ye,Te,d,!1)}})}catch(Ae){return{type:"error",error:Ae,partialMatches:ie}}finally{ke&&!G.aborted&&(g=[...g])}if(G.aborted)return{type:"aborted"};let we=fr(ye,L,y),Ve=null;if(we){if(Object.keys(we[0].params).length===0)return{type:"success",matches:we};if(Ve=Kc(ye,L,y,!0),!(Ve&&ie.length<Ve.length&&Fs(ie,Ve.slice(0,ie.length))))return{type:"success",matches:we}}if(Ve||(Ve=Kc(ye,L,y,!0)),!Ve||Fs(ie,Ve))return{type:"success",matches:null};ie=Ve}}function Fs(C,L){return C.length===L.length&&C.every((G,oe)=>G.route.id===L[oe].route.id)}function li(C){h={},b=ru(C,d,void 0,h)}function Qn(C,L,G=!1){let oe=b==null;OS(C,L,b||g,h,d,G),oe&&(g=[...g],ft({}))}return re={get basename(){return y},get future(){return N},get state(){return k},get routes(){return g},get window(){return o},initialize:Lt,subscribe:xt,enableScrollRestoration:Ee,navigate:Bt,fetch:wa,revalidate:nt,createHref:C=>s.history.createHref(C),encodeLocation:C=>s.history.encodeLocation(C),getFetcher:ds,resetFetcher:In,deleteFetcher:Fn,dispose:he,getBlocker:O,deleteBlocker:Z,patchRoutes:Qn,_internalFetchControllers:pe,_internalSetRoutes:li,_internalSetStateDoNotUseOrYouWillBreakYourApp(C){ft(C)}},s.unstable_instrumentations&&(re=Jk(re,s.unstable_instrumentations.map(C=>C.router).filter(Boolean))),re}function cU(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Wg(s,o,l,c,u,d){let h,g;if(u){h=[];for(let y of o)if(h.push(y),y.route.id===u){g=y;break}}else h=o,g=o[o.length-1];let b=uu(c||".",If(h),Yn(s.pathname,l)||s.pathname,d==="path");if(c==null&&(b.search=s.search,b.hash=s.hash),(c==null||c===""||c===".")&&g){let y=pb(b.search);if(g.route.index&&!y)b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&y){let D=new URLSearchParams(b.search),N=D.getAll("index");D.delete("index"),N.filter(R=>R).forEach(R=>D.append("index",R));let w=D.toString();b.search=w?`?${w}`:""}}return l!=="/"&&(b.pathname=Ik({basename:l,pathname:b.pathname})),qs(b)}function TS(s,o,l){if(!l||!cU(l))return{path:o};if(l.formMethod&&!kU(l.formMethod))return{path:o,error:Bn(405,{method:l.formMethod})};let c=()=>({path:o,error:Bn(400,{type:"invalid-body"})}),d=(l.formMethod||"get").toUpperCase(),h=Iw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!Ca(d))return c();let N=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((w,[R,_])=>`${w}${R}=${_}
|
|
236
|
+
`,""):String(l.body);return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:N}}}else if(l.formEncType==="application/json"){if(!Ca(d))return c();try{let N=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:N,text:void 0}}}catch{return c()}}}at(typeof FormData=="function","FormData is not available in this environment");let g,b;if(l.formData)g=tb(l.formData),b=l.formData;else if(l.body instanceof FormData)g=tb(l.body),b=l.body;else if(l.body instanceof URLSearchParams)g=l.body,b=LS(g);else if(l.body==null)g=new URLSearchParams,b=new FormData;else try{g=new URLSearchParams(l.body),b=LS(g)}catch{return c()}let y={formMethod:d,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(Ca(y.formMethod))return{path:o,submission:y};let D=Eo(o);return s&&D.search&&pb(D.search)&&g.append("index",""),D.search=`?${g}`,{path:qs(D),submission:y}}function jS(s,o,l,c,u,d,h,g,b,y,D,N,w,R,_,H,z,X,K,W,te){let P=W?vn(W[1])?W[1].error:W[1].data:void 0,le=u.createURL(d.location),re=u.createURL(b),k;if(D&&d.errors){let ge=Object.keys(d.errors)[0];k=h.findIndex(J=>J.route.id===ge)}else if(W&&vn(W[1])){let ge=W[0];k=h.findIndex(J=>J.route.id===ge)-1}let $=W?W[1].statusCode:void 0,B=$&&$>=400,me={currentUrl:le,currentParams:d.matches[0]?.params||{},nextUrl:re,nextParams:h[0].params,...g,actionResult:P,actionStatus:$},ee=fu(h),ce=h.map((ge,J)=>{let{route:ue}=ge,ve=null;if(k!=null&&J>k)ve=!1;else if(ue.lazy)ve=!0;else if(!fb(ue))ve=!1;else if(D){let{shouldLoad:Ne}=Hw(ue,d.loaderData,d.errors);ve=Ne}else uU(d.loaderData,d.matches[J],ge)&&(ve=!0);if(ve!==null)return eb(l,c,s,ee,ge,y,o,ve);let pe=!1;typeof te=="boolean"?pe=te:B?pe=!1:(N||le.pathname+le.search===re.pathname+re.search||le.search!==re.search||dU(d.matches[J],ge))&&(pe=!0);let He={...me,defaultShouldRevalidate:pe},I=au(ge,He);return eb(l,c,s,ee,ge,y,o,I,He,te)}),ne=[];return _.forEach((ge,J)=>{if(D||!h.some(Re=>Re.route.id===ge.routeId)||R.has(J))return;let ue=d.fetchers.get(J),ve=ue&&ue.state!=="idle"&&ue.data===void 0,pe=fr(z,ge.path,X);if(!pe){if(K&&ve)return;ne.push({key:J,routeId:ge.routeId,path:ge.path,matches:null,match:null,request:null,controller:null});return}if(H.has(J))return;let He=Mf(pe,ge.path),I=new AbortController,Ne=cl(u,ge.path,I.signal),Ue=null;if(w.has(J))w.delete(J),Ue=fl(l,c,Ne,pe,He,y,o);else if(ve)N&&(Ue=fl(l,c,Ne,pe,He,y,o));else{let Re;typeof te=="boolean"?Re=te:B?Re=!1:Re=N;let dt={...me,defaultShouldRevalidate:Re};au(He,dt)&&(Ue=fl(l,c,Ne,pe,He,y,o,dt))}Ue&&ne.push({key:J,routeId:ge.routeId,path:ge.path,matches:Ue,match:He,request:Ne,controller:I})}),{dsMatches:ce,revalidatingFetchers:ne}}function fb(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function Hw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!fb(s))return{shouldLoad:!1,renderFallback:!1};let c=o!=null&&s.id in o,u=l!=null&&l[s.id]!==void 0;if(!c&&u)return{shouldLoad:!1,renderFallback:!1};if(typeof s.loader=="function"&&s.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let d=!c&&!u;return{shouldLoad:d,renderFallback:d}}function uU(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function dU(s,o){let l=s.route.path;return s.pathname!==o.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==o.params["*"]}function au(s,o){if(s.route.shouldRevalidate){let l=s.route.shouldRevalidate(o);if(typeof l=="boolean")return l}return o.defaultShouldRevalidate}function OS(s,o,l,c,u,d){let h;if(s){let y=c[s];at(y,`No route found to patch children into: routeId = ${s}`),y.children||(y.children=[]),h=y.children}else h=l;let g=[],b=[];if(o.forEach(y=>{let D=h.find(N=>Bw(y,N));D?b.push({existingRoute:D,newRoute:y}):g.push(y)}),g.length>0){let y=ru(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...y)}if(d&&b.length>0)for(let y=0;y<b.length;y++){let{existingRoute:D,newRoute:N}=b[y],w=D,[R]=ru([N],u,[],{},!0);Object.assign(w,{element:R.element?R.element:w.element,errorElement:R.errorElement?R.errorElement:w.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:w.hydrateFallbackElement})}}function Bw(s,o){return"id"in s&&"id"in o&&s.id===o.id?!0:s.index===o.index&&s.path===o.path&&s.caseSensitive===o.caseSensitive?(!s.children||s.children.length===0)&&(!o.children||o.children.length===0)?!0:s.children?.every((l,c)=>o.children?.some(u=>Bw(l,u)))??!1:!1}var AS=new WeakMap,$w=({key:s,route:o,manifest:l,mapRouteProperties:c})=>{let u=l[o.id];if(at(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let d=u.lazy[s];if(!d)return;let h=AS.get(u);h||(h={},AS.set(u,h));let g=h[s];if(g)return g;let b=(async()=>{let y=kk(s),N=u[s]!==void 0&&s!=="hasErrorBoundary";if(y)qt(!y,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(N)qt(!1,`Route "${u.id}" has a static property "${s}" defined. The lazy property will be ignored.`);else{let w=await d();w!=null&&(Object.assign(u,{[s]:w}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[s]=void 0,Object.values(u.lazy).every(w=>w===void 0)&&(u.lazy=void 0))})();return h[s]=b,b},VS=new WeakMap;function fU(s,o,l,c,u){let d=l[s.id];if(at(d,"No route found in manifest"),!s.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof s.lazy=="function"){let D=VS.get(d);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let N=(async()=>{at(typeof s.lazy=="function","No lazy route function found");let w=await s.lazy(),R={};for(let _ in w){let H=w[_];if(H===void 0)continue;let z=Ck(_),K=d[_]!==void 0&&_!=="hasErrorBoundary";z?qt(!z,"Route property "+_+" is not a supported property to be returned from a lazy route function. This property will be ignored."):K?qt(!K,`Route "${d.id}" has a static property "${_}" defined but its lazy function is also returning a value for this property. The lazy route property "${_}" will be ignored.`):R[_]=H}Object.assign(d,R),Object.assign(d,{...c(d),lazy:void 0})})();return VS.set(d,N),N.catch(()=>{}),{lazyRoutePromise:N,lazyHandlerPromise:N}}let h=Object.keys(s.lazy),g=[],b;for(let D of h){if(u&&u.includes(D))continue;let N=$w({key:D,route:s,manifest:l,mapRouteProperties:c});N&&(g.push(N),D===o&&(b=N))}let y=g.length>0?Promise.all(g).then(()=>{}):void 0;return y?.catch(()=>{}),b?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:b}}async function MS(s){let o=s.matches.filter(u=>u.shouldLoad),l={};return(await Promise.all(o.map(u=>u.resolve()))).forEach((u,d)=>{l[o[d].route.id]=u}),l}async function mU(s){return s.matches.some(o=>o.route.middleware)?Yw(s,()=>MS(s)):MS(s)}function Yw(s,o){return pU(s,o,c=>{if(_U(c))throw c;return c},wU,l);function l(c,u,d){if(d)return Promise.resolve(Object.assign(d.value,{[u]:{type:"error",result:c}}));{let{matches:h}=s,g=Math.min(Math.max(h.findIndex(y=>y.route.id===u),0),Math.max(h.findIndex(y=>y.shouldCallHandler()),0)),b=mr(h,h[g].route.id).route.id;return Promise.resolve({[b]:{type:"error",result:c}})}}}async function pU(s,o,l,c,u){let{matches:d,request:h,params:g,context:b,unstable_pattern:y}=s,D=d.flatMap(w=>w.route.middleware?w.route.middleware.map(R=>[w.route.id,R]):[]);return await qw({request:h,params:g,context:b,unstable_pattern:y},D,o,l,c,u)}async function qw(s,o,l,c,u,d,h=0){let{request:g}=s;if(g.signal.aborted)throw g.signal.reason??new Error(`Request aborted: ${g.method} ${g.url}`);let b=o[h];if(!b)return await l();let[y,D]=b,N,w=async()=>{if(N)throw new Error("You may only call `next()` once per middleware");try{return N={value:await qw(s,o,l,c,u,d,h+1)},N.value}catch(R){return N={value:await d(R,y,N)},N.value}};try{let R=await D(s,w),_=R!=null?c(R):void 0;return u(_)?_:N?_??N.value:(N={value:await w()},N.value)}catch(R){return await d(R,y,N)}}function Gw(s,o,l,c,u){let d=$w({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=fU(c.route,Ca(l.method)?"action":"loader",o,s,u);return{middleware:d,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function eb(s,o,l,c,u,d,h,g,b=null,y){let D=!1,N=Gw(s,o,l,u,d);return{...u,_lazyPromises:N,shouldLoad:g,shouldRevalidateArgs:b,shouldCallHandler(w){return D=!0,b?typeof y=="boolean"?au(u,{...b,defaultShouldRevalidate:y}):typeof w=="boolean"?au(u,{...b,defaultShouldRevalidate:w}):au(u,b):g},resolve(w){let{lazy:R,loader:_,middleware:H}=u.route,z=D||g||w&&!Ca(l.method)&&(R||_),X=H&&H.length>0&&!_&&!R;return z&&(Ca(l.method)||!X)?gU({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:N?.handler,lazyRoutePromise:N?.route,handlerOverride:w,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function fl(s,o,l,c,u,d,h,g=null){return c.map(b=>b.route.id!==u.route.id?{...b,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:Gw(s,o,l,b,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:eb(s,o,l,fu(c),b,d,h,!0,g))}async function hU(s,o,l,c,u,d){l.some(y=>y._lazyPromises?.middleware)&&await Promise.all(l.map(y=>y._lazyPromises?.middleware));let h={request:o,unstable_pattern:fu(l),params:l[0].params,context:u,matches:l},b=await s({...h,fetcherKey:c,runClientMiddleware:y=>{let D=h;return Yw(D,()=>y({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return b}async function gU({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:d,scopedContext:h}){let g,b,y=Ca(s.method),D=y?"action":"loader",N=w=>{let R,_=new Promise((X,K)=>R=K);b=()=>R(),s.signal.addEventListener("abort",b);let H=X=>typeof w!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${D}" [routeId: ${l.route.id}]`)):w({request:s,unstable_pattern:o,params:l.params,context:h},...X!==void 0?[X]:[]),z=(async()=>{try{return{type:"data",result:await(d?d(K=>H(K)):H())}}catch(X){return{type:"error",result:X}}})();return Promise.race([z,_])};try{let w=y?l.route.action:l.route.loader;if(c||u)if(w){let R,[_]=await Promise.all([N(w).catch(H=>{R=H}),c,u]);if(R!==void 0)throw R;g=_}else{await c;let R=y?l.route.action:l.route.loader;if(R)[g]=await Promise.all([N(R),u]);else if(D==="action"){let _=new URL(s.url),H=_.pathname+_.search;throw Bn(405,{method:s.method,pathname:H,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(w)g=await N(w);else{let R=new URL(s.url),_=R.pathname+R.search;throw Bn(404,{pathname:_})}}catch(w){return{type:"error",result:w}}finally{b&&s.signal.removeEventListener("abort",b)}return g}async function bU(s){let o=s.headers.get("Content-Type");return o&&/\bapplication\/json\b/.test(o)?s.body==null?null:s.json():s.text()}async function yU(s){let{result:o,type:l}=s;if(mb(o)){let c;try{c=await bU(o)}catch(u){return{type:"error",error:u}}return l==="error"?{type:"error",error:new du(o.status,o.statusText,c),statusCode:o.status,headers:o.headers}:{type:"data",data:c,statusCode:o.status,headers:o.headers}}return l==="error"?YS(o)?o.data instanceof Error?{type:"error",error:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:SU(o),statusCode:iu(o)?o.status:void 0,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:o,statusCode:iu(o)?o.status:void 0}:YS(o)?{type:"data",data:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"data",data:o}}function vU(s,o,l,c,u){let d=s.headers.get("Location");if(at(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!db(d)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);d=Wg(new URL(o.url),h,u,d),s.headers.set("Location",d)}return s}function zS(s,o,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(db(s)){let d=s,h=d.startsWith("//")?new URL(o.protocol+d):new URL(d);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let g=Yn(h.pathname,l)!=null;if(h.origin===o.origin&&g)return h.pathname+h.search+h.hash}try{let d=c.createURL(s);if(u.includes(d.protocol))throw new Error("Invalid redirect location")}catch{}return s}function cl(s,o,l,c){let u=s.createURL(Iw(o)).toString(),d={signal:l};if(c&&Ca(c.formMethod)){let{formMethod:h,formEncType:g}=c;d.method=h.toUpperCase(),g==="application/json"?(d.headers=new Headers({"Content-Type":g}),d.body=JSON.stringify(c.json)):g==="text/plain"?d.body=c.text:g==="application/x-www-form-urlencoded"&&c.formData?d.body=tb(c.formData):d.body=c.formData}return new Request(u,d)}function tb(s){let o=new URLSearchParams;for(let[l,c]of s.entries())o.append(l,typeof c=="string"?c:c.name);return o}function LS(s){let o=new FormData;for(let[l,c]of s.entries())o.append(l,c);return o}function xU(s,o,l,c=!1,u=!1){let d={},h=null,g,b=!1,y={},D=l&&vn(l[1])?l[1].error:void 0;return s.forEach(N=>{if(!(N.route.id in o))return;let w=N.route.id,R=o[w];if(at(!ai(R),"Cannot handle redirect results in processLoaderData"),vn(R)){let _=R.error;if(D!==void 0&&(_=D,D=void 0),h=h||{},u)h[w]=_;else{let H=mr(s,w);h[H.route.id]==null&&(h[H.route.id]=_)}c||(d[w]=Lw),b||(b=!0,g=iu(R.error)?R.error.status:500),R.headers&&(y[w]=R.headers)}else d[w]=R.data,R.statusCode&&R.statusCode!==200&&!b&&(g=R.statusCode),R.headers&&(y[w]=R.headers)}),D!==void 0&&l&&(h={[l[0]]:D},l[2]&&(d[l[2]]=void 0)),{loaderData:d,errors:h,statusCode:g||200,loaderHeaders:y}}function HS(s,o,l,c,u,d){let{loaderData:h,errors:g}=xU(o,l,c);return u.filter(b=>!b.matches||b.matches.some(y=>y.shouldLoad)).forEach(b=>{let{key:y,match:D,controller:N}=b;if(N&&N.signal.aborted)return;let w=d[y];if(at(w,"Did not find corresponding fetcher result"),vn(w)){let R=mr(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:w.error}),s.fetchers.delete(y)}else if(ai(w))at(!1,"Unhandled fetcher revalidation redirect");else{let R=No(w.data);s.fetchers.set(y,R)}}),{loaderData:h,errors:g}}function BS(s,o,l,c){let u=Object.entries(o).filter(([,d])=>d!==Lw).reduce((d,[h,g])=>(d[h]=g,d),{});for(let d of l){let h=d.route.id;if(!o.hasOwnProperty(h)&&s.hasOwnProperty(h)&&d.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function $S(s){return s?vn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function mr(s,o){return(o?s.slice(0,s.findIndex(c=>c.route.id===o)+1):[...s]).reverse().find(c=>c.route.hasErrorBoundary===!0)||s[0]}function Tf(s){let o=s.length===1?s[0]:s.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:o}],route:o}}function Bn(s,{pathname:o,routeId:l,method:c,type:u,message:d}={}){let h="Unknown Server Error",g="Unknown @remix-run/router error";return s===400?(h="Bad Request",c&&o&&l?g=`You made a ${c} request to "${o}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:u==="invalid-body"&&(g="Unable to encode submission body")):s===403?(h="Forbidden",g=`Route "${l}" does not match URL "${o}"`):s===404?(h="Not Found",g=`No route matches URL "${o}"`):s===405&&(h="Method Not Allowed",c&&o&&l?g=`You made a ${c.toUpperCase()} request to "${o}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:c&&(g=`Invalid request method "${c.toUpperCase()}"`)),new du(s||500,h,new Error(g),!0)}function jf(s){let o=Object.entries(s);for(let l=o.length-1;l>=0;l--){let[c,u]=o[l];if(ai(u))return{key:c,result:u}}}function Iw(s){let o=typeof s=="string"?Eo(s):s;return qs({...o,hash:""})}function NU(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function SU(s){return new du(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function wU(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&EU(l))}function EU(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function DU(s){return mb(s.result)&&Mw.has(s.result.status)}function vn(s){return s.type==="error"}function ai(s){return(s&&s.type)==="redirect"}function YS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function mb(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function RU(s){return Mw.has(s)}function _U(s){return mb(s)&&RU(s.status)&&s.headers.has("Location")}function kU(s){return sU.has(s.toUpperCase())}function Ca(s){return aU.has(s.toUpperCase())}function pb(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function Mf(s,o){let l=typeof o=="string"?Eo(o).search:o.search;if(s[s.length-1].route.index&&pb(l||""))return s[s.length-1];let c=Tw(s);return c[c.length-1]}function qS(s){let{formMethod:o,formAction:l,formEncType:c,text:u,formData:d,json:h}=s;if(!(!o||!l||!c)){if(u!=null)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:void 0,text:u};if(d!=null)return{formMethod:o,formAction:l,formEncType:c,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:h,text:void 0}}}function Yg(s,o){return o?{state:"loading",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{state:"loading",location:s,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function UU(s,o){return{state:"submitting",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}}function Qc(s,o){return s?{state:"loading",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function CU(s,o){return{state:"submitting",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o?o.data:void 0}}function No(s){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function TU(s,o){try{let l=s.sessionStorage.getItem(zw);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c||{}))d&&Array.isArray(d)&&o.set(u,new Set(d||[]))}}catch{}}function jU(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(zw,JSON.stringify(l))}catch(c){qt(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function GS(){let s,o,l=new Promise((c,u)=>{s=async d=>{c(d);try{await l}catch{}},o=async d=>{u(d);try{await l}catch{}}});return{promise:l,resolve:s,reject:o}}var ri=E.createContext(null);ri.displayName="DataRouter";var mu=E.createContext(null);mu.displayName="DataRouterState";var Fw=E.createContext(!1);function OU(){return E.useContext(Fw)}var hb=E.createContext({isTransitioning:!1});hb.displayName="ViewTransition";var Xw=E.createContext(new Map);Xw.displayName="Fetchers";var AU=E.createContext(null);AU.displayName="Await";var Nn=E.createContext(null);Nn.displayName="Navigation";var Ff=E.createContext(null);Ff.displayName="Location";var qn=E.createContext({outlet:null,matches:[],isDataRoute:!1});qn.displayName="Route";var gb=E.createContext(null);gb.displayName="RouteError";var Qw="REACT_ROUTER_ERROR",VU="REDIRECT",MU="ROUTE_ERROR_RESPONSE";function zU(s){if(s.startsWith(`${Qw}:${VU}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function LU(s){if(s.startsWith(`${Qw}:${MU}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new du(o.status,o.statusText,o.data)}catch{}}function HU(s,{relative:o}={}){at(hl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(Nn),{hash:u,pathname:d,search:h}=pu(s,{relative:o}),g=d;return l!=="/"&&(g=d==="/"?l:ls([l,d])),c.createHref({pathname:g,search:h,hash:u})}function hl(){return E.useContext(Ff)!=null}function cs(){return at(hl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Ff).location}var Pw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zw(s){E.useContext(Nn).static||E.useLayoutEffect(s)}function gr(){let{isDataRoute:s}=E.useContext(qn);return s?eC():BU()}function BU(){at(hl(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(ri),{basename:o,navigator:l}=E.useContext(Nn),{matches:c}=E.useContext(qn),{pathname:u}=cs(),d=JSON.stringify(If(c)),h=E.useRef(!1);return Zw(()=>{h.current=!0}),E.useCallback((b,y={})=>{if(qt(h.current,Pw),!h.current)return;if(typeof b=="number"){l.go(b);return}let D=uu(b,JSON.parse(d),u,y.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:ls([o,D.pathname])),(y.replace?l.replace:l.push)(D,y.state,y)},[o,l,d,u,s])}var $U=E.createContext(null);function YU(s){let o=E.useContext(qn).outlet;return E.useMemo(()=>o&&E.createElement($U.Provider,{value:s},o),[o,s])}function Xf(){let{matches:s}=E.useContext(qn),o=s[s.length-1];return o?o.params:{}}function pu(s,{relative:o}={}){let{matches:l}=E.useContext(qn),{pathname:c}=cs(),u=JSON.stringify(If(l));return E.useMemo(()=>uu(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function qU(s,o,l){at(hl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(Nn),{matches:u}=E.useContext(qn),d=u[u.length-1],h=d?d.params:{},g=d?d.pathname:"/",b=d?d.pathnameBase:"/",y=d&&d.route;{let z=y&&y.path||"";Kw(g,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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.
|
|
237
|
+
|
|
238
|
+
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let D=cs(),N;N=D;let w=N.pathname||"/",R=w;if(b!=="/"){let z=b.replace(/^\//,"").split("/");R="/"+w.replace(/^\//,"").split("/").slice(z.length).join("/")}let _=fr(s,{pathname:R});return qt(y||_!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),qt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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.`),QU(_&&_.map(z=>Object.assign({},z,{params:Object.assign({},h,z.params),pathname:ls([b,c.encodeLocation?c.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?b:ls([b,c.encodeLocation?c.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),u,l)}function GU(){let s=WU(),o=iu(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),l=s instanceof Error?s.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:d},"ErrorBoundary")," or"," ",E.createElement("code",{style:d},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),l?E.createElement("pre",{style:u},l):null,h)}var IU=E.createElement(GU,null),Jw=class extends E.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const l=LU(s.digest);l&&(s=l)}let o=s!==void 0?E.createElement(qn.Provider,{value:this.props.routeContext},E.createElement(gb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(FU,{error:s},o):o}};Jw.contextType=Fw;var qg=new WeakMap;function FU({children:s,error:o}){let{basename:l}=E.useContext(Nn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=zU(o.digest);if(c){let u=qg.get(o);if(u)throw u;let d=Ow(c.location,l);if(jw&&!qg.get(o))if(d.isExternal||c.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw qg.set(o,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function XU({routeContext:s,match:o,children:l}){let c=E.useContext(ri);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(qn.Provider,{value:s},l)}function QU(s,o=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let u=s,d=c?.errors;if(d!=null){let D=u.findIndex(N=>N.route.id&&d?.[N.route.id]!==void 0);at(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,D+1))}let h=!1,g=-1;if(l&&c){h=c.renderFallback;for(let D=0;D<u.length;D++){let N=u[D];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(g=D),N.route.id){let{loaderData:w,errors:R}=c,_=N.route.loader&&!w.hasOwnProperty(N.route.id)&&(!R||R[N.route.id]===void 0);if(N.route.lazy||_){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let b=l?.onError,y=c&&b?(D,N)=>{b(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:fu(c.matches),errorInfo:N})}:void 0;return u.reduceRight((D,N,w)=>{let R,_=!1,H=null,z=null;c&&(R=d&&N.route.id?d[N.route.id]:void 0,H=N.route.errorElement||IU,h&&(g<0&&w===0?(Kw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,z=null):g===w&&(_=!0,z=N.route.hydrateFallbackElement||null)));let X=o.concat(u.slice(0,w+1)),K=()=>{let W;return R?W=H:_?W=z:N.route.Component?W=E.createElement(N.route.Component,null):N.route.element?W=N.route.element:W=D,E.createElement(XU,{match:N,routeContext:{outlet:D,matches:X,isDataRoute:c!=null},children:W})};return c&&(N.route.ErrorBoundary||N.route.errorElement||w===0)?E.createElement(Jw,{location:c.location,revalidation:c.revalidation,component:H,error:R,children:K(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:y}):K()},null)}function bb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function PU(s){let o=E.useContext(ri);return at(o,bb(s)),o}function ZU(s){let o=E.useContext(mu);return at(o,bb(s)),o}function JU(s){let o=E.useContext(qn);return at(o,bb(s)),o}function yb(s){let o=JU(s),l=o.matches[o.matches.length-1];return at(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function KU(){return yb("useRouteId")}function WU(){let s=E.useContext(gb),o=ZU("useRouteError"),l=yb("useRouteError");return s!==void 0?s:o.errors?.[l]}function eC(){let{router:s}=PU("useNavigate"),o=yb("useNavigate"),l=E.useRef(!1);return Zw(()=>{l.current=!0}),E.useCallback(async(u,d={})=>{qt(l.current,Pw),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...d}))},[s,o])}var IS={};function Kw(s,o,l){!o&&!IS[s]&&(IS[s]=!0,qt(!1,l))}var FS={};function XS(s,o){!s&&!FS[o]&&(FS[o]=!0,console.warn(o))}var tC="useOptimistic",QS=T_[tC],aC=()=>{};function nC(s){return QS?QS(s):[s,aC]}function sC(s){let o={hasErrorBoundary:s.hasErrorBoundary||s.ErrorBoundary!=null||s.errorElement!=null};return s.Component&&(s.element&&qt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(o,{element:E.createElement(s.Component),Component:void 0})),s.HydrateFallback&&(s.hydrateFallbackElement&&qt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(o,{hydrateFallbackElement:E.createElement(s.HydrateFallback),HydrateFallback:void 0})),s.ErrorBoundary&&(s.errorElement&&qt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(o,{errorElement:E.createElement(s.ErrorBoundary),ErrorBoundary:void 0})),o}var oC=["HydrateFallback","hydrateFallbackElement"],rC=class{constructor(){this.status="pending",this.promise=new Promise((s,o)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",s(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",o(l))}})}};function iC({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=OU()||c;let[d,h]=E.useState(s.state),[g,b]=nC(d),[y,D]=E.useState(),[N,w]=E.useState({isTransitioning:!1}),[R,_]=E.useState(),[H,z]=E.useState(),[X,K]=E.useState(),W=E.useRef(new Map),te=E.useCallback((k,{deletedFetchers:$,newErrors:B,flushSync:me,viewTransitionOpts:ee})=>{B&&l&&Object.values(B).forEach(ne=>l(ne,{location:k.location,params:k.matches[0]?.params??{},unstable_pattern:fu(k.matches)})),k.fetchers.forEach((ne,ge)=>{ne.data!==void 0&&W.current.set(ge,ne.data)}),$.forEach(ne=>W.current.delete(ne)),XS(me===!1||o!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ce=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(XS(ee==null||ce,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!ee||!ce){o&&me?o(()=>h(k)):c===!1?h(k):E.startTransition(()=>{c===!0&&b(ne=>PS(ne,k)),h(k)});return}if(o&&me){o(()=>{H&&(R?.resolve(),H.skipTransition()),w({isTransitioning:!0,flushSync:!0,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation})});let ne=s.window.document.startViewTransition(()=>{o(()=>h(k))});ne.finished.finally(()=>{o(()=>{_(void 0),z(void 0),D(void 0),w({isTransitioning:!1})})}),o(()=>z(ne));return}H?(R?.resolve(),H.skipTransition(),K({state:k,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation})):(D(k),w({isTransitioning:!0,flushSync:!1,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation}))},[s.window,o,H,R,c,b,l]);E.useLayoutEffect(()=>s.subscribe(te),[s,te]),E.useEffect(()=>{N.isTransitioning&&!N.flushSync&&_(new rC)},[N]),E.useEffect(()=>{if(R&&y&&s.window){let k=y,$=R.promise,B=s.window.document.startViewTransition(async()=>{c===!1?h(k):E.startTransition(()=>{c===!0&&b(me=>PS(me,k)),h(k)}),await $});B.finished.finally(()=>{_(void 0),z(void 0),D(void 0),w({isTransitioning:!1})}),z(B)}},[y,R,s.window,c,b]),E.useEffect(()=>{R&&y&&g.location.key===y.location.key&&R.resolve()},[R,H,g.location,y]),E.useEffect(()=>{!N.isTransitioning&&X&&(D(X.state),w({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}),K(void 0))},[N.isTransitioning,X]);let P=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:k=>s.navigate(k),push:(k,$,B)=>s.navigate(k,{state:$,preventScrollReset:B?.preventScrollReset}),replace:(k,$,B)=>s.navigate(k,{replace:!0,state:$,preventScrollReset:B?.preventScrollReset})}),[s]),le=s.basename||"/",re=E.useMemo(()=>({router:s,navigator:P,static:!1,basename:le,onError:l}),[s,P,le,l]);return E.createElement(E.Fragment,null,E.createElement(ri.Provider,{value:re},E.createElement(mu.Provider,{value:g},E.createElement(Xw.Provider,{value:W.current},E.createElement(hb.Provider,{value:N},E.createElement(uC,{basename:le,location:g.location,navigationType:g.historyAction,navigator:P,unstable_useTransitions:c},E.createElement(lC,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function PS(s,o){return{...s,navigation:o.navigation.state!=="idle"?o.navigation:s.navigation,revalidation:o.revalidation!=="idle"?o.revalidation:s.revalidation,actionData:o.navigation.state!=="submitting"?o.actionData:s.actionData,fetchers:o.fetchers}}var lC=E.memo(cC);function cC({routes:s,future:o,state:l,isStatic:c,onError:u}){return qU(s,void 0,{state:l,isStatic:c,onError:u})}function ZS({to:s,replace:o,state:l,relative:c}){at(hl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(Nn);qt(!u,"<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:d}=E.useContext(qn),{pathname:h}=cs(),g=gr(),b=uu(s,If(d),h,c==="path"),y=JSON.stringify(b);return E.useEffect(()=>{g(JSON.parse(y),{replace:o,state:l,relative:c})},[g,y,c,o,l]),null}function Ww(s){return YU(s.context)}function uC({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){at(!hl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:g,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[g,u,d,h]);typeof l=="string"&&(l=Eo(l));let{pathname:y="/",search:D="",hash:N="",state:w=null,key:R="default",unstable_mask:_}=l,H=E.useMemo(()=>{let z=Yn(y,g);return z==null?null:{location:{pathname:z,search:D,hash:N,state:w,key:R,unstable_mask:_},navigationType:c}},[g,y,D,N,w,R,c,_]);return qt(H!=null,`<Router basename="${g}"> is not able to match the URL "${y}${D}${N}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(Nn.Provider,{value:b},E.createElement(Ff.Provider,{children:o,value:H}))}var zf="get",Lf="application/x-www-form-urlencoded";function Qf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function dC(s){return Qf(s)&&s.tagName.toLowerCase()==="button"}function fC(s){return Qf(s)&&s.tagName.toLowerCase()==="form"}function mC(s){return Qf(s)&&s.tagName.toLowerCase()==="input"}function pC(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function hC(s,o){return s.button===0&&(!o||o==="_self")&&!pC(s)}function ab(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((o,l)=>{let c=s[l];return o.concat(Array.isArray(c)?c.map(u=>[l,u]):[[l,c]])},[]))}function gC(s,o){let l=ab(s);return o&&o.forEach((c,u)=>{l.has(u)||o.getAll(u).forEach(d=>{l.append(u,d)})}),l}var Of=null;function bC(){if(Of===null)try{new FormData(document.createElement("form"),0),Of=!1}catch{Of=!0}return Of}var yC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gg(s){return s!=null&&!yC.has(s)?(qt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lf}"`),null):s}function vC(s,o){let l,c,u,d,h;if(fC(s)){let g=s.getAttribute("action");c=g?Yn(g,o):null,l=s.getAttribute("method")||zf,u=Gg(s.getAttribute("enctype"))||Lf,d=new FormData(s)}else if(dC(s)||mC(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=s.getAttribute("formaction")||g.getAttribute("action");if(c=b?Yn(b,o):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||zf,u=Gg(s.getAttribute("formenctype"))||Gg(g.getAttribute("enctype"))||Lf,d=new FormData(g,s),!bC()){let{name:y,type:D,value:N}=s;if(D==="image"){let w=y?`${y}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else y&&d.append(y,N)}}else{if(Qf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=zf,c=null,u=Lf,h=s}return d&&u==="text/plain"&&(h=d,d=void 0),{action:c,method:l.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vb(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function xC(s,o,l,c){let u=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:o&&Yn(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function NC(s,o){if(s.id in o)return o[s.id];try{let l=await import(s.module);return o[s.id]=l,l}catch(l){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function SC(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function wC(s,o,l){let c=await Promise.all(s.map(async u=>{let d=o.routes[u.route.id];if(d){let h=await NC(d,l);return h.links?h.links():[]}return[]}));return _C(c.flat(1).filter(SC).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function JS(s,o,l,c,u,d){let h=(b,y)=>l[y]?b.route.id!==l[y].route.id:!0,g=(b,y)=>l[y].pathname!==b.pathname||l[y].route.path?.endsWith("*")&&l[y].params["*"]!==b.params["*"];return d==="assets"?o.filter((b,y)=>h(b,y)||g(b,y)):d==="data"?o.filter((b,y)=>{let D=c.routes[b.route.id];if(!D||!D.hasLoader)return!1;if(h(b,y)||g(b,y))return!0;if(b.route.shouldRevalidate){let N=b.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function EC(s,o,{includeHydrateFallback:l}={}){return DC(s.map(c=>{let u=o.routes[c.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function DC(s){return[...new Set(s)]}function RC(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function _C(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let d=JSON.stringify(RC(u));return l.has(d)||(l.add(d),c.push({key:d,link:u})),c},[])}function e4(){let s=E.useContext(ri);return vb(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function kC(){let s=E.useContext(mu);return vb(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var xb=E.createContext(void 0);xb.displayName="FrameworkContext";function t4(){let s=E.useContext(xb);return vb(s,"You must render this element inside a <HydratedRouter> element"),s}function UC(s,o){let l=E.useContext(xb),[c,u]=E.useState(!1),[d,h]=E.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:y,onMouseLeave:D,onTouchStart:N}=o,w=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let H=X=>{X.forEach(K=>{h(K.isIntersecting)})},z=new IntersectionObserver(H,{threshold:.5});return w.current&&z.observe(w.current),()=>{z.disconnect()}}},[s]),E.useEffect(()=>{if(c){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[c]);let R=()=>{u(!0)},_=()=>{u(!1),h(!1)};return l?s!=="intent"?[d,w,{}]:[d,w,{onFocus:Pc(g,R),onBlur:Pc(b,_),onMouseEnter:Pc(y,R),onMouseLeave:Pc(D,_),onTouchStart:Pc(N,R)}]:[!1,w,{}]}function Pc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function CC({page:s,...o}){let{router:l}=e4(),c=E.useMemo(()=>fr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(jC,{page:s,matches:c,...o}):null}function TC(s){let{manifest:o,routeModules:l}=t4(),[c,u]=E.useState([]);return E.useEffect(()=>{let d=!1;return wC(s,o,l).then(h=>{d||u(h)}),()=>{d=!0}},[s,o,l]),c}function jC({page:s,matches:o,...l}){let c=cs(),{future:u,manifest:d,routeModules:h}=t4(),{basename:g}=e4(),{loaderData:b,matches:y}=kC(),D=E.useMemo(()=>JS(s,o,y,d,c,"data"),[s,o,y,d,c]),N=E.useMemo(()=>JS(s,o,y,d,c,"assets"),[s,o,y,d,c]),w=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let H=new Set,z=!1;if(o.forEach(K=>{let W=d.routes[K.route.id];!W||!W.hasLoader||(!D.some(te=>te.route.id===K.route.id)&&K.route.id in b&&h[K.route.id]?.shouldRevalidate||W.hasClientLoader?z=!0:H.add(K.route.id))}),H.size===0)return[];let X=xC(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return z&&H.size>0&&X.searchParams.set("_routes",o.filter(K=>H.has(K.route.id)).map(K=>K.route.id).join(",")),[X.pathname+X.search]},[g,u.unstable_trailingSlashAwareDataRequests,b,c,d,D,o,s,h]),R=E.useMemo(()=>EC(N,d),[N,d]),_=TC(N);return E.createElement(E.Fragment,null,w.map(H=>E.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...l})),R.map(H=>E.createElement("link",{key:H,rel:"modulepreload",href:H,...l})),_.map(({key:H,link:z})=>E.createElement("link",{key:H,nonce:l.nonce,...z,crossOrigin:z.crossOrigin??l.crossOrigin})))}function OC(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var AC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{AC&&(window.__reactRouterVersion="7.13.1")}catch{}function VC(s,o){return lU({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:Ek({window:o?.window}),hydrationData:MC(),routes:s,mapRouteProperties:sC,hydrationRouteProperties:oC,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function MC(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:zC(s.errors)}),s}function zC(s){if(!s)return null;let o=Object.entries(s),l={};for(let[c,u]of o)if(u&&u.__type==="RouteErrorResponse")l[c]=new du(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let d=window[u.__subType];if(typeof d=="function")try{let h=new d(u.message);h.stack="",l[c]=h}catch{}}if(l[c]==null){let d=new Error(u.message);d.stack="",l[c]=d}}else l[c]=u;return l}var a4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xn=E.forwardRef(function({onClick:o,discover:l="render",prefetch:c="none",relative:u,reloadDocument:d,replace:h,unstable_mask:g,state:b,target:y,to:D,preventScrollReset:N,viewTransition:w,unstable_defaultShouldRevalidate:R,..._},H){let{basename:z,navigator:X,unstable_useTransitions:K}=E.useContext(Nn),W=typeof D=="string"&&a4.test(D),te=Ow(D,z);D=te.to;let P=HU(D,{relative:u}),le=cs(),re=null;if(g){let ge=uu(g,[],le.unstable_mask?le.unstable_mask.pathname:"/",!0);z!=="/"&&(ge.pathname=ge.pathname==="/"?z:ls([z,ge.pathname])),re=X.createHref(ge)}let[k,$,B]=UC(c,_),me=BC(D,{replace:h,unstable_mask:g,state:b,target:y,preventScrollReset:N,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:R,unstable_useTransitions:K});function ee(ge){o&&o(ge),ge.defaultPrevented||me(ge)}let ce=!(te.isExternal||d),ne=E.createElement("a",{..._,...B,href:(ce?re:void 0)||te.absoluteURL||P,onClick:ce?ee:o,ref:OC(H,$),target:y,"data-discover":!W&&l==="render"?"true":void 0});return k&&!W?E.createElement(E.Fragment,null,ne,E.createElement(CC,{page:P})):ne});xn.displayName="Link";var lu=E.forwardRef(function({"aria-current":o="page",caseSensitive:l=!1,className:c="",end:u=!1,style:d,to:h,viewTransition:g,children:b,...y},D){let N=pu(h,{relative:y.relative}),w=cs(),R=E.useContext(mu),{navigator:_,basename:H}=E.useContext(Nn),z=R!=null&&IC(N)&&g===!0,X=_.encodeLocation?_.encodeLocation(N).pathname:N.pathname,K=w.pathname,W=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(K=K.toLowerCase(),W=W?W.toLowerCase():null,X=X.toLowerCase()),W&&H&&(W=Yn(W,H)||W);const te=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let P=K===X||!u&&K.startsWith(X)&&K.charAt(te)==="/",le=W!=null&&(W===X||!u&&W.startsWith(X)&&W.charAt(X.length)==="/"),re={isActive:P,isPending:le,isTransitioning:z},k=P?o:void 0,$;typeof c=="function"?$=c(re):$=[c,P?"active":null,le?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let B=typeof d=="function"?d(re):d;return E.createElement(xn,{...y,"aria-current":k,className:$,ref:D,style:B,to:h,viewTransition:g},typeof b=="function"?b(re):b)});lu.displayName="NavLink";var LC=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:d,method:h=zf,action:g,onSubmit:b,relative:y,preventScrollReset:D,viewTransition:N,unstable_defaultShouldRevalidate:w,...R},_)=>{let{unstable_useTransitions:H}=E.useContext(Nn),z=qC(),X=GC(g,{relative:y}),K=h.toLowerCase()==="get"?"get":"post",W=typeof g=="string"&&a4.test(g),te=P=>{if(b&&b(P),P.defaultPrevented)return;P.preventDefault();let le=P.nativeEvent.submitter,re=le?.getAttribute("formmethod")||h,k=()=>z(le||P.currentTarget,{fetcherKey:o,method:re,navigate:l,replace:u,state:d,relative:y,preventScrollReset:D,viewTransition:N,unstable_defaultShouldRevalidate:w});H&&l!==!1?E.startTransition(()=>k()):k()};return E.createElement("form",{ref:_,method:K,action:X,onSubmit:c?b:te,...R,"data-discover":!W&&s==="render"?"true":void 0})});LC.displayName="Form";function HC(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n4(s){let o=E.useContext(ri);return at(o,HC(s)),o}function BC(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:y}={}){let D=gr(),N=cs(),w=pu(s,{relative:h});return E.useCallback(R=>{if(hC(R,o)){R.preventDefault();let _=l!==void 0?l:qs(N)===qs(w),H=()=>D(s,{replace:_,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b});y?E.startTransition(()=>H()):H()}},[N,D,w,l,c,u,o,s,d,h,g,b,y])}function s4(s){qt(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 o=E.useRef(ab(s)),l=E.useRef(!1),c=cs(),u=E.useMemo(()=>gC(c.search,l.current?null:o.current),[c.search]),d=gr(),h=E.useCallback((g,b)=>{const y=ab(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,d("?"+y,b)},[d,u]);return[u,h]}var $C=0,YC=()=>`__${String(++$C)}__`;function qC(){let{router:s}=n4("useSubmit"),{basename:o}=E.useContext(Nn),l=KU(),c=s.fetch,u=s.navigate;return E.useCallback(async(d,h={})=>{let{action:g,method:b,encType:y,formData:D,body:N}=vC(d,o);if(h.navigate===!1){let w=h.fetcherKey||YC();await c(w,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:N,formMethod:h.method||b,formEncType:h.encType||y,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:N,formMethod:h.method||b,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function GC(s,{relative:o}={}){let{basename:l}=E.useContext(Nn),c=E.useContext(qn);at(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),d={...pu(s||".",{relative:o})},h=cs();if(s==null){d.search=h.search;let g=new URLSearchParams(d.search),b=g.getAll("index");if(b.some(D=>D==="")){g.delete("index"),b.filter(N=>N).forEach(N=>g.append("index",N));let D=g.toString();d.search=D?`?${D}`:""}}return(!s||s===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(d.pathname=d.pathname==="/"?l:ls([l,d.pathname])),qs(d)}function IC(s,{relative:o}={}){let l=E.useContext(hb);at(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=n4("useViewTransitionState"),u=pu(s,{relative:o});if(!l.isTransitioning)return!1;let d=Yn(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=Yn(l.nextLocation.pathname,c)||l.nextLocation.pathname;return Yf(u.pathname,h)!=null||Yf(u.pathname,d)!=null}const KS=s=>{let o;const l=new Set,c=(y,D)=>{const N=typeof y=="function"?y(o):y;if(!Object.is(N,o)){const w=o;o=D??(typeof N!="object"||N===null)?N:Object.assign({},o,N),l.forEach(R=>R(o,w))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>b,subscribe:y=>(l.add(y),()=>l.delete(y))},b=o=s(c,u,g);return g},FC=(s=>s?KS(s):KS),XC=s=>s;function QC(s,o=XC){const l=ul.useSyncExternalStore(s.subscribe,ul.useCallback(()=>o(s.getState()),[s,o]),ul.useCallback(()=>o(s.getInitialState()),[s,o]));return ul.useDebugValue(l),l}const WS=s=>{const o=FC(s),l=c=>QC(o,c);return Object.assign(l,o),l},Pf=(s=>s?WS(s):WS),PC="/api/v1";class Wc extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function Af(s,o,l,c){let u=`${PC}${o}`;if(c){const g=new URLSearchParams(c).toString();g&&(u+=`?${g}`)}const d={method:s,headers:{"Content-Type":"application/json"}};l!==void 0&&(d.body=JSON.stringify(l));const h=await fetch(u,d);if(!h.ok){let g="UNKNOWN",b=h.statusText;try{const y=await h.json();y.code&&(g=y.code),y.message&&(b=y.message)}catch{}throw new Wc(h.status,g,b)}return h.json()}const Sa={get(s,o){return Af("GET",s,void 0,o)},post(s,o){return Af("POST",s,o)},put(s,o){return Af("PUT",s,o)},delete(s){return Af("DELETE",s)}},ZC=3e4,JC=1e3,KC=3e4;class WC{ws=null;url="";handlers=new Map;statusHandlers=new Set;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(o){this._status=o;for(const l of this.statusHandlers)l(o)}onStatusChange(o){return this.statusHandlers.add(o),()=>{this.statusHandlers.delete(o)}}connect(o){this.url=o,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(o,l){let c=this.handlers.get(o);return c||(c=new Set,this.handlers.set(o,c)),c.add(l),()=>{c.delete(l),c.size===0&&this.handlers.delete(o)}}send(o,l){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:o,payload:l,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const o=new WebSocket(this.url);o.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},o.onmessage=l=>{try{const c=JSON.parse(String(l.data));if(c.event==="pong")return;const u=this.handlers.get(c.event);if(u)for(const d of u)d(c.payload)}catch{}},o.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},o.onerror=()=>{},this.ws=o}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},ZC)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(JC*2**this.reconnectAttempt,KC);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},o)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Gs=new WC,si="lib_cloud_default",Ta=Pf((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await Sa.get("/libraries");s({libraries:l,loading:!1})}catch(l){s({error:l instanceof Error?l.message:"Failed to load libraries",loading:!1})}},createLibrary:async l=>{const c=await Sa.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await Sa.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await Sa.put(`/libraries/${l}`,{name:c});s(d=>({libraries:d.libraries.map(h=>h.id===l?u:h)}))},_updateLibraryOnline:(l,c)=>{s(u=>({libraries:u.libraries.map(d=>d.id===l?{...d,is_online:c}:d)}))},_refreshLibrary:async l=>{try{const c=await Sa.get(`/libraries/${l}`);s(u=>({libraries:u.libraries.map(d=>d.id===l?c:d)}))}catch{o().fetchLibraries()}}})),hu=s=>{const o=s.libraries.filter(c=>c.type==="cloud").sort((c,u)=>c.created_at.localeCompare(u.created_at)),l=s.libraries.filter(c=>c.type==="daemon").sort((c,u)=>c.name.localeCompare(u.name));return[...o,...l]},eT=s=>s.libraries.filter(o=>o.type==="daemon");Gs.on("ws:daemon:status",s=>{const o=s;o.lib_id&&Ta.getState()._updateLibraryOnline(o.lib_id,o.is_online),Ta.getState().fetchLibraries()});Gs.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&Ta.getState()._updateLibraryOnline(o.lib_id,!0),Ta.getState().fetchLibraries()});Gs.on("ws:library:updated",s=>{const o=s;Ta.getState()._refreshLibrary(o.library_id)});const o4=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const tT=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const aT=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const ew=s=>{const o=aT(s);return o.charAt(0).toUpperCase()+o.slice(1)};var nT={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"};const sT=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const oT=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:d,iconNode:h,...g},b)=>E.createElement("svg",{ref:b,...nT,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:o4("lucide",u),...!d&&!sT(g)&&{"aria-hidden":"true"},...g},[...h.map(([y,D])=>E.createElement(y,D)),...Array.isArray(d)?d:[d]]));const Fe=(s,o)=>{const l=E.forwardRef(({className:c,...u},d)=>E.createElement(oT,{ref:d,iconNode:o,className:o4(`lucide-${tT(ew(s))}`,`lucide-${s}`,c),...u}));return l.displayName=ew(s),l};const rT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],r4=Fe("arrow-right",rT);const iT=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],tw=Fe("arrow-up-right",iT);const lT=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],cT=Fe("boxes",lT);const uT=[["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"}]],dT=Fe("brain",uT);const fT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ml=Fe("check",fT);const mT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zf=Fe("chevron-down",mT);const pT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wo=Fe("chevron-right",pT);const hT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Nb=Fe("circle-alert",hT);const gT=[["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"}]],aw=Fe("copy",gT);const bT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],yT=Fe("database",bT);const vT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],xT=Fe("file-spreadsheet",vT);const NT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hr=Fe("file-text",NT);const ST=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],i4=Fe("file",ST);const wT=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["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"}]],ET=Fe("files",wT);const DT=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Sb=Fe("folder-git-2",DT);const RT=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],_T=Fe("folder-input",RT);const kT=[["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"}]],UT=Fe("folder-open",kT);const CT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],l4=Fe("folder-plus",CT);const TT=[["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"}]],$n=Fe("folder",TT);const jT=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],qf=Fe("git-branch",jT);const OT=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],nb=Fe("git-commit-horizontal",OT);const AT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],sb=Fe("github",AT);const VT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],MT=Fe("globe",VT);const zT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],LT=Fe("info",zT);const HT=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],BT=Fe("list-filter",HT);const $T=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ga=Fe("loader-circle",$T);const YT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],qT=Fe("menu",YT);const GT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],IT=Fe("monitor",GT);const FT=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],XT=Fe("moon",FT);const QT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],pl=Fe("package",QT);const PT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ZT=Fe("panel-left",PT);const JT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ob=Fe("pencil",JT);const KT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],c4=Fe("plus",KT);const WT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ej=Fe("refresh-cw",WT);const tj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],aj=Fe("search",tj);const nj=[["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"}]],sj=Fe("settings",nj);const oj=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],rj=Fe("share-2",oj);const ij=[["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"}]],lj=Fe("sparkles",ij);const cj=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],uj=Fe("sun",cj);const dj=[["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"}]],u4=Fe("trash-2",dj);const fj=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],rb=Fe("upload",fj);const mj=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],pj=Fe("users",mj);const hj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jf=Fe("x",hj),oi=Pf(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await Sa.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),gj=s=>s==="connecting"?"disconnected":s;Gs.onStatusChange(s=>{oi.getState().setStatus(gj(s))});Gs.on("ws:daemon:connected",s=>{const o=s;oi.setState(l=>{if(l.connections.some(h=>h.machine_id===o.machine_id))return l;const u={machine_id:o.machine_id};o.lib_id&&(u.lib_id=o.lib_id);const d=[...l.connections,u];return{connections:d,onlineCount:d.length}})});Gs.on("ws:daemon:status",s=>{const o=s;oi.setState(l=>{if(o.is_online){if(l.connections.some(g=>g.machine_id===o.machine_id))return l;const d={machine_id:o.machine_id};o.lib_id&&(d.lib_id=o.lib_id);const h=[...l.connections,d];return{connections:h,onlineCount:h.length}}const c=l.connections.filter(u=>u.machine_id!==o.machine_id);return{connections:c,onlineCount:c.length}})});const nw=s=>Symbol.iterator in s,sw=s=>"entries"in s,ow=(s,o)=>{const l=s instanceof Map?s:new Map(s.entries()),c=o instanceof Map?o:new Map(o.entries());if(l.size!==c.size)return!1;for(const[u,d]of l)if(!c.has(u)||!Object.is(d,c.get(u)))return!1;return!0},bj=(s,o)=>{const l=s[Symbol.iterator](),c=o[Symbol.iterator]();let u=l.next(),d=c.next();for(;!u.done&&!d.done;){if(!Object.is(u.value,d.value))return!1;u=l.next(),d=c.next()}return!!u.done&&!!d.done};function yj(s,o){return Object.is(s,o)?!0:typeof s!="object"||s===null||typeof o!="object"||o===null||Object.getPrototypeOf(s)!==Object.getPrototypeOf(o)?!1:nw(s)&&nw(o)?sw(s)&&sw(o)?ow(s,o):bj(s,o):ow({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function gl(s){const o=ul.useRef(void 0);return l=>{const c=s(l);return yj(o.current,c)?o.current:o.current=c}}function ib(){const{t:s}=qe(),o=oi(h=>h.onlineCount),l=oi(h=>h.connections.length);if(Ta(gl(eT)).length===0)return null;const u=o>0,d=u?s("sources.header.daemon_status",{online:o,total:l}):s("sources.header.all_offline");return m.jsxDEV("div",{className:"group relative flex items-center",title:d,children:[m.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:22,columnNumber:7},this),m.jsxDEV("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:d},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:21,columnNumber:5},this)}const rw=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function vj(){const{t:s}=qe(),[o,l]=E.useState(!1);return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[m.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[m.jsxDEV(xn,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:22,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:25,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:21,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[m.jsxDEV("nav",{className:"flex items-center gap-4",children:rw.map(({to:c,labelKey:u})=>m.jsxDEV(lu,{to:c,end:c==="/",className:({isActive:d})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:34,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),m.jsxDEV(xn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("button",{onClick:()=>l(!o),className:"text-c4a-text-secondary md:hidden",children:o?m.jsxDEV(Jf,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):m.jsxDEV(qT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:41},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:19,columnNumber:7},this),o&&m.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[m.jsxDEV("nav",{className:"flex flex-col gap-2",children:rw.map(({to:c,labelKey:u})=>m.jsxDEV(lu,{to:c,end:c==="/",onClick:()=>l(!1),className:({isActive:d})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:75,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:73,columnNumber:11},this),m.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),m.jsxDEV(xn,{to:"/login",onClick:()=>l(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:95,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:18,columnNumber:5},this)}function xj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function d4(s){if(typeof window>"u")return;const o=xj(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function Nj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const f4=Pf(s=>({theme:Nj(),setTheme:o=>{d4(o),s({theme:o})}}));let iw=!1;function Sj(){if(iw||typeof window>"u")return;iw=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=f4.getState();l==="system"&&d4("system")};s.addEventListener("change",o)}Sj();const wj=[{mode:"light",icon:uj,labelKey:"footer.theme.light"},{mode:"dark",icon:XT,labelKey:"footer.theme.dark"},{mode:"system",icon:IT,labelKey:"footer.theme.system"}];function m4(){const{t:s}=qe(),{theme:o,setTheme:l}=f4();return m.jsxDEV("div",{className:"flex items-center gap-1",children:wj.map(({mode:c,icon:u,labelKey:d})=>m.jsxDEV("button",{onClick:()=>l(c),title:s(d),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${o===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:m.jsxDEV(u,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:30,columnNumber:11},this)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:20,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:18,columnNumber:5},this)}function p4(){const{i18n:s}=qe(),o=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return m.jsxDEV("button",{onClick:o,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:s.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}function h4({compact:s}){const{t:o}=qe(),l=new Date().getFullYear(),c=s?"footer.copyright_compact":"footer.copyright";return m.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:o(c,{year:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/CopyrightLine.tsx",lineNumber:13,columnNumber:5},this)}const Ej="_brandIcon_1c7st_1",Dj="_iconPulse_1c7st_35",lw={brandIcon:Ej,iconPulse:Dj};function Rj({variant:s}){const{t:o}=qe(),l=s==="studio"?"bg-c4a-bg-surface":"bg-c4a-bg-base";return m.jsxDEV("footer",{className:`border-t border-c4a-border-subtle ${l} px-4 py-4`,children:m.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[m.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[m.jsxDEV("div",{className:lw.brandIcon,children:m.jsxDEV("span",{className:lw.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:21,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:20,columnNumber:11},this),m.jsxDEV("div",{className:"flex flex-col",children:[m.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:24,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:o("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:27,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:19,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:36,columnNumber:13},this),m.jsxDEV(p4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:35,columnNumber:11},this),m.jsxDEV(h4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:39,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:17,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:5},this)}function _j(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),m.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:m.jsxDEV(Ww,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:10,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV(Rj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:7,columnNumber:5},this)}function kj({onToggleSidebar:s}){const{t:o}=qe();return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-surface/95 backdrop-blur-sm",children:m.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[s&&m.jsxDEV("button",{onClick:s,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:m.jsxDEV(ZT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:23,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:19,columnNumber:13},this),m.jsxDEV(xn,{to:"/",className:"hidden items-center gap-2 text-c4a-text-primary md:flex",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:31,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-sm font-semibold uppercase tracking-tight",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:27,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV(xn,{to:"/",className:"absolute left-1/2 flex -translate-x-1/2 items-center gap-2 text-c4a-text-primary md:hidden",children:m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:41,columnNumber:9},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV(xn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:14,columnNumber:5},this)}const Uj=s=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${s?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,Cj=[{to:"/studio/modeling",icon:cT,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:dT,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:aj,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:rj,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:pj,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:sj,i18nKey:"studio.sidebar.settings"}];function cw({onNavigate:s}){const{t:o}=qe(),l=cs(),c=gr(),u=Ta(gl(hu)),d=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[h,g]=E.useState(d);E.useEffect(()=>{d&&g(!0)},[d]);const b=y=>y.id===si?o("sources.library.default_cloud_name"):y.name;return m.jsxDEV("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[m.jsxDEV("nav",{className:"flex flex-col gap-1",children:[m.jsxDEV("div",{className:"group/sources",children:[m.jsxDEV("button",{onClick:()=>g(y=>!y),className:`flex w-full cursor-pointer items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(yT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:94,columnNumber:13},this),o("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:y=>{y.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.stopPropagation(),c("/studio/sources/add-client"),s?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-all hover:bg-c4a-bg-hover max-md:opacity-100 group-hover/sources:opacity-100 group-hover/sources:text-c4a-accent",title:o("sources.menu.add_client"),children:m.jsxDEV(c4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:114,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:96,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:h?m.jsxDEV(Zf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:118,columnNumber:17},this):m.jsxDEV(wo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:120,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:116,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:86,columnNumber:11},this),h&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(y=>{const D=b(y);return m.jsxDEV(lu,{to:`/studio/sources/${y.id}`,onClick:s,className:({isActive:N})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${N?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[m.jsxDEV("span",{className:"truncate",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:142,columnNumber:21},this),y.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${y.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:144,columnNumber:23},this)]},y.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:130,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:126,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:85,columnNumber:9},this),Cj.map(({to:y,icon:D,i18nKey:N})=>m.jsxDEV(lu,{to:y,onClick:s,className:({isActive:w})=>Uj(w),children:[m.jsxDEV(D,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:165,columnNumber:13},this),o(N)]},y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:159,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:84,columnNumber:7},this),m.jsxDEV("div",{className:"mt-auto flex flex-col gap-2 pt-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5",children:[m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:173,columnNumber:11},this),m.jsxDEV(p4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:174,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:172,columnNumber:9},this),m.jsxDEV(h4,{compact:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:176,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:171,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:83,columnNumber:5},this)}function Tj(){const[s,o]=E.useState(!1);return E.useEffect(()=>{Ta.getState().fetchLibraries(),oi.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Gs.onStatusChange(l=>{l==="connected"&&(Ta.getState().fetchLibraries(),oi.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex h-screen flex-col overflow-hidden",children:[m.jsxDEV(kj,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:7},this),m.jsxDEV("div",{className:"flex min-h-0 flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(cw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:33,columnNumber:9},this),s&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("div",{className:"fixed inset-0 top-14 z-30 bg-black/40 md:hidden",onClick:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(cw,{onNavigate:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:44,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:39,columnNumber:11},this),m.jsxDEV("main",{className:"flex min-h-0 flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(Ww,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:28,columnNumber:5},this)}function jj(){const{t:s}=qe();return m.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:s("home.hero.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:10,columnNumber:7},this),m.jsxDEV("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:s("home.hero.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:13,columnNumber:7},this),m.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[m.jsxDEV(xn,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[s("home.hero.cta.studio"),m.jsxDEV(r4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:22,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV("a",{href:"https://github.com/context4ai/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("home.hero.cta.github")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:9,columnNumber:5},this)}function Gn({title:s,version:o,description:l}){const{t:c}=qe();return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-md text-center",children:[m.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),o&&m.jsxDEV("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:c("placeholder.coming",{version:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:13,columnNumber:5},this)}function Oj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.login.title"),version:"0.5.0",description:s("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function Aj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.docs.title"),version:"0.4.13",description:s("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function Vj(){const{t:s}=qe();return m.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:s("notfound.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-base text-c4a-text-secondary",children:s("notfound.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:12,columnNumber:7},this),m.jsxDEV(xn,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("notfound.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:8,columnNumber:5},this)}function Mj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.modeling.title"),version:"0.4.16",description:s("page.modeling.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Modeling.tsx",lineNumber:8,columnNumber:5},this)}function zj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.brain.title"),version:"0.4.18",description:s("page.brain.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Brain.tsx",lineNumber:8,columnNumber:5},this)}function Lj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.discovery.title"),version:"0.6.x",description:s("page.discovery.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Discovery.tsx",lineNumber:8,columnNumber:5},this)}function Hj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.sharing.title"),version:"0.4.39",description:s("page.sharing.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Sharing.tsx",lineNumber:8,columnNumber:5},this)}function Bj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.collaboration.title"),version:"0.5.x",description:s("page.collaboration.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Collaboration.tsx",lineNumber:8,columnNumber:5},this)}function $j(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.settings.title"),version:"0.5.x",description:s("page.settings.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Settings.tsx",lineNumber:8,columnNumber:5},this)}function Yj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_setup.title"),version:"0.4.13",description:s("page.code_setup.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeSetup.tsx",lineNumber:8,columnNumber:5},this)}function qj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_compile.title"),version:"0.4.13",description:s("page.code_compile.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeCompile.tsx",lineNumber:8,columnNumber:5},this)}function Gj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_review.title"),version:"0.4.14",description:s("page.code_review.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeReview.tsx",lineNumber:8,columnNumber:5},this)}function Ij(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_result.title"),version:"0.4.14",description:s("page.code_result.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeResult.tsx",lineNumber:8,columnNumber:5},this)}const Kf=(s,o)=>{for(const l of s){if(l.path===o)return l;if(l.children){const c=Kf(l.children,o);if(c)return c}}return null},Fj=(s,o)=>o===""?s:Kf(s,o)?.children??[],g4=(s,o)=>{if(!o)return[];const l=o.split("/"),c=[];let u="";for(const d of l){u=u?`${u}/${d}`:d;const h=Kf(s,u);h&&c.push(h)}return c},Wf=Pf(s=>({rootSources:[],currentRoot:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchRootSources:async({library_id:o,limit:l,offset:c})=>{s({loading:!0,error:null});try{const u={library_id:o};l!==void 0&&(u.limit=String(l)),c!==void 0&&(u.offset=String(c));const d=await Sa.get("/sources",u);s({rootSources:d.items,total:d.total,limit:d.limit,offset:d.offset,loading:!1})}catch(u){s({error:u instanceof Error?u.message:"Failed to load sources",loading:!1})}},fetchRootSource:async o=>{const l=await Sa.get(`/sources/${o}`);return s({currentRoot:l}),l},createSource:async o=>await Sa.post("/sources",o),addTreeNode:async(o,l)=>{const c=await Sa.post(`/sources/${o}/tree`,l);return s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},updateSource:async(o,l)=>{const c=await Sa.put(`/sources/${o}`,l);s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot}))},deleteSource:async o=>{await Sa.delete(`/sources/${o}`),s(l=>({rootSources:l.rootSources.filter(c=>c.id!==o),currentRoot:l.currentRoot?.id===o?null:l.currentRoot}))},deleteTreeNode:async(o,l)=>{const c=await Sa.delete(`/sources/${o}/tree?path=${encodeURIComponent(l)}`);return s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},uploadDoc:async o=>await Sa.post("/sources/upload",o),setFilter:o=>s({filter:o}),clearSources:()=>s({rootSources:[],currentRoot:null,total:0,offset:0})}));function gu({segments:s}){const{t:o}=qe(),l=E.useRef(null),c=E.useRef(null),[u,d]=E.useState(0),h=[{label:o("sources.breadcrumb.sources")},...s],g=Math.max(0,h.length-3);E.useEffect(()=>{const y=l.current,D=c.current;if(!y||!D)return;const N=()=>{const R=y.clientWidth,_=Array.from(D.children);if(_.length===0)return;const H=_.map(re=>re.offsetWidth),z=4;if(H.reduce((re,k)=>re+k,0)+z*(H.length-1)<=R){d(0);return}const K=20,W=(H[0]??0)+(H[1]??0)+z,te=H[H.length-1]??0,P=W+z+K+z+te;let le=g;for(let re=1;re<=g;re++){let k=0;for(let $=2+re;$<H.length-1;$++)k+=H[$]+z;if(P+k<=R){le=re;break}}d(le)};N();const w=new ResizeObserver(N);return w.observe(y),()=>w.disconnect()},[g,s,o]);const b=(()=>{if(u===0||h.length<=3)return h;const y=h.slice(0,2),D=h[h.length-1],N=h.slice(2+u,h.length-1);return[...y,{label:"…"},...N,D]})();return m.jsxDEV("div",{ref:l,className:"relative min-w-0 overflow-hidden",children:[m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:b.map((y,D)=>{const N=D===b.length-1;return m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:106,columnNumber:17},this),y.to&&!N?m.jsxDEV(xn,{to:y.to,className:"cursor-pointer whitespace-nowrap transition-colors hover:text-c4a-text-primary",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:109,columnNumber:17},this):m.jsxDEV("span",{className:`whitespace-nowrap ${N?"text-c4a-text-primary":""}`,children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:116,columnNumber:17},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:104,columnNumber:13},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:100,columnNumber:7},this),m.jsxDEV("div",{ref:c,"aria-hidden":!0,className:"pointer-events-none invisible absolute left-0 top-0 flex h-0 items-center gap-1 overflow-visible whitespace-nowrap font-mono text-xs",children:h.map((y,D)=>m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(wo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:133,columnNumber:25},this),m.jsxDEV("span",{className:"whitespace-nowrap",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:134,columnNumber:13},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:132,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:98,columnNumber:5},this)}const Xj=["all","indexed","not_indexed"];function Qj({value:s,onChange:o}){const{t:l}=qe(),[c,u]=E.useState(!1),d=E.useRef(null),h=E.useRef(null),g={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")},b=E.useCallback(N=>{d.current&&!d.current.contains(N.target)&&u(!1)},[]);E.useEffect(()=>{if(c)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[c,b]);const y=E.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),u(!0)},[]),D=E.useCallback(()=>{h.current=setTimeout(()=>u(!1),150)},[]);return m.jsxDEV("div",{ref:d,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(BT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:55,columnNumber:9},this),m.jsxDEV("span",{className:"hidden sm:inline",children:g[s]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:56,columnNumber:9},this),m.jsxDEV(Zf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:52,columnNumber:7},this),c&&m.jsxDEV("div",{className:"absolute right-0 top-full z-20 mt-1 min-w-[120px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg",children:Xj.map(N=>m.jsxDEV("button",{onClick:()=>{o(N),u(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${N===s?"text-c4a-accent":"text-c4a-text-secondary"}`,children:[m.jsxDEV(ml,{size:12,className:N===s?"opacity-100":"opacity-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:72,columnNumber:15},this),g[N]]},N,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:62,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:51,columnNumber:5},this)}function b4({currentName:s,onConfirm:o,onCancel:l,error:c}){const[u,d]=E.useState(s),h=E.useRef(null);E.useEffect(()=>{h.current?.select()},[]);const g=E.useCallback(()=>{const y=u.trim();y&&y!==s?o(y):l()},[u,s,o,l]),b=E.useCallback(y=>{y.key==="Enter"?(y.preventDefault(),g()):y.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:y=>d(y.target.value),onKeyDown:b,onBlur:g,className:"min-w-0 flex-1 rounded border border-c4a-accent bg-c4a-bg-surface px-2 py-1 text-sm text-c4a-text-primary outline-none",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:47,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(ml,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:56,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:m.jsxDEV(Jf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:65,columnNumber:7},this),c&&m.jsxDEV("span",{className:"ml-1 text-xs text-c4a-error",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:46,columnNumber:5},this)}const Pj=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),Zj=new Set([".ts",".tsx",".md"]),Jj=new Set([".md",".doc",".docx",".pdf",".ppt",".pptx",".txt"]),Kj=new Set([".md",".txt"]),Wj=5*1024*1024,eO=10;function lb(s){const o=s.lastIndexOf(".");return o>=0?s.slice(o).toLowerCase():""}function cb(s){const o=s.includes("/")?s.split("/").pop():s;if(Pj.has(o.toLowerCase()))return!0;const l=lb(o);return Zj.has(l)}const tO=s=>{const o=new Date(s);if(Number.isNaN(o.getTime()))return"";const l=u=>String(u).padStart(2,"0"),c=`${l(o.getMonth()+1)}-${l(o.getDate())} ${l(o.getHours())}:${l(o.getMinutes())}`;return o.getFullYear()===new Date().getFullYear()?c:`${o.getFullYear()}-${c}`},uw={none:"bg-c4a-text-muted/40",indexed:"bg-c4a-success",stale:"bg-c4a-warning"};function aO({source:s,isDaemonLibrary:o}){const u=s.kind==="source"&&(s.source_type==="code"||cb(s.name))?"text-c4a-accent":"text-c4a-text-muted";return s.kind==="folder"?o?m.jsxDEV(UT,{size:16,className:`shrink-0 ${u}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:57,columnNumber:7},this):m.jsxDEV($n,{size:16,className:`shrink-0 ${u}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:59,columnNumber:7},this):s.source_type==="code"?m.jsxDEV(pl,{size:16,className:`shrink-0 ${u}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:63,columnNumber:12},this):m.jsxDEV(hr,{size:16,className:`shrink-0 ${u}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:65,columnNumber:10},this)}function dw({source:s,displayName:o,childCount:l,isDaemonLibrary:c,isRepoRoot:u,onClick:d,onRename:h,onDelete:g}){const{t:b}=qe(),[y,D]=E.useState(!1),[N,w]=E.useState(null),R=E.useCallback(async re=>{if(!h)return;const k=await h(re);k?w(k):(D(!1),w(null))},[h]),_=E.useCallback(()=>{D(!1),w(null)},[]),H=!u&&h,z=g,X=s.updated_at||s.created_at,K=s.kind==="source"&&s.source_type!=="code"&&!cb(s.name),W=!K,te=s.kind==="source"&&(s.source_type==="code"||cb(s.name)),P=te?uw[s.index_status]??uw.none:null,le=te?b(`sources.status.${s.index_status}`):"";return m.jsxDEV("div",{className:`group relative flex items-center gap-3 rounded py-2 pl-3 pr-5 transition-colors ${W?"cursor-pointer hover:bg-c4a-bg-hover":"cursor-default"}`,onClick:y||!W?void 0:d,children:[P&&m.jsxDEV("span",{className:"group/dot absolute left-[-4px] top-1/2 -translate-y-1/2",children:[m.jsxDEV("span",{className:`block h-[6px] w-[6px] rounded-full ${P}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:131,columnNumber:11},this),m.jsxDEV("span",{className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-1.5 -translate-x-1/2 whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-[10px] text-c4a-text-secondary opacity-0 shadow-lg transition-opacity group-hover/dot:opacity-100",children:le},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:132,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:130,columnNumber:9},this),m.jsxDEV(aO,{source:s,isDaemonLibrary:c??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:137,columnNumber:7},this),y?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:re=>re.stopPropagation(),children:m.jsxDEV(b4,{currentName:s.name,onConfirm:R,onCancel:_,error:N},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:141,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:140,columnNumber:9},this):m.jsxDEV("span",{className:`min-w-0 flex-1 truncate text-sm ${K?"text-c4a-text-muted":"text-c4a-text-primary"}`,children:o??s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:149,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[s.kind==="folder"&&l!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:b("common.items",{count:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:159,columnNumber:11},this),X&&m.jsxDEV("span",{className:"hidden font-mono text-[11px] text-c4a-text-muted lg:inline",children:tO(X)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:165,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:157,columnNumber:7},this),(H||z)&&m.jsxDEV("div",{className:"flex items-center gap-1 md:opacity-0 md:transition-opacity md:group-hover:opacity-100",children:[H&&m.jsxDEV("button",{title:b("sources.actions.rename"),onClick:re=>{re.stopPropagation(),D(!0)},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:182,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:174,columnNumber:13},this),z&&m.jsxDEV("button",{title:b("sources.actions.delete"),onClick:re=>{re.stopPropagation(),g()},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(u4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:194,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:186,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:122,columnNumber:5},this)}function ii({children:s,onClose:o,className:l="",overlayClass:c="bg-black/50",closeOnOverlay:u=!0,closeOnEsc:d=!0,disableClose:h=!1}){const g=E.useRef(null);E.useEffect(()=>{if(!d)return;const y=D=>{D.key==="Escape"&&!h&&o()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o,d,h]);const b=E.useCallback(y=>{u&&!h&&g.current&&!g.current.contains(y.target)&&o()},[o,u,h]);return m.jsxDEV("div",{className:`fixed inset-0 z-50 flex items-center justify-center ${c}`,onClick:b,children:m.jsxDEV("div",{ref:g,className:l,children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/common/DialogShell.tsx",lineNumber:57,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/common/DialogShell.tsx",lineNumber:53,columnNumber:5},this)}function fw({target:s,onConfirm:o,onCancel:l}){const{t:c}=qe();return m.jsxDEV(ii,{onClose:l,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.delete.confirm_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:39,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 space-y-3 text-sm text-c4a-text-secondary",children:[s.type==="resource"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.resource",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:46,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.resource_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:47,columnNumber:13},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.session_warning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:48,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:51,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:45,columnNumber:11},this),s.type==="folder"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.folder",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:57,columnNumber:13},this),m.jsxDEV("p",{children:s.folderCount!==void 0&&s.sourceCount!==void 0?c("sources.delete.folder_impact",{folders:s.folderCount,sources:s.sourceCount}):c("sources.delete.folder_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:58,columnNumber:13},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:66,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:56,columnNumber:11},this),s.type==="repo"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.repo",{name:s.name,library:s.libraryName})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:74,columnNumber:13},this),m.jsxDEV("p",{children:s.packageCount!==void 0&&s.docCount!==void 0?c("sources.delete.repo_impact",{packages:s.packageCount,docs:s.docCount}):c("sources.delete.repo_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:80,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:88,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:89,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:73,columnNumber:11},this),s.type==="client"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.client",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:95,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.client_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:96,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:97,columnNumber:13},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:98,columnNumber:13},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:99,columnNumber:13},this),m.jsxDEV("p",{className:"text-c4a-text-muted",children:c("sources.delete.client_reregister")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:102,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:94,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:43,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:l,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:110,columnNumber:9},this),m.jsxDEV("button",{onClick:o,className:"rounded bg-c4a-error px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-error/80",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:116,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:109,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:35,columnNumber:5},this)}function nO({onConfirm:s,onCancel:o,error:l}){const{t:c}=qe(),[u,d]=E.useState(""),h=E.useRef(null);E.useEffect(()=>{h.current?.focus()},[]);const g=E.useCallback(()=>{const y=u.trim();y&&s(y)},[u,s]),b=E.useCallback(y=>{y.key==="Enter"&&(y.preventDefault(),g())},[g]);return m.jsxDEV(ii,{onClose:o,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(l4,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:48,columnNumber:9},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:47,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:h,value:u,onChange:y=>d(y.target.value),onKeyDown:b,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:55,columnNumber:9},this),l&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:54,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:70,columnNumber:9},this),m.jsxDEV("button",{onClick:g,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:69,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:43,columnNumber:5},this)}function Ig({label:s,icon:o,items:l,alignRight:c}){const[u,d]=E.useState(!1),h=E.useRef(null),g=E.useRef(null),b=E.useCallback(N=>{h.current&&!h.current.contains(N.target)&&d(!1)},[]);E.useEffect(()=>{if(u)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[u,b]);const y=E.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),d(!0)},[]),D=E.useCallback(()=>{g.current=setTimeout(()=>d(!1),150)},[]);return m.jsxDEV("div",{ref:h,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:`flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${s?"p-1 sm:px-2 sm:py-1":"p-1"}`,children:[o,s&&m.jsxDEV("span",{className:"hidden sm:inline",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:54,columnNumber:19},this),s&&m.jsxDEV(Zf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:55,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:50,columnNumber:7},this),u&&m.jsxDEV("div",{className:`absolute top-full z-20 mt-1 min-w-[160px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${c?"right-0":"left-0"}`,children:l.map(N=>m.jsxDEV("button",{onClick:()=>{N.onClick(),d(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[N.icon,N.label]},N.label,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:60,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:49,columnNumber:5},this)}function sO({onClose:s}){const{t:o}=qe();return m.jsxDEV(ii,{onClose:s,closeOnEsc:!1,className:"w-full max-w-sm rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(lj,{size:18,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:19,columnNumber:9},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:o("sources.upgrade.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:18,columnNumber:7},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:o("sources.upgrade.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:24,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:28,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:27,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:13,columnNumber:5},this)}function oO(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}function rO({onConfirm:s,onCancel:o,error:l,uploading:c}){const{t:u}=qe(),[d,h]=E.useState([]),[g,b]=E.useState(null),[y,D]=E.useState(!1),N=E.useRef(null),w=E.useCallback(te=>{b(null);for(const P of te){const le=lb(P.name);if(!Jj.has(le)){b(u("sources.upload.unsupported_type",{name:P.name}));return}if(P.size>Wj){b(u("sources.upload.file_too_large",{name:P.name}));return}}h(P=>{const le=new Map(P.map(k=>[k.name,k]));for(const k of te)le.set(k.name,{name:k.name,size:k.size,file:k});const re=Array.from(le.values());return re.length>eO?(b(u("sources.upload.too_many_files")),P):re})},[u]),R=E.useCallback(te=>{const P=te.target.files;!P||P.length===0||(w(Array.from(P)),te.target.value="")},[w]),_=E.useCallback(te=>{h(P=>P.filter((le,re)=>re!==te)),b(null)},[]),H=E.useCallback(te=>{te.preventDefault(),D(!1);const P=te.dataTransfer?.files;!P||P.length===0||w(Array.from(P))},[w]),z=E.useCallback(te=>{te.preventDefault(),D(!0)},[]),X=E.useCallback(te=>{te.preventDefault(),D(!1)},[]),K=E.useCallback(async()=>{if(d.length===0)return;const te=await Promise.all(d.map(P=>new Promise((le,re)=>{const k=lb(P.name),$=Kj.has(k),B=new FileReader;B.onerror=()=>re(B.error),$?(B.onload=()=>le({name:P.name,content:B.result,encoding:"utf-8"}),B.readAsText(P.file)):(B.onload=()=>{const me=B.result,ee=me.slice(me.indexOf(",")+1);le({name:P.name,content:ee,encoding:"base64"})},B.readAsDataURL(P.file))})));s(te)},[d,s]),W=l||g;return m.jsxDEV(ii,{onClose:o,disableClose:c??!1,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(rb,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:161,columnNumber:9},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:u("sources.upload.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:162,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:160,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:N,type:"file",accept:".md,.doc,.docx,.pdf,.ppt,.pptx,.txt",multiple:!0,onChange:R,className:"hidden"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:169,columnNumber:9},this),m.jsxDEV("button",{type:"button",onClick:()=>N.current?.click(),onDrop:H,onDragOver:z,onDragLeave:X,disabled:c,className:`flex w-full flex-col items-center justify-center rounded border-2 border-dashed px-4 py-8 transition-colors ${y?"border-c4a-accent bg-c4a-accent/5":"border-c4a-border-default hover:border-c4a-accent/50"} ${c?"cursor-not-allowed opacity-40":"cursor-pointer"}`,children:[m.jsxDEV(rb,{size:24,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:190,columnNumber:11},this),m.jsxDEV("p",{className:"mt-2 text-sm text-c4a-text-secondary",children:u("sources.upload.drop_hint")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:191,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-[10px] text-c4a-text-muted",children:u("sources.upload.supported_formats")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:194,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:168,columnNumber:7},this),d.length>0&&m.jsxDEV("div",{className:"mt-3",children:[m.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:u("sources.upload.selected",{count:d.length})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:203,columnNumber:11},this),m.jsxDEV("div",{className:"mt-1 max-h-40 space-y-1 overflow-y-auto c4a-scrollbar",children:d.map((te,P)=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded bg-c4a-bg-surface px-2 py-1",children:[m.jsxDEV(hr,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:212,columnNumber:17},this),m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-xs text-c4a-text-primary",children:te.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:213,columnNumber:17},this),m.jsxDEV("span",{className:"shrink-0 text-[10px] text-c4a-text-muted",children:oO(te.size)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:216,columnNumber:17},this),!c&&m.jsxDEV("button",{type:"button",onClick:()=>_(P),className:"shrink-0 text-c4a-text-muted transition-colors hover:text-c4a-text-primary",title:u("sources.upload.remove"),children:m.jsxDEV(Jf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:226,columnNumber:21},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:220,columnNumber:19},this)]},`${te.name}-${P}`,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:208,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:206,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:202,columnNumber:9},this),W&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:W},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:237,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,disabled:c,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:u("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:242,columnNumber:9},this),m.jsxDEV("button",{onClick:K,disabled:d.length===0||c,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[c&&m.jsxDEV(Ga,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:254,columnNumber:25},this),u(c?"sources.upload.uploading":"common.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:249,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:241,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:154,columnNumber:5},this)}function iO({pathLabel:s,loading:o,onNavigateUp:l,children:c}){return m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:23,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar flex min-h-0 flex-1 flex-col overflow-y-auto pl-2",children:o?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center py-8",children:m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:27,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:26,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[l&&m.jsxDEV("button",{onClick:l,className:"flex w-full cursor-pointer items-center gap-3 rounded pl-3 pr-5 py-2 text-left text-sm text-c4a-text-primary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:36,columnNumber:17},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:37,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:32,columnNumber:15},this),c]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:30,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:19,columnNumber:5},this)}function lO({library:s,onNewFolder:o,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:d}=qe(),h=s.type==="daemon";return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-2xl text-center",children:[m.jsxDEV("h3",{className:"font-mono text-lg font-bold uppercase text-c4a-text-primary",children:d(h?"sources.empty.daemon.title":"sources.empty.cloud.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:d(h?"sources.empty.daemon.description":"sources.empty.cloud.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:73,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:h?m.jsxDEV(m.Fragment,{children:[c&&m.jsxDEV("button",{onClick:c,disabled:!s.is_online,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:d("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:82,columnNumber:17},this),l&&m.jsxDEV("button",{onClick:l,disabled:!s.is_online,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:d("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:91,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:80,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:d("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:102,columnNumber:15},this),u&&m.jsxDEV("button",{onClick:u,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:d("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:109,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:101,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:67,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:66,columnNumber:5},this)}function cO(){const{t:s}=qe();return m.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("h4",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:s("sources.empty.indexed.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:130,columnNumber:7},this),m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-text-secondary",children:s("sources.empty.indexed.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:133,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:129,columnNumber:5},this)}const Fg=s=>{const o=s.children??[];return{folders:o.filter(l=>l.kind==="folder").length,sources:o.filter(l=>l.kind==="source").length,codeSources:o.filter(l=>l.kind==="source"&&l.source_type==="code").length,docSources:o.filter(l=>l.kind==="source"&&l.source_type==="doc").length}};function uO(){const{t:s}=qe(),o=gr(),{libId:l}=Xf(),[c,u]=s4(),d=c.get("rootId")||null,h=c.get("path")||"",b=Ta(gl(hu)).find(x=>x.id===l),y=Ta(x=>x.updateLibraryName),D=Ta(x=>x.deleteLibrary),{rootSources:N,currentRoot:w,loading:R,filter:_,fetchRootSources:H,fetchRootSource:z,createSource:X,addTreeNode:K,updateSource:W,deleteSource:te,deleteTreeNode:P,uploadDoc:le,setFilter:re}=Wf(),[k,$]=E.useState(!1),[B,me]=E.useState(null),[ee,ce]=E.useState(null),[ne,ge]=E.useState(null),[J,ue]=E.useState(null),[ve,pe]=E.useState(!1),[He,I]=E.useState(!1),[Ne,Ue]=E.useState(null),[Re,dt]=E.useState(!1),[Tt,Ke]=E.useState(!1),[Qt,De]=E.useState(null),[Lt,he]=E.useState(!1);E.useEffect(()=>{l&&H({library_id:l})},[l,H]),E.useEffect(()=>{d&&z(d)},[d,z]);const xt=d!==null,ft=E.useMemo(()=>xt?w?[...Fj(w.tree,h)].sort((Z,ae)=>Z.kind!==ae.kind?Z.kind==="folder"?-1:1:Z.name.localeCompare(ae.name)).map(Z=>({type:"node",root:w,node:Z})):[]:[...N].sort((ae,de)=>ae.kind!==de.kind?ae.kind==="folder"?-1:1:new Date(de.created_at).getTime()-new Date(ae.created_at).getTime()).map(ae=>({type:"root",root:ae,node:null})),[xt,N,w,h]),Ht=E.useMemo(()=>_==="all"?ft:ft.filter(x=>x.type==="root"||!x.node||x.node.kind==="folder"?!0:_==="indexed"?x.node.index_status==="indexed":x.node.index_status==="none"||!x.node.index_status),[ft,_]),Bt=b?.type==="daemon",nt=b?.type==="cloud",vt=Bt&&!xt,Pt=E.useMemo(()=>{if(!b)return[];const x=[{label:b.id===si?s("sources.library.default_cloud_name"):b.name,to:`/studio/sources/${b.id}`}];return xt&&w&&(x.push({label:w.name,to:`/studio/sources/${b.id}?rootId=${w.id}`}),h&&g4(w.tree,h).forEach(Z=>{x.push({label:Z.name,to:`/studio/sources/${b.id}?rootId=${w.id}&path=${encodeURIComponent(Z.path)}`})})),x},[b,xt,w,h,s]),Sn=E.useCallback(async x=>{if(l)try{xt&&d?await K(d,{parent_path:h,kind:"folder",name:x}):(await X({library_id:l,kind:"folder",name:x}),H({library_id:l})),$(!1),me(null)}catch(O){O instanceof Wc&&O.status===409&&me(s("sources.error.name_conflict",{name:x}))}},[l,xt,d,h,X,K,H,s]),Se=E.useCallback(x=>{l&&(x.type==="root"?x.root.kind==="source"?o(`/studio/source/${x.root.id}`):u({rootId:x.root.id}):x.node&&(x.node.kind==="folder"?u({rootId:x.root.id,path:x.node.path}):o(`/studio/source/${x.root.id}?path=${encodeURIComponent(x.node.path)}`)))},[l,o,u]),wn=E.useCallback(()=>{if(!(!d||!l))if(h){const x=h.split("/");x.pop();const O=x.join("/");u(O?{rootId:d,path:O}:{rootId:d})}else u({})},[d,l,h,u]),wa=E.useCallback(async(x,O)=>{try{return await W(x,{name:O}),H({library_id:l}),null}catch(Z){return Z instanceof Wc&&Z.status===409?s("sources.error.name_conflict",{name:O}):null}},[l,W,H,s]),Fa=E.useCallback(x=>{if(x.type==="root"){ge(x.root.id),ue(null);const O=x.root.tree.length>0?Fg({children:x.root.tree}):void 0;ce(Bt?{type:"repo",name:x.root.name,libraryName:b.name,...O?{packageCount:O.codeSources,docCount:O.docSources}:{}}:{type:x.root.kind==="folder"?"folder":"resource",name:x.root.name,...x.root.kind==="folder"&&O?{folderCount:O.folders,sourceCount:O.sources}:{}})}else if(x.node)if(ge(x.root.id),ue(x.node.path),x.node.kind==="folder"){const O=Fg(x.node);ce({type:"folder",name:x.node.name,folderCount:O.folders,sourceCount:O.sources})}else ce({type:"resource",name:x.node.name})},[Bt,b]),En=E.useCallback(async()=>{if(!(!ne||!l)){try{J?await P(ne,J):(await te(ne),H({library_id:l}))}catch{}ce(null),ge(null),ue(null)}},[ne,J,l,te,P,H]),ja=E.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),Xa=E.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]),us=E.useCallback(async x=>{if(l){dt(!0),Ue(null);try{const O={library_id:l,files:x.map(Z=>{const ae={file_name:Z.name,content:Z.content};return Z.encoding&&(ae.encoding=Z.encoding),ae})};xt&&d&&(O.root_source_id=d,O.parent_path=h),await le(O),xt&&d?z(d):H({library_id:l}),I(!1)}catch(O){O instanceof Wc&&O.status===409?Ue(s("sources.error.name_conflict",{name:x[0]?.name??""})):O instanceof Wc&&Ue(O.message)}finally{dt(!1)}}},[l,xt,d,h,le,H,z,s]),Qa=b?.id===si,Ea=E.useCallback(async x=>{if(l)try{await y(l,x),Ke(!1),De(null)}catch(O){const Z=O instanceof Error?O.message:String(O);De(Z)}},[l,y]),ga=E.useCallback(()=>{Ke(!1),De(null)},[]),ds=E.useCallback(async()=>{if(l){try{await D(l),o("/studio/sources/add-client")}catch{}he(!1)}},[l,D,o]),In=E.useCallback(()=>{he(!1)},[]);if(!b)return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:533,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:532,columnNumber:7},this);const Pa=N.length===0&&_==="all"&&!R&&!xt,Fn=Ht.filter(x=>x.type==="node"&&x.node?.kind==="source").length===0&&_==="indexed"&&!R,la=!vt,Xn=nt,nn=vt;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsxDEV("div",{className:"min-w-0 flex-1",children:Tt?m.jsxDEV(b4,{currentName:b.name,onConfirm:Ea,onCancel:ga,error:Qt},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:555,columnNumber:13},this):m.jsxDEV(gu,{segments:Pt},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:562,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:553,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[Xn&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(Ig,{label:s("sources.actions.upload"),icon:m.jsxDEV(rb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:571,columnNumber:23},this),items:[{label:s("sources.actions.upload_doc"),icon:m.jsxDEV(hr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:575,columnNumber:27},this),onClick:()=>I(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:569,columnNumber:15},this),m.jsxDEV(Ig,{label:s("sources.actions.add"),icon:m.jsxDEV(c4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:582,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(l4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:586,columnNumber:27},this),onClick:()=>$(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(MT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:591,columnNumber:27},this),onClick:()=>pe(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(xT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:596,columnNumber:27},this),onClick:()=>pe(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:580,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>pe(!0),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(tw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:605,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:606,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:601,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:568,columnNumber:13},this),nn&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:Xa,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(_T,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:624,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:625,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:614,columnNumber:15},this),m.jsxDEV("button",{onClick:ja,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(tw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:637,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:638,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:627,columnNumber:15},this),m.jsxDEV(Ig,{label:"",icon:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:642,columnNumber:23},this),alignRight:!0,items:[{label:s("sources.library.rename"),icon:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:647,columnNumber:27},this),onClick:()=>Ke(!0)},...Qa?[]:[{label:s("sources.actions.delete"),icon:m.jsxDEV(u4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:654,columnNumber:33},this),onClick:()=>he(!0)}]]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:640,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:613,columnNumber:13},this),la&&m.jsxDEV(Qj,{value:_,onChange:re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:665,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:565,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:552,columnNumber:7},this),Pa?m.jsxDEV(lO,{library:b,onNewFolder:()=>$(!0),...Bt?{onImportRepo:ja,onImportDir:Xa}:{},...nt?{onUpgrade:()=>pe(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:671,columnNumber:9},this):m.jsxDEV(iO,{pathLabel:Pt.map(x=>x.label).join(" / "),loading:R,onNavigateUp:xt?wn:void 0,children:Ht.length===0?Fn?m.jsxDEV(cO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:685,columnNumber:15},this):xt?null:m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:s("common.items",{count:0})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:687,columnNumber:15},this):m.jsxDEV("div",{className:"flex flex-col gap-0.5",children:Ht.map(x=>{if(x.type==="root"){const de=x.root,ze=Bt,Ee=ze?de.metadata?.local_path:void 0,Xe=de.tree.length>0?Fg({children:de.tree}):void 0,Be=Xe?Xe.folders+Xe.sources:0;return m.jsxDEV(dw,{source:{id:de.id,library_id:de.library_id,owner_id:de.owner_id,path:"",kind:de.kind,source_type:de.source_type,name:de.name,content_hash:de.content_hash,metadata:de.metadata,index_status:de.index_status,created_at:de.created_at,updated_at:de.updated_at},...typeof Ee=="string"?{displayName:Ee}:{},...de.kind==="folder"?{childCount:Be}:{},isDaemonLibrary:Bt??!1,isRepoRoot:ze,onClick:()=>Se(x),onRename:Zt=>wa(de.id,Zt),onDelete:()=>Fa(x)},de.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:707,columnNumber:21},this)}const O=x.node,Z=`${x.root.id}:${O.path}`,ae=O.kind==="folder"?O.children?.length??0:void 0;return m.jsxDEV(dw,{source:{id:x.root.id,library_id:x.root.library_id,owner_id:x.root.owner_id,path:O.path,kind:O.kind,source_type:O.source_type??null,name:O.name,content_hash:null,metadata:O.metadata??null,index_status:O.index_status??"none",created_at:x.root.created_at,updated_at:x.root.updated_at},...ae!==void 0?{childCount:ae}:{},isDaemonLibrary:Bt??!1,onClick:()=>Se(x),...nt?{onDelete:()=>Fa(x)}:{}},Z,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:741,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:692,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:678,columnNumber:9},this),k&&m.jsxDEV(nO,{onConfirm:Sn,onCancel:()=>{$(!1),me(null)},error:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:771,columnNumber:9},this),He&&m.jsxDEV(rO,{onConfirm:us,onCancel:()=>{I(!1),Ue(null)},error:Ne,uploading:Re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:783,columnNumber:9},this),ve&&m.jsxDEV(sO,{onClose:()=>pe(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:796,columnNumber:9},this),ee&&m.jsxDEV(fw,{target:ee,onConfirm:En,onCancel:()=>{ce(null),ge(null),ue(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:801,columnNumber:9},this),Lt&&b&&m.jsxDEV(fw,{target:{type:"client",name:b.name},onConfirm:ds,onCancel:In},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:814,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:550,columnNumber:5},this)}function nu({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StepIndicator.tsx",lineNumber:9,columnNumber:5},this)}function ub(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StepIndicator.tsx",lineNumber:22,columnNumber:10},this)}function y4({libraryName:s}){const{t:o}=qe();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DaemonOfflineBlock.tsx",lineNumber:12,columnNumber:7},this),m.jsxDEV(xn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DaemonOfflineBlock.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DaemonOfflineBlock.tsx",lineNumber:11,columnNumber:5},this)}function v4({step:s,totalSteps:o,importing:l,stepBusy:c,canProceed:u,safetyNoticeKey:d,confirmLabelKey:h,onPrev:g,onNext:b,onImport:y}){const{t:D}=qe();return m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-4 sm:mt-6",children:[m.jsxDEV("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-c4a-text-muted line-clamp-1 sm:line-clamp-none",title:D(d),onClick:N=>N.currentTarget.classList.toggle("line-clamp-1"),children:D(d)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:33,columnNumber:7},this),m.jsxDEV("div",{className:"flex shrink-0 gap-2",children:[s>1&&m.jsxDEV("button",{onClick:g,disabled:l||c,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:D("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:42,columnNumber:11},this),s<o?m.jsxDEV("button",{onClick:b,disabled:!u||c,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:D("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:51,columnNumber:11},this):m.jsxDEV("button",{onClick:y,disabled:l||c||!u,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[l&&m.jsxDEV(Ga,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:64,columnNumber:27},this),D(l?"sources.import.importing":h)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:59,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:40,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ImportFooter.tsx",lineNumber:32,columnNumber:5},this)}function x4(s,o){const l=E.useCallback(async(h,g)=>{if(!s)throw new Error("No library");const b=await Sa.post(`/libraries/${s}/rpc`,{method:h,params:g});if(b.error){const y=b.error;throw new Error(y.message??JSON.stringify(b.error))}return b.result??b},[s]),[c,u]=E.useState([]);E.useEffect(()=>{if(!s)return;let h=!1;return(async()=>{try{const g=await Sa.get("/sources",{library_id:s,limit:"500"});if(h)return;const b=g.items.map(y=>{const D=y.metadata;return typeof D?.local_path=="string"?D.local_path:null}).filter(y=>y!==null);u(b)}catch{}})(),()=>{h=!0}},[s]);const d=E.useMemo(()=>{const h=o?.config;return!h||!Array.isArray(h.allowed_paths)?[]:h.allowed_paths},[o]);return{rpc:l,importedPaths:c,allowedPaths:d}}function N4(){const{t:s}=qe(),[o,l]=E.useState(!1),[c,u]=E.useState(null),d=E.useRef(),h=E.useRef(),g=window.location.host,b=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,y=`c4a-daemon --server ${g}`,D=E.useCallback((R,_)=>{navigator.clipboard.writeText(R),u(_),clearTimeout(d.current),d.current=setTimeout(()=>u(null),1500)},[]),N=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),w=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:N,onMouseLeave:w,children:[m.jsxDEV(Nb,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:41,columnNumber:7},this),o&&m.jsxDEV("span",{className:"absolute left-full top-1/2 z-10 ml-2 -translate-y-1/2 rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-2 shadow-lg",onMouseEnter:N,onMouseLeave:w,children:[m.jsxDEV("span",{className:"block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_restrict")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:49,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:53,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(b,0),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===0?m.jsxDEV(ml,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:34},this):m.jsxDEV(aw,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:56,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV("span",{className:"mt-2 block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_all")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:66,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:70,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(y,1),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===1?m.jsxDEV(ml,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:34},this):m.jsxDEV(aw,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:36,columnNumber:5},this)}function S4({open:s,onClose:o,rpc:l,onNavigate:c,defaultPath:u}){const{t:d}=qe(),[h,g]=E.useState(u??""),[b,y]=E.useState(null),[D,N]=E.useState(!1),w=E.useRef(null);E.useEffect(()=>{u&&!h&&g(u)},[u]);const R=E.useCallback(async()=>{const H=h.trim();if(H){N(!0),y(null);try{(await l("fs/exists",{path:H})).exists?(c(H),g(u??""),y(null),o()):y(d("sources.import.wildcard_path_not_found"))}catch(z){y(z instanceof Error?z.message:String(z))}finally{N(!1)}}},[h,l,d,c,o]),_=E.useCallback(()=>{g(u??""),y(null),o()},[o,u]);return s?m.jsxDEV(ii,{onClose:_,closeOnOverlay:!1,closeOnEsc:!1,overlayClass:"bg-black/40",className:"w-full max-w-md rounded-lg border border-c4a-border-default bg-c4a-bg-surface p-5 shadow-xl",children:[m.jsxDEV("div",{className:"flex items-center justify-between",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-medium text-c4a-text-primary",children:d("sources.import.wildcard_go_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:67,columnNumber:9},this),m.jsxDEV("button",{onClick:_,className:"rounded p-1 text-c4a-text-muted transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-secondary",children:m.jsxDEV(Jf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:74,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:66,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex items-center gap-2",children:[m.jsxDEV("input",{ref:w,type:"text",value:h,onChange:H=>{g(H.target.value),y(null)},onKeyDown:H=>{H.key==="Enter"&&R()},placeholder:d("sources.import.wildcard_path_placeholder"),autoFocus:!0,className:"flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:78,columnNumber:9},this),m.jsxDEV("button",{onClick:R,disabled:D||!h.trim(),className:"flex shrink-0 items-center gap-1.5 rounded bg-c4a-accent px-3 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[D?m.jsxDEV(Ga,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:94,columnNumber:13},this):m.jsxDEV(r4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:96,columnNumber:13},this),d("sources.import.wildcard_go")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:77,columnNumber:7},this),b&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:59,columnNumber:5},this):null}function w4(s){const o=s.match(/^[\w.-]+@([\w.-]+):([\w./-]+?)(?:\.git)?$/);if(o){const l=o[1],c=o[2];return{slug:c,repoUrl:`https://${l}/${c}`,host:l}}try{const l=new URL(s),c=l.hostname,u=l.pathname.replace(/^\//,"").replace(/\.git$/,"");return u?{slug:u,repoUrl:`https://${c}/${u}`,host:c}:null}catch{return null}}function dO(s,o){return`${s}/tree/${encodeURIComponent(o)}`}function fO(s,o){return`${s}/commit/${o}`}function E4({rpc:s,allowedPaths:o,importedPaths:l,onNavigateUpExtra:c}){const u=!!o&&o.length>0,d=u&&o.length===1&&o[0]==="*",[h,g]=E.useState(u),[b,y]=E.useState(u&&!d?"":"/"),[D,N]=E.useState([]),[w,R]=E.useState(!1),[_,H]=E.useState(null),[z,X]=E.useState(null);E.useEffect(()=>{if(u&&!d)return;let $=!1;return(async()=>{try{const B=await s("fs/homeDir",{});$||X(B.home_dir)}catch{$||X("/")}})(),()=>{$=!0}},[u,d,s]);const[K,W]=E.useState(!1),te=E.useCallback(async $=>{R(!0),H(null);try{const B=await s("fs/listTree",{path:$,depth:1});N(B.entries||[]),y($),g(!1)}catch(B){const me=B instanceof Error?B.message:String(B);H(me)}finally{R(!1)}},[s]);E.useEffect(()=>{u&&!d||z!==null&&te(z)},[z,u,d,te]);const P=E.useMemo(()=>new Set(l??[]),[l]),le=E.useCallback(()=>{if(u&&!d&&o.some(me=>me===b)){g(!0),y(""),N([]),H(null),c?.();return}const $=b.split("/").slice(0,-1).join("/")||"/";c?.(),te($)},[u,d,o,b,te,c]),re=E.useMemo(()=>D.filter($=>$.type==="directory"),[D]),k=E.useMemo(()=>D.filter($=>$.type==="file"),[D]);return{atRoot:h,currentPath:b,entries:D,loading:w,error:_,homeDir:z,goToOpen:K,hasAllowedPaths:u,isWildcard:d,importedSet:P,dirs:re,files:k,loadTree:te,handleNavigateUp:le,setGoToOpen:W}}function mO({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=qe(),[h,g]=E.useState(null),{atRoot:b,currentPath:y,entries:D,loading:N,error:w,homeDir:R,goToOpen:_,isWildcard:H,importedSet:z,dirs:X,files:K,loadTree:W,handleNavigateUp:te,setGoToOpen:P}=E4({rpc:s,allowedPaths:c??[],importedPaths:u??[],onNavigateUpExtra:()=>g(null)}),[le,re]=E.useState(null),[k,$]=E.useState(!1);E.useEffect(()=>{if(!o){re(null),$(!1);return}re(null),$(!0);let ne=!1;return(async()=>{try{const ge=await s("fs/repoStatus",{path:o});ne||(re({branch:ge.branch,hash:ge.head_hash,remoteUrl:ge.remote_url}),$(!1))}catch{ne||(re(null),$(!1))}})(),()=>{ne=!0}},[o,s]);const B=E.useMemo(()=>le?.remoteUrl?w4(le.remoteUrl):null,[le?.remoteUrl]),me=E.useCallback(ne=>{if(ne.type==="directory")if(ne.is_git_repo){if(z.has(ne.path))return;g(null),l(ne.path,ne.name)}else g(ne.path),W(ne.path)},[l,W,z]),ee=E.useMemo(()=>X.sort((ne,ge)=>ne.is_git_repo&&!ge.is_git_repo?-1:!ne.is_git_repo&&ge.is_git_repo?1:ne.name.localeCompare(ge.name)),[X]),ce=E.useMemo(()=>K.sort((ne,ge)=>ne.name.localeCompare(ge.name)),[K]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:144,columnNumber:13},this),m.jsxDEV(N4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:143,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:148,columnNumber:11},this),o&&k?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Ga,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:154,columnNumber:13},this),m.jsxDEV("span",{children:d("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:155,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:153,columnNumber:11},this):o&&le?m.jsxDEV("div",{className:"flex min-w-0 shrink items-center gap-1.5 font-mono text-xs leading-none text-c4a-accent flex-wrap",children:[B?m.jsxDEV("a",{href:B.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 truncate hover:underline",title:B.repoUrl,children:[m.jsxDEV(sb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:167,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:B.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:168,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:160,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1 truncate",children:[m.jsxDEV(sb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:172,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:o.split("/").pop()||o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:173,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:171,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:176,columnNumber:13},this),B?m.jsxDEV("a",{href:dO(B.repoUrl,le.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(qf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:184,columnNumber:17},this),m.jsxDEV("span",{children:le.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:185,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:178,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(qf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:189,columnNumber:17},this),m.jsxDEV("span",{children:le.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:190,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:188,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:193,columnNumber:13},this),B?m.jsxDEV("a",{href:fO(B.repoUrl,le.hash),target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:le.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:195,columnNumber:15},this):m.jsxDEV("span",{children:le.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:204,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:158,columnNumber:11},this):!o&&H&&b?m.jsxDEV("button",{onClick:()=>P(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:208,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:141,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:217,columnNumber:7},this),b?H?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:R&&m.jsxDEV("button",{onClick:()=>W(R),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:228,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[R,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:231,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:229,columnNumber:17},this),m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:235,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:224,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(ne=>m.jsxDEV("button",{onClick:()=>W(ne),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:248,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:ne},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:249,columnNumber:17},this),m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:250,columnNumber:17},this)]},ne,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:243,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:241,columnNumber:11},this):w&&!N?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:w},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:259,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[N&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:264,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:263,columnNumber:13},this),y!=="/"&&m.jsxDEV("button",{onClick:te,disabled:N,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:274,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:275,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:269,columnNumber:13},this),ee.map(ne=>{const ge=ne.is_git_repo&&z.has(ne.path),J=ne.is_git_repo?Sb:$n;return m.jsxDEV("div",{className:`flex w-full items-center rounded pl-2 pr-4 text-left text-sm transition-colors ${ge?"cursor-not-allowed text-c4a-accent/60":o===ne.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-accent/10 hover:text-c4a-accent"}`,children:[m.jsxDEV("button",{onClick:()=>me(ne),disabled:ge||N,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(J,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:299,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:ne.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:300,columnNumber:17},this),ge&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:302,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:294,columnNumber:15},this),!ge&&m.jsxDEV("button",{onClick:ue=>{ue.stopPropagation(),W(ne.path)},disabled:N,className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-accent/10 hover:text-c4a-accent disabled:pointer-events-none",title:ne.path,children:m.jsxDEV(wo,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:314,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:308,columnNumber:17},this)]},ne.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:284,columnNumber:13},this)}),ce.map(ne=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(i4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:327,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:ne.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:328,columnNumber:15},this)]},ne.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:323,columnNumber:13},this)),D.length===0&&!N&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:333,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:9},this),h&&!o&&m.jsxDEV("p",{className:"mt-3 text-xs text-c4a-warning",children:d("sources.import.not_git")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:9},this),m.jsxDEV(S4,{open:_,onClose:()=>P(!1),rpc:s,onNavigate:W,defaultPath:R??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:348,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:140,columnNumber:5},this)}function mw({value:s,options:o,onChange:l,icon:c,maxHeight:u="max-h-60"}){const[d,h]=E.useState(!1),g=E.useRef(null),b=E.useRef(null),y=E.useCallback(R=>{g.current&&!g.current.contains(R.target)&&h(!1)},[]);E.useEffect(()=>{if(d)return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[d,y]);const D=E.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!0)},[]),N=E.useCallback(()=>{b.current=setTimeout(()=>h(!1),150)},[]),w=o.find(R=>R.value===s);return m.jsxDEV("div",{ref:g,className:"relative",onMouseEnter:D,onMouseLeave:N,children:[m.jsxDEV("button",{onClick:()=>h(R=>!R),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[c,m.jsxDEV("span",{className:"max-w-[200px] truncate",children:w?.label??s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:62,columnNumber:9},this),m.jsxDEV(Zf,{size:12,className:`shrink-0 transition-transform ${d?"rotate-180":""}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:57,columnNumber:7},this),d&&m.jsxDEV("div",{className:`absolute left-0 top-full z-20 mt-1 min-w-[180px] max-w-[360px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${u} c4a-scrollbar overflow-y-auto`,children:o.map(R=>m.jsxDEV("button",{onClick:()=>{l(R.value),h(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover ${R.value===s?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(ml,{size:12,className:`shrink-0 ${R.value===s?"opacity-100":"opacity-0"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:80,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:R.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:81,columnNumber:15},this)]},R.value,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:68,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:56,columnNumber:5},this)}const pO=/\.md$/i,Xg=100,hO=(s,o)=>{const l=s.toLowerCase();try{if(l.endsWith("package.json")){const c=JSON.parse(o);if(typeof c.name=="string"&&c.name.trim())return c.name.trim()}if(l.endsWith("pyproject.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("go.mod"))return o.match(/^\s*module\s+([^\s]+)\s*$/m)?.[1]??null;if(l.endsWith("cargo.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("pom.xml"))return o.match(/<artifactId>([^<]+)<\/artifactId>/)?.[1]?.trim()??null;if(l.endsWith("build.gradle"))return o.match(/rootProject\.name\s*=\s*["']([^"']+)["']/)?.[1]??null}catch{return null}return null};function gO({rpc:s,repoPath:o,onReady:l,onBusyChange:c}){const{t:u}=qe(),[d,h]=E.useState(""),[g,b]=E.useState([]),[y,D]=E.useState(""),[N,w]=E.useState([]),[R,_]=E.useState(!1),[H,z]=E.useState(!0),[X,K]=E.useState(!1),[W,te]=E.useState(!1),[P,le]=E.useState([]),[re,k]=E.useState([]),[,$]=E.useState([]),[B,me]=E.useState(),ee=E.useMemo(()=>B?w4(B):null,[B]),[ce,ne]=E.useState("packages"),[ge,J]=E.useState(Xg),ue=E.useRef(null),ve=E.useRef(null);E.useEffect(()=>{if(!H){K(!1);return}const De=setTimeout(()=>K(!0),2e3);return()=>clearTimeout(De)},[H]),E.useEffect(()=>{J(Xg),ve.current?.scrollTo(0,0)},[ce]),E.useEffect(()=>{const De=ue.current;if(!De)return;const Lt=ce==="packages"?P.length:re.length;if(ge>=Lt)return;const he=new IntersectionObserver(xt=>{xt[0]?.isIntersecting&&J(ft=>Math.min(ft+Xg,Lt))},{root:ve.current,threshold:.1});return he.observe(De),()=>he.disconnect()},[ce,ge,P.length,re.length]);const pe=E.useCallback(async(De,Lt)=>{te(!0),c?.(!0);try{const he=await s("fs/repoScan",{path:o,hash:De}),xt=he.files||[],ft=he.manifests||[];$(xt);const Ht=[];for(const Pt of ft){const Sn=Pt.path.split("/"),Se=Sn.slice(0,-1).join("/")||".",wn=Sn.length===1||Pt.path==="package.json",wa=Se==="."?o.split("/").pop()||"root":Sn[Sn.length-2]||Se,Fa=hO(Pt.path,Pt.content);Ht.push({name:Fa||wa,path:Se,isRoot:wn})}const Bt=xt.filter(Pt=>pO.test(Pt.path)).map(Pt=>Pt.path);k(Bt),le(Ht);const nt=Lt?.branch??d,vt=Lt?.isDirty??R;l({branch:nt,commit:De,isDirty:vt,repoFiles:xt,packages:Ht,mdFiles:Bt,repoFileContents:ft})}catch{}finally{te(!1),c?.(!1)}},[s,o,d,R,l,c]);E.useEffect(()=>{(async()=>{z(!0),c?.(!0);try{const De=await s("fs/repoStatus",{path:o});h(De.branch),b(De.branches||[De.branch]),D(De.head_hash),_(De.is_dirty),me(De.remote_url),w(De.commits||[{hash:De.head_hash,message:"HEAD"}]),await pe(De.head_hash,{branch:De.branch,isDirty:De.is_dirty})}catch{}finally{z(!1),c?.(!1)}})()},[o]),E.useEffect(()=>{l({branch:d,commit:y,isDirty:R,packages:P,mdFiles:re,repoFileContents:[]})},[d,y,R]);const He=E.useCallback(async De=>{h(De);try{const Lt=await s("fs/repoStatus",{path:o});D(Lt.head_hash),await pe(Lt.head_hash)}catch{}},[o,s,pe]),I=d&&d!=="main"&&d!=="master",Ne=o.split("/").pop()||o;if(H)return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center",children:[m.jsxDEV(Ga,{size:20,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:222,columnNumber:9},this),X&&m.jsxDEV("p",{className:"mt-3 font-mono text-xs text-c4a-accent",children:u("sources.import.loading_repo_slow")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:221,columnNumber:7},this);const Ue=g.map(De=>({value:De,label:De})),Re=N.map(De=>({value:De.hash,label:`${De.hash.slice(0,7)} ${De.message!=="HEAD"?`— ${De.message.slice(0,50)}`:""}`.trim()})),dt=N.length<=1,Tt=ce==="packages"?P:re,Ke=Tt.slice(0,ge),Qt=ge<Tt.length;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col",children:[m.jsxDEV("div",{className:"shrink-0",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:[m.jsxDEV("span",{className:"flex items-center gap-1.5",children:ee?m.jsxDEV("a",{href:ee.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 font-mono text-sm font-bold text-c4a-accent hover:underline",children:[m.jsxDEV(sb,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:257,columnNumber:17},this),Ne]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:251,columnNumber:15},this):m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:Ne},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:261,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-xs text-c4a-text-muted sm:inline",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:265,columnNumber:11},this),m.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[m.jsxDEV(mw,{value:d,options:Ue,onChange:He,icon:m.jsxDEV(qf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:272,columnNumber:21},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:268,columnNumber:13},this),dt?m.jsxDEV("span",{className:"hidden items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-muted sm:flex",children:[m.jsxDEV(nb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:276,columnNumber:17},this),y.slice(0,7)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:275,columnNumber:15},this):m.jsxDEV("div",{className:"hidden sm:block",children:m.jsxDEV(mw,{value:y,options:Re,onChange:De=>{D(De),pe(De)},icon:m.jsxDEV(nb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:285,columnNumber:25},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:281,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:280,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:267,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:247,columnNumber:9},this),(I||R)&&m.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1",children:[I&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(LT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:297,columnNumber:17},this),u("sources.import.branch_warning",{branch:d})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:296,columnNumber:15},this),R&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[m.jsxDEV(Nb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:303,columnNumber:17},this),u("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:302,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:294,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:246,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface",children:[m.jsxDEV("div",{className:"flex shrink-0 items-center justify-between px-4 py-3",children:[m.jsxDEV("p",{className:"hidden font-mono text-xs text-c4a-text-primary sm:block",children:W?m.jsxDEV("span",{className:"flex items-center gap-2",children:[m.jsxDEV(Ga,{size:12,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:318,columnNumber:17},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"Analyzing repository..."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:319,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:317,columnNumber:15},this):P.length>0?u("sources.import.recognized",{packages:P.length,docs:re.length}):u("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:11},this),!W&&(P.length>0||re.length>0)&&m.jsxDEV("div",{className:"flex rounded border border-c4a-border-subtle",children:[m.jsxDEV("button",{onClick:()=>ne("packages"),className:`flex items-center gap-1 px-2.5 py-1 text-xs transition-colors ${ce==="packages"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(pl,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:338,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:P.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:339,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:330,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>ne("docs"),className:`flex items-center gap-1 border-l border-c4a-border-subtle px-2.5 py-1 text-xs transition-colors ${ce==="docs"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(hr,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:349,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:re.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:350,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:341,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:329,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:314,columnNumber:9},this),m.jsxDEV("hr",{className:"border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:356,columnNumber:9},this),m.jsxDEV("div",{ref:ve,className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto px-2 py-1",children:W?m.jsxDEV("div",{className:"flex items-center justify-center py-8",children:m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:362,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:361,columnNumber:13},this):Tt.length===0?m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:ce==="packages"?u("sources.import.no_packages"):"—"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:365,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[ce==="packages"?Ke.map(De=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(pl,{size:14,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:373,columnNumber:23},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:De.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:374,columnNumber:23},this),m.jsxDEV("span",{className:"hidden truncate text-c4a-text-muted sm:inline",children:De.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:375,columnNumber:23},this),De.isRoot&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:"root"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:377,columnNumber:25},this)]},De.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:372,columnNumber:21},this)):Ke.map(De=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(hr,{size:14,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:383,columnNumber:23},this),m.jsxDEV("span",{className:"truncate text-c4a-text-primary",children:De},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:384,columnNumber:23},this)]},De,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:382,columnNumber:21},this)),Qt&&m.jsxDEV("div",{ref:ue,className:"h-4"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:388,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:369,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:359,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:312,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:5},this)}function So({icon:s,label:o,value:l,tooltip:c,size:u="sm"}){const d=u==="sm";return m.jsxDEV("div",{className:"group/stat relative rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StatCard.tsx",lineNumber:22,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StatCard.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("p",{className:`mt-1 font-mono font-bold text-c4a-text-primary ${d?"text-sm truncate":"text-lg"}`,title:d?String(l):void 0,children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StatCard.tsx",lineNumber:24,columnNumber:7},this),c&&m.jsxDEV("div",{className:"pointer-events-none absolute bottom-full left-0 z-30 mb-1.5 hidden w-max max-w-[260px] rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-1.5 text-[11px] leading-relaxed text-c4a-text-secondary shadow-c4a-lg group-hover/stat:block",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StatCard.tsx",lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/StatCard.tsx",lineNumber:19,columnNumber:5},this)}function bO({importState:s,libraryName:o,importing:l}){const{t:c}=qe(),u=s.repoName||s.repoPath.split("/").pop()||"";return m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:c("sources.import.confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:22,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex flex-wrap items-center gap-x-3 gap-y-1",children:[m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:28,columnNumber:9},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:s.repoPath},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:27,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-4",children:[m.jsxDEV(So,{icon:m.jsxDEV(qf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:35,columnNumber:17},this),label:c("sources.import.branch"),value:s.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:34,columnNumber:9},this),m.jsxDEV(So,{icon:m.jsxDEV(nb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:40,columnNumber:17},this),label:c("sources.import.commit"),value:s.commit.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:39,columnNumber:9},this),m.jsxDEV(So,{icon:m.jsxDEV(pl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:45,columnNumber:17},this),label:c("sources.import.packages"),value:String(s.packages.length),tooltip:c("sources.import.dir_code_packages_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:44,columnNumber:9},this),m.jsxDEV(So,{icon:m.jsxDEV(hr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:51,columnNumber:17},this),label:c("sources.import.documents"),value:String(s.mdFiles.length),tooltip:c("sources.import.dir_doc_files_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:7},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:61,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:c("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:21,columnNumber:5},this)}function yO(){const{t:s}=qe(),o=gr(),{libId:l}=Xf(),u=Ta(gl(hu)).find($=>$.id===l),d=Wf($=>$.createSource),[h,g]=E.useState(1),[b,y]=E.useState(!1),[D,N]=E.useState(null),[w,R]=E.useState(!1),[_,H]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),z=u?.is_online??!1,{rpc:X,importedPaths:K,allowedPaths:W}=x4(l,u),te=E.useCallback(($,B)=>{H(me=>({...me,repoPath:$,repoName:B}))},[]),P=E.useCallback($=>{H(B=>({...B,...$}))},[]),le=E.useCallback(async()=>{if(l){y(!0);try{const $=await d({library_id:l,repo_name:_.repoName,repo_root_path:_.repoPath,repo_branch:_.branch,repo_commit:_.commit,repo_files:_.repoFiles.map(me=>me.path),repo_file_contents:_.repoFileContents}),B=Array.isArray($)?$[0]:$;B?.id?o(`/studio/sources/${l}?rootId=${B.id}`):o(`/studio/sources/${l}`)}catch($){const B=$ instanceof Error?$.message:String($);N(B),y(!1)}}},[l,_,d,o]),re=E.useMemo(()=>h===1?!!_.repoPath:h===2?!!_.commit:!0,[h,_]),k=E.useMemo(()=>u?[{label:u.id===si?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(gu,{segments:k},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:150,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:149,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(nu,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:155,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:156,columnNumber:9},this),m.jsxDEV(ub,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:159,columnNumber:9},this),m.jsxDEV(nu,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:160,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.version")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:161,columnNumber:9},this),m.jsxDEV(ub,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:164,columnNumber:9},this),m.jsxDEV(nu,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:165,columnNumber:9},this),m.jsxDEV("span",{className:h===3?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:154,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:z?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(mO,{rpc:X,selectedPath:_.repoPath,onSelect:te,allowedPaths:W,importedPaths:K},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:180,columnNumber:15},this),h===2&&m.jsxDEV(gO,{rpc:X,repoPath:_.repoPath,onReady:P,onBusyChange:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:15},this),h===3&&m.jsxDEV(bO,{importState:_,libraryName:u.name,importing:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:197,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:178,columnNumber:11},this):m.jsxDEV(y4,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:174,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:172,columnNumber:7},this),z&&m.jsxDEV(v4,{step:h,totalSteps:3,importing:b,stepBusy:w,canProceed:re,safetyNoticeKey:"sources.safety.notice.repo",confirmLabelKey:"sources.import.step.confirm",onPrev:()=>g($=>$-1),onNext:()=>g($=>$+1),onImport:le},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:209,columnNumber:9},this),D&&m.jsxDEV(ii,{onClose:()=>N(null),className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-error",children:s("sources.import.error_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:228,columnNumber:11},this),m.jsxDEV("p",{className:"mt-3 whitespace-pre-wrap break-all text-sm text-c4a-text-secondary",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:231,columnNumber:11},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:()=>N(null),className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:235,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:234,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:224,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:148,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:142,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:141,columnNumber:7},this)}const pw=(s,o)=>{let l=0,c=0,u=0;const d=[],h=g=>{for(const b of g)if(b.type==="directory")c++,b.is_git_repo&&u++,b.children&&h(b.children);else if(l++,/\.md$/i.test(b.name)){const y=b.path.startsWith(o)?b.path.slice(o.length).replace(/^\//,""):b.name;d.push(y)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:d}};function vO({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=qe(),{atRoot:h,currentPath:g,entries:b,loading:y,error:D,homeDir:N,goToOpen:w,isWildcard:R,importedSet:_,dirs:H,files:z,loadTree:X,handleNavigateUp:K,setGoToOpen:W}=E4({rpc:s,allowedPaths:c??[],importedPaths:u??[]}),te=E.useCallback(k=>{if(k.type!=="directory"||_.has(k.path))return;const $=pw(k.children||[],k.path);l(k.path,k.name,$),X(k.path)},[l,X,_]);E.useEffect(()=>{if(g&&!h&&b.length>=0&&!y){const k=g.split("/").pop()||g,$=pw(b,g);l(g,k,$)}},[g,h,b,y,l]);const P=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),le=E.useMemo(()=>H.sort((k,$)=>k.is_git_repo&&!$.is_git_repo?-1:!k.is_git_repo&&$.is_git_repo?1:k.name.localeCompare($.name)),[H]),re=E.useMemo(()=>z.sort((k,$)=>k.name.localeCompare($.name)),[z]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[h?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:134,columnNumber:13},this),m.jsxDEV(N4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:135,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:133,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:g},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:138,columnNumber:11},this),o?m.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[m.jsxDEV($n,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:144,columnNumber:13},this),m.jsxDEV("span",{children:P},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:143,columnNumber:11},this):R&&h?m.jsxDEV("button",{onClick:()=>W(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:148,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:131,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:157,columnNumber:7},this),h?R?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:N&&m.jsxDEV("button",{onClick:()=>X(N),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:168,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[N,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:171,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:169,columnNumber:17},this),m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:175,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:164,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:162,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(k=>m.jsxDEV("button",{onClick:()=>X(k),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:188,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:k},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:189,columnNumber:17},this),m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:190,columnNumber:17},this)]},k,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:183,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:181,columnNumber:11},this):D&&!y?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:199,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[y&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:204,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:203,columnNumber:13},this),g!=="/"&&m.jsxDEV("button",{onClick:K,disabled:y,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:213,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:214,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:208,columnNumber:13},this),le.map(k=>{const $=_.has(k.path),B=k.is_git_repo?Sb:$n;return m.jsxDEV("button",{onClick:()=>te(k),disabled:$||y,className:`flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm transition-colors ${$?"cursor-not-allowed text-c4a-accent/60":o===k.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(B,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:234,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:k.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:235,columnNumber:15},this),$&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:237,columnNumber:17},this),m.jsxDEV(wo,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:241,columnNumber:15},this)]},k.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:222,columnNumber:13},this)}),re.map(k=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(i4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:254,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:k.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:255,columnNumber:15},this)]},k.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:250,columnNumber:13},this)),b.length===0&&!y&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:260,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV(S4,{open:w,onClose:()=>W(!1),rpc:s,onNavigate:X,defaultPath:N??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:268,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:130,columnNumber:5},this)}const xO=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),NO=s=>{let o=0,l=0,c=0,u=0,d=0;const h=new Set;for(const g of s)if(g.type==="directory")l++,g.is_git_repo&&d++;else{o++,g.path.toLowerCase().endsWith(".md")&&u++;const y=g.path.split("/").pop();if(y&&xO.has(y.toLowerCase())){const D=g.path.split("/").slice(0,-1).join("/");s.some(w=>w.type==="directory"&&w.is_git_repo&&(D===w.path||D.startsWith(`${w.path}/`)))||h.add(D)}}return c=h.size,{totalFiles:o,totalDirs:l,codePackages:c,docFiles:u,gitRepos:d}};function SO({dirPath:s,rpc:o,importing:l,onScanComplete:c,onBusyChange:u}){const{t:d}=qe(),[h,g]=E.useState(!1),[b,y]=E.useState(null),[D,N]=E.useState(null),w=E.useCallback(async()=>{g(!0),u?.(!0),y(null),N(null);try{const R=await o("fs/dirScan",{path:s}),_=R.entries||[],H=R.manifests||[],z=NO(_);N(z),c(_,z,H)}catch(R){const _=R instanceof Error?R.message:String(R);y(_)}finally{g(!1),u?.(!1)}},[s,o,c,u]);return E.useEffect(()=>{w()},[w]),m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"shrink-0 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:125,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 shrink-0 border-t border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:126,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar min-h-0 flex-1 overflow-y-auto",children:[h&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:131,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:132,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:130,columnNumber:9},this),b&&m.jsxDEV("div",{className:"mt-6",children:[m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-error",children:[m.jsxDEV(Nb,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:141,columnNumber:13},this),d("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:140,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:144,columnNumber:11},this),m.jsxDEV("button",{onClick:w,className:"mt-3 flex items-center gap-1.5 rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(ej,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:149,columnNumber:13},this),d("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:139,columnNumber:9},this),D&&!h&&!b&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-sm uppercase text-c4a-accent",children:[d("sources.import.dir_scan_complete"),"!"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:157,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsxDEV(So,{icon:m.jsxDEV(hr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:163,columnNumber:21},this),label:d("sources.import.dir_doc_files"),value:D.docFiles,tooltip:d("sources.import.dir_doc_files_tip"),size:"lg"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:162,columnNumber:13},this),m.jsxDEV(So,{icon:m.jsxDEV(pl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:170,columnNumber:21},this),label:d("sources.import.dir_code_packages"),value:D.codePackages,tooltip:d("sources.import.dir_code_packages_tip"),size:"lg"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:169,columnNumber:13},this),D.gitRepos>0&&m.jsxDEV(So,{icon:m.jsxDEV(Sb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:178,columnNumber:23},this),label:d("sources.import.dir_git_repos"),value:D.gitRepos,size:"lg"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:177,columnNumber:15},this),m.jsxDEV(So,{icon:m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:185,columnNumber:21},this),label:d("sources.import.dir_total_dirs"),value:D.totalDirs,size:"lg"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:184,columnNumber:13},this),m.jsxDEV(So,{icon:m.jsxDEV(ET,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:191,columnNumber:21},this),label:d("sources.import.dir_total_files"),value:D.totalFiles,size:"lg"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:161,columnNumber:11},this),D.gitRepos>0&&m.jsxDEV("p",{className:"text-xs text-c4a-warning",children:d("sources.import.dir_git_skip_hint",{count:D.gitRepos})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:199,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:156,columnNumber:9},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Ga,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:209,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:210,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:208,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:128,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:124,columnNumber:5},this)}function wO(){const{t:s}=qe(),o=gr(),{libId:l}=Xf(),u=Ta(gl(hu)).find($=>$.id===l),d=Wf($=>$.createSource),[h,g]=E.useState(1),[b,y]=E.useState(!1),[D,N]=E.useState(null),[w,R]=E.useState(!1),[_,H]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null,manifests:[]}),z=u?.is_online??!1,{rpc:X,importedPaths:K,allowedPaths:W}=x4(l,u),te=E.useCallback(($,B,me)=>{H(ee=>({...ee,dirPath:$,dirName:B,fileCount:me.files,subDirCount:me.dirs,gitRepoCount:me.gitRepos,mdFiles:me.mdFiles}))},[]),P=E.useCallback(($,B,me)=>{H(ee=>({...ee,scanEntries:$,scanStats:B,manifests:me}))},[]),le=E.useCallback(async()=>{if(l){y(!0);try{const $=await d({library_id:l,dir_files:_.scanEntries,dir_name:_.dirName,dir_path:_.dirPath,dir_file_contents:_.manifests}),B=Array.isArray($)?$[0]:$;B?.id?o(`/studio/sources/${l}?rootId=${B.id}`):o(`/studio/sources/${l}`)}catch($){const B=$ instanceof Error?$.message:String($);N(B),y(!1)}}},[l,_,d,o]),re=E.useMemo(()=>h===1?!!_.dirPath:h===2?_.scanEntries.length>0:!0,[h,_]),k=E.useMemo(()=>u?[{label:u.id===si?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.dir_title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(gu,{segments:k},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:146,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:145,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(nu,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:151,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:152,columnNumber:9},this),m.jsxDEV(ub,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:155,columnNumber:9},this),m.jsxDEV(nu,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:156,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:157,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:150,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:z?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(vO,{rpc:X,selectedPath:_.dirPath,onSelect:te,allowedPaths:W,importedPaths:K},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:169,columnNumber:15},this),h===2&&m.jsxDEV(SO,{dirPath:_.dirPath,rpc:X,importing:b,onScanComplete:P,onBusyChange:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:178,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:167,columnNumber:11},this):m.jsxDEV(y4,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:165,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:163,columnNumber:7},this),z&&m.jsxDEV(v4,{step:h,totalSteps:2,importing:b,stepBusy:w,canProceed:re,safetyNoticeKey:"sources.safety.notice.dir",confirmLabelKey:"sources.import.dir_step.confirm",onPrev:()=>g($=>$-1),onNext:()=>g($=>$+1),onImport:le},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:192,columnNumber:9},this),D&&m.jsxDEV(ii,{onClose:()=>N(null),className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-error",children:s("sources.import.error_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:211,columnNumber:11},this),m.jsxDEV("p",{className:"mt-3 whitespace-pre-wrap break-all text-sm text-c4a-text-secondary",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:214,columnNumber:11},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:()=>N(null),className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:218,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:217,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:144,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:138,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:137,columnNumber:7},this)}function EO(){const{t:s}=qe(),o=gr(),l=Ta(w=>w.createLibrary),[c,u]=E.useState("waiting"),[d,h]=E.useState(null),[g,b]=E.useState(""),[y,D]=E.useState(!1);E.useEffect(()=>Gs.on("ws:daemon:connected",R=>{const _=R;h(_),b(_.machine_id),u(_.needs_registration?"new_client":"reconnected")}),[]),E.useEffect(()=>{let w=!1;return(async()=>{try{const R=await Sa.get("/daemons/pending");if(w||R.pending.length===0)return;const _=R.pending[0];h({machine_id:_.machine_id,needs_registration:!0}),b(_.machine_id),u("new_client")}catch{}})(),()=>{w=!0}},[]);const N=E.useCallback(async()=>{if(d){D(!0);try{const w=await l({type:"daemon",name:g||d.machine_id,config:{machine_id:d.machine_id,os:d.os||"",daemon_version:d.daemon_version||""}});o(`/studio/sources/${w.id}`)}catch{D(!1)}}},[d,g,l,o]);return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(gu,{segments:[{label:s("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:86,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:s("sources.add_client.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:90,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:m.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["1. ",s("sources.add_client.step1")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:98,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:"npm install -g @c4a/daemon"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:97,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["2. ",s("sources.add_client.step2")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:106,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:`c4a-daemon --server ${window.location.host}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:105,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["3. ",s("sources.add_client.step3")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:114,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:s("sources.add_client.step3_desc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:96,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:95,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Ga,{size:16,className:"animate-spin text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:128,columnNumber:13},this),m.jsxDEV("span",{className:"text-sm text-c4a-warning",children:s("sources.add_client.waiting")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:127,columnNumber:11},this),c==="new_client"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-accent",children:s("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:137,columnNumber:13},this),m.jsxDEV("div",{className:"space-y-2 text-sm",children:[m.jsxDEV(Qg,{label:s("sources.add_client.machine_name"),value:d.machine_id},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:141,columnNumber:15},this),d.os&&m.jsxDEV(Qg,{label:s("sources.add_client.os"),value:d.os},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:146,columnNumber:17},this),d.daemon_version&&m.jsxDEV(Qg,{label:s("sources.add_client.daemon_version"),value:d.daemon_version},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:152,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:140,columnNumber:13},this),m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s("sources.add_client.client_name")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:159,columnNumber:15},this),m.jsxDEV("input",{value:g,onChange:w=>b(w.target.value),className:"min-w-0 flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:162,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:158,columnNumber:13},this),m.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsxDEV("button",{onClick:()=>o("/studio/sources"),className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:s("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:169,columnNumber:15},this),m.jsxDEV("button",{onClick:N,disabled:y||!g.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[y&&m.jsxDEV(Ga,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:181,columnNumber:19},this),s("sources.add_client.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:136,columnNumber:11},this),c==="reconnected"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(ml,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:192,columnNumber:15},this),m.jsxDEV("span",{className:"text-sm text-c4a-text-primary",children:s("sources.add_client.reconnected",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:191,columnNumber:13},this),d.lib_id&&m.jsxDEV(xn,{to:`/studio/sources/${d.lib_id}`,className:"inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.add_client.go_to",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:200,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:190,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:5},this)}function Qg({label:s,value:o}){return m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:219,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:222,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:218,columnNumber:5},this)}function DO(){const{t:s}=qe(),{sourceUuid:o}=Xf(),[l]=s4(),c=l.get("path")||"",{currentRoot:u,loading:d,fetchRootSource:h}=Wf(),g=Ta(gl(hu)),[b,y]=E.useState("original");E.useEffect(()=>{o&&h(o)},[o,h]);const D=E.useMemo(()=>u?c?Kf(u.tree,c):u.kind==="source"?{path:"",kind:u.kind,source_type:u.source_type,name:u.name,metadata:u.metadata,index_status:u.index_status}:null:null,[u,c]),N=g.find(W=>W.id===u?.library_id),w=D?.metadata,R=w?Object.fromEntries(Object.entries(w).map(([W,te])=>[W,String(te??"")])):null,_=D?.source_type==="code",H=D?.name??u?.name??"",z=D?.source_type??null,X=E.useMemo(()=>{if(!u||!N)return[];const W=u.kind==="source"&&!c,te=[{label:N.id===si?s("sources.library.default_cloud_name"):N.name,to:`/studio/sources/${N.id}`},{label:u.name,...W?{}:{to:`/studio/sources/${N.id}?rootId=${u.id}`}}];if(c){const P=g4(u.tree,c);for(let le=0;le<P.length-1;le++){const re=P[le];te.push({label:re.name,to:`/studio/sources/${N.id}?rootId=${u.id}&path=${encodeURIComponent(re.path)}`})}P.length>0&&te.push({label:P[P.length-1].name})}return te},[u,N,c,s]),K=[{key:"original",label:s(_?"sources.detail.tab.overview":"sources.detail.tab.original")},{key:"digest",label:s("sources.detail.tab.digest")},{key:"modeling",label:s("sources.detail.tab.modeling")}];return d||!u||!D?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:118,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(gu,{segments:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:125,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex flex-wrap items-baseline gap-x-6 gap-y-2",children:[m.jsxDEV("div",{className:"flex min-w-0 items-center gap-2",children:[_?m.jsxDEV(pl,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:131,columnNumber:13},this):m.jsxDEV(hr,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:133,columnNumber:13},this),m.jsxDEV("h1",{className:"min-w-0 break-all font-mono text-xl font-bold leading-none text-c4a-text-primary",children:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:129,columnNumber:9},this),m.jsxDEV("div",{className:"flex flex-wrap items-baseline gap-4 text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:[s("sources.detail.type"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(z==="code"?"sources.type.code":"sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:141,columnNumber:11},this),_&&R?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:R.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:152,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:150,columnNumber:13},this),!_&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:N?.type==="daemon"?s("sources.detail.origin.local"):s("sources.detail.origin.upload")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:160,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:158,columnNumber:13},this),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${D.index_status??"none"}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:169,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:140,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:128,columnNumber:7},this),_&&R&&m.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:m.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[R.repo_name&&m.jsxDEV(Vf,{label:s("sources.detail.repo"),value:R.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:181,columnNumber:15},this),R.pinned_branch&&m.jsxDEV(Vf,{label:s("sources.detail.branch"),value:R.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:187,columnNumber:15},this),R.pinned_hash&&m.jsxDEV(Vf,{label:s("sources.detail.commit"),value:R.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:193,columnNumber:15},this),R.tech_stack&&m.jsxDEV(Vf,{label:s("sources.detail.tech_stack"),value:R.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:199,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:179,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:178,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex border-b border-c4a-border-subtle",children:K.map(W=>m.jsxDEV("button",{onClick:()=>y(W.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${b===W.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:W.label},W.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:211,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[b==="original"&&m.jsxDEV(RO,{node:D,isCode:_},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:228,columnNumber:11},this),b==="digest"&&m.jsxDEV(hw,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:231,columnNumber:11},this),b==="modeling"&&m.jsxDEV(hw,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:234,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:226,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:124,columnNumber:5},this)}function Vf({label:s,value:o}){return m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:246,columnNumber:7},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:247,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:245,columnNumber:5},this)}function RO({node:s,isCode:o}){const{t:l}=qe(),c=s.metadata;return o?m.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&m.jsxDEV("p",{children:String(c.description)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:266,columnNumber:11},this),!!c?.dependencies&&m.jsxDEV("div",{children:[m.jsxDEV("h4",{className:"font-mono text-xs font-bold uppercase text-c4a-text-primary",children:l("sources.detail.dependencies")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:270,columnNumber:13},this),m.jsxDEV("div",{className:"mt-2 rounded bg-c4a-bg-surface p-3 font-mono text-xs",children:Object.entries(c.dependencies).map(([u,d])=>m.jsxDEV("div",{className:"flex justify-between py-0.5",children:[m.jsxDEV("span",{className:"text-c4a-text-primary",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:278,columnNumber:19},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:d},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:279,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:277,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:273,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:269,columnNumber:11},this),!c?.description&&!c?.dependencies&&m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_code_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:286,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:264,columnNumber:7},this):m.jsxDEV("div",{className:"prose prose-invert max-w-none text-sm text-c4a-text-secondary",children:m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_doc_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:296,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:295,columnNumber:5},this)}function hw({message:s}){return m.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:m.jsxDEV("p",{className:"text-center text-sm text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:306,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:305,columnNumber:5},this)}const _O=VC([{element:m.jsxDEV(_j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:28,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(jj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:30,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(Oj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(Aj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(Tj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:39,columnNumber:14},void 0),children:[{index:!0,element:m.jsxDEV(ZS,{to:"/studio/sources",replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:41,columnNumber:31},void 0)},{path:"sources",element:m.jsxDEV(ZS,{to:`/studio/sources/${si}`,replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:45,columnNumber:11},void 0)},{path:"sources/add-client",element:m.jsxDEV(EO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:51,columnNumber:46},void 0)},{path:"sources/import/:libId",element:m.jsxDEV(yO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:52,columnNumber:49},void 0)},{path:"sources/import-dir/:libId",element:m.jsxDEV(wO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:53,columnNumber:53},void 0)},{path:"sources/:libId",element:m.jsxDEV(uO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:54,columnNumber:42},void 0)},{path:"source/:sourceUuid",element:m.jsxDEV(DO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:55,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(Mj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:36},void 0)},{path:"modeling/code/setup",element:m.jsxDEV(Yj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:47},void 0)},{path:"modeling/code/compile",element:m.jsxDEV(qj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:49},void 0)},{path:"modeling/code/review",element:m.jsxDEV(Gj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:48},void 0)},{path:"modeling/code/result",element:m.jsxDEV(Ij,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(zj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(Lj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Hj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(Bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV($j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(Vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:70,columnNumber:25},void 0)}]);function kO(){return E.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Gs.connect(o),()=>{Gs.disconnect()}},[]),m.jsxDEV(iC,{router:_O},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}Nk.createRoot(document.getElementById("root")).render(m.jsxDEV(E.StrictMode,{children:m.jsxDEV(kO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:8,columnNumber:3},void 0));
|