lobster-lounge 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/assets/index-1LanS_W5.js +166 -0
- package/dist/index.html +68 -69
- package/dist/lobster-favicon.svg +46 -0
- package/package.json +5 -2
- package/dist/assets/index-BI0Fy10d.js +0 -167
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();function u1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oc={exports:{}},mi={};var cp;function f1(){if(cp)return mi;cp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var g in u)g!=="key"&&(f[g]=u[g])}else f=u;return u=f.ref,{$$typeof:a,type:r,key:d,ref:u!==void 0?u:null,props:f}}return mi.Fragment=i,mi.jsx=o,mi.jsxs=o,mi}var up;function d1(){return up||(up=1,Oc.exports=f1()),Oc.exports}var b=d1();const ye=a=>typeof a=="string",yi=()=>{let a,i;const o=new Promise((r,u)=>{a=r,i=u});return o.resolve=a,o.reject=i,o},fp=a=>a==null?"":""+a,h1=(a,i,o)=>{a.forEach(r=>{i[r]&&(o[r]=i[r])})},p1=/###/g,dp=a=>a&&a.indexOf("###")>-1?a.replace(p1,"."):a,hp=a=>!a||ye(a),xi=(a,i,o)=>{const r=ye(i)?i.split("."):i;let u=0;for(;u<r.length-1;){if(hp(a))return{};const f=dp(r[u]);!a[f]&&o&&(a[f]=new o),Object.prototype.hasOwnProperty.call(a,f)?a=a[f]:a={},++u}return hp(a)?{}:{obj:a,k:dp(r[u])}},pp=(a,i,o)=>{const{obj:r,k:u}=xi(a,i,Object);if(r!==void 0||i.length===1){r[u]=o;return}let f=i[i.length-1],d=i.slice(0,i.length-1),g=xi(a,d,Object);for(;g.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),g=xi(a,d,Object),g?.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=o},g1=(a,i,o,r)=>{const{obj:u,k:f}=xi(a,i,Object);u[f]=u[f]||[],u[f].push(o)},lo=(a,i)=>{const{obj:o,k:r}=xi(a,i);if(o&&Object.prototype.hasOwnProperty.call(o,r))return o[r]},m1=(a,i,o)=>{const r=lo(a,o);return r!==void 0?r:lo(i,o)},cg=(a,i,o)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in a?ye(a[r])||a[r]instanceof String||ye(i[r])||i[r]instanceof String?o&&(a[r]=i[r]):cg(a[r],i[r],o):a[r]=i[r]);return a},va=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const b1=a=>ye(a)?a.replace(/[&<>"'\/]/g,i=>y1[i]):a;class S1{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const o=this.regExpMap.get(i);if(o!==void 0)return o;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const v1=[" ",",","?","!",";"],T1=new S1(20),E1=(a,i,o)=>{i=i||"",o=o||"";const r=v1.filter(d=>i.indexOf(d)<0&&o.indexOf(d)<0);if(r.length===0)return!0;const u=T1.getRegExp(`(${r.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!u.test(a);if(!f){const d=a.indexOf(o);d>0&&!u.test(a.substring(0,d))&&(f=!0)}return f},Ic=(a,i,o=".")=>{if(!a)return;if(a[i])return Object.prototype.hasOwnProperty.call(a,i)?a[i]:void 0;const r=i.split(o);let u=a;for(let f=0;f<r.length;){if(!u||typeof u!="object")return;let d,g="";for(let p=f;p<r.length;++p)if(p!==f&&(g+=o),g+=r[p],d=u[g],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&p<r.length-1)continue;f+=p-f+1;break}u=d}return u},Ni=a=>a?.replace("_","-"),A1={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,i){console?.[a]?.apply?.(console,i)}};class ao{constructor(i,o={}){this.init(i,o)}init(i,o={}){this.prefix=o.prefix||"i18next:",this.logger=i||A1,this.options=o,this.debug=o.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,r,u){return u&&!this.debug?null:(ye(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new ao(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new ao(this.logger,i)}}var pn=new ao;class fo{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const u=this.observers[r].get(o)||0;this.observers[r].set(o,u+1)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i].delete(o)}}emit(i,...o){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([u,f])=>{for(let d=0;d<f;d++)u(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,f])=>{for(let d=0;d<f;d++)u.apply(u,[i,...o])})}}class gp extends fo{constructor(i,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,r,u={}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;i.indexOf(".")>-1?g=i.split("."):(g=[i,o],r&&(Array.isArray(r)?g.push(...r):ye(r)&&f?g.push(...r.split(f)):g.push(r)));const p=lo(this.data,g);return!p&&!o&&!r&&i.indexOf(".")>-1&&(i=g[0],o=g[1],r=g.slice(2).join(".")),p||!d||!ye(r)?p:Ic(this.data?.[i]?.[o],r,f)}addResource(i,o,r,u,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[i,o];r&&(g=g.concat(d?r.split(d):r)),i.indexOf(".")>-1&&(g=i.split("."),u=o,o=g[1]),this.addNamespaces(o),pp(this.data,g,u),f.silent||this.emit("added",i,o,r,u)}addResources(i,o,r,u={silent:!1}){for(const f in r)(ye(r[f])||Array.isArray(r[f]))&&this.addResource(i,o,f,r[f],{silent:!0});u.silent||this.emit("added",i,o,r)}addResourceBundle(i,o,r,u,f,d={silent:!1,skipCopy:!1}){let g=[i,o];i.indexOf(".")>-1&&(g=i.split("."),u=r,r=o,o=g[1]),this.addNamespaces(o);let p=lo(this.data,g)||{};d.skipCopy||(r=JSON.parse(JSON.stringify(r))),u?cg(p,r,f):p={...p,...r},pp(this.data,g,p),d.silent||this.emit("added",i,o,r)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(u=>o[u]&&Object.keys(o[u]).length>0)}toJSON(){return this.data}}var ug={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,i,o,r,u){return a.forEach(f=>{i=this.processors[f]?.process(i,o,r,u)??i}),i}};const fg=Symbol("i18next/PATH_KEY");function x1(){const a=[],i=Object.create(null);let o;return i.get=(r,u)=>(o?.revoke?.(),u===fg?a:(a.push(u),o=Proxy.revocable(r,i),o.proxy)),Proxy.revocable(Object.create(null),i).proxy}function io(a,i){const{[fg]:o}=a(x1());return o.join(i?.keySeparator??".")}const mp={},Lc=a=>!ye(a)&&typeof a!="boolean"&&typeof a!="number";class so extends fo{constructor(i,o={}){super(),h1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pn.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,o={interpolation:{}}){const r={...o};if(i==null)return!1;const u=this.resolve(i,r);if(u?.res===void 0)return!1;const f=Lc(u.res);return!(r.returnObjects===!1&&f)}extractFromKey(i,o){let r=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let f=o.ns||this.options.defaultNS||[];const d=r&&i.indexOf(r)>-1,g=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!E1(i,r,u);if(d&&!g){const p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:ye(f)?[f]:f};const m=i.split(r);(r!==u||r===u&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),i=m.join(u)}return{key:i,namespaces:ye(f)?[f]:f}}translate(i,o,r){let u=typeof o=="object"?{...o}:o;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),i==null)return"";typeof i=="function"&&(i=io(i,{...this.options,...u})),Array.isArray(i)||(i=[String(i)]);const f=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:p}=this.extractFromKey(i[i.length-1],u),m=p[p.length-1];let T=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;T===void 0&&(T=":");const v=u.lng||this.language,N=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return N?f?{res:`${m}${T}${g}`,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(u)}:`${m}${T}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(u)}:g;const D=this.resolve(i,u);let O=D?.res;const q=D?.usedKey||g,J=D?.exactUsedKey||g,Q=["[object Number]","[object Function]","[object RegExp]"],I=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,H=u.count!==void 0&&!ye(u.count),z=so.hasDefaultValue(u),ie=H?this.pluralResolver.getSuffix(v,u.count,u):"",Z=u.ordinal&&H?this.pluralResolver.getSuffix(v,u.count,{ordinal:!1}):"",P=H&&!u.ordinal&&u.count===0,ae=P&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ie}`]||u[`defaultValue${Z}`]||u.defaultValue;let ne=O;ee&&!O&&z&&(ne=ae);const X=Lc(ne),re=Object.prototype.toString.apply(ne);if(ee&&ne&&X&&Q.indexOf(re)<0&&!(ye(I)&&Array.isArray(ne))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(q,ne,{...u,ns:p}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(D.res=W,D.usedParams=this.getUsedParamsDetails(u),D):W}if(d){const W=Array.isArray(ne),fe=W?[]:{},Le=W?J:q;for(const j in ne)if(Object.prototype.hasOwnProperty.call(ne,j)){const Y=`${Le}${d}${j}`;z&&!O?fe[j]=this.translate(Y,{...u,defaultValue:Lc(ae)?ae[j]:void 0,joinArrays:!1,ns:p}):fe[j]=this.translate(Y,{...u,joinArrays:!1,ns:p}),fe[j]===Y&&(fe[j]=ne[j])}O=fe}}else if(ee&&ye(I)&&Array.isArray(O))O=O.join(I),O&&(O=this.extendTranslation(O,i,u,r));else{let W=!1,fe=!1;!this.isValidLookup(O)&&z&&(W=!0,O=ae),this.isValidLookup(O)||(fe=!0,O=g);const j=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:O,Y=z&&ae!==O&&this.options.updateMissing;if(fe||W||Y){if(this.logger.log(Y?"updateKey":"missingKey",v,m,g,Y?ae:O),d){const A=this.resolve(g,{...u,keySeparator:!1});A&&A.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 F=[];const de=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&de&&de[0])for(let A=0;A<de.length;A++)F.push(de[A]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(u.lng||this.language):F.push(u.lng||this.language);const be=(A,_,te)=>{const se=z&&te!==O?te:j;this.options.missingKeyHandler?this.options.missingKeyHandler(A,m,_,se,Y,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(A,m,_,se,Y,u),this.emit("missingKey",A,m,_,O)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?F.forEach(A=>{const _=this.pluralResolver.getSuffixes(A,u);P&&u[`defaultValue${this.options.pluralSeparator}zero`]&&_.indexOf(`${this.options.pluralSeparator}zero`)<0&&_.push(`${this.options.pluralSeparator}zero`),_.forEach(te=>{be([A],g+te,u[`defaultValue${te}`]||ae)})}):be(F,g,ae))}O=this.extendTranslation(O,i,u,D,r),fe&&O===g&&this.options.appendNamespaceToMissingKey&&(O=`${m}${T}${g}`),(fe||W)&&this.options.parseMissingKeyHandler&&(O=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${T}${g}`:g,W?O:void 0,u))}return f?(D.res=O,D.usedParams=this.getUsedParamsDetails(u),D):O}extendTranslation(i,o,r,u,f){if(this.i18nFormat?.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const p=ye(i)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const v=i.match(this.interpolator.nestingRegexp);m=v&&v.length}let T=r.replace&&!ye(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(T={...this.options.interpolation.defaultVariables,...T}),i=this.interpolator.interpolate(i,T,r.lng||this.language||u.usedLng,r),p){const v=i.match(this.interpolator.nestingRegexp),N=v&&v.length;m<N&&(r.nest=!1)}!r.lng&&u&&u.res&&(r.lng=this.language||u.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...v)=>f?.[0]===v[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${o[0]}`),null):this.translate(...v,o),r)),r.interpolation&&this.interpolator.reset()}const d=r.postProcess||this.options.postProcess,g=ye(d)?[d]:d;return i!=null&&g?.length&&r.applyPostProcessor!==!1&&(i=ug.handle(g,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,o={}){let r,u,f,d,g;return ye(i)&&(i=[i]),i.forEach(p=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(p,o),T=m.key;u=T;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const N=o.count!==void 0&&!ye(o.count),D=N&&!o.ordinal&&o.count===0,O=o.context!==void 0&&(ye(o.context)||typeof o.context=="number")&&o.context!=="",q=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);v.forEach(J=>{this.isValidLookup(r)||(g=J,!mp[`${q[0]}-${J}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(mp[`${q[0]}-${J}`]=!0,this.logger.warn(`key "${u}" for languages "${q.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!!!")),q.forEach(Q=>{if(this.isValidLookup(r))return;d=Q;const I=[T];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(I,T,Q,J,o);else{let H;N&&(H=this.pluralResolver.getSuffix(Q,o.count,o));const z=`${this.options.pluralSeparator}zero`,ie=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(o.ordinal&&H.indexOf(ie)===0&&I.push(T+H.replace(ie,this.options.pluralSeparator)),I.push(T+H),D&&I.push(T+z)),O){const Z=`${T}${this.options.contextSeparator||"_"}${o.context}`;I.push(Z),N&&(o.ordinal&&H.indexOf(ie)===0&&I.push(Z+H.replace(ie,this.options.pluralSeparator)),I.push(Z+H),D&&I.push(Z+z))}}let ee;for(;ee=I.pop();)this.isValidLookup(r)||(f=ee,r=this.getResource(Q,J,ee,o))}))})}),{res:r,usedKey:u,exactUsedKey:f,usedLng:d,usedNS:g}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,r,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(i,o,r,u):this.resourceStore.getResource(i,o,r,u)}getUsedParamsDetails(i={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!ye(i.replace);let u=r?i.replace:i;if(r&&typeof i.count<"u"&&(u.count=i.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!r){u={...u};for(const f of o)delete u[f]}return u}static hasDefaultValue(i){const o="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&o===r.substring(0,o.length)&&i[r]!==void 0)return!0;return!1}}class yp{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pn.create("languageUtils")}getScriptPartFromCode(i){if(i=Ni(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Ni(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(ye(i)&&i.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(i)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(r=>{if(o)return;const u=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(u))&&(o=u)}),!o&&this.options.supportedLngs&&i.forEach(r=>{if(o)return;const u=this.getScriptPartFromCode(r);if(this.isSupportedCode(u))return o=u;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return o=f;o=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),ye(i)&&(i=[i]),Array.isArray(i))return i;if(!o)return i.default||[];let r=i[o];return r||(r=i[this.getScriptPartFromCode(o)]),r||(r=i[this.formatLanguageCode(o)]),r||(r=i[this.getLanguagePartFromCode(o)]),r||(r=i.default),r||[]}toResolveHierarchy(i,o){const r=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],i),u=[],f=d=>{d&&(this.isSupportedCode(d)?u.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ye(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):ye(i)&&f(this.formatLanguageCode(i)),r.forEach(d=>{u.indexOf(d)<0&&f(this.formatLanguageCode(d))}),u}}const bp={zero:0,one:1,two:2,few:3,many:4,other:5},Sp={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class R1{constructor(i,o={}){this.languageUtils=i,this.options=o,this.logger=pn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,o={}){const r=Ni(i==="dev"?"en":i),u=o.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(r,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Sp;if(!i.match(/-|_/))return Sp;const p=this.languageUtils.getLanguagePartFromCode(i);d=this.getRule(p,o)}return this.pluralRulesCache[f]=d,d}needsPlural(i,o={}){let r=this.getRule(i,o);return r||(r=this.getRule("dev",o)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(i,o,r={}){return this.getSuffixes(i,r).map(u=>`${o}${u}`)}getSuffixes(i,o={}){let r=this.getRule(i,o);return r||(r=this.getRule("dev",o)),r?r.resolvedOptions().pluralCategories.sort((u,f)=>bp[u]-bp[f]).map(u=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(i,o,r={}){const u=this.getRule(i,r);return u?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u.select(o)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",o,r))}}const vp=(a,i,o,r=".",u=!0)=>{let f=m1(a,i,o);return!f&&u&&ye(o)&&(f=Ic(a,o,r),f===void 0&&(f=Ic(i,o,r))),f},zc=a=>a.replace(/\$/g,"$$$$");class Tp{constructor(i={}){this.logger=pn.create("interpolator"),this.options=i,this.format=i?.interpolation?.format||(o=>o),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:o,escapeValue:r,useRawValueToEscape:u,prefix:f,prefixEscaped:d,suffix:g,suffixEscaped:p,formatSeparator:m,unescapeSuffix:T,unescapePrefix:v,nestingPrefix:N,nestingPrefixEscaped:D,nestingSuffix:O,nestingSuffixEscaped:q,nestingOptionsSeparator:J,maxReplaces:Q,alwaysFormat:I}=i.interpolation;this.escape=o!==void 0?o:b1,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?va(f):d||"{{",this.suffix=g?va(g):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=T?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":T||"",this.nestingPrefix=N?va(N):D||va("$t("),this.nestingSuffix=O?va(O):q||va(")"),this.nestingOptionsSeparator=J||",",this.maxReplaces=Q||1e3,this.alwaysFormat=I!==void 0?I:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(o,r)=>o?.source===r?(o.lastIndex=0,o):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,o,r,u){let f,d,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=D=>{if(D.indexOf(this.formatSeparator)<0){const Q=vp(o,p,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,r,{...u,...o,interpolationkey:D}):Q}const O=D.split(this.formatSeparator),q=O.shift().trim(),J=O.join(this.formatSeparator).trim();return this.format(vp(o,p,q,this.options.keySeparator,this.options.ignoreJSONStructure),J,r,{...u,...o,interpolationkey:q})};this.resetRegExp();const T=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>zc(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?zc(this.escape(D)):zc(D)}].forEach(D=>{for(g=0;f=D.regex.exec(i);){const O=f[1].trim();if(d=m(O),d===void 0)if(typeof T=="function"){const J=T(i,f,u);d=ye(J)?J:""}else if(u&&Object.prototype.hasOwnProperty.call(u,O))d="";else if(v){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${i}`),d="";else!ye(d)&&!this.useRawValueToEscape&&(d=fp(d));const q=D.safeValue(d);if(i=i.replace(f[0],q),v?(D.regex.lastIndex+=d.length,D.regex.lastIndex-=f[0].length):D.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),i}nest(i,o,r={}){let u,f,d;const g=(p,m)=>{const T=this.nestingOptionsSeparator;if(p.indexOf(T)<0)return p;const v=p.split(new RegExp(`${T}[ ]*{`));let N=`{${v[1]}`;p=v[0],N=this.interpolate(N,d);const D=N.match(/'/g),O=N.match(/"/g);((D?.length??0)%2===0&&!O||O.length%2!==0)&&(N=N.replace(/'/g,'"'));try{d=JSON.parse(N),m&&(d={...m,...d})}catch(q){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,q),`${p}${T}${N}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;u=this.nestingRegexp.exec(i);){let p=[];d={...r},d=d.replace&&!ye(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const m=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(m!==-1&&(p=u[1].slice(m).split(this.formatSeparator).map(T=>T.trim()).filter(Boolean),u[1]=u[1].slice(0,m)),f=o(g.call(this,u[1].trim(),d),d),f&&u[0]===i&&!ye(f))return f;ye(f)||(f=fp(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${i}`),f=""),p.length&&(f=p.reduce((T,v)=>this.format(T,v,r.lng,{...r,interpolationkey:u[1].trim()}),f.trim())),i=i.replace(u[0],f),this.regexp.lastIndex=0}return i}}const w1=a=>{let i=a.toLowerCase().trim();const o={};if(a.indexOf("(")>-1){const r=a.split("(");i=r[0].toLowerCase().trim();const u=r[1].substring(0,r[1].length-1);i==="currency"&&u.indexOf(":")<0?o.currency||(o.currency=u.trim()):i==="relativetime"&&u.indexOf(":")<0?o.range||(o.range=u.trim()):u.split(";").forEach(d=>{if(d){const[g,...p]=d.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),T=g.trim();o[T]||(o[T]=m),m==="false"&&(o[T]=!1),m==="true"&&(o[T]=!0),isNaN(m)||(o[T]=parseInt(m,10))}})}return{formatName:i,formatOptions:o}},Ep=a=>{const i={};return(o,r,u)=>{let f=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(f={...f,[u.interpolationkey]:void 0});const d=r+JSON.stringify(f);let g=i[d];return g||(g=a(Ni(r),u),i[d]=g),g(o)}},N1=a=>(i,o,r)=>a(Ni(o),r)(i);class C1{constructor(i={}){this.logger=pn.create("formatter"),this.options=i,this.init(i)}init(i,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const r=o.cacheInBuiltFormats?Ep:N1;this.formats={number:r((u,f)=>{const d=new Intl.NumberFormat(u,{...f});return g=>d.format(g)}),currency:r((u,f)=>{const d=new Intl.NumberFormat(u,{...f,style:"currency"});return g=>d.format(g)}),datetime:r((u,f)=>{const d=new Intl.DateTimeFormat(u,{...f});return g=>d.format(g)}),relativetime:r((u,f)=>{const d=new Intl.RelativeTimeFormat(u,{...f});return g=>d.format(g,f.range||"day")}),list:r((u,f)=>{const d=new Intl.ListFormat(u,{...f});return g=>d.format(g)})}}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=Ep(o)}format(i,o,r,u={}){const f=o.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{const{formatName:m,formatOptions:T}=w1(p);if(this.formats[m]){let v=g;try{const N=u?.formatParams?.[u.interpolationkey]||{},D=N.locale||N.lng||u.locale||u.lng||r;v=this.formats[m](g,D,{...T,...u,...N})}catch(N){this.logger.warn(N)}return v}else this.logger.warn(`there was no format function for ${m}`);return g},i)}}const D1=(a,i)=>{a.pending[i]!==void 0&&(delete a.pending[i],a.pendingCount--)};class k1 extends fo{constructor(i,o,r,u={}){super(),this.backend=i,this.store=o,this.services=r,this.languageUtils=r.languageUtils,this.options=u,this.logger=pn.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?.(r,u.backend,u)}queueLoad(i,o,r,u){const f={},d={},g={},p={};return i.forEach(m=>{let T=!0;o.forEach(v=>{const N=`${m}|${v}`;!r.reload&&this.store.hasResourceBundle(m,v)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?d[N]===void 0&&(d[N]=!0):(this.state[N]=1,T=!1,d[N]===void 0&&(d[N]=!0),f[N]===void 0&&(f[N]=!0),p[v]===void 0&&(p[v]=!0)))}),T||(g[m]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(i,o,r){const u=i.split("|"),f=u[0],d=u[1];o&&this.emit("failedLoading",f,d,o),!o&&r&&this.store.addResourceBundle(f,d,r,void 0,void 0,{skipCopy:!0}),this.state[i]=o?-1:2,o&&r&&(this.state[i]=0);const g={};this.queue.forEach(p=>{g1(p.loaded,[f],d),D1(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{g[m]||(g[m]={});const T=p.loaded[m];T.length&&T.forEach(v=>{g[m][v]===void 0&&(g[m][v]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(i,o,r,u=0,f=this.retryTimeout,d){if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:r,tried:u,wait:f,callback:d});return}this.readingCalls++;const g=(m,T)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&T&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,r,u+1,f*2,d)},f);return}d(m,T)},p=this.backend[r].bind(this.backend);if(p.length===2){try{const m=p(i,o);m&&typeof m.then=="function"?m.then(T=>g(null,T)).catch(g):g(null,m)}catch(m){g(m)}return}return p(i,o,g)}prepareLoading(i,o,r={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();ye(i)&&(i=this.languageUtils.toResolveHierarchy(i)),ye(o)&&(o=[o]);const f=this.queueLoad(i,o,r,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(i,o,r){this.prepareLoading(i,o,{},r)}reload(i,o,r){this.prepareLoading(i,o,{reload:!0},r)}loadOne(i,o=""){const r=i.split("|"),u=r[0],f=r[1];this.read(u,f,"read",void 0,void 0,(d,g)=>{d&&this.logger.warn(`${o}loading namespace ${f} for language ${u} failed`,d),!d&&g&&this.logger.log(`${o}loaded namespace ${f} for language ${u}`,g),this.loaded(i,d,g)})}saveMissing(i,o,r,u,f,d={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${r}" as the namespace "${o}" 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(!(r==null||r==="")){if(this.backend?.create){const p={...d,isUpdate:f},m=this.backend.create.bind(this.backend);if(m.length<6)try{let T;m.length===5?T=m(i,o,r,u,p):T=m(i,o,r,u),T&&typeof T.then=="function"?T.then(v=>g(null,v)).catch(g):g(null,T)}catch(T){g(T)}else m(i,o,r,u,g,p)}!i||!i[0]||this.store.addResource(i[0],o,r,u)}}}const Mc=()=>({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:a=>{let i={};if(typeof a[1]=="object"&&(i=a[1]),ye(a[1])&&(i.defaultValue=a[1]),ye(a[2])&&(i.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const o=a[3]||a[2];Object.keys(o).forEach(r=>{i[r]=o[r]})}return i},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ap=a=>(ye(a.ns)&&(a.ns=[a.ns]),ye(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),ye(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a),Zs=()=>{},O1=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(o=>{typeof a[o]=="function"&&(a[o]=a[o].bind(a))})};let xp=!1;const L1=a=>!!(a?.modules?.backend?.name?.indexOf("Locize")>0||a?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||a?.options?.backend?.backends&&a.options.backend.backends.some(i=>i?.name?.indexOf("Locize")>0||i?.constructor?.name?.indexOf("Locize")>0));class Ri extends fo{constructor(i={},o){if(super(),this.options=Ap(i),this.services={},this.logger=pn,this.modules={external:[]},O1(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(i={},o){this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),i.defaultNS==null&&i.ns&&(ye(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const r=Mc();this.options={...r,...this.options,...Ap(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!L1(this)&&!xp&&(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 💙"),xp=!0);const u=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?pn.init(u(this.modules.logger),this.options):pn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=C1;const T=new yp(this.options);this.store=new gp(this.options.resources,this.options);const v=this.services;v.logger=pn,v.resourceStore=this.store,v.languageUtils=T,v.pluralResolver=new R1(T,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.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"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=u(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Tp(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new k1(u(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(D,...O)=>{this.emit(D,...O)}),this.modules.languageDetector&&(v.languageDetector=u(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=u(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new so(this.services,this.options),this.translator.on("*",(D,...O)=>{this.emit(D,...O)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Zs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...T)=>this.store[m](...T)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...T)=>(this.store[m](...T),this)});const g=yi(),p=()=>{const m=(T,v)=>{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(v),o(T,v)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),g}loadResources(i,o=Zs){let r=o;const u=ye(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const f=[],d=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(m=>{m!=="cimode"&&f.indexOf(m)<0&&f.push(m)})};u?d(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>d(p)),this.options.preload?.forEach?.(g=>d(g)),this.services.backendConnector.load(f,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(i,o,r){const u=yi();return typeof i=="function"&&(r=i,i=void 0),typeof o=="function"&&(r=o,o=void 0),i||(i=this.languages),o||(o=this.options.ns),r||(r=Zs),this.services.backendConnector.reload(i,o,f=>{u.resolve(),r(f)}),u}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&ug.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let o=0;o<this.languages.length;o++){const r=this.languages[o];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,o){this.isLanguageChangingTo=i;const r=yi();this.emit("languageChanging",i);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,p)=>{p?this.isLanguageChangingTo===i&&(u(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),o&&o(g,(...m)=>this.t(...m))},d=g=>{!i&&!g&&this.services.languageDetector&&(g=[]);const p=ye(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(ye(g)?[g]:g);m&&(this.language||u(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,T=>{f(T,m)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(i),r}getFixedT(i,o,r){const u=(f,d,...g)=>{let p;typeof d!="object"?p=this.options.overloadTranslationOptionHandler([f,d].concat(g)):p={...d},p.lng=p.lng||u.lng,p.lngs=p.lngs||u.lngs,p.ns=p.ns||u.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||u.keyPrefix);const m=this.options.keySeparator||".";let T;return p.keyPrefix&&Array.isArray(f)?T=f.map(v=>(typeof v=="function"&&(v=io(v,{...this.options,...d})),`${p.keyPrefix}${m}${v}`)):(typeof f=="function"&&(f=io(f,{...this.options,...d})),T=p.keyPrefix?`${p.keyPrefix}${m}${f}`:f),this.t(T,p)};return ye(i)?u.lng=i:u.lngs=i,u.ns=o,u.keyPrefix=r,u}t(...i){return this.translator?.translate(...i)}exists(...i){return this.translator?.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,o={}){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 r=o.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const d=(g,p)=>{const m=this.services.backendConnector.state[`${g}|${p}`];return m===-1||m===0||m===2};if(o.precheck){const g=o.precheck(this,d);if(g!==void 0)return g}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(r,i)&&(!u||d(f,i)))}loadNamespaces(i,o){const r=yi();return this.options.ns?(ye(i)&&(i=[i]),i.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{r.resolve(),o&&o(u)}),r):(o&&o(),Promise.resolve())}loadLanguages(i,o){const r=yi();ye(i)&&(i=[i]);const u=this.options.preload||[],f=i.filter(d=>u.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=u.concat(f),this.loadResources(d=>{r.resolve(),o&&o(d)}),r):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!i)return"rtl";try{const u=new Intl.Locale(i);if(u&&u.getTextInfo){const f=u.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const o=["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"],r=this.services?.languageUtils||new yp(Mc());return i.toLowerCase().indexOf("-latn")>1?"ltr":o.indexOf(r.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},o){const r=new Ri(i,o);return r.createInstance=Ri.createInstance,r}cloneInstance(i={},o=Zs){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const u={...this.options,...i,isClone:!0},f=new Ri(u);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const g=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((T,v)=>(T[v]={...p[m][v]},T),p[m]),p),{});f.store=new gp(g,u),f.services.resourceStore=f.store}if(i.interpolation){const p={...Mc().interpolation,...this.options.interpolation,...i.interpolation},m={...u,interpolation:p};f.services.interpolator=new Tp(m)}return f.translator=new so(f.services,u),f.translator.on("*",(g,...p)=>{f.emit(g,...p)}),f.init(u,o),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Et=Ri.createInstance();Et.createInstance;Et.dir;Et.init;Et.loadResources;Et.reloadResources;Et.use;Et.changeLanguage;Et.getFixedT;Et.t;Et.exists;Et.setDefaultNamespace;Et.hasLoadedNamespace;Et.loadNamespaces;Et.loadLanguages;var jc={exports:{}},ve={};var Rp;function z1(){if(Rp)return ve;Rp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function D(A){return A===null||typeof A!="object"?null:(A=N&&A[N]||A["@@iterator"],typeof A=="function"?A:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,J={};function Q(A,_,te){this.props=A,this.context=_,this.refs=J,this.updater=te||O}Q.prototype.isReactComponent={},Q.prototype.setState=function(A,_){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,_,"setState")},Q.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function I(){}I.prototype=Q.prototype;function ee(A,_,te){this.props=A,this.context=_,this.refs=J,this.updater=te||O}var H=ee.prototype=new I;H.constructor=ee,q(H,Q.prototype),H.isPureReactComponent=!0;var z=Array.isArray;function ie(){}var Z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function ae(A,_,te){var se=te.ref;return{$$typeof:a,type:A,key:_,ref:se!==void 0?se:null,props:te}}function ne(A,_){return ae(A.type,_,A.props)}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function re(A){var _={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(te){return _[te]})}var W=/\/+/g;function fe(A,_){return typeof A=="object"&&A!==null&&A.key!=null?re(""+A.key):_.toString(36)}function Le(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ie,ie):(A.status="pending",A.then(function(_){A.status==="pending"&&(A.status="fulfilled",A.value=_)},function(_){A.status==="pending"&&(A.status="rejected",A.reason=_)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,_,te,se,me){var Ee=typeof A;(Ee==="undefined"||Ee==="boolean")&&(A=null);var le=!1;if(A===null)le=!0;else switch(Ee){case"bigint":case"string":case"number":le=!0;break;case"object":switch(A.$$typeof){case a:case i:le=!0;break;case T:return le=A._init,j(le(A._payload),_,te,se,me)}}if(le)return me=me(A),le=se===""?"."+fe(A,0):se,z(me)?(te="",le!=null&&(te=le.replace(W,"$&/")+"/"),j(me,_,te,"",function(Rt){return Rt})):me!=null&&(X(me)&&(me=ne(me,te+(me.key==null||A&&A.key===me.key?"":(""+me.key).replace(W,"$&/")+"/")+le)),_.push(me)),1;le=0;var Ve=se===""?".":se+":";if(z(A))for(var Ye=0;Ye<A.length;Ye++)se=A[Ye],Ee=Ve+fe(se,Ye),le+=j(se,_,te,Ee,me);else if(Ye=D(A),typeof Ye=="function")for(A=Ye.call(A),Ye=0;!(se=A.next()).done;)se=se.value,Ee=Ve+fe(se,Ye++),le+=j(se,_,te,Ee,me);else if(Ee==="object"){if(typeof A.then=="function")return j(Le(A),_,te,se,me);throw _=String(A),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return le}function Y(A,_,te){if(A==null)return A;var se=[],me=0;return j(A,se,"","",function(Ee){return _.call(te,Ee,me++)}),se}function F(A){if(A._status===-1){var _=A._result;_=_(),_.then(function(te){(A._status===0||A._status===-1)&&(A._status=1,A._result=te)},function(te){(A._status===0||A._status===-1)&&(A._status=2,A._result=te)}),A._status===-1&&(A._status=0,A._result=_)}if(A._status===1)return A._result.default;throw A._result}var de=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},be={map:Y,forEach:function(A,_,te){Y(A,function(){_.apply(this,arguments)},te)},count:function(A){var _=0;return Y(A,function(){_++}),_},toArray:function(A){return Y(A,function(_){return _})||[]},only:function(A){if(!X(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ve.Activity=v,ve.Children=be,ve.Component=Q,ve.Fragment=o,ve.Profiler=u,ve.PureComponent=ee,ve.StrictMode=r,ve.Suspense=p,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ve.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},ve.cache=function(A){return function(){return A.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(A,_,te){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var se=q({},A.props),me=A.key;if(_!=null)for(Ee in _.key!==void 0&&(me=""+_.key),_)!P.call(_,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&_.ref===void 0||(se[Ee]=_[Ee]);var Ee=arguments.length-2;if(Ee===1)se.children=te;else if(1<Ee){for(var le=Array(Ee),Ve=0;Ve<Ee;Ve++)le[Ve]=arguments[Ve+2];se.children=le}return ae(A.type,me,se)},ve.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},ve.createElement=function(A,_,te){var se,me={},Ee=null;if(_!=null)for(se in _.key!==void 0&&(Ee=""+_.key),_)P.call(_,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(me[se]=_[se]);var le=arguments.length-2;if(le===1)me.children=te;else if(1<le){for(var Ve=Array(le),Ye=0;Ye<le;Ye++)Ve[Ye]=arguments[Ye+2];me.children=Ve}if(A&&A.defaultProps)for(se in le=A.defaultProps,le)me[se]===void 0&&(me[se]=le[se]);return ae(A,Ee,me)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(A){return{$$typeof:g,render:A}},ve.isValidElement=X,ve.lazy=function(A){return{$$typeof:T,_payload:{_status:-1,_result:A},_init:F}},ve.memo=function(A,_){return{$$typeof:m,type:A,compare:_===void 0?null:_}},ve.startTransition=function(A){var _=Z.T,te={};Z.T=te;try{var se=A(),me=Z.S;me!==null&&me(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(ie,de)}catch(Ee){de(Ee)}finally{_!==null&&te.types!==null&&(_.types=te.types),Z.T=_}},ve.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ve.use=function(A){return Z.H.use(A)},ve.useActionState=function(A,_,te){return Z.H.useActionState(A,_,te)},ve.useCallback=function(A,_){return Z.H.useCallback(A,_)},ve.useContext=function(A){return Z.H.useContext(A)},ve.useDebugValue=function(){},ve.useDeferredValue=function(A,_){return Z.H.useDeferredValue(A,_)},ve.useEffect=function(A,_){return Z.H.useEffect(A,_)},ve.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},ve.useId=function(){return Z.H.useId()},ve.useImperativeHandle=function(A,_,te){return Z.H.useImperativeHandle(A,_,te)},ve.useInsertionEffect=function(A,_){return Z.H.useInsertionEffect(A,_)},ve.useLayoutEffect=function(A,_){return Z.H.useLayoutEffect(A,_)},ve.useMemo=function(A,_){return Z.H.useMemo(A,_)},ve.useOptimistic=function(A,_){return Z.H.useOptimistic(A,_)},ve.useReducer=function(A,_,te){return Z.H.useReducer(A,_,te)},ve.useRef=function(A){return Z.H.useRef(A)},ve.useState=function(A){return Z.H.useState(A)},ve.useSyncExternalStore=function(A,_,te){return Z.H.useSyncExternalStore(A,_,te)},ve.useTransition=function(){return Z.H.useTransition()},ve.version="19.2.4",ve}var wp;function ho(){return wp||(wp=1,jc.exports=z1()),jc.exports}var U=ho(),Uc,Np;function M1(){return Np||(Np=1,Uc={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Uc}var j1=M1();const U1=u1(j1);var B1=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Cp(a){var i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},o=a.match(/<\/?([^\s]+?)[/\s>]/);if(o&&(i.name=o[1],(U1[o[1]]||a.charAt(a.length-2)==="/")&&(i.voidElement=!0),i.name.startsWith("!--"))){var r=a.indexOf("-->");return{type:"comment",comment:r!==-1?a.slice(4,r):""}}for(var u=new RegExp(B1),f=null;(f=u.exec(a))!==null;)if(f[0].trim())if(f[1]){var d=f[1].trim(),g=[d,""];d.indexOf("=")>-1&&(g=d.split("=")),i.attrs[g[0]]=g[1],u.lastIndex--}else f[2]&&(i.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return i}var _1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,H1=/^\s*$/,G1=Object.create(null);function dg(a,i){switch(i.type){case"text":return a+i.content;case"tag":return a+="<"+i.name+(i.attrs?(function(o){var r=[];for(var u in o)r.push(u+'="'+o[u]+'"');return r.length?" "+r.join(" "):""})(i.attrs):"")+(i.voidElement?"/>":">"),i.voidElement?a:a+i.children.reduce(dg,"")+"</"+i.name+">";case"comment":return a+"<!--"+i.comment+"-->"}}var V1={parse:function(a,i){i||(i={}),i.components||(i.components=G1);var o,r=[],u=[],f=-1,d=!1;if(a.indexOf("<")!==0){var g=a.indexOf("<");r.push({type:"text",content:g===-1?a:a.substring(0,g)})}return a.replace(_1,function(p,m){if(d){if(p!=="</"+o.name+">")return;d=!1}var T,v=p.charAt(1)!=="/",N=p.startsWith("<!--"),D=m+p.length,O=a.charAt(D);if(N){var q=Cp(p);return f<0?(r.push(q),r):((T=u[f]).children.push(q),r)}if(v&&(f++,(o=Cp(p)).type==="tag"&&i.components[o.name]&&(o.type="component",d=!0),o.voidElement||d||!O||O==="<"||o.children.push({type:"text",content:a.slice(D,a.indexOf("<",D))}),f===0&&r.push(o),(T=u[f-1])&&T.children.push(o),u[f]=o),(!v||o.voidElement)&&(f>-1&&(o.voidElement||o.name===p.slice(2,-1))&&(f--,o=f===-1?r:u[f]),!d&&O!=="<"&&O)){T=f===-1?r:u[f].children;var J=a.indexOf("<",D),Q=a.slice(D,J===-1?void 0:J);H1.test(Q)&&(Q=" "),(J>-1&&f+T.length>=0||Q!==" ")&&T.push({type:"text",content:Q})}}),r},stringify:function(a){return a.reduce(function(i,o){return i+dg("",o)},"")}};const Ps=(a,i,o,r)=>{const u=[o,{code:i,...r||{}}];if(a?.services?.logger?.forward)return a.services.logger.forward(u,"warn","react-i18next::",!0);Mt(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),a?.services?.logger?.warn?a.services.logger.warn(...u):console?.warn&&console.warn(...u)},Dp={},po=(a,i,o,r)=>{Mt(o)&&Dp[o]||(Mt(o)&&(Dp[o]=new Date),Ps(a,i,o,r))},hg=(a,i)=>()=>{if(a.isInitialized)i();else{const o=()=>{setTimeout(()=>{a.off("initialized",o)},0),i()};a.on("initialized",o)}},Xc=(a,i,o)=>{a.loadNamespaces(i,hg(a,o))},kp=(a,i,o,r)=>{if(Mt(o)&&(o=[o]),a.options.preload&&a.options.preload.indexOf(i)>-1)return Xc(a,o,r);o.forEach(u=>{a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),a.loadLanguages(i,hg(a,r))},$1=(a,i,o={})=>!i.languages||!i.languages.length?(po(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(a,{lng:o.lng,precheck:(r,u)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!u(r.isLanguageChangingTo,a))return!1}}),Mt=a=>typeof a=="string",jn=a=>typeof a=="object"&&a!==null,K1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,q1={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Y1=a=>q1[a],pg=a=>a.replace(K1,Y1);let Zc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pg,transDefaultProps:void 0};const I1=(a={})=>{Zc={...Zc,...a}},Wc=()=>Zc;let gg;const X1=a=>{gg=a},eu=()=>gg,Ws=(a,i)=>{if(!a)return!1;const o=a.props?.children??a.children;return i?o.length>0:!!o},eo=a=>{if(!a)return[];const i=a.props?.children??a.children;return a.props?.i18nIsDynamicList?Ol(i):i},Z1=a=>Array.isArray(a)&&a.every(U.isValidElement),Ol=a=>Array.isArray(a)?a:[a],Q1=(a,i)=>{const o={...i};return o.props={...i.props,...a.props},o},F1=a=>{const i={};if(!a)return i;const o=r=>{Ol(r).forEach(f=>{Mt(f)||(Ws(f)?o(eo(f)):jn(f)&&!U.isValidElement(f)&&Object.assign(i,f))})};return o(a),i},mg=(a,i,o,r)=>{if(!a)return"";let u="";const f=Ol(a),d=i?.transSupportBasicHtmlNodes?i.transKeepBasicHtmlNodesFor??[]:[];return f.forEach((g,p)=>{if(Mt(g)){u+=`${g}`;return}if(U.isValidElement(g)){const{props:m,type:T}=g,v=Object.keys(m).length,N=d.indexOf(T)>-1,D=m.children;if(!D&&N&&!v){u+=`<${T}/>`;return}if(!D&&(!N||v)||m.i18nIsDynamicList){u+=`<${p}></${p}>`;return}if(N&&v===1&&Mt(D)){u+=`<${T}>${D}</${T}>`;return}const O=mg(D,i,o,r);u+=`<${p}>${O}</${p}>`;return}if(g===null){Ps(o,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(jn(g)){const{format:m,...T}=g,v=Object.keys(T);if(v.length===1){const N=m?`${v[0]}, ${m}`:v[0];u+=`{{${N}}}`;return}Ps(o,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:g});return}Ps(o,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:g})}),u},J1=(a,i=[],o={})=>{if(!a)return a;const r=Object.keys(o),u=[...i,...r];let f="",d=0;for(;d<a.length;)if(a[d]==="<"){let g=!1;const p=a.slice(d).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(p){const m=p[1];(/^\d+$/.test(m)||u.includes(m))&&(g=!0,f+=p[0],d+=p[0].length)}if(!g){const m=a.slice(d).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(m){const T=m[1];(/^\d+$/.test(T)||u.includes(T))&&(g=!0,f+=m[0],d+=m[0].length)}}g||(f+="<",d+=1)}else f+=a[d],d+=1;return f},P1=(a,i,o,r,u,f,d)=>{if(o==="")return[];const g=u.transKeepBasicHtmlNodesFor||[],p=o&&new RegExp(g.map(I=>`<${I}`).join("|")).test(o);if(!a&&!i&&!p&&!d)return[o];const m=i??{},T=I=>{Ol(I).forEach(H=>{Mt(H)||(Ws(H)?T(eo(H)):jn(H)&&!U.isValidElement(H)&&Object.assign(m,H))})};T(a);const v=J1(o,g,m),N=V1.parse(`<0>${v}</0>`),D={...m,...f},O=(I,ee,H)=>{const z=eo(I),ie=J(z,ee.children,H);return Z1(z)&&ie.length===0||I.props?.i18nIsDynamicList?z:ie},q=(I,ee,H,z,ie)=>{I.dummy?(I.children=ee,H.push(U.cloneElement(I,{key:z},ie?void 0:ee))):H.push(...U.Children.map([I],Z=>{const P="data-i18n-is-dynamic-list",ae={key:z,[P]:void 0};return Z&&Z.props&&Object.keys(Z.props).forEach(ne=>{ne==="ref"||ne==="children"||ne==="i18nIsDynamicList"||ne===P||(ae[ne]=Z.props[ne])}),U.cloneElement(Z,ae,ie?null:ee)}))},J=(I,ee,H)=>{const z=Ol(I);return Ol(ee).reduce((Z,P,ae)=>{const ne=P.children?.[0]?.content&&r.services.interpolator.interpolate(P.children[0].content,D,r.language);if(P.type==="tag"){let X=z[parseInt(P.name,10)];!X&&i&&(X=i[P.name]),H.length===1&&!X&&(X=H[0][P.name]),X||(X={});const re={...P.attrs};d&&Object.keys(re).forEach(F=>{const de=re[F];Mt(de)&&(re[F]=pg(de))});const W=Object.keys(re).length!==0?Q1({props:re},X):X,fe=U.isValidElement(W),Le=fe&&Ws(P,!0)&&!P.voidElement,j=p&&jn(W)&&W.dummy&&!fe,Y=jn(i)&&Object.hasOwnProperty.call(i,P.name);if(Mt(W)){const F=r.services.interpolator.interpolate(W,D,r.language);Z.push(F)}else if(Ws(W)||Le){const F=O(W,P,H);q(W,F,Z,ae)}else if(j){const F=J(z,P.children,H);q(W,F,Z,ae)}else if(Number.isNaN(parseFloat(P.name)))if(Y){const F=O(W,P,H);q(W,F,Z,ae,P.voidElement)}else if(u.transSupportBasicHtmlNodes&&g.indexOf(P.name)>-1)if(P.voidElement)Z.push(U.createElement(P.name,{key:`${P.name}-${ae}`}));else{const F=J(z,P.children,H);Z.push(U.createElement(P.name,{key:`${P.name}-${ae}`},F))}else if(P.voidElement)Z.push(`<${P.name} />`);else{const F=J(z,P.children,H);Z.push(`<${P.name}>${F}</${P.name}>`)}else if(jn(W)&&!fe){const F=P.children[0]?ne:null;F&&Z.push(F)}else q(W,ne,Z,ae,P.children.length!==1||!ne)}else if(P.type==="text"){const X=u.transWrapTextNodes,re=typeof u.unescape=="function"?u.unescape:Wc().unescape,W=d?re(r.services.interpolator.interpolate(P.content,D,r.language)):r.services.interpolator.interpolate(P.content,D,r.language);X?Z.push(U.createElement(X,{key:`${P.name}-${ae}`},W)):Z.push(W)}return Z},[])},Q=J([{dummy:!0,children:a||[]}],N,Ol(a||[]));return eo(Q[0])},yg=(a,i,o)=>{const r=a.key||i,u=U.cloneElement(a,{key:r});if(!u.props||!u.props.children||o.indexOf(`${i}/>`)<0&&o.indexOf(`${i} />`)<0)return u;function f(){return U.createElement(U.Fragment,null,u)}return U.createElement(f,{key:r})},W1=(a,i)=>a.map((o,r)=>yg(o,r,i)),e0=(a,i)=>{const o={};return Object.keys(a).forEach(r=>{Object.assign(o,{[r]:yg(a[r],r,i)})}),o},t0=(a,i,o,r)=>a?Array.isArray(a)?W1(a,i):jn(a)?e0(a,i):(po(o,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,n0=a=>!jn(a)||Array.isArray(a)?!1:Object.keys(a).reduce((i,o)=>i&&Number.isNaN(Number.parseFloat(o)),!0);function l0({children:a,count:i,parent:o,i18nKey:r,context:u,tOptions:f={},values:d,defaults:g,components:p,ns:m,i18n:T,t:v,shouldUnescape:N,...D}){const O=T||eu();if(!O)return po(O,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),a;const q=v||O.t.bind(O)||(be=>be),J={...Wc(),...O.options?.react};let Q=m||q.ns||O.options?.defaultNS;Q=Mt(Q)?[Q]:Q||["translation"];const{transDefaultProps:I}=J,ee=I?.tOptions?{...I.tOptions,...f}:f,H=N??I?.shouldUnescape,z=I?.values?{...I.values,...d}:d,ie=I?.components?{...I.components,...p}:p,Z=mg(a,J,O,r),P=g||ee?.defaultValue||Z||J.transEmptyNodeValue||(typeof r=="function"?io(r):r),{hashTransKey:ae}=J,ne=r||(ae?ae(Z||P):Z||P);O.options?.interpolation?.defaultVariables?d=z&&Object.keys(z).length>0?{...z,...O.options.interpolation.defaultVariables}:{...O.options.interpolation.defaultVariables}:d=z;const X=F1(a);X&&typeof X.count=="number"&&i===void 0&&(i=X.count);const re=d||i!==void 0&&!O.options?.interpolation?.alwaysFormat||!a?ee.interpolation:{interpolation:{...ee.interpolation,prefix:"#$?",suffix:"?$#"}},W={...ee,context:u||ee.context,count:i,...d,...re,defaultValue:P,ns:Q};let fe=ne?q(ne,W):P;fe===ne&&P&&(fe=P);const Le=t0(ie,fe,O,r);let j=Le||a,Y=null;n0(Le)&&(Y=Le,j=a);const F=P1(j,Y,fe,O,J,W,H),de=o??J.defaultTransParent;return de?U.createElement(de,D,F):F}const a0={type:"3rdParty",init(a){I1(a.options.react),X1(a)}},bg=U.createContext();class i0{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function s0({children:a,count:i,parent:o,i18nKey:r,context:u,tOptions:f={},values:d,defaults:g,components:p,ns:m,i18n:T,t:v,shouldUnescape:N,...D}){const{i18n:O,defaultNS:q}=U.useContext(bg)||{},J=T||O||eu(),Q=v||J?.t.bind(J);return l0({children:a,count:i,parent:o,i18nKey:r,context:u,tOptions:f,values:d,defaults:g,components:p,ns:m||Q?.ns||q||J?.options?.defaultNS,i18n:J,t:v,shouldUnescape:N,...D})}var Bc={exports:{}},_c={};var Op;function o0(){if(Op)return _c;Op=1;var a=ho();function i(v,N){return v===N&&(v!==0||1/v===1/N)||v!==v&&N!==N}var o=typeof Object.is=="function"?Object.is:i,r=a.useState,u=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function g(v,N){var D=N(),O=r({inst:{value:D,getSnapshot:N}}),q=O[0].inst,J=O[1];return f(function(){q.value=D,q.getSnapshot=N,p(q)&&J({inst:q})},[v,D,N]),u(function(){return p(q)&&J({inst:q}),v(function(){p(q)&&J({inst:q})})},[v]),d(D),D}function p(v){var N=v.getSnapshot;v=v.value;try{var D=N();return!o(v,D)}catch{return!0}}function m(v,N){return N()}var T=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return _c.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:T,_c}var Lp;function r0(){return Lp||(Lp=1,Bc.exports=o0()),Bc.exports}var c0=r0();const u0=(a,i)=>Mt(i)?i:jn(i)&&Mt(i.defaultValue)?i.defaultValue:Array.isArray(a)?a[a.length-1]:a,f0={t:u0,ready:!1},d0=()=>()=>{},cl=(a,i={})=>{const{i18n:o}=i,{i18n:r,defaultNS:u}=U.useContext(bg)||{},f=o||r||eu();f&&!f.reportNamespaces&&(f.reportNamespaces=new i0),f||po(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=U.useMemo(()=>({...Wc(),...f?.options?.react,...i}),[f,i]),{useSuspense:g,keyPrefix:p}=d,m=u||f?.options?.defaultNS,T=Mt(m)?[m]:m||["translation"],v=U.useMemo(()=>T,T);f?.reportNamespaces?.addUsedNamespaces?.(v);const N=U.useRef(0),D=U.useCallback(ae=>{if(!f)return d0;const{bindI18n:ne,bindI18nStore:X}=d,re=()=>{N.current+=1,ae()};return ne&&f.on(ne,re),X&&f.store.on(X,re),()=>{ne&&ne.split(" ").forEach(W=>f.off(W,re)),X&&X.split(" ").forEach(W=>f.store.off(W,re))}},[f,d]),O=U.useRef(),q=U.useCallback(()=>{if(!f)return f0;const ae=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(Le=>$1(Le,f,d)),ne=i.lng||f.language,X=N.current,re=O.current;if(re&&re.ready===ae&&re.lng===ne&&re.keyPrefix===p&&re.revision===X)return re;const fe={t:f.getFixedT(ne,d.nsMode==="fallback"?v:v[0],p),ready:ae,lng:ne,keyPrefix:p,revision:X};return O.current=fe,fe},[f,v,p,d,i.lng]),[J,Q]=U.useState(0),{t:I,ready:ee}=c0.useSyncExternalStore(D,q,q);U.useEffect(()=>{if(f&&!ee&&!g){const ae=()=>Q(ne=>ne+1);i.lng?kp(f,i.lng,v,ae):Xc(f,v,ae)}},[f,i.lng,v,ee,g,J]);const H=f||{},z=U.useRef(null),ie=U.useRef(),Z=ae=>{const ne=Object.getOwnPropertyDescriptors(ae);ne.__original&&delete ne.__original;const X=Object.create(Object.getPrototypeOf(ae),ne);if(!Object.prototype.hasOwnProperty.call(X,"__original"))try{Object.defineProperty(X,"__original",{value:ae,writable:!1,enumerable:!1,configurable:!1})}catch{}return X},P=U.useMemo(()=>{const ae=H,ne=ae?.language;let X=ae;ae&&(z.current&&z.current.__original===ae?ie.current!==ne?(X=Z(ae),z.current=X,ie.current=ne):X=z.current:(X=Z(ae),z.current=X,ie.current=ne));const re=[I,X,ee];return re.t=I,re.i18n=X,re.ready=ee,re},[I,H,ee,H.resolvedLanguage,H.language,H.languages]);if(f&&g&&!ee)throw new Promise(ae=>{const ne=()=>ae();i.lng?kp(f,i.lng,v,ne):Xc(f,v,ne)});return P},h0={clear:"مسح",clearTooltip:"مسح سجل الدردشة",emptyState:"أرسل رسالة إلى {{agentId}}",emptyStateHint:'حاول: "تقرير الحالة" أو "ماذا وجدت؟"',newSession:"جديد",newSessionTooltip:"ابدأ جلسة جديدة مع هذا الوكيل",placeholder:"رسالة {{agentId}}...",send:"إرسال"},p0={steps:{auth:{desc:"مصادقة هوية الجهاز...",label:"إقران الجهاز"},discover:{desc:"جاري مسح شبكة الشعاب المحلية...",label:"اكتشاف البوابة"},handshake:{desc:"إقامة بروتوكول الأمان الثابت...",label:"مصافحة المخلب"},ready:{desc:"جميع الأنظمة طبيعية. مرحباً بك في الشعاب.",label:"البوابة متصلة"},sync:{desc:"تنزيل الخرائط الحالية وقائمة الوكلاء...",label:"مزامنة بيانات المد والجزر"}}},g0={agentDeployed:"تم نشر الوكيل",agentDesignation:"تسمية الوكيل",cancel:"إلغاء",cancelWithIcon:"✕ إلغاء",confirmDeploy:"🦞 تأكيد والنشر",deployFailed:"فشل النشر",deploying:"⏳ جاري النشر...",deploymentSpecs:"مواصفات النشر",editBack:"← تحرير",fillInName:"املأ الاسم",joinedPod:"انضم إلى الفريق",nameLabel:"الاسم",namePlaceholder:"مثال: CLAWZ، REEF، CORAL...",newBadge:"جديد",previewNext:"عرض الوكيل التالي →",previewTitle:"عرض الوكيل",save:"حفظ",saving:"⏳ جاري الحفظ...",shellColor:"لون القشرة",spawnAnother:"أنشئ آخر",spawnNewTitle:"انشاء وكيل جديد",specBootTime:"الوقت المقدر للبداية",specBootTimeValue:"~3.2 ثانية",specDesignation:"التسمية",specMode:"الوضع",specModeValue:"مستقل",specPodAssignment:"تعيين الفريق",specPodAssignmentValue:"افتراضي",specShellColor:"لون القشرة",updateFailed:"فشل التحديث"},m0={agentChat:"دردشة الوكيل",chatButton:"دردشة",contractTooltip:"تصغير",current:{medium:"متوسط",strong:"قوي",weak:"ضعيف"},currentLabel:"التدفق",disconnect:"قطع الاتصال",editAgentTitle:"تحرير وكيل",editButton:"✎ تحرير",expandTooltip:"توسيع",hudTitle:"عرض البيانات",missionLabel:"المهمة",missionValue:"عمليات أعماق البحار",podLabel:"الفريق",podRosterTitle:"قائمة الفريق",podValue:"{{count}} نشط",skillsTitle:"المهارات",spawnAgent:"+ إنشاء وكيل",spawnAgentTitle:"إنشاء وكيل",tideLogTitle:"سجل المد والجزر",timeLabel:"الوقت",timeValue:"{{time}} بتوقيت عالمي"},y0={connect:"اتصل",connectingTitle:"جاري الاتصال...",connectionFailedDefault:"غير قادر على الاتصال بالبوابة.",connectionFailedTitle:"فشل الاتصال",devicePaired:"الجهاز مقترن",devicePairedDesc:"الجهاز {{deviceId}} لديه رمز مُخزّن لهذه البوابة",loginDescription:"الاتصال ببوابة OpenClaw. سيتم إقران جهازك تلقائيًا.",loginTitle:"تسجيل دخول البوابة",newDevice:"جهاز جديد",newDeviceDesc:"الجهاز {{deviceId}} — مطلوب رمز البوابة للإقران الأول",pairingDescription:"يحتاج هذا الجهاز إلى موافقة من مشغل موجود بالفعل. شغل <code>openclaw devices approve</code> أو اطلب من مشغل التحقق من طلبات الإقران.",pairingInProgress:"جاري الإقران",pairingWaiting:"في انتظار موافقة المشغل...",recent:"الأخيرة",recentConnections:"الاتصالات الحديثة",retryConnection:"إعادة المحاولة للاتصال",tokenLabel:"رمز البوابة",tokenPlaceholder:"ألصق رمز البوابة لإقران هذا الجهاز",tryAgain:"حاول مرة أخرى",urlLabel:"عنوان URL للبوابة"},b0={noAvailable:"لا توجد مهارات متاحة",noMatching:"لا توجد مهارات مطابقة",on:"تشغيل",searchPlaceholder:"بحث في المهارات..."},S0={applyPatch:"تطبيق التصحيح",browser:"المتصفح",completed:"مكتمل",editFile:"تحرير ملف",fallback:"استدعاء الأداة",fetchUrl:"جلب عنوان URL",findFiles:"البحث عن الملفات",readFile:"قراءة ملف",runCommand:"تشغيل الأمر",searchCode:"البحث في الشيفرة",subAgent:"وكيل فرعي",webSearch:"بحث ويب",writeFile:"كتابة ملف"},v0={chat:h0,connection:p0,creator:g0,dashboard:m0,gateway:y0,skills:b0,tools:S0},T0={clear:"পরিষ্কার করুন",clearTooltip:"চ্যাট ইতিহাস পরিষ্কার করুন",emptyState:"{{agentId}} কে একটি বার্তা পাঠান",emptyStateHint:'চেষ্টা করুন: "অবস্থা রিপোর্ট" বা "তোমার কি পেল?"',newSession:"নতুন",newSessionTooltip:"এই এজেন্টের সাথে একটি নতুন সেশন শুরু করুন",placeholder:"বার্তা {{agentId}}...",send:"পাঠান"},E0={steps:{auth:{desc:"ডিভাইসের পরিচয় প্রমাণীকরণ করা হচ্ছে...",label:"ডিভাইস পেয়ারিং"},discover:{desc:"স্থানীয় রীফ নেটওয়ার্ক স্ক্যান করা হচ্ছে...",label:"গেটওয়ে আবিষ্কার"},handshake:{desc:"নিরাপদ পিঞ্চ প্রোটোকল স্থাপন করা হচ্ছে...",label:"ক্লো হ্যান্ডশেক"},ready:{desc:"সব সিস্টেম স্বাভাবিক। রীফে স্বাগতম।",label:"গেটওয়ে সংযুক্ত"},sync:{desc:"বর্তমান মানচিত্র এবং এজেন্ট রোস্টার ডাউনলোড করা হচ্ছে...",label:"টাইড ডেটা সিঙ্ক করা হচ্ছে"}}},A0={agentDeployed:"এজেন্ট মোতায়েন করা হয়েছে",agentDesignation:"এজেন্ট পদবী",cancel:"বাতিল",cancelWithIcon:"✕ বাতিল",confirmDeploy:"🦞 নিশ্চিত করুন এবং মোতায়েন করুন",deployFailed:"মোতায়েন ব্যর্থ হয়েছে",deploying:"⏳ মোতায়েন করা হচ্ছে...",deploymentSpecs:"মোতায়েন বৈশিষ্ট্য",editBack:"← সম্পাদনা করুন",fillInName:"একটি নাম পূরণ করুন",joinedPod:"পোডে যোগ দিয়েছে",nameLabel:"নাম",namePlaceholder:"যেমনঃ ক্লঔজ, রীফ, প্রবাল...",newBadge:"নতুন",previewNext:"এজেন্ট প্রিভিউ →",previewTitle:"এজেন্ট প্রিভিউ",save:"সংরক্ষণ করুন",saving:"⏳ সংরক্ষণ করা হচ্ছে...",shellColor:"শেল রঙ",spawnAnother:"অন্য একটি তৈরি করুন",spawnNewTitle:"নতুন এজেন্ট তৈরি করুন",specBootTime:"প্রকলিত বুট সময়",specBootTimeValue:"~৩.২ সেকেন্ড",specDesignation:"পদবী",specMode:"মোড",specModeValue:"স্বয়ংক্রিয়",specPodAssignment:"পোড বরাদ্দ",specPodAssignmentValue:"ডিফল্ট",specShellColor:"শেল রঙ",updateFailed:"আপডেট ব্যর্থ হয়েছে"},x0={agentChat:"এজেন্ট চ্যাট",chatButton:"চ্যাট",contractTooltip:"সংকুচিত করুন",current:{medium:"মাঝারি",strong:"শক্তিশালী",weak:"দুর্বল"},currentLabel:"বর্তমান",disconnect:"সংযোগ বিচ্ছিন্ন করুন",editAgentTitle:"এজেন্ট সম্পাদনা",editButton:"✎ সম্পাদন করুন",expandTooltip:"প্রসারিত করুন",hudTitle:"এইচইউডি",missionLabel:"মিশন",missionValue:"গভীর সমুদ্র অভিযান",podLabel:"পোড",podRosterTitle:"পোড রোস্টার",podValue:"{{count}} সক্রিয়",skillsTitle:"দক্ষতা",spawnAgent:"+ এজেন্ট তৈরি করুন",spawnAgentTitle:"এজেন্ট তৈরি করুন",tideLogTitle:"টাইড লগ",timeLabel:"সময়",timeValue:"{{time}} ইউটিসি"},R0={connect:"সংযুক্ত করুন",connectingTitle:"সংযুক্ত হচ্ছে...",connectionFailedDefault:"গেটওয়েতে সংযোগ করতে ব্যর্থ।",connectionFailedTitle:"সংযোগ ব্যর্থ হয়েছে",devicePaired:"ডিভাইস পেয়ার্ড",devicePairedDesc:"ডিভাইস {{deviceId}} এই গেটওয়ের জন্য একটি সংরক্ষিত টোকেন আছে",loginDescription:"একটি ওপেনক্লো গেটওয়ের সাথে সংযোগ করুন। আপনার ডিভাইস স্বয়ংক্রিয়ভাবে পেয়ার করা হবে।",loginTitle:"গেটওয়ে লগইন",newDevice:"নতুন ডিভাইস",newDeviceDesc:"ডিভাইস {{deviceId}} — প্রথম পেয়ারিং এর জন্য গেটওয়ে টোকেন প্রয়োজন",pairingDescription:"এই ডিভাইসটির একজন বিদ্যমান অপারেটরের দ্বারা অনুমোদন প্রয়োজন। <code>openclaw devices approve</code> চালান বা একজন অপারেটরকে তাদের পেয়ারিং অনুরোধগুলি পরীক্ষা করতে বলুন।",pairingInProgress:"পেয়ারিং চলমান",pairingWaiting:"অপারেটরের অনুমোদনের জন্য অপেক্ষা করা হচ্ছে...",recent:"সাম্প্রতিক",recentConnections:"সাম্প্রতিক সংযোগসমূহ",retryConnection:"সংযোগ পুনরায় চেষ্টা করুন",tokenLabel:"গেটওয়ে টোকেন",tokenPlaceholder:"এই ডিভাইসটিকে পেয়ার করতে গেটওয়ে টোকেন পেস্ট করুন",tryAgain:"আবার চেষ্টা করুন",urlLabel:"গেটওয়ে ইউআরএল"},w0={noAvailable:"কোন দক্ষতা উপলব্ধ নেই",noMatching:"কোন মিল নেই",on:"চালু",searchPlaceholder:"দক্ষতা অনুসন্ধান করুন..."},N0={applyPatch:"প্যাচ প্রয়োগ করুন",browser:"ব্রাউজার",completed:"সম্পন্ন",editFile:"ফাইল সম্পাদনা করুন",fallback:"টুল কল",fetchUrl:"ইউআরএল আনুন",findFiles:"ফাইলগুলি খুঁজুন",readFile:"ফাইল পড়ুন",runCommand:"কমান্ড চালান",searchCode:"কোড অনুসন্ধান করুন",subAgent:"সাব-এজেন্ট",webSearch:"ওয়েব অনুসন্ধান",writeFile:"ফাইল লিখুন"},C0={chat:T0,connection:E0,creator:A0,dashboard:x0,gateway:R0,skills:w0,tools:N0},D0={clear:"LEEREN",clearTooltip:"Chatverlauf löschen",emptyState:"Nachricht an {{agentId}} senden",emptyStateHint:'Versuche: "Statistikbericht" oder "Was hast du gefunden?"',newSession:"NEU",newSessionTooltip:"Eine neue Sitzung mit diesem Agenten starten",placeholder:"Nachricht an {{agentId}}...",send:"SENDEN"},k0={steps:{auth:{desc:"Geräteidentität wird authentifiziert...",label:"Geräteverbindung"},discover:{desc:"Lokales Reef-Netzwerk wird gescannt...",label:"Gateway entdecken"},handshake:{desc:"Sicheres Pinch-Protokoll wird etabliert...",label:"Claw Handschlag"},ready:{desc:"Alle Systeme sind nominal. Willkommen im Reef.",label:"Gateway verbunden"},sync:{desc:"Aktuelle Karten und Agentenliste werden heruntergeladen...",label:"Tidedaten synchronisieren"}}},O0={agentDeployed:"AGENT EINGESETZT",agentDesignation:"AGENTENBEZEICHNUNG",cancel:"ABBRECHEN",cancelWithIcon:"✕ ABBRECHEN",confirmDeploy:"🦞 BESTÄTIGEN UND EINSETZEN",deployFailed:"Einsatz fehlgeschlagen",deploying:"⏳ WIRD EINGESETZT...",deploymentSpecs:"EINSATZ SPEZIFIKATIONEN",editBack:"← BEARBEITEN",fillInName:"Namen angeben",joinedPod:"ist dem Pod beigetreten",nameLabel:"NAME",namePlaceholder:"z.B. CLAWZ, REEF, CORAL...",newBadge:"NEU",previewNext:"AGENT VORSCHAU →",previewTitle:"AGENT VORSCHAU",save:"SPEICHERN",saving:"⏳ SPEICHERN...",shellColor:"PANZERFARBE",spawnAnother:"EINEN WEITEREN ERZEUGEN",spawnNewTitle:"NEUEN AGENT ERZEUGEN",specBootTime:"Geschätzte Boot-Zeit",specBootTimeValue:"~3.2s",specDesignation:"Benennung",specMode:"Modus",specModeValue:"Autonom",specPodAssignment:"Pod-Zuordnung",specPodAssignmentValue:"Standard",specShellColor:"Panzerfarbe",updateFailed:"Aktualisierung fehlgeschlagen"},L0={agentChat:"AGENTEN-CHAT",chatButton:"CHAT",contractTooltip:"Zusammenziehen",current:{medium:"MITTEL",strong:"STARK",weak:"SCHWACH"},currentLabel:"STROM",disconnect:"TRENNEN",editAgentTitle:"AGENT BEARBEITEN",editButton:"✎ BEARBEITEN",expandTooltip:"Erweitern",hudTitle:"HUD",missionLabel:"MISSION",missionValue:"TIEFSEE-EINSÄTZE",podLabel:"POD",podRosterTitle:"POD-LISTE",podValue:"{{count}} AKTIV",skillsTitle:"FÄHIGKEITEN",spawnAgent:"+ AGENT ERZEUGEN",spawnAgentTitle:"AGENT ERZEUGEN",tideLogTitle:"TIDE-LOG",timeLabel:"ZEIT",timeValue:"{{time}} UTC"},z0={connect:"VERBINDEN",connectingTitle:"VERBINDUNG WIRD HERGESTELLT...",connectionFailedDefault:"Verbindung zum Gateway nicht möglich.",connectionFailedTitle:"VERBINDUNG FEHLGESCHLAGEN",devicePaired:"GERÄT GEKOPPELT",devicePairedDesc:"Gerät {{deviceId}} hat ein gespeichertes Token für dieses Gateway",loginDescription:"Verbinde dich mit einem OpenClaw Gateway. Dein Gerät wird automatisch gekoppelt.",loginTitle:"GATEWAY-LOGIN",newDevice:"NEUES GERÄT",newDeviceDesc:"Gerät {{deviceId}} — Gateway-Token erforderlich für die erste Kopplung",pairingDescription:"Dieses Gerät muss von einem bestehenden Betreiber bestätigt werden. Führen Sie <code>openclaw devices approve</code> aus oder bitten Sie einen Betreiber, die Kopplungsanfragen zu überprüfen.",pairingInProgress:"Kopplung läuft",pairingWaiting:"Warten auf Betreiberbestätigung...",recent:"LETZTE",recentConnections:"LETZTE VERBINDUNGEN",retryConnection:"VERBINDUNG ERNEUT VERSUCHEN",tokenLabel:"GATEWAY-TOKEN",tokenPlaceholder:"Gateway-Token einfügen, um dieses Gerät zu koppeln",tryAgain:"ERNEUT VERSUCHEN",urlLabel:"GATEWAY-URL"},M0={noAvailable:"Keine Fähigkeiten verfügbar",noMatching:"Keine passenden Fähigkeiten",on:"EIN",searchPlaceholder:"Fähigkeiten suchen..."},j0={applyPatch:"Patch anwenden",browser:"Browser",completed:"Abgeschlossen",editFile:"Datei bearbeiten",fallback:"Tool-Aufruf",fetchUrl:"URL abrufen",findFiles:"Dateien finden",readFile:"Datei lesen",runCommand:"Befehl ausführen",searchCode:"Code durchsuchen",subAgent:"Sub-Agent",webSearch:"Websuche",writeFile:"Datei schreiben"},U0={chat:D0,connection:k0,creator:O0,dashboard:L0,gateway:z0,skills:M0,tools:j0},B0={steps:{discover:{label:"Discovering gateway",desc:"Scanning local reef network..."},handshake:{label:"Claw handshake",desc:"Establishing secure pinch protocol..."},auth:{label:"Device pairing",desc:"Authenticating device identity..."},sync:{label:"Syncing tide data",desc:"Downloading current maps and agent roster..."},ready:{label:"Gateway connected",desc:"All systems nominal. Welcome to the reef."}}},_0={loginTitle:"GATEWAY LOGIN",loginDescription:"Connect to an OpenClaw Gateway. Your device will be paired automatically.",urlLabel:"GATEWAY URL",devicePaired:"DEVICE PAIRED",newDevice:"NEW DEVICE",devicePairedDesc:"Device {{deviceId}} has a stored token for this gateway",newDeviceDesc:"Device {{deviceId}} — gateway token required for first pairing",tokenLabel:"GATEWAY TOKEN",tokenPlaceholder:"Paste gateway token to pair this device",connect:"CONNECT",recent:"RECENT",recentConnections:"RECENT CONNECTIONS",connectionFailedTitle:"CONNECTION FAILED",connectionFailedDefault:"Unable to connect to gateway.",tryAgain:"TRY AGAIN",connectingTitle:"CONNECTING...",pairingWaiting:"Waiting for operator approval...",pairingInProgress:"Pairing in progress",pairingDescription:"This device needs to be approved by an existing operator. Run <code>openclaw devices approve</code> or ask an operator to check their pairing requests.",retryConnection:"RETRY CONNECTION"},H0={spawnAgent:"+ SPAWN AGENT",disconnect:"DISCONNECT",hudTitle:"HUD",missionLabel:"MISSION",missionValue:"DEEP SEA OPS",podLabel:"POD",podValue:"{{count}} ACTIVE",timeLabel:"TIME",timeValue:"{{time}} UTC",currentLabel:"CURRENT",current:{strong:"STRONG",medium:"MEDIUM",weak:"WEAK"},podRosterTitle:"POD ROSTER",skillsTitle:"SKILLS",tideLogTitle:"TIDE LOG",editButton:"✎ EDIT",chatButton:"CHAT",expandTooltip:"Expand",contractTooltip:"Contract",agentChat:"AGENT CHAT",spawnAgentTitle:"SPAWN AGENT",editAgentTitle:"EDIT AGENT"},G0={shellColor:"SHELL COLOR",nameLabel:"NAME",cancel:"CANCEL",saving:"⏳ SAVING...",save:"SAVE",updateFailed:"Update failed",agentDeployed:"AGENT DEPLOYED",joinedPod:"has joined the pod",spawnAnother:"SPAWN ANOTHER",previewTitle:"PREVIEW AGENT",newBadge:"NEW",deploymentSpecs:"DEPLOYMENT SPECS",specDesignation:"Designation",specShellColor:"Shell Color",specMode:"Mode",specModeValue:"Autonomous",specPodAssignment:"Pod Assignment",specPodAssignmentValue:"Default",specBootTime:"Est. Boot Time",specBootTimeValue:"~3.2s",editBack:"← EDIT",deploying:"⏳ DEPLOYING...",confirmDeploy:"🦞 CONFIRM AND DEPLOY",spawnNewTitle:"SPAWN NEW AGENT",agentDesignation:"AGENT DESIGNATION",namePlaceholder:"e.g. CLAWZ, REEF, CORAL...",cancelWithIcon:"✕ CANCEL",previewNext:"PREVIEW AGENT →",fillInName:"Fill in a name",deployFailed:"Deploy failed"},V0={newSession:"NEW",newSessionTooltip:"Start a new session with this agent",clear:"CLEAR",clearTooltip:"Clear chat history",emptyState:"Send a message to {{agentId}}",emptyStateHint:'Try: "Status report" or "What did you find?"',placeholder:"Message {{agentId}}...",send:"SEND"},$0={searchPlaceholder:"Search skills...",noMatching:"No matching skills",noAvailable:"No skills available",on:"ON"},K0={readFile:"Read File",writeFile:"Write File",editFile:"Edit File",runCommand:"Run Command",findFiles:"Find Files",searchCode:"Search Code",fetchUrl:"Fetch URL",webSearch:"Web Search",subAgent:"Sub-Agent",browser:"Browser",applyPatch:"Apply Patch",fallback:"Tool Call",completed:"Completed"},q0={connection:B0,gateway:_0,dashboard:H0,creator:G0,chat:V0,skills:$0,tools:K0},Y0={clear:"BORRAR",clearTooltip:"Borrar historial de chat",emptyState:"Enviar un mensaje a {{agentId}}",emptyStateHint:'Prueba: "Informe de estado" o "¿Qué encontraste?"',newSession:"NUEVO",newSessionTooltip:"Iniciar una nueva sesión con este agente",placeholder:"Mensaje a {{agentId}}...",send:"ENVIAR"},I0={steps:{auth:{desc:"Autenticando identidad del dispositivo...",label:"Emparejamiento de dispositivo"},discover:{desc:"Escaneando la red local del arrecife...",label:"Descubriendo puerta de enlace"},handshake:{desc:"Estableciendo protocolo seguro de pinza...",label:"Apretón de pinza"},ready:{desc:"Todos los sistemas nominales. Bienvenido al arrecife.",label:"Puerta de enlace conectada"},sync:{desc:"Descargando mapas actuales y lista de agentes...",label:"Sincronizando datos de marea"}}},X0={agentDeployed:"AGENTE DESPLEGADO",agentDesignation:"DESIGNACIÓN DEL AGENTE",cancel:"CANCELAR",cancelWithIcon:"✕ CANCELAR",confirmDeploy:"🦞 CONFIRMAR Y DESPLEGAR",deployFailed:"El despliegue ha fallado",deploying:"⏳ DESPLEGANDO...",deploymentSpecs:"ESPECIFICACIONES DE DESPLIEGUE",editBack:"← EDITAR",fillInName:"Escribe un nombre",joinedPod:"se ha unido al van",nameLabel:"NOMBRE",namePlaceholder:"por ejemplo, CLAWZ, REEF, CORAL...",newBadge:"NUEVO",previewNext:"VISTA PREVIA DEL AGENTE →",previewTitle:"VISTA PREVIA DEL AGENTE",save:"GUARDAR",saving:"⏳ GUARDANDO...",shellColor:"COLOR DE CONCHA",spawnAnother:"GENERAR OTRO",spawnNewTitle:"GENERAR NUEVO AGENTE",specBootTime:"Tiempo de Arranque Est.",specBootTimeValue:"~3.2s",specDesignation:"Designación",specMode:"Modo",specModeValue:"Autónomo",specPodAssignment:"Asignación de Van",specPodAssignmentValue:"Por Defecto",specShellColor:"Color de Concha",updateFailed:"Actualización fallida"},Z0={agentChat:"CHAT DEL AGENTE",chatButton:"CHAT",contractTooltip:"Contraer",current:{medium:"MEDIA",strong:"FUERTE",weak:"DÉBIL"},currentLabel:"CORRIENTE",disconnect:"DESCONECTAR",editAgentTitle:"EDITAR AGENTE",editButton:"✎ EDITAR",expandTooltip:"Expandir",hudTitle:"HUD",missionLabel:"MISIÓN",missionValue:"OPS EN EL MAR PROFUNDO",podLabel:"VAN",podRosterTitle:"LISTA DE VAN",podValue:"{{count}} ACTIVO",skillsTitle:"HABILIDADES",spawnAgent:"+ GENERAR AGENTE",spawnAgentTitle:"GENERAR AGENTE",tideLogTitle:"REGISTRO DE MAREA",timeLabel:"HORA",timeValue:"{{time}} UTC"},Q0={connect:"CONECTAR",connectingTitle:"CONECTANDO...",connectionFailedDefault:"No se puede conectar a la puerta de enlace.",connectionFailedTitle:"CONEXIÓN FALLIDA",devicePaired:"DISPOSITIVO EMPAREJADO",devicePairedDesc:"El dispositivo {{deviceId}} tiene un token almacenado para esta puerta de enlace",loginDescription:"Conéctate a una puerta de enlace OpenClaw. Tu dispositivo se emparejará automáticamente.",loginTitle:"INICIO DE SESIÓN EN PUERTA DE ENLACE",newDevice:"NUEVO DISPOSITIVO",newDeviceDesc:"Dispositivo {{deviceId}} — se requiere token de puerta de enlace para el primer emparejamiento",pairingDescription:"Este dispositivo necesita ser aprobado por un operador existente. Ejecuta <code>openclaw devices approve</code> o pide a un operador que revise sus solicitudes de emparejamiento.",pairingInProgress:"Emparejamiento en curso",pairingWaiting:"Esperando aprobación del operador...",recent:"RECIENTE",recentConnections:"CONEXIONES RECIENTES",retryConnection:"REINTENTAR CONEXIÓN",tokenLabel:"TOKEN DE PUERTA DE ENLACE",tokenPlaceholder:"Pega el token de puerta de enlace para emparejar este dispositivo",tryAgain:"INTENTAR DE NUEVO",urlLabel:"URL DE PUERTA DE ENLACE"},F0={noAvailable:"No hay habilidades disponibles",noMatching:"No hay habilidades coincidentes",on:"ACTIVADO",searchPlaceholder:"Buscar habilidades..."},J0={applyPatch:"Aplicar Parche",browser:"Navegador",completed:"Completado",editFile:"Editar Archivo",fallback:"Llamada de Herramienta",fetchUrl:"Obtener URL",findFiles:"Buscar Archivos",readFile:"Leer Archivo",runCommand:"Ejecutar Comando",searchCode:"Buscar Código",subAgent:"Sub-Agente",webSearch:"Buscar en la Web",writeFile:"Escribir Archivo"},P0={chat:Y0,connection:I0,creator:X0,dashboard:Z0,gateway:Q0,skills:F0,tools:J0},W0={clear:"EFFACER",clearTooltip:"Effacer l'historique de la discussion",emptyState:"Envoyer un message à {{agentId}}",emptyStateHint:`Essayez : "Rapport d'état" ou "Qu'avez-vous trouvé ?"`,newSession:"NOUVEAU",newSessionTooltip:"Commencer une nouvelle session avec cet agent",placeholder:"Message {{agentId}}...",send:"ENVOYER"},eb={steps:{auth:{desc:"Authentification de l'identité de l'appareil...",label:"Appairage de l'appareil"},discover:{desc:"Analyse du réseau local du récif...",label:"Découverte de la passerelle"},handshake:{desc:"Établissement du protocole sécurisé de pincement...",label:"Poignée de pince"},ready:{desc:"Tous les systèmes sont nominaux. Bienvenue au récif.",label:"Passerelle connectée"},sync:{desc:"Téléchargement des cartes actuelles et de la liste des agents...",label:"Synchronisation des données de marée"}}},tb={agentDeployed:"AGENT DÉPLOYÉ",agentDesignation:"DÉSIGNATION DE L'AGENT",cancel:"ANNULER",cancelWithIcon:"✕ ANNULER",confirmDeploy:"🦞 CONFIRMER ET DÉPLOYER",deployFailed:"Échec du déploiement",deploying:"⏳ DÉPLOIEMENT...",deploymentSpecs:"SPÉCIFICATIONS DE DÉPLOIEMENT",editBack:"← ÉDITER",fillInName:"Renseignez un nom",joinedPod:"a rejoint le pod",nameLabel:"NOM",namePlaceholder:"ex : CLAWZ, REEF, CORAL...",newBadge:"NOUVEAU",previewNext:"APERÇU DE L'AGENT →",previewTitle:"APERÇU DE L'AGENT",save:"ENREGISTRER",saving:"⏳ ENREGISTREMENT...",shellColor:"COULEUR DE COQUILLE",spawnAnother:"DÉPLOYER UN AUTRE",spawnNewTitle:"DÉPLOYER NOUVEL AGENT",specBootTime:"Temps de Démarrage Est.",specBootTimeValue:"~3.2s",specDesignation:"Désignation",specMode:"Mode",specModeValue:"Autonome",specPodAssignment:"Affectation du Pod",specPodAssignmentValue:"Par défaut",specShellColor:"Couleur de Coquille",updateFailed:"Échec de la mise à jour"},nb={agentChat:"DISCUSSION AGENT",chatButton:"DISCUSSION",contractTooltip:"Réduire",current:{medium:"MOYEN",strong:"FORT",weak:"FAIBLE"},currentLabel:"COURANT",disconnect:"DÉCONNECTER",editAgentTitle:"ÉDITER AGENT",editButton:"✎ ÉDITER",expandTooltip:"Développer",hudTitle:"HUD",missionLabel:"MISSION",missionValue:"OPS EN EAUX PROFONDES",podLabel:"POD",podRosterTitle:"LISTE DU POD",podValue:"{{count}} ACTIF",skillsTitle:"COMPÉTENCES",spawnAgent:"+ DÉPLOYER AGENT",spawnAgentTitle:"DÉPLOYER AGENT",tideLogTitle:"LOG DE MARÉE",timeLabel:"HEURE",timeValue:"{{time}} UTC"},lb={connect:"CONNECTER",connectingTitle:"CONNEXION...",connectionFailedDefault:"Impossible de se connecter à la passerelle.",connectionFailedTitle:"ÉCHEC DE LA CONNEXION",devicePaired:"APPAREIL APPARIÉ",devicePairedDesc:"L'appareil {{deviceId}} possède un jeton stocké pour cette passerelle",loginDescription:"Connectez-vous à une passerelle OpenClaw. Votre appareil sera appairé automatiquement.",loginTitle:"CONNEXION À LA PASSERELLE",newDevice:"NOUVEL APPAREIL",newDeviceDesc:"L'appareil {{deviceId}} — un jeton de passerelle est requis pour le premier appairage",pairingDescription:"Cet appareil doit être approuvé par un opérateur existant. Exécutez <code>openclaw devices approve</code> ou demandez à un opérateur de vérifier ses demandes d'appairage.",pairingInProgress:"Appairage en cours",pairingWaiting:"En attente de l'approbation de l'opérateur...",recent:"RÉCENT",recentConnections:"CONNEXIONS RÉCENTES",retryConnection:"RÉESSAYER LA CONNEXION",tokenLabel:"JETON DE LA PASSERELLE",tokenPlaceholder:"Collez le jeton de passerelle pour appairer cet appareil",tryAgain:"RÉESSAYER",urlLabel:"URL DE LA PASSERELLE"},ab={noAvailable:"Aucune compétence disponible",noMatching:"Aucune compétence correspondante",on:"ACTIVÉ",searchPlaceholder:"Rechercher des compétences..."},ib={applyPatch:"Appliquer le patch",browser:"Navigateur",completed:"Terminé",editFile:"Éditer le fichier",fallback:"Appel d'outil",fetchUrl:"Récupérer l'URL",findFiles:"Trouver des fichiers",readFile:"Lire le fichier",runCommand:"Exécuter la commande",searchCode:"Rechercher du code",subAgent:"Sous-Agent",webSearch:"Recherche Web",writeFile:"Écrire le fichier"},sb={chat:W0,connection:eb,creator:tb,dashboard:nb,gateway:lb,skills:ab,tools:ib},ob={clear:"स्पष्ट",clearTooltip:"चैट इतिहास साफ़ करें",emptyState:"{{agentId}} को एक संदेश भेजें",emptyStateHint:'कोशिश करें: "स्थिति रिपोर्ट" या "आपने क्या पाया?"',newSession:"नया",newSessionTooltip:"इस एजेंट के साथ एक नया सत्र शुरू करें",placeholder:"{{agentId}} को संदेश...",send:"भेजें"},rb={steps:{auth:{desc:"डिवाइस पहचान प्रमाणीकरण...",label:"डिवाइस पेयरिंग"},discover:{desc:"स्थानीय रीफ नेटवर्क स्कैन कर रहा है...",label:"गेटवे खोज"},handshake:{desc:"सुरक्षित पिंच प्रोटोकॉल स्थापित कर रहा है...",label:"क्लॉ हैंडशेक"},ready:{desc:"सभी सिस्टम सामान्य हैं। रीफ में आपका स्वागत है।",label:"गेटवे कनेक्टेड"},sync:{desc:"वर्तमान नक्शे और एजेंट सूची डाउनलोड कर रहा है...",label:"ज्वार डेटा सिंक कर रहा है"}}},cb={agentDeployed:"एजेंट तैनात",agentDesignation:"एजेंट पदनाम",cancel:"रद्द करें",cancelWithIcon:"✕ रद्द करें",confirmDeploy:"🦞 पुष्टि करें और तैनात करें",deployFailed:"तैनाती विफल",deploying:"⏳ तैनात कर रहा है...",deploymentSpecs:"तैनाती विनिर्देश",editBack:"← संपादित करें",fillInName:"नाम भरें",joinedPod:"पॉड में शामिल हो गया है",nameLabel:"नाम",namePlaceholder:"उदा. CLAWZ, REEF, CORAL...",newBadge:"नया",previewNext:"एजेंट का पूर्वावलोकन →",previewTitle:"एजेंट का पूर्वावलोकन",save:"सहेजें",saving:"⏳ सहेज रहा है...",shellColor:"शेल रंग",spawnAnother:"दूसरा पैदा करें",spawnNewTitle:"नया एजेंट उत्पन्न करें",specBootTime:"अनुमानित बूट समय",specBootTimeValue:"~3.2s",specDesignation:"पद",specMode:"मोड",specModeValue:"स्वायत्त",specPodAssignment:"पॉड असाइनमेंट",specPodAssignmentValue:"डिफ़ॉल्ट",specShellColor:"शेल रंग",updateFailed:"अपडेट विफल"},ub={agentChat:"एजेंट चैट",chatButton:"चैट",contractTooltip:"संकुचित",current:{medium:"मध्यम",strong:"मजबूत",weak:"कमजोर"},currentLabel:"वर्तमान",disconnect:"डिस्कनेक्ट",editAgentTitle:"एजेंट संपादित करें",editButton:"✎ संपादित करें",expandTooltip:"विस्तार",hudTitle:"HUD",missionLabel:"मिशन",missionValue:"डीप सी ऑप्स",podLabel:"पॉड",podRosterTitle:"पॉड रोस्टर",podValue:"{{count}} सक्रिय",skillsTitle:"कौशल",spawnAgent:"+ एजेंट को जन्म दें",spawnAgentTitle:"एजेंट को जन्म दें",tideLogTitle:"ज्वार लॉग",timeLabel:"समय",timeValue:"{{time}} UTC"},fb={connect:"कनेक्ट",connectingTitle:"कनेक्ट कर रहा है...",connectionFailedDefault:"गेटवे से कनेक्ट नहीं हो सका।",connectionFailedTitle:"कनेक्शन विफल",devicePaired:"डिवाइस पेयर हो गया",devicePairedDesc:"डिवाइस {{deviceId}} इस गेटवे के लिए एक संग्रहीत टोकन है",loginDescription:"एक OpenClaw गेटवे से कनेक्ट करें। आपका डिवाइस स्वतः ही पेयर हो जाएगा।",loginTitle:"गेटवे लॉगिन",newDevice:"नया डिवाइस",newDeviceDesc:"डिवाइस {{deviceId}} — पहली बार पेयरिंग के लिए गेटवे टोकन आवश्यक है",pairingDescription:"इस डिवाइस को मौजूदा ऑपरेटर द्वारा अनुमोदित किया जाना चाहिए। <code>openclaw devices approve</code> चलाएं या ऑपरेटर से अपने पेयरिंग अनुरोधों की जांच करने के लिए कहें।",pairingInProgress:"पेयरिंग चल रही है",pairingWaiting:"ऑपरेटर की मंजूरी की प्रतीक्षा कर रहा है...",recent:"हालिया",recentConnections:"हालिया कनेक्शन",retryConnection:"कनेक्शन पुनः प्रयास करें",tokenLabel:"गेटवे टोकन",tokenPlaceholder:"इस डिवाइस को पेयर करने के लिए गेटवे टोकन पेस्ट करें",tryAgain:"फिर से कोशिश करें",urlLabel:"गेटवे URL"},db={noAvailable:"कोई कौशल उपलब्ध नहीं",noMatching:"कोई मेल खाता कौशल नहीं",on:"पर",searchPlaceholder:"कौशल खोजें..."},hb={applyPatch:"पैच लागू करें",browser:"ब्राउज़र",completed:"पूरा हुआ",editFile:"फाइल संपादित करें",fallback:"उपकरण कॉल",fetchUrl:"URL प्राप्त करें",findFiles:"फाइलें खोजें",readFile:"फाइल पढ़ें",runCommand:"कमांड चलाएं",searchCode:"कोड खोजें",subAgent:"उप-एजेंट",webSearch:"वेब खोज",writeFile:"फाइल लिखें"},pb={chat:ob,connection:rb,creator:cb,dashboard:ub,gateway:fb,skills:db,tools:hb},gb={clear:"BERSIHKAN",clearTooltip:"Bersihkan riwayat obrolan",emptyState:"Kirim pesan ke {{agentId}}",emptyStateHint:'Coba: "Laporan status" atau "Apa yang Anda temukan?"',newSession:"BARU",newSessionTooltip:"Mulai sesi baru dengan agen ini",placeholder:"Pesan {{agentId}}...",send:"KIRIM"},mb={steps:{auth:{desc:"Mengotentikasi identitas perangkat...",label:"Pemasangan perangkat"},discover:{desc:"Memindai jaringan karang lokal...",label:"Menemukan gateway"},handshake:{desc:"Membangun protokol cubitan aman...",label:"Jabat cakar"},ready:{desc:"Semua sistem normal. Selamat datang di karang.",label:"Gateway terhubung"},sync:{desc:"Mengunduh peta saat ini dan daftar agen...",label:"Sinkronisasi data pasang surut"}}},yb={agentDeployed:"AGEN DIMOBILISASI",agentDesignation:"PENUNJUKAN AGEN",cancel:"BATALKAN",cancelWithIcon:"✕ BATALKAN",confirmDeploy:"🦞 KONFIRMASI DAN MOBILISASI",deployFailed:"Mobilisasi gagal",deploying:"⏳ MEMOBILISASI...",deploymentSpecs:"SPESIFIKASI PENEMPATAN",editBack:"← EDIT",fillInName:"Isi nama",joinedPod:"telah bergabung dengan kelompok",nameLabel:"NAMA",namePlaceholder:"contoh: CLAWZ, REEF, CORAL...",newBadge:"BARU",previewNext:"PRATINJAU AGEN →",previewTitle:"PRATINJAU AGEN",save:"SIMPAN",saving:"⏳ MENYIMPAN...",shellColor:"WARNA CANGKANG",spawnAnother:"WUJUDKAN LAINNYA",spawnNewTitle:"WUJUDKAN AGEN BARU",specBootTime:"Perkiraan Waktu Boot",specBootTimeValue:"~3.2s",specDesignation:"Penunjukan",specMode:"Mode",specModeValue:"Otonom",specPodAssignment:"Penugasan Kelompok",specPodAssignmentValue:"Default",specShellColor:"Warna Cangkang",updateFailed:"Pembaruan gagal"},bb={agentChat:"OBROLAN AGEN",chatButton:"OBROLAN",contractTooltip:"Persempit",current:{medium:"SEDANG",strong:"KUAT",weak:"LEMAH"},currentLabel:"ARUS",disconnect:"PUTUSKAN",editAgentTitle:"EDIT AGEN",editButton:"✎ EDIT",expandTooltip:"Perluas",hudTitle:"LAYAR",missionLabel:"MISIL",missionValue:"OPERASI LAUT DALAM",podLabel:"KUMPULAN",podRosterTitle:"DAFTAR KUMPULAN",podValue:"{{count}} AKTIF",skillsTitle:"KETERAMPILAN",spawnAgent:"+ WUJUDKAN AGEN",spawnAgentTitle:"WUJUDKAN AGEN",tideLogTitle:"CATATAN PASANG SURUT",timeLabel:"WAKTU",timeValue:"{{time}} UTC"},Sb={connect:"HUBUNGKAN",connectingTitle:"MENGHUBUNGKAN...",connectionFailedDefault:"Tidak dapat terhubung ke gateway.",connectionFailedTitle:"KONEKSI GAGAL",devicePaired:"PERANGKAT TERPASANG",devicePairedDesc:"Perangkat {{deviceId}} memiliki token tersimpan untuk gateway ini",loginDescription:"Sambungkan ke OpenClaw Gateway. Perangkat Anda akan dipasangkan secara otomatis.",loginTitle:"LOGIN GATEWAY",newDevice:"PERANGKAT BARU",newDeviceDesc:"Perangkat {{deviceId}} — token gateway diperlukan untuk pemasangan pertama",pairingDescription:"Perangkat ini perlu disetujui oleh operator yang ada. Jalankan <code>openclaw devices approve</code> atau minta operator untuk memeriksa permintaan pemasangan mereka.",pairingInProgress:"Pemasangan dalam proses",pairingWaiting:"Menunggu persetujuan operator...",recent:"TERKINI",recentConnections:"KONEKSI TERKINI",retryConnection:"ULANGI KONEKSI",tokenLabel:"TOKEN GATEWAY",tokenPlaceholder:"Tempel token gateway untuk memasangkan perangkat ini",tryAgain:"COBA LAGI",urlLabel:"URL GATEWAY"},vb={noAvailable:"Tidak ada keterampilan tersedia",noMatching:"Tidak ada keterampilan yang cocok",on:"NYALA",searchPlaceholder:"Cari keterampilan..."},Tb={applyPatch:"Terapkan Patch",browser:"Peramban",completed:"Selesai",editFile:"Edit File",fallback:"Pemanggilan Alat",fetchUrl:"Ambil URL",findFiles:"Cari File",readFile:"Baca File",runCommand:"Jalankan Perintah",searchCode:"Cari Kode",subAgent:"Sub-Agen",webSearch:"Pencarian Web",writeFile:"Tulis File"},Eb={chat:gb,connection:mb,creator:yb,dashboard:bb,gateway:Sb,skills:vb,tools:Tb},Ab={clear:"クリア",clearTooltip:"チャット履歴をクリア",emptyState:"{{agentId}} にメッセージを送信",emptyStateHint:"試してみてください: 「ステータスレポート」または「何を見つけた?」",newSession:"新しい",newSessionTooltip:"このエージェントとの新しいセッションを開始",placeholder:"{{agentId}} にメッセージ...",send:"送信"},xb={steps:{auth:{desc:"デバイスの識別を認証中...",label:"デバイスペアリング"},discover:{desc:"ローカルリーフネットワークをスキャン中...",label:"ゲートウェイを検出中"},handshake:{desc:"安全なピンチプロトコルを確立中...",label:"クローハンドシェイク"},ready:{desc:"すべてのシステムは正常です。リーフへようこそ。",label:"ゲートウェイ接続済み"},sync:{desc:"最新の地図とエージェントロスターをダウンロード中...",label:"潮流データを同期中"}}},Rb={agentDeployed:"エージェント配備済み",agentDesignation:"エージェント指定",cancel:"キャンセル",cancelWithIcon:"✕ キャンセル",confirmDeploy:"🦞 確認して配備",deployFailed:"配備失敗",deploying:"⏳ 配備中...",deploymentSpecs:"展開仕様",editBack:"← 編集",fillInName:"名前を入力してください",joinedPod:"ポッドに参加しました",nameLabel:"名前",namePlaceholder:"例: CLAWZ, REEF, CORAL...",newBadge:"新しい",previewNext:"エージェントプレビュー →",previewTitle:"エージェントプレビュー",save:"保存",saving:"⏳ 保存中...",shellColor:"シェルの色",spawnAnother:"別のエージェント生成",spawnNewTitle:"新しいエージェント生成",specBootTime:"推定ブート時間",specBootTimeValue:"約3.2秒",specDesignation:"指定",specMode:"モード",specModeValue:"自律的",specPodAssignment:"ポッドの割り当て",specPodAssignmentValue:"デフォルト",specShellColor:"シェルの色",updateFailed:"更新失敗"},wb={agentChat:"エージェントチャット",chatButton:"チャット",contractTooltip:"縮小",current:{medium:"中",strong:"強い",weak:"弱い"},currentLabel:"潮流",disconnect:"切断",editAgentTitle:"エージェント編集",editButton:"✎ 編集",expandTooltip:"拡大",hudTitle:"HUD",missionLabel:"ミッション",missionValue:"深海作戦",podLabel:"ポッド",podRosterTitle:"ポッド名簿",podValue:"{{count}} 活動中",skillsTitle:"スキル",spawnAgent:"+エージェント生成",spawnAgentTitle:"エージェント生成",tideLogTitle:"潮流ログ",timeLabel:"時間",timeValue:"{{time}} UTC"},Nb={connect:"接続",connectingTitle:"接続中...",connectionFailedDefault:"ゲートウェイに接続できません。",connectionFailedTitle:"接続失敗",devicePaired:"デバイス ペアード",devicePairedDesc:"デバイス {{deviceId}} はこのゲートウェイに保存されたトークンを持っています",loginDescription:"OpenClawゲートウェイに接続します。デバイスは自動的にペアリングされます。",loginTitle:"ゲートウェイ ログイン",newDevice:"新しいデバイス",newDeviceDesc:"デバイス {{deviceId}} ― 初回のペアリングにはゲートウェイトークンが必要です",pairingDescription:"このデバイスは既存のオペレーターによる承認が必要です。<code>openclaw devices approve</code> を実行するか、オペレーターにペアリングリクエストを確認してもらってください。",pairingInProgress:"ペアリング進行中",pairingWaiting:"オペレーターの承認を待っています...",recent:"最近",recentConnections:"最近の接続",retryConnection:"接続再試行",tokenLabel:"ゲートウェイ トークン",tokenPlaceholder:"このデバイスをペアリングするにはゲートウェイトークンを貼り付けてください",tryAgain:"再試行",urlLabel:"ゲートウェイ URL"},Cb={noAvailable:"利用可能なスキルがありません",noMatching:"一致するスキルがありません",on:"オン",searchPlaceholder:"スキルを検索..."},Db={applyPatch:"パッチを適用",browser:"ブラウザ",completed:"完了",editFile:"ファイルを編集",fallback:"ツールコール",fetchUrl:"URLを取得",findFiles:"ファイルを探す",readFile:"ファイルを読む",runCommand:"コマンドを実行",searchCode:"コードを検索",subAgent:"サブエージェント",webSearch:"ウェブ検索",writeFile:"ファイルに書く"},kb={chat:Ab,connection:xb,creator:Rb,dashboard:wb,gateway:Nb,skills:Cb,tools:Db},Ob={clear:"지우기",clearTooltip:"채팅 기록 지우기",emptyState:"{{agentId}}에게 메시지를 보내세요",emptyStateHint:'"상태 보고" 또는 "무엇을 발견했나요?"를 시도하세요',newSession:"새로 만들기",newSessionTooltip:"이 에이전트와 새로운 세션 시작",placeholder:"{{agentId}}에게 메시지...",send:"보내기"},Lb={steps:{auth:{desc:"기기 신원 인증 중...",label:"기기 페어링"},discover:{desc:"지역 리프 네트워크 스캔 중...",label:"게이트웨이 검색 중"},handshake:{desc:"보안 핀치 프로토콜 설정 중...",label:"클로 핸드셰이크"},ready:{desc:"모든 시스템 정상. 리프에 오신 것을 환영합니다.",label:"게이트웨이 연결됨"},sync:{desc:"현재 지도 및 에이전트 명단 다운로드 중...",label:"조수 데이터 동기화 중"}}},zb={agentDeployed:"에이전트 배치됨",agentDesignation:"에이전트 명칭",cancel:"취소",cancelWithIcon:"✕ 취소",confirmDeploy:"🦞 확인하고 배치",deployFailed:"배치 실패",deploying:"⏳ 배치 중...",deploymentSpecs:"배치 사양",editBack:"← 편집",fillInName:"이름을 입력하세요",joinedPod:"포드에 합류했습니다",nameLabel:"이름",namePlaceholder:"예: CLAWZ, REEF, CORAL...",newBadge:"새로움",previewNext:"에이전트 미리보기 →",previewTitle:"에이전트 미리보기",save:"저장",saving:"⏳ 저장 중...",shellColor:"껍질 색상",spawnAnother:"다른 에이전트 생성",spawnNewTitle:"새 에이전트 생성",specBootTime:"예상 부팅 시간",specBootTimeValue:"~3.2초",specDesignation:"명칭",specMode:"모드",specModeValue:"자율",specPodAssignment:"포드 할당",specPodAssignmentValue:"기본값",specShellColor:"껍질 색상",updateFailed:"업데이트 실패"},Mb={agentChat:"에이전트 채팅",chatButton:"채팅",contractTooltip:"축소",current:{medium:"중간",strong:"강함",weak:"약함"},currentLabel:"현재",disconnect:"연결 해제",editAgentTitle:"에이전트 편집",editButton:"✎ 편집",expandTooltip:"확장",hudTitle:"HUD",missionLabel:"미션",missionValue:"심해 작업",podLabel:"포드",podRosterTitle:"포드 명단",podValue:"{{count}} 활성화됨",skillsTitle:"기술",spawnAgent:"+ 에이전트 생성",spawnAgentTitle:"에이전트 생성",tideLogTitle:"조수 기록",timeLabel:"시간",timeValue:"{{time}} UTC"},jb={connect:"연결",connectingTitle:"연결 중...",connectionFailedDefault:"게이트웨이에 연결할 수 없습니다.",connectionFailedTitle:"연결 실패",devicePaired:"기기 페어링됨",devicePairedDesc:"기기 {{deviceId}}에 이 게이트웨이의 저장된 토큰이 있습니다.",loginDescription:"OpenClaw 게이트웨이에 연결하십시오. 기기가 자동으로 페어링됩니다.",loginTitle:"게이트웨이 로그인",newDevice:"새 기기",newDeviceDesc:"기기 {{deviceId}} — 초기 페어링을 위한 게이트웨이 토큰이 필요합니다.",pairingDescription:"이 기기는 기존 운영자의 승인이 필요합니다. <code>openclaw devices approve</code>를 실행하거나 운영자에게 페어링 요청을 확인하도록 요청하십시오.",pairingInProgress:"페어링 진행 중",pairingWaiting:"운영자 승인 대기 중...",recent:"최근",recentConnections:"최근 연결",retryConnection:"연결 재시도",tokenLabel:"게이트웨이 토큰",tokenPlaceholder:"이 기기를 페어링하려면 게이트웨이 토큰을 붙여넣으세요",tryAgain:"다시 시도",urlLabel:"게이트웨이 URL"},Ub={noAvailable:"사용 가능한 기술 없음",noMatching:"일치하는 기술 없음",on:"켜짐",searchPlaceholder:"기술 검색..."},Bb={applyPatch:"패치 적용",browser:"브라우저",completed:"완료됨",editFile:"파일 편집",fallback:"도구 호출",fetchUrl:"URL 가져오기",findFiles:"파일 찾기",readFile:"파일 읽기",runCommand:"명령 실행",searchCode:"코드 검색",subAgent:"하위 에이전트",webSearch:"웹 검색",writeFile:"파일 쓰기"},_b={chat:Ob,connection:Lb,creator:zb,dashboard:Mb,gateway:jb,skills:Ub,tools:Bb},Hb={clear:"TØM",clearTooltip:"Tøm chat-historikk",emptyState:"Send en melding til {{agentId}}",emptyStateHint:'Prøv: "Statusrapport" eller "Hva fant du?"',newSession:"NY",newSessionTooltip:"Start en ny økt med denne agenten",placeholder:"Melding {{agentId}}...",send:"SEND"},Gb={steps:{auth:{desc:"Autentiserer enhetsidentitet...",label:"Enhetsparet"},discover:{desc:"Skanning lokal revnettverk...",label:"Oppdager gateway"},handshake:{desc:"Etablerer sikker knipeprotokoll...",label:"Kloklemming"},ready:{desc:"Alle systemer er nominelle. Velkommen til revet.",label:"Gateway tilkoblet"},sync:{desc:"Laster ned aktuelle kart og agentliste...",label:"Synkroniserer tidevannsdata"}}},Vb={agentDeployed:"AGENT UTPLASSERT",agentDesignation:"AGENTBETEGNELSE",cancel:"AVBRYT",cancelWithIcon:"✕ AVBRYT",confirmDeploy:"🦞 BEKREFT OG UTPLASSER",deployFailed:"Utplassering mislyktes",deploying:"⏳ UTPLASSERER...",deploymentSpecs:"UTPLASSERINGSSPESIFIKASJONER",editBack:"← REDIGER",fillInName:"Fyll inn et navn",joinedPod:"har sluttet seg til gruppen",nameLabel:"NAVN",namePlaceholder:"f.eks. CLAWZ, REEF, CORAL...",newBadge:"NY",previewNext:"FORHÅNDSVIS AGENT →",previewTitle:"FORHÅNDSVISNING AGENT",save:"LAGRE",saving:"⏳ LAGRER...",shellColor:"SKALLFARGE",spawnAnother:"OPPRETT EN TIL",spawnNewTitle:"OPPRETT NY AGENT",specBootTime:"Estimert Oppstartstid",specBootTimeValue:"~3.2s",specDesignation:"Betegnelse",specMode:"Modus",specModeValue:"Autonom",specPodAssignment:"Gruppetildeling",specPodAssignmentValue:"Standard",specShellColor:"Skallfarge",updateFailed:"Oppdatering mislyktes"},$b={agentChat:"AGENTCHAT",chatButton:"CHAT",contractTooltip:"Trekk sammen",current:{medium:"MEDIUM",strong:"STERK",weak:"SVAK"},currentLabel:"STRØM",disconnect:"KOBLE FRA",editAgentTitle:"REDIGER AGENT",editButton:"✎ REDIGER",expandTooltip:"Utvid",hudTitle:"HUD",missionLabel:"OPPDRAG",missionValue:"DYPLITTSOPPDRAG",podLabel:"GRUPPE",podRosterTitle:"GRUPPELISTER",podValue:"{{count}} AKTIV",skillsTitle:"FERDIGHETER",spawnAgent:"+ OPPRETT AGENT",spawnAgentTitle:"OPPRETT AGENT",tideLogTitle:"TIDEVANNSLOGG",timeLabel:"TID",timeValue:"{{time}} UTC"},Kb={connect:"KOBLE TIL",connectingTitle:"KOBLER TIL...",connectionFailedDefault:"Kunne ikke koble til gateway.",connectionFailedTitle:"TILKOBLING FEILET",devicePaired:"ENHET PARET",devicePairedDesc:"Enhet {{deviceId}} har et lagret token for denne gatewayen",loginDescription:"Koble til en OpenClaw Gateway. Enheten din vil bli paret automatisk.",loginTitle:"GATEWAY INNLOGGING",newDevice:"NY ENHET",newDeviceDesc:"Enhet {{deviceId}} — gateway-token nødvendig for førstegangspaaring",pairingDescription:"Denne enheten må godkjennes av en eksisterende operatør. Kjør <code>openclaw devices approve</code> eller be en operatør sjekke sine paringsforespørsler.",pairingInProgress:"Paring pågår",pairingWaiting:"Venter på operatørgodkjenning...",recent:"NYLIG",recentConnections:"NYLIGE TILKOBLINGER",retryConnection:"PRØV Å KOBLE TIL IGJEN",tokenLabel:"GATEWAY TOKEN",tokenPlaceholder:"Lim inn gateway-token for å pare denne enheten",tryAgain:"PRØV IGJEN",urlLabel:"GATEWAY URL"},qb={noAvailable:"Ingen tilgjengelige ferdigheter",noMatching:"Ingen samsvarende ferdigheter",on:"PÅ",searchPlaceholder:"Søk ferdigheter..."},Yb={applyPatch:"Påfør Lapp",browser:"Nettleser",completed:"Fullført",editFile:"Rediger Fil",fallback:"Verktøy Kall",fetchUrl:"Hent URL",findFiles:"Finn Filer",readFile:"Les Fil",runCommand:"Kjør Kommando",searchCode:"Søk Kode",subAgent:"Sub-agent",webSearch:"Nettsøk",writeFile:"Skriv Fil"},Ib={chat:Hb,connection:Gb,creator:Vb,dashboard:$b,gateway:Kb,skills:qb,tools:Yb},Xb={clear:"LIMPAR",clearTooltip:"Limpar histórico de chat",emptyState:"Envie uma mensagem para {{agentId}}",emptyStateHint:'Tente: "Relatório de status" ou "O que você encontrou?"',newSession:"NOVA",newSessionTooltip:"Iniciar uma nova sessão com este agente",placeholder:"Mensagem para {{agentId}}...",send:"ENVIAR"},Zb={steps:{auth:{desc:"Autenticando identidade do dispositivo...",label:"Pareamento do dispositivo"},discover:{desc:"Analisando rede local do recife...",label:"Descobrindo gateway"},handshake:{desc:"Estabelecendo protocolo seguro de pinça...",label:"Aperto de garra"},ready:{desc:"Todos os sistemas normais. Bem-vindo ao recife.",label:"Gateway conectado"},sync:{desc:"Baixando mapas atuais e lista de agentes...",label:"Sincronizando dados de maré"}}},Qb={agentDeployed:"AGENTE DESDOBRADO",agentDesignation:"DESIGNAÇÃO DO AGENTE",cancel:"CANCELAR",cancelWithIcon:"✕ CANCELAR",confirmDeploy:"🦞 CONFIRMAR E DESDOBRAR",deployFailed:"Desdobramento falhou",deploying:"⏳ DESDOBRANDO...",deploymentSpecs:"ESPECIFICAÇÕES DE IMPLEMENTAÇÃO",editBack:"← EDITAR",fillInName:"Preencha um nome",joinedPod:"entrou no pod",nameLabel:"NOME",namePlaceholder:"ex. CLAWZ, REEF, CORAL...",newBadge:"NOVO",previewNext:"PRÉ-VISUALIZAR AGENTE →",previewTitle:"PRÉ-VISUALIZAR AGENTE",save:"SALVAR",saving:"⏳ SALVANDO...",shellColor:"COR DA CASCA",spawnAnother:"GERAR OUTRO",spawnNewTitle:"GERAR NOVO AGENTE",specBootTime:"Tempo de Inicialização Estimado",specBootTimeValue:"~3.2s",specDesignation:"Designação",specMode:"Modo",specModeValue:"Autônomo",specPodAssignment:"Atribuição de Pod",specPodAssignmentValue:"Padrão",specShellColor:"Cor da Casca",updateFailed:"Falha na atualização"},Fb={agentChat:"CHAT DO AGENTE",chatButton:"CHAT",contractTooltip:"Contrair",current:{medium:"MÉDIA",strong:"FORTE",weak:"FRACA"},currentLabel:"CORRENTE",disconnect:"DESCONECTAR",editAgentTitle:"EDITAR AGENTE",editButton:"✎ EDITAR",expandTooltip:"Expandir",hudTitle:"HUD",missionLabel:"MISSÃO",missionValue:"OPERAÇÕES NO FUNDO DO MAR",podLabel:"POD",podRosterTitle:"LISTA DE POD",podValue:"{{count}} ATIVOS",skillsTitle:"HABILIDADES",spawnAgent:"+ GERAR AGENTE",spawnAgentTitle:"GERAR AGENTE",tideLogTitle:"REGISTRO DE MARÉ",timeLabel:"TEMPO",timeValue:"{{time}} UTC"},Jb={connect:"CONECTAR",connectingTitle:"CONECTANDO...",connectionFailedDefault:"Não foi possível conectar ao gateway.",connectionFailedTitle:"CONEXÃO FALHOU",devicePaired:"DISPOSITIVO PAREADO",devicePairedDesc:"Dispositivo {{deviceId}} possui um token armazenado para este gateway",loginDescription:"Conecte-se a um Gateway OpenClaw. Seu dispositivo será pareado automaticamente.",loginTitle:"LOGIN DO GATEWAY",newDevice:"NOVO DISPOSITIVO",newDeviceDesc:"Dispositivo {{deviceId}} — token do gateway necessário para o primeiro pareamento",pairingDescription:"Este dispositivo precisa ser aprovado por um operador existente. Execute <code>openclaw devices approve</code> ou peça a um operador para verificar suas solicitações de pareamento.",pairingInProgress:"Pareamento em andamento",pairingWaiting:"Aguardando aprovação do operador...",recent:"RECENTE",recentConnections:"CONEXÕES RECENTES",retryConnection:"TENTAR CONEXÃO NOVAMENTE",tokenLabel:"TOKEN DO GATEWAY",tokenPlaceholder:"Cole o token do gateway para parear este dispositivo",tryAgain:"TENTAR NOVAMENTE",urlLabel:"URL DO GATEWAY"},Pb={noAvailable:"Nenhuma habilidade disponível",noMatching:"Nenhuma habilidade correspondente",on:"LIGADO",searchPlaceholder:"Pesquisar habilidades..."},Wb={applyPatch:"Aplicar Patch",browser:"Navegador",completed:"Concluído",editFile:"Editar Arquivo",fallback:"Chamada de Ferramenta",fetchUrl:"Buscar URL",findFiles:"Encontrar Arquivos",readFile:"Ler Arquivo",runCommand:"Executar Comando",searchCode:"Pesquisar Código",subAgent:"Sub-Agente",webSearch:"Pesquisa na Web",writeFile:"Escrever Arquivo"},eS={chat:Xb,connection:Zb,creator:Qb,dashboard:Fb,gateway:Jb,skills:Pb,tools:Wb},tS={clear:"ОЧИСТИТЬ",clearTooltip:"Очистить историю чата",emptyState:"Отправьте сообщение {{agentId}}",emptyStateHint:'Попробуйте: "Отчет о состоянии" или "Что вы нашли?"',newSession:"НОВЫЙ",newSessionTooltip:"Начать новый сеанс с этим агентом",placeholder:"Сообщение {{agentId}}...",send:"ОТПРАВИТЬ"},nS={steps:{auth:{desc:"Аутентификация идентичности устройства...",label:"Сопряжение устройства"},discover:{desc:"Сканирование локальной сети рифа...",label:"Обнаружение шлюза"},handshake:{desc:"Установление безопасного протокола...",label:"Рукопожатие клешней"},ready:{desc:"Все системы в норме. Добро пожаловать на риф.",label:"Шлюз подключен"},sync:{desc:"Загрузка текущих карт и списка агентов...",label:"Синхронизация данных о приливах"}}},lS={agentDeployed:"АГЕНТ РАЗВЕРНУТ",agentDesignation:"ОБОЗНАЧЕНИЕ АГЕНТА",cancel:"ОТМЕНА",cancelWithIcon:"✕ ОТМЕНА",confirmDeploy:"🦞 ПОДТВЕРДИТЬ И РАЗВЕРНУТЬ",deployFailed:"Ошибка развертывания",deploying:"⏳ РАЗВЕРТЫВАНИЕ...",deploymentSpecs:"ХАРАКТЕРИСТИКИ РАЗВЕРТЫВАНИЯ",editBack:"← РЕДАКТИРОВАТЬ",fillInName:"Введите имя",joinedPod:"присоединился к капсуле",nameLabel:"ИМЯ",namePlaceholder:"например, CLAWZ, REEF, CORAL...",newBadge:"НОВОЕ",previewNext:"ПРЕДПРОСМОТР АГЕНТА →",previewTitle:"ПРЕДПРОСМОТР АГЕНТА",save:"СОХРАНИТЬ",saving:"⏳ СОХРАНЕНИЕ...",shellColor:"ЦВЕТ ПАНЦИРЯ",spawnAnother:"СОЗДАТЬ ЕЩЕ ОДНОГО",spawnNewTitle:"СОЗДАТЬ НОВОГО АГЕНТА",specBootTime:"Оценочное время загрузки",specBootTimeValue:"~3.2с",specDesignation:"Обозначение",specMode:"Режим",specModeValue:"Автономный",specPodAssignment:"Назначение капсулы",specPodAssignmentValue:"По умолчанию",specShellColor:"Цвет панциря",updateFailed:"Ошибка обновления"},aS={agentChat:"ЧАТ С АГЕНТОМ",chatButton:"ЧАТ",contractTooltip:"Свернуть",current:{medium:"СРЕДНЕЕ",strong:"СИЛЬНОЕ",weak:"СЛАБОЕ"},currentLabel:"ТЕЧЕНИЕ",disconnect:"ОТКЛЮЧИТЬ",editAgentTitle:"РЕДАКТИРОВАТЬ АГЕНТА",editButton:"✎ РЕДАКТИРОВАТЬ",expandTooltip:"Развернуть",hudTitle:"HUD",missionLabel:"МИССИЯ",missionValue:"ОПЕРАЦИИ В ГЛУБИНЕ",podLabel:"КАПСУЛА",podRosterTitle:"СПИСОК КАПСУЛ",podValue:"{{count}} АКТИВНО",skillsTitle:"НАВЫКИ",spawnAgent:"+ СОЗДАТЬ АГЕНТА",spawnAgentTitle:"СОЗДАТЬ АГЕНТА",tideLogTitle:"ЖУРНАЛ ПРИЛИВОВ",timeLabel:"ВРЕМЯ",timeValue:"{{time}} UTC"},iS={connect:"ПОДКЛЮЧИТЬ",connectingTitle:"ПОДКЛЮЧЕНИЕ...",connectionFailedDefault:"Не удалось подключиться к шлюзу.",connectionFailedTitle:"ПОДКЛЮЧЕНИЕ НЕ УДАЛОСЬ",devicePaired:"УСТРОЙСТВО СОПРЯЖЕНО",devicePairedDesc:"Устройство {{deviceId}} имеет сохраненный токен для этого шлюза",loginDescription:"Подключитесь к шлюзу OpenClaw. Ваше устройство будет сопряжено автоматически.",loginTitle:"ВОЙТИ В ШЛЮЗ",newDevice:"НОВОЕ УСТРОЙСТВО",newDeviceDesc:"Устройство {{deviceId}} — токен шлюза требуется для первого сопряжения",pairingDescription:"Это устройство должно быть одобрено существующим оператором. Запустите <code>openclaw devices approve</code> или попросите оператора проверить свои запросы на сопряжение.",pairingInProgress:"Сопряжение в процессе",pairingWaiting:"Ожидание одобрения оператора...",recent:"НЕДАВНИЕ",recentConnections:"НЕДАВНИЕ ПОДКЛЮЧЕНИЯ",retryConnection:"ПОВТОРИТЬ ПОДКЛЮЧЕНИЕ",tokenLabel:"ТОКЕН ШЛЮЗА",tokenPlaceholder:"Вставьте токен шлюза, чтобы сопрячь это устройство",tryAgain:"ПОВТОРИТЬ ПОПЫТКУ",urlLabel:"URL ШЛЮЗА"},sS={noAvailable:"Нет доступных навыков",noMatching:"Нет совпадающих навыков",on:"ВКЛ",searchPlaceholder:"Поиск навыков..."},oS={applyPatch:"Применить патч",browser:"Браузер",completed:"Завершено",editFile:"Редактировать файл",fallback:"Вызов инструмента",fetchUrl:"Получить URL",findFiles:"Найти файлы",readFile:"Читать файл",runCommand:"Выполнить команду",searchCode:"Поиск кода",subAgent:"Суб-агент",webSearch:"Поиск в сети",writeFile:"Записать файл"},rS={chat:tS,connection:nS,creator:lS,dashboard:aS,gateway:iS,skills:sS,tools:oS},cS={clear:"صاف کریں",clearTooltip:"چیٹ کی تاریخ صاف کریں",emptyState:"{{agentId}} کو پیغام بھیجیں",emptyStateHint:'آزمائیں: "اسٹیٹس رپورٹ" یا "کیا دریافت کیا؟"',newSession:"نیا",newSessionTooltip:"اس ایجنٹ کے ساتھ نیا سیشن شروع کریں",placeholder:"{{agentId}} کو پیغام...",send:"بھیجیں"},uS={steps:{auth:{desc:"آلہ کی شناخت کی توثیق کر رہا ہے...",label:"آلہ جوڑنا"},discover:{desc:"مقامی ریف نیٹ ورک کا اسکین کر رہا ہے...",label:"گیٹ وے دریافت کرنا"},handshake:{desc:"محفوظ پنچ پروٹوکول قائم کیا جا رہا ہے...",label:"کلیو مصافحہ"},ready:{desc:"تمام سسٹمز معمول پر ہیں۔ ریف میں خوش آمدید۔",label:"گیٹ وے مربوط"},sync:{desc:"موجودہ نقشے اور ایجنٹ کی فہرست ڈاؤن لوڈ کر رہا ہے...",label:"ٹائڈ ڈیٹا کو ہم آہنگ کرنا"}}},fS={agentDeployed:"ایجنٹ تعینات",agentDesignation:"ایجنٹ کی نامزدگی",cancel:"منسوخ کریں",cancelWithIcon:"✕ منسوخ کریں",confirmDeploy:"🦞 تصدیق کریں اور تعینات کریں",deployFailed:"تعیناتی ناکام",deploying:"⏳ تعینات کر رہا ہے...",deploymentSpecs:"تعیناتی کی تفصیلات",editBack:"← ترمیم کریں",fillInName:"ایک نام درج کریں",joinedPod:"پوڈ میں شامل ہوا ہے",nameLabel:"نام",namePlaceholder:"مثلاً کلاز، ریف، کورل...",newBadge:"نیا",previewNext:"ایجنٹ کا پیش نظارہ →",previewTitle:"ایجنٹ کا پیش نظارہ",save:"محفوظ کریں",saving:"⏳ محفوظ کر رہا ہے...",shellColor:"شیل رنگ",spawnAnother:"ایک اور پیدا کریں",spawnNewTitle:"نیا ایجنٹ پیدا کریں",specBootTime:"تخمینہ بوٹ وقت",specBootTimeValue:"~3.2 سیکنڈ",specDesignation:"نامزدگی",specMode:"موڈ",specModeValue:"خود مختار",specPodAssignment:"پوڈ اسائنمنٹ",specPodAssignmentValue:"ڈیفالٹ",specShellColor:"شیل رنگ",updateFailed:"اپ ڈیٹ ناکام ہوا"},dS={agentChat:"ایجنٹ چیٹ",chatButton:"چیٹ",contractTooltip:"معاہدہ",current:{medium:"درمیانہ",strong:"مضبوط",weak:"کمزور"},currentLabel:"موجودہ",disconnect:"منقطع کریں",editAgentTitle:"ایجنٹ میں ترمیم کریں",editButton:"✎ ترمیم کریں",expandTooltip:"توسیع",hudTitle:"ایچ یو ڈی",missionLabel:"مشن",missionValue:"ڈیپ سی آپس",podLabel:"پوڈ",podRosterTitle:"پوڈ فہرست",podValue:"{{count}} فعال",skillsTitle:"مہارتیں",spawnAgent:"+ ایجنٹ پیدا کریں",spawnAgentTitle:"ایجنٹ پیدا کریں",tideLogTitle:"ٹائڈ لاگ",timeLabel:"وقت",timeValue:"{{time}} یو ٹی سی"},hS={connect:"جڑیں",connectingTitle:"مربوط ہو رہا ہے...",connectionFailedDefault:"گیٹ وے سے جڑنے میں ناکامی۔",connectionFailedTitle:"کنکشن ناکام",devicePaired:"آلہ جوڑا گیا",devicePairedDesc:"آلہ {{deviceId}} کے پاس اس گیٹ وے کے لیے ایک ذخیرہ شدہ ٹوکن ہے",loginDescription:"ایک اوپن کلا گیٹ وے سے جڑیں۔ آپ کے آلے کو خود بخود جوڑ دیا جائے گا۔",loginTitle:"گیٹ وے لاگ ان",newDevice:"نیا آلہ",newDeviceDesc:"آلہ {{deviceId}} — پہلی بار جوڑنے کے لیے گیٹ وے ٹوکن درکار ہے",pairingDescription:"اس آلے کو موجودہ آپریٹر کی طرف سے منظور کرنے کی ضرورت ہے۔ <code>openclaw devices approve</code> چلائیں یا کسی آپریٹر سے کہیں کہ وہ ان کی جوڑنے کی درخواستیں چیک کریں۔",pairingInProgress:"جوڑنے کی کاروائی جاری ہے",pairingWaiting:"آپریٹر کی منظوری کے انتظار میں...",recent:"حالیہ",recentConnections:"حالیہ کنکشنز",retryConnection:"کنکشن دوبارہ کوشش کریں",tokenLabel:"گیٹ وے ٹوکن",tokenPlaceholder:"اس آلے کو جوڑنے کے لیے گیٹ وے ٹوکن چسپاں کریں",tryAgain:"دوبارہ کوشش کریں",urlLabel:"گیٹ وے یو آر ایل"},pS={noAvailable:"کوئی مہارت دستیاب نہیں",noMatching:"کوئی مطابقتی مہارتیں نہیں",on:"آن",searchPlaceholder:"مہارتیں تلاش کریں..."},gS={applyPatch:"پیچ لاگو کریں",browser:"براؤزر",completed:"مکمل ہوا",editFile:"فائل میں ترمیم کریں",fallback:"ٹول کال",fetchUrl:"یو آر ایل لائیں",findFiles:"فائلیں تلاش کریں",readFile:"فائل پڑھیں",runCommand:"کمانڈ چلائیں",searchCode:"کوڈ تلاش کریں",subAgent:"سب ایجنٹ",webSearch:"ویب تلاش",writeFile:"فائل لکھیں"},mS={chat:cS,connection:uS,creator:fS,dashboard:dS,gateway:hS,skills:pS,tools:gS},yS={clear:"XÓA",clearTooltip:"Xóa lịch sử trò chuyện",emptyState:"Gửi tin nhắn đến {{agentId}}",emptyStateHint:'Thử: "Báo cáo tình hình" hoặc "Bạn tìm thấy gì?"',newSession:"MỚI",newSessionTooltip:"Bắt đầu một phiên làm việc mới với tác nhân này",placeholder:"Tin nhắn {{agentId}}...",send:"GỬI"},bS={steps:{auth:{desc:"Xác thực danh tính thiết bị...",label:"Ghép nối thiết bị"},discover:{desc:"Quét mạng rạn san hô địa phương...",label:"Khám phá cổng"},handshake:{desc:"Thiết lập giao thức bảo mật chụp...",label:"Bắt tay vuốt"},ready:{desc:"Tất cả hệ thống bình thường. Chào mừng đến với rạn san hô.",label:"Kết nối cổng"},sync:{desc:"Tải xuống bản đồ hiện tại và danh sách tác nhân...",label:"Đồng bộ dữ liệu thủy triều"}}},SS={agentDeployed:"TÁC NHÂN ĐƯỢC TRIỂN KHAI",agentDesignation:"ĐỊNH DANH TÁC NHÂN",cancel:"HỦY",cancelWithIcon:"✕ HỦY",confirmDeploy:"🦞 XÁC NHẬN VÀ TRIỂN KHAI",deployFailed:"Triển khai thất bại",deploying:"⏳ ĐANG TRIỂN KHAI...",deploymentSpecs:"THÔNG SỐ TRIỂN KHAI",editBack:"← CHỈNH SỬA",fillInName:"Điền tên",joinedPod:"đã tham gia pod",nameLabel:"TÊN",namePlaceholder:"ví dụ: CLAWZ, REEF, CORAL...",newBadge:"MỚI",previewNext:"XEM TRƯỚC TÁC NHÂN →",previewTitle:"XEM TRƯỚC TÁC NHÂN",save:"LƯU",saving:"⏳ ĐANG LƯU...",shellColor:"MÀU VỎ",spawnAnother:"TẠO TÁC NHÂN KHÁC",spawnNewTitle:"TẠO TÁC NHÂN MỚI",specBootTime:"Thời gian khởi động dự kiến",specBootTimeValue:"~3.2s",specDesignation:"Định danh",specMode:"Chế độ",specModeValue:"Tự trị",specPodAssignment:"Gán pod",specPodAssignmentValue:"Mặc định",specShellColor:"Màu vỏ",updateFailed:"Cập nhật thất bại"},vS={agentChat:"TRÒ CHUYỆN TÁC NHÂN",chatButton:"TRÒ CHUYỆN",contractTooltip:"Thu nhỏ",current:{medium:"TRUNG BÌNH",strong:"MẠNH",weak:"YẾU"},currentLabel:"DÒNG CHẢY",disconnect:"NGẮT KẾT NỐI",editAgentTitle:"CHỈNH SỬA TÁC NHÂN",editButton:"✎ CHỈNH SỬA",expandTooltip:"Mở rộng",hudTitle:"HUD",missionLabel:"NHIỆM VỤ",missionValue:"TPS BIỂN SÂU",podLabel:"POD",podRosterTitle:"DANH SÁCH POD",podValue:"{{count}} ĐANG HOẠT ĐỘNG",skillsTitle:"KỸ NĂNG",spawnAgent:"+ TRÌNH SINH TẠO TÁC NHÂN",spawnAgentTitle:"TẠO TÁC NHÂN",tideLogTitle:"NHẬT KÝ THỦY TRIỀU",timeLabel:"THỜI GIAN",timeValue:"{{time}} UTC"},TS={connect:"KẾT NỐI",connectingTitle:"ĐANG KẾT NỐI...",connectionFailedDefault:"Không thể kết nối đến cổng.",connectionFailedTitle:"KẾT NỐI THẤT BẠI",devicePaired:"THIẾT BỊ ĐÃ GHÉP NỐI",devicePairedDesc:"Thiết bị {{deviceId}} có một mã thông báo lưu trữ cho cổng này",loginDescription:"Kết nối với OpenClaw Gateway. Thiết bị của bạn sẽ được ghép nối tự động.",loginTitle:"ĐĂNG NHẬP CỔNG",newDevice:"THIẾT BỊ MỚI",newDeviceDesc:"Thiết bị {{deviceId}} — mã thông báo cổng yêu cầu cho lần ghép nối đầu tiên",pairingDescription:"Thiết bị này cần được phê duyệt bởi một người điều hành hiện tại. Chạy <code>openclaw devices approve</code> hoặc yêu cầu người điều hành kiểm tra yêu cầu ghép nối của họ.",pairingInProgress:"Đang thực hiện ghép nối",pairingWaiting:"Đang chờ phê duyệt từ người điều hành...",recent:"GẦN ĐÂY",recentConnections:"KẾT NỐI GẦN ĐÂY",retryConnection:"THỬ LẠI KẾT NỐI",tokenLabel:"MÃ THÔNG BÁO CỔNG",tokenPlaceholder:"Dán mã thông báo cổng để ghép nối thiết bị này",tryAgain:"THỬ LẠI",urlLabel:"URL CỔNG"},ES={noAvailable:"Không có kỹ năng nào có sẵn",noMatching:"Không có kỹ năng phù hợp",on:"BẬT",searchPlaceholder:"Tìm kiếm kỹ năng..."},AS={applyPatch:"Áp dụng bản vá",browser:"Trình duyệt",completed:"Hoàn thành",editFile:"Chỉnh sửa tệp",fallback:"Gọi công cụ",fetchUrl:"Lấy URL",findFiles:"Tìm tệp",readFile:"Đọc tệp",runCommand:"Chạy lệnh",searchCode:"Tìm kiếm mã",subAgent:"Tác nhân phụ",webSearch:"Tìm kiếm web",writeFile:"Ghi tệp"},xS={chat:yS,connection:bS,creator:SS,dashboard:vS,gateway:TS,skills:ES,tools:AS},RS={clear:"清除",clearTooltip:"清除聊天记录",emptyState:"向{{agentId}}发送消息",emptyStateHint:'尝试: "状态报告" 或 "你发现了什么?"',newSession:"新建",newSessionTooltip:"与此代理开始新会话",placeholder:"消息{{agentId}}...",send:"发送"},wS={steps:{auth:{desc:"正在验证设备身份...",label:"设备配对"},discover:{desc:"正在扫描局域网珊瑚礁...",label:"发现网关"},handshake:{desc:"建立安全的捏协议...",label:"爪握手"},ready:{desc:"所有系统正常。欢迎来到珊瑚礁。",label:"网关已连接"},sync:{desc:"下载当前地图和代理人员名单...",label:"同步潮汐数据"}}},NS={agentDeployed:"代理已部署",agentDesignation:"代理命名",cancel:"取消",cancelWithIcon:"✕ 取消",confirmDeploy:"🦞 确认并部署",deployFailed:"部署失败",deploying:"⏳ 部署中...",deploymentSpecs:"部署规格",editBack:"← 编辑",fillInName:"请输入名称",joinedPod:"已加入模块",nameLabel:"名称",namePlaceholder:"例如 CLAWZ, REEF, CORAL...",newBadge:"新",previewNext:"预览代理 →",previewTitle:"预览代理",save:"保存",saving:"⏳ 保存中...",shellColor:"壳颜色",spawnAnother:"生成另一个",spawnNewTitle:"生成新代理",specBootTime:"预估启动时间",specBootTimeValue:"~3.2秒",specDesignation:"命名",specMode:"模式",specModeValue:"自动",specPodAssignment:"模块分配",specPodAssignmentValue:"默认",specShellColor:"壳颜色",updateFailed:"更新失败"},CS={agentChat:"代理聊天",chatButton:"聊天",contractTooltip:"收缩",current:{medium:"中",strong:"强",weak:"弱"},currentLabel:"电流",disconnect:"断开连接",editAgentTitle:"编辑代理",editButton:"✎ 编辑",expandTooltip:"展开",hudTitle:"显示器",missionLabel:"任务",missionValue:"深海行动",podLabel:"模块",podRosterTitle:"模块清单",podValue:"{{count}} 活跃",skillsTitle:"技能",spawnAgent:"+ 生成代理",spawnAgentTitle:"生成代理",tideLogTitle:"潮汐日志",timeLabel:"时间",timeValue:"{{time}} UTC"},DS={connect:"连接",connectingTitle:"连接中...",connectionFailedDefault:"无法连接到网关。",connectionFailedTitle:"连接失败",devicePaired:"设备已配对",devicePairedDesc:"设备{{deviceId}}已存储此网关的令牌",loginDescription:"连接到一个OpenClaw网关。您的设备将自动配对。",loginTitle:"网关登录",newDevice:"新设备",newDeviceDesc:"设备{{deviceId}} — 首次配对需要网关令牌",pairingDescription:"此设备需要现有操作员的批准。运行<code>openclaw devices approve</code>或请操作员查看他们的配对请求。",pairingInProgress:"配对进行中",pairingWaiting:"等待操作员批准...",recent:"最近",recentConnections:"最近连接",retryConnection:"重试连接",tokenLabel:"网关令牌",tokenPlaceholder:"粘贴网关令牌以配对此设备",tryAgain:"重试",urlLabel:"网关URL"},kS={noAvailable:"没有可用的技能",noMatching:"没有匹配的技能",on:"开",searchPlaceholder:"搜索技能..."},OS={applyPatch:"应用补丁",browser:"浏览器",completed:"完成",editFile:"编辑文件",fallback:"工具调用",fetchUrl:"获取URL",findFiles:"查找文件",readFile:"读取文件",runCommand:"运行命令",searchCode:"搜索代码",subAgent:"子代理",webSearch:"网络搜索",writeFile:"写入文件"},LS={chat:RS,connection:wS,creator:NS,dashboard:CS,gateway:DS,skills:kS,tools:OS},Sg={en:{translation:q0},zh:{translation:LS},hi:{translation:pb},id:{translation:Eb},pt:{translation:eS},ru:{translation:rS},es:{translation:P0},ja:{translation:kb},ar:{translation:v0},vi:{translation:xS},de:{translation:U0},bn:{translation:C0},ur:{translation:mS},ko:{translation:_b},fr:{translation:sb},no:{translation:Ib}},zS=localStorage.getItem("lobster-lounge-lang"),zp=navigator.language?.split("-")[0]||"en",MS=zS||(zp in Sg?zp:"en");Et.use(a0).init({resources:Sg,lng:MS,fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1}});Et.on("languageChanged",a=>{localStorage.setItem("lobster-lounge-lang",a)});var Hc={exports:{}},bi={},Gc={exports:{}},Vc={};var Mp;function jS(){return Mp||(Mp=1,(function(a){function i(j,Y){var F=j.length;j.push(Y);e:for(;0<F;){var de=F-1>>>1,be=j[de];if(0<u(be,Y))j[de]=Y,j[F]=be,F=de;else break e}}function o(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Y=j[0],F=j.pop();if(F!==Y){j[0]=F;e:for(var de=0,be=j.length,A=be>>>1;de<A;){var _=2*(de+1)-1,te=j[_],se=_+1,me=j[se];if(0>u(te,F))se<be&&0>u(me,te)?(j[de]=me,j[se]=F,de=se):(j[de]=te,j[_]=F,de=_);else if(se<be&&0>u(me,F))j[de]=me,j[se]=F,de=se;else break e}}return Y}function u(j,Y){var F=j.sortIndex-Y.sortIndex;return F!==0?F:j.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();a.unstable_now=function(){return d.now()-g}}var p=[],m=[],T=1,v=null,N=3,D=!1,O=!1,q=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function H(j){for(var Y=o(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=j)r(m),Y.sortIndex=Y.expirationTime,i(p,Y);else break;Y=o(m)}}function z(j){if(q=!1,H(j),!O)if(o(p)!==null)O=!0,ie||(ie=!0,re());else{var Y=o(m);Y!==null&&Le(z,Y.startTime-j)}}var ie=!1,Z=-1,P=5,ae=-1;function ne(){return J?!0:!(a.unstable_now()-ae<P)}function X(){if(J=!1,ie){var j=a.unstable_now();ae=j;var Y=!0;try{e:{O=!1,q&&(q=!1,I(Z),Z=-1),D=!0;var F=N;try{t:{for(H(j),v=o(p);v!==null&&!(v.expirationTime>j&&ne());){var de=v.callback;if(typeof de=="function"){v.callback=null,N=v.priorityLevel;var be=de(v.expirationTime<=j);if(j=a.unstable_now(),typeof be=="function"){v.callback=be,H(j),Y=!0;break t}v===o(p)&&r(p),H(j)}else r(p);v=o(p)}if(v!==null)Y=!0;else{var A=o(m);A!==null&&Le(z,A.startTime-j),Y=!1}}break e}finally{v=null,N=F,D=!1}Y=void 0}}finally{Y?re():ie=!1}}}var re;if(typeof ee=="function")re=function(){ee(X)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,fe=W.port2;W.port1.onmessage=X,re=function(){fe.postMessage(null)}}else re=function(){Q(X,0)};function Le(j,Y){Z=Q(function(){j(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(j){j.callback=null},a.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"):P=0<j?Math.floor(1e3/j):5},a.unstable_getCurrentPriorityLevel=function(){return N},a.unstable_next=function(j){switch(N){case 1:case 2:case 3:var Y=3;break;default:Y=N}var F=N;N=Y;try{return j()}finally{N=F}},a.unstable_requestPaint=function(){J=!0},a.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=N;N=j;try{return Y()}finally{N=F}},a.unstable_scheduleCallback=function(j,Y,F){var de=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?de+F:de):F=de,j){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=F+be,j={id:T++,callback:Y,priorityLevel:j,startTime:F,expirationTime:be,sortIndex:-1},F>de?(j.sortIndex=F,i(m,j),o(p)===null&&j===o(m)&&(q?(I(Z),Z=-1):q=!0,Le(z,F-de))):(j.sortIndex=be,i(p,j),O||D||(O=!0,ie||(ie=!0,re()))),j},a.unstable_shouldYield=ne,a.unstable_wrapCallback=function(j){var Y=N;return function(){var F=N;N=Y;try{return j.apply(this,arguments)}finally{N=F}}}})(Vc)),Vc}var jp;function US(){return jp||(jp=1,Gc.exports=jS()),Gc.exports}var $c={exports:{}},Tt={};var Up;function BS(){if(Up)return Tt;Up=1;var a=ho();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)m+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,m,T){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:p,containerInfo:m,implementation:T}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tt.createPortal=function(p,m){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(p,m,null,T)},Tt.flushSync=function(p){var m=d.T,T=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=m,r.p=T,r.d.f()}},Tt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},Tt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Tt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var T=m.as,v=g(T,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;T==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:D}):T==="script"&&r.d.X(p,{crossOrigin:v,integrity:N,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Tt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var T=g(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},Tt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var T=m.as,v=g(T,m.crossOrigin);r.d.L(p,T,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Tt.preloadModule=function(p,m){if(typeof p=="string")if(m){var T=g(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},Tt.requestFormReset=function(p){r.d.r(p)},Tt.unstable_batchedUpdates=function(p,m){return p(m)},Tt.useFormState=function(p,m,T){return d.H.useFormState(p,m,T)},Tt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var Bp;function _S(){if(Bp)return $c.exports;Bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),$c.exports=BS(),$c.exports}var _p;function HS(){if(_p)return bi;_p=1;var a=US(),i=ho(),o=_S();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 g(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 p(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return p(s),e;if(c===l)return p(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=s,l=c;else{for(var h=!1,y=s.child;y;){if(y===n){h=!0,n=s,l=c;break}if(y===l){h=!0,l=s,n=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===n){h=!0,n=c,l=s;break}if(y===l){h=!0,l=c,n=s;break}y=y.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,N=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case Q:return"Profiler";case J:return"StrictMode";case z:return"Suspense";case ie:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case ee:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var Le=Array.isArray,j=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},de=[],be=-1;function A(e){return{current:e}}function _(e){0>be||(e.current=de[be],de[be]=null,be--)}function te(e,t){be++,de[be]=e.current,e.current=t}var se=A(null),me=A(null),Ee=A(null),le=A(null);function Ve(e,t){switch(te(Ee,t),te(me,e),te(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lh(t),e=zh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(se),te(se,e)}function Ye(){_(se),_(me),_(Ee)}function Rt(e){e.memoizedState!==null&&te(le,e);var t=se.current,n=zh(t,e.type);t!==n&&(te(me,e),te(se,n))}function jt(e){me.current===e&&(_(se),_(me)),le.current===e&&(_(le),di._currentValue=F)}var pe,De;function Se(e){if(pe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||"",De=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+pe+e+De}var xe=!1;function Fe(e,t){if(!e||xe)return"";xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(B){var M=B}Reflect.construct(e,[],$)}else{try{$.call()}catch(B){M=B}e.call($.prototype)}}else{try{throw Error()}catch(B){M=B}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(B){if(B&&M&&typeof B.stack=="string")return[B.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var E=h.split(`
|
|
4
|
+
`),L=y.split(`
|
|
5
|
+
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===L.length)for(l=E.length-1,s=L.length-1;1<=l&&0<=s&&E[l]!==L[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==L[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==L[s]){var G=`
|
|
6
|
+
`+E[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=s);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Se(n):""}function ze(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return e.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Fe(e.type,!1);case 11:return Fe(e.type.render,!1);case 1:return Fe(e.type,!0);case 31:return Se("Activity");default:return""}}function St(e){try{var t="",n=null;do t+=ze(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Un=Object.prototype.hasOwnProperty,ul=a.unstable_scheduleCallback,wt=a.unstable_cancelCallback,Bn=a.unstable_shouldYield,ot=a.unstable_requestPaint,rt=a.unstable_now,Ml=a.unstable_getCurrentPriorityLevel,Aa=a.unstable_ImmediatePriority,jl=a.unstable_UserBlockingPriority,fl=a.unstable_NormalPriority,Oi=a.unstable_LowPriority,xa=a.unstable_IdlePriority,Je=a.log,_e=a.unstable_setDisableYieldValue,Pe=null,ct=null;function qt(e){if(typeof Je=="function"&&_e(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Pe,e)}catch{}}var ht=Math.clz32?Math.clz32:Fg,vt=Math.log,cn=Math.LN2;function Fg(e){return e>>>=0,e===0?32:31-(vt(e)/cn|0)|0}var Li=256,zi=262144,Mi=4194304;function dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ji(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~c,l!==0?s=dl(l):(h&=y,h!==0?s=dl(h):n||(n=y&~e,n!==0&&(s=dl(n))))):(y=l&~c,y!==0?s=dl(y):h!==0?s=dl(h):n||(n=l&~e,n!==0&&(s=dl(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Ra(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function du(){var e=Mi;return Mi<<=1,(Mi&62914560)===0&&(Mi=4194304),e}function So(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pg(e,t,n,l,s,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,E=e.expirationTimes,L=e.hiddenUpdates;for(n=h&~n;0<n;){var G=31-ht(n),$=1<<G;y[G]=0,E[G]=-1;var M=L[G];if(M!==null)for(L[G]=null,G=0;G<M.length;G++){var B=M[G];B!==null&&(B.lane&=-536870913)}n&=~$}l!==0&&hu(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function hu(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function pu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function gu(e,t){var n=t&-t;return n=(n&42)!==0?1:vo(n),(n&(e.suspendedLanes|t))!==0?0:n}function vo(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 To(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mu(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:np(e.type))}function yu(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var _n=Math.random().toString(36).slice(2),pt="__reactFiber$"+_n,Nt="__reactProps$"+_n,Ul="__reactContainer$"+_n,Eo="__reactEvents$"+_n,Wg="__reactListeners$"+_n,em="__reactHandles$"+_n,bu="__reactResources$"+_n,Na="__reactMarker$"+_n;function Ao(e){delete e[pt],delete e[Nt],delete e[Eo],delete e[Wg],delete e[em]}function Bl(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ul]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gh(e);e!==null;){if(n=e[pt])return n;e=Gh(e)}return t}e=n,n=e.parentNode}return null}function _l(e){if(e=e[pt]||e[Ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ca(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Hl(e){var t=e[bu];return t||(t=e[bu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Na]=!0}var Su=new Set,vu={};function hl(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for(vu[e]=t,e=0;e<t.length;e++)Su.add(t[e])}var tm=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]*$"),Tu={},Eu={};function nm(e){return Un.call(Eu,e)?!0:Un.call(Tu,e)?!1:tm.test(e)?Eu[e]=!0:(Tu[e]=!0,!1)}function Ui(e,t,n){if(nm(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function mn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Au(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lm(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xo(e){if(!e._valueTracker){var t=Au(e)?"checked":"value";e._valueTracker=lm(e,t,""+e[t])}}function xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Au(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function _i(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}}var am=/[\n"\\]/g;function It(e){return e.replace(am,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ro(e,t,n,l,s,c,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?wo(e,h,Yt(t)):n!=null?wo(e,h,Yt(n)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Yt(y):e.removeAttribute("name")}function Ru(e,t,n,l,s,c,h,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){xo(e);return}n=n!=null?""+Yt(n):"",t=t!=null?""+Yt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),xo(e)}function wo(e,t,n){t==="number"&&_i(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vl(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Yt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function wu(e,t,n){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Yt(n):""}function Nu(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(Le(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Yt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),xo(e)}function $l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var im=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cu(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||im.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Du(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&Cu(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&Cu(e,c,t[c])}function No(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sm=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"]]),om=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hi(e){return om.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var Co=null;function Do(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,ql=null;function ku(e){var t=_l(e);if(t&&(e=t.stateNode)){var n=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ro(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[Nt]||null;if(!s)throw Error(r(90));Ro(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&xu(l)}break e;case"textarea":wu(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vl(e,!!n.multiple,t,!1)}}}var ko=!1;function Ou(e,t,n){if(ko)return e(t,n);ko=!0;try{var l=e(t);return l}finally{if(ko=!1,(Kl!==null||ql!==null)&&(ws(),Kl&&(t=Kl,e=ql,ql=Kl=null,ku(t),e)))for(t=0;t<e.length;t++)ku(e[t])}}function Da(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Nt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(bn)try{var ka={};Object.defineProperty(ka,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",ka,ka),window.removeEventListener("test",ka,ka)}catch{Oo=!1}var Hn=null,Lo=null,Gi=null;function Lu(){if(Gi)return Gi;var e,t=Lo,n=t.length,l,s="value"in Hn?Hn.value:Hn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===s[c-l];l++);return Gi=s.slice(e,1<l?1-l:void 0)}function Vi(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 $i(){return!0}function zu(){return!1}function Ct(e){function t(n,l,s,c,h){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$i:zu,this.isPropagationStopped=zu,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$i)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),t}var pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=Ct(pl),Oa=v({},pl,{view:0,detail:0}),rm=Ct(Oa),zo,Mo,La,qi=v({},Oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,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!==La&&(La&&e.type==="mousemove"?(zo=e.screenX-La.screenX,Mo=e.screenY-La.screenY):Mo=zo=0,La=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),Mu=Ct(qi),cm=v({},qi,{dataTransfer:0}),um=Ct(cm),fm=v({},Oa,{relatedTarget:0}),jo=Ct(fm),dm=v({},pl,{animationName:0,elapsedTime:0,pseudoElement:0}),hm=Ct(dm),pm=v({},pl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gm=Ct(pm),mm=v({},pl,{data:0}),ju=Ct(mm),ym={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bm={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"},Sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sm[e])?!!t[e]:!1}function Uo(){return vm}var Tm=v({},Oa,{key:function(e){if(e.key){var t=ym[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(e){return e.type==="keypress"?Vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Em=Ct(Tm),Am=v({},qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uu=Ct(Am),xm=v({},Oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),Rm=Ct(xm),wm=v({},pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Nm=Ct(wm),Cm=v({},qi,{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}),Dm=Ct(Cm),km=v({},pl,{newState:0,oldState:0}),Om=Ct(km),Lm=[9,13,27,32],Bo=bn&&"CompositionEvent"in window,za=null;bn&&"documentMode"in document&&(za=document.documentMode);var zm=bn&&"TextEvent"in window&&!za,Bu=bn&&(!Bo||za&&8<za&&11>=za),_u=" ",Hu=!1;function Gu(e,t){switch(e){case"keyup":return Lm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Mm(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Hu=!0,_u);case"textInput":return e=t.data,e===_u&&Hu?null:e;default:return null}}function jm(e,t){if(Yl)return e==="compositionend"||!Bo&&Gu(e,t)?(e=Lu(),Gi=Lo=Hn=null,Yl=!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 Bu&&t.locale!=="ko"?null:t.data;default:return null}}var Um={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $u(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Um[e.type]:t==="textarea"}function Ku(e,t,n,l){Kl?ql?ql.push(l):ql=[l]:Kl=l,t=zs(t,"onChange"),0<t.length&&(n=new Ki("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ma=null,ja=null;function Bm(e){wh(e,0)}function Yi(e){var t=Ca(e);if(xu(t))return e}function qu(e,t){if(e==="change")return t}var Yu=!1;if(bn){var _o;if(bn){var Ho="oninput"in document;if(!Ho){var Iu=document.createElement("div");Iu.setAttribute("oninput","return;"),Ho=typeof Iu.oninput=="function"}_o=Ho}else _o=!1;Yu=_o&&(!document.documentMode||9<document.documentMode)}function Xu(){Ma&&(Ma.detachEvent("onpropertychange",Zu),ja=Ma=null)}function Zu(e){if(e.propertyName==="value"&&Yi(ja)){var t=[];Ku(t,ja,e,Do(e)),Ou(Bm,t)}}function _m(e,t,n){e==="focusin"?(Xu(),Ma=t,ja=n,Ma.attachEvent("onpropertychange",Zu)):e==="focusout"&&Xu()}function Hm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(ja)}function Gm(e,t){if(e==="click")return Yi(t)}function Vm(e,t){if(e==="input"||e==="change")return Yi(t)}function $m(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:$m;function Ua(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!Un.call(t,s)||!Ut(e[s],t[s]))return!1}return!0}function Qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fu(e,t){var n=Qu(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qu(n)}}function Ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_i(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_i(e.document)}return t}function Go(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Km=bn&&"documentMode"in document&&11>=document.documentMode,Il=null,Vo=null,Ba=null,$o=!1;function Wu(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$o||Il==null||Il!==_i(l)||(l=Il,"selectionStart"in l&&Go(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ba&&Ua(Ba,l)||(Ba=l,l=zs(Vo,"onSelect"),0<l.length&&(t=new Ki("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Il)))}function gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xl={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionrun:gl("Transition","TransitionRun"),transitionstart:gl("Transition","TransitionStart"),transitioncancel:gl("Transition","TransitionCancel"),transitionend:gl("Transition","TransitionEnd")},Ko={},ef={};bn&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function ml(e){if(Ko[e])return Ko[e];if(!Xl[e])return e;var t=Xl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ef)return Ko[e]=t[n];return e}var tf=ml("animationend"),nf=ml("animationiteration"),lf=ml("animationstart"),qm=ml("transitionrun"),Ym=ml("transitionstart"),Im=ml("transitioncancel"),af=ml("transitionend"),sf=new Map,qo="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(" ");qo.push("scrollEnd");function nn(e,t){sf.set(e,t),hl(t,[e])}var Ii=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)},Xt=[],Zl=0,Yo=0;function Xi(){for(var e=Zl,t=Yo=Zl=0;t<e;){var n=Xt[t];Xt[t++]=null;var l=Xt[t];Xt[t++]=null;var s=Xt[t];Xt[t++]=null;var c=Xt[t];if(Xt[t++]=null,l!==null&&s!==null){var h=l.pending;h===null?s.next=s:(s.next=h.next,h.next=s),l.pending=s}c!==0&&of(n,s,c)}}function Zi(e,t,n,l){Xt[Zl++]=e,Xt[Zl++]=t,Xt[Zl++]=n,Xt[Zl++]=l,Yo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Io(e,t,n,l){return Zi(e,t,n,l),Qi(e)}function yl(e,t){return Zi(e,null,null,t),Qi(e)}function of(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ht(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function Qi(e){if(50<ii)throw ii=0,tc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function Xm(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,l){return new Xm(e,t,n,l)}function Xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function rf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fi(e,t,n,l,s,c){var h=0;if(l=e,typeof e=="function")Xo(e)&&(h=1);else if(typeof e=="string")h=Py(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Bt(31,n,t,s),e.elementType=ae,e.lanes=c,e;case q:return bl(n.children,s,c,t);case J:h=8,s|=24;break;case Q:return e=Bt(12,n,t,s|2),e.elementType=Q,e.lanes=c,e;case z:return e=Bt(13,n,t,s),e.elementType=z,e.lanes=c,e;case ie:return e=Bt(19,n,t,s),e.elementType=ie,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ee:h=10;break e;case I:h=9;break e;case H:h=11;break e;case Z:h=14;break e;case P:h=16,l=null;break e}h=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Bt(h,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function bl(e,t,n,l){return e=Bt(7,e,l,t),e.lanes=n,e}function Zo(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function cf(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var uf=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var n=uf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:St(t)},uf.set(e,t),t)}return{value:e,source:t,stack:St(t)}}var Fl=[],Jl=0,Ji=null,_a=0,Qt=[],Ft=0,Gn=null,un=1,fn="";function vn(e,t){Fl[Jl++]=_a,Fl[Jl++]=Ji,Ji=e,_a=t}function ff(e,t,n){Qt[Ft++]=un,Qt[Ft++]=fn,Qt[Ft++]=Gn,Gn=e;var l=un;e=fn;var s=32-ht(l)-1;l&=~(1<<s),n+=1;var c=32-ht(t)+s;if(30<c){var h=s-s%5;c=(l&(1<<h)-1).toString(32),l>>=h,s-=h,un=1<<32-ht(t)+s|n<<s|l,fn=c+e}else un=1<<c|n<<s|l,fn=e}function Fo(e){e.return!==null&&(vn(e,1),ff(e,1,0))}function Jo(e){for(;e===Ji;)Ji=Fl[--Jl],Fl[Jl]=null,_a=Fl[--Jl],Fl[Jl]=null;for(;e===Gn;)Gn=Qt[--Ft],Qt[Ft]=null,fn=Qt[--Ft],Qt[Ft]=null,un=Qt[--Ft],Qt[Ft]=null}function df(e,t){Qt[Ft++]=un,Qt[Ft++]=fn,Qt[Ft++]=Gn,un=t.id,fn=t.overflow,Gn=e}var gt=null,Xe=null,ke=!1,Vn=null,Jt=!1,Po=Error(r(519));function $n(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ha(Zt(t,e)),Po}function hf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[pt]=e,t[Nt]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<oi.length;n++)we(oi[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Ru(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Nu(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||kh(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||$n(e,!0)}function pf(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:gt=gt.return}}function Pl(e){if(e!==gt)return!1;if(!ke)return pf(e),ke=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||mc(e.type,e.memoizedProps)),n=!n),n&&Xe&&$n(e),pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=Hh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=Hh(e)}else t===27?(t=Xe,nl(e.type)?(e=Tc,Tc=null,Xe=e):Xe=t):Xe=gt?Wt(e.stateNode.nextSibling):null;return!0}function Sl(){Xe=gt=null,ke=!1}function Wo(){var e=Vn;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Vn=null),e}function Ha(e){Vn===null?Vn=[e]:Vn.push(e)}var er=A(null),vl=null,Tn=null;function Kn(e,t,n){te(er,t._currentValue),t._currentValue=n}function En(e){e._currentValue=er.current,_(er)}function tr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function nr(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var h=s.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=s;for(var E=0;E<t.length;E++)if(y.context===t[E]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),tr(c.return,n,e),l||(h=null);break e}c=y.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error(r(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),tr(h,n,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function Wl(e,t,n,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var h=s.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var y=s.type;Ut(s.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(s===le.current){if(h=s.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(di):e=[di])}s=s.return}e!==null&&nr(t,e,n,l),t.flags|=262144}function Pi(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){vl=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return gf(vl,e)}function Wi(e,t){return vl===null&&Tl(e),gf(e,t)}function gf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Tn===null){if(e===null)throw Error(r(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return n}var Zm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Qm=a.unstable_scheduleCallback,Fm=a.unstable_NormalPriority,lt={$$typeof:ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lr(){return{controller:new Zm,data:new Map,refCount:0}}function Ga(e){e.refCount--,e.refCount===0&&Qm(Fm,function(){e.controller.abort()})}var Va=null,ar=0,ea=0,ta=null;function Jm(e,t){if(Va===null){var n=Va=[];ar=0,ea=oc(),ta={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ar++,t.then(mf,mf),t}function mf(){if(--ar===0&&Va!==null){ta!==null&&(ta.status="fulfilled");var e=Va;Va=null,ea=0,ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pm(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var yf=j.S;j.S=function(e,t){eh=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Jm(e,t),yf!==null&&yf(e,t)};var El=A(null);function ir(){var e=El.current;return e!==null?e:Ie.pooledCache}function es(e,t){t===null?te(El,El.current):te(El,t.pool)}function bf(){var e=ir();return e===null?null:{parent:lt._currentValue,pool:e}}var na=Error(r(460)),sr=Error(r(474)),ts=Error(r(542)),ns={then:function(){}};function Sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ef(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ef(e),e}throw xl=t,na}}function Al(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xl=n,na):n}}var xl=null;function Tf(){if(xl===null)throw Error(r(459));var e=xl;return xl=null,e}function Ef(e){if(e===na||e===ts)throw Error(r(483))}var la=null,$a=0;function ls(e){var t=$a;return $a+=1,la===null&&(la=[]),vf(la,e,t)}function Ka(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function as(e,t){throw t.$$typeof===N?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Af(e){function t(C,x){if(e){var k=C.deletions;k===null?(C.deletions=[x],C.flags|=16):k.push(x)}}function n(C,x){if(!e)return null;for(;x!==null;)t(C,x),x=x.sibling;return null}function l(C){for(var x=new Map;C!==null;)C.key!==null?x.set(C.key,C):x.set(C.index,C),C=C.sibling;return x}function s(C,x){return C=Sn(C,x),C.index=0,C.sibling=null,C}function c(C,x,k){return C.index=k,e?(k=C.alternate,k!==null?(k=k.index,k<x?(C.flags|=67108866,x):k):(C.flags|=67108866,x)):(C.flags|=1048576,x)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function y(C,x,k,V){return x===null||x.tag!==6?(x=Zo(k,C.mode,V),x.return=C,x):(x=s(x,k),x.return=C,x)}function E(C,x,k,V){var ue=k.type;return ue===q?G(C,x,k.props.children,V,k.key):x!==null&&(x.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Al(ue)===x.type)?(x=s(x,k.props),Ka(x,k),x.return=C,x):(x=Fi(k.type,k.key,k.props,null,C.mode,V),Ka(x,k),x.return=C,x)}function L(C,x,k,V){return x===null||x.tag!==4||x.stateNode.containerInfo!==k.containerInfo||x.stateNode.implementation!==k.implementation?(x=Qo(k,C.mode,V),x.return=C,x):(x=s(x,k.children||[]),x.return=C,x)}function G(C,x,k,V,ue){return x===null||x.tag!==7?(x=bl(k,C.mode,V,ue),x.return=C,x):(x=s(x,k),x.return=C,x)}function $(C,x,k){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Zo(""+x,C.mode,k),x.return=C,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case D:return k=Fi(x.type,x.key,x.props,null,C.mode,k),Ka(k,x),k.return=C,k;case O:return x=Qo(x,C.mode,k),x.return=C,x;case P:return x=Al(x),$(C,x,k)}if(Le(x)||re(x))return x=bl(x,C.mode,k,null),x.return=C,x;if(typeof x.then=="function")return $(C,ls(x),k);if(x.$$typeof===ee)return $(C,Wi(C,x),k);as(C,x)}return null}function M(C,x,k,V){var ue=x!==null?x.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ue!==null?null:y(C,x,""+k,V);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case D:return k.key===ue?E(C,x,k,V):null;case O:return k.key===ue?L(C,x,k,V):null;case P:return k=Al(k),M(C,x,k,V)}if(Le(k)||re(k))return ue!==null?null:G(C,x,k,V,null);if(typeof k.then=="function")return M(C,x,ls(k),V);if(k.$$typeof===ee)return M(C,x,Wi(C,k),V);as(C,k)}return null}function B(C,x,k,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return C=C.get(k)||null,y(x,C,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case D:return C=C.get(V.key===null?k:V.key)||null,E(x,C,V,ue);case O:return C=C.get(V.key===null?k:V.key)||null,L(x,C,V,ue);case P:return V=Al(V),B(C,x,k,V,ue)}if(Le(V)||re(V))return C=C.get(k)||null,G(x,C,V,ue,null);if(typeof V.then=="function")return B(C,x,k,ls(V),ue);if(V.$$typeof===ee)return B(C,x,k,Wi(x,V),ue);as(x,V)}return null}function oe(C,x,k,V){for(var ue=null,Me=null,ce=x,Ae=x=0,Ce=null;ce!==null&&Ae<k.length;Ae++){ce.index>Ae?(Ce=ce,ce=null):Ce=ce.sibling;var je=M(C,ce,k[Ae],V);if(je===null){ce===null&&(ce=Ce);break}e&&ce&&je.alternate===null&&t(C,ce),x=c(je,x,Ae),Me===null?ue=je:Me.sibling=je,Me=je,ce=Ce}if(Ae===k.length)return n(C,ce),ke&&vn(C,Ae),ue;if(ce===null){for(;Ae<k.length;Ae++)ce=$(C,k[Ae],V),ce!==null&&(x=c(ce,x,Ae),Me===null?ue=ce:Me.sibling=ce,Me=ce);return ke&&vn(C,Ae),ue}for(ce=l(ce);Ae<k.length;Ae++)Ce=B(ce,C,Ae,k[Ae],V),Ce!==null&&(e&&Ce.alternate!==null&&ce.delete(Ce.key===null?Ae:Ce.key),x=c(Ce,x,Ae),Me===null?ue=Ce:Me.sibling=Ce,Me=Ce);return e&&ce.forEach(function(ol){return t(C,ol)}),ke&&vn(C,Ae),ue}function he(C,x,k,V){if(k==null)throw Error(r(151));for(var ue=null,Me=null,ce=x,Ae=x=0,Ce=null,je=k.next();ce!==null&&!je.done;Ae++,je=k.next()){ce.index>Ae?(Ce=ce,ce=null):Ce=ce.sibling;var ol=M(C,ce,je.value,V);if(ol===null){ce===null&&(ce=Ce);break}e&&ce&&ol.alternate===null&&t(C,ce),x=c(ol,x,Ae),Me===null?ue=ol:Me.sibling=ol,Me=ol,ce=Ce}if(je.done)return n(C,ce),ke&&vn(C,Ae),ue;if(ce===null){for(;!je.done;Ae++,je=k.next())je=$(C,je.value,V),je!==null&&(x=c(je,x,Ae),Me===null?ue=je:Me.sibling=je,Me=je);return ke&&vn(C,Ae),ue}for(ce=l(ce);!je.done;Ae++,je=k.next())je=B(ce,C,Ae,je.value,V),je!==null&&(e&&je.alternate!==null&&ce.delete(je.key===null?Ae:je.key),x=c(je,x,Ae),Me===null?ue=je:Me.sibling=je,Me=je);return e&&ce.forEach(function(c1){return t(C,c1)}),ke&&vn(C,Ae),ue}function qe(C,x,k,V){if(typeof k=="object"&&k!==null&&k.type===q&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case D:e:{for(var ue=k.key;x!==null;){if(x.key===ue){if(ue=k.type,ue===q){if(x.tag===7){n(C,x.sibling),V=s(x,k.props.children),V.return=C,C=V;break e}}else if(x.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Al(ue)===x.type){n(C,x.sibling),V=s(x,k.props),Ka(V,k),V.return=C,C=V;break e}n(C,x);break}else t(C,x);x=x.sibling}k.type===q?(V=bl(k.props.children,C.mode,V,k.key),V.return=C,C=V):(V=Fi(k.type,k.key,k.props,null,C.mode,V),Ka(V,k),V.return=C,C=V)}return h(C);case O:e:{for(ue=k.key;x!==null;){if(x.key===ue)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(C,x.sibling),V=s(x,k.children||[]),V.return=C,C=V;break e}else{n(C,x);break}else t(C,x);x=x.sibling}V=Qo(k,C.mode,V),V.return=C,C=V}return h(C);case P:return k=Al(k),qe(C,x,k,V)}if(Le(k))return oe(C,x,k,V);if(re(k)){if(ue=re(k),typeof ue!="function")throw Error(r(150));return k=ue.call(k),he(C,x,k,V)}if(typeof k.then=="function")return qe(C,x,ls(k),V);if(k.$$typeof===ee)return qe(C,x,Wi(C,k),V);as(C,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,x!==null&&x.tag===6?(n(C,x.sibling),V=s(x,k),V.return=C,C=V):(n(C,x),V=Zo(k,C.mode,V),V.return=C,C=V),h(C)):n(C,x)}return function(C,x,k,V){try{$a=0;var ue=qe(C,x,k,V);return la=null,ue}catch(ce){if(ce===na||ce===ts)throw ce;var Me=Bt(29,ce,null,C.mode);return Me.lanes=V,Me.return=C,Me}}}var Rl=Af(!0),xf=Af(!1),qn=!1;function or(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rr(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 Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=Qi(e),of(e,null,n),t}return Zi(e,l,t,n),Qi(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,pu(e,n)}}function cr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ur=!1;function Ya(){if(ur){var e=ta;if(e!==null)throw e}}function Ia(e,t,n,l){ur=!1;var s=e.updateQueue;qn=!1;var c=s.firstBaseUpdate,h=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var E=y,L=E.next;E.next=null,h===null?c=L:h.next=L,h=E;var G=e.alternate;G!==null&&(G=G.updateQueue,y=G.lastBaseUpdate,y!==h&&(y===null?G.firstBaseUpdate=L:y.next=L,G.lastBaseUpdate=E))}if(c!==null){var $=s.baseState;h=0,G=L=E=null,y=c;do{var M=y.lane&-536870913,B=M!==y.lane;if(B?(Ne&M)===M:(l&M)===M){M!==0&&M===ea&&(ur=!0),G!==null&&(G=G.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var oe=e,he=y;M=t;var qe=n;switch(he.tag){case 1:if(oe=he.payload,typeof oe=="function"){$=oe.call(qe,$,M);break e}$=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=he.payload,M=typeof oe=="function"?oe.call(qe,$,M):oe,M==null)break e;$=v({},$,M);break e;case 2:qn=!0}}M=y.callback,M!==null&&(e.flags|=64,B&&(e.flags|=8192),B=s.callbacks,B===null?s.callbacks=[M]:B.push(M))}else B={lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},G===null?(L=G=B,E=$):G=G.next=B,h|=M;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;B=y,y=B.next,B.next=null,s.lastBaseUpdate=B,s.shared.pending=null}}while(!0);G===null&&(E=$),s.baseState=E,s.firstBaseUpdate=L,s.lastBaseUpdate=G,c===null&&(s.shared.lanes=0),Jn|=h,e.lanes=h,e.memoizedState=$}}function Rf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Rf(n[e],t)}var aa=A(null),is=A(0);function Nf(e,t){e=On,te(is,e),te(aa,t),On=e|t.baseLanes}function fr(){te(is,On),te(aa,aa.current)}function dr(){On=is.current,_(aa),_(is)}var _t=A(null),Pt=null;function Xn(e){var t=e.alternate;te(tt,tt.current&1),te(_t,e),Pt===null&&(t===null||aa.current!==null||t.memoizedState!==null)&&(Pt=e)}function hr(e){te(tt,tt.current),te(_t,e),Pt===null&&(Pt=e)}function Cf(e){e.tag===22?(te(tt,tt.current),te(_t,e),Pt===null&&(Pt=e)):Zn()}function Zn(){te(tt,tt.current),te(_t,_t.current)}function Ht(e){_(_t),Pt===e&&(Pt=null),_(tt)}var tt=A(0);function ss(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Sc(n)||vc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==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}var An=0,Te=null,$e=null,at=null,os=!1,ia=!1,wl=!1,rs=0,Xa=0,sa=null,Wm=0;function We(){throw Error(r(321))}function pr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function gr(e,t,n,l,s,c){return An=c,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?fd:kr,wl=!1,c=n(l,s),wl=!1,ia&&(c=kf(t,n,l,s)),Df(e),c}function Df(e){j.H=Fa;var t=$e!==null&&$e.next!==null;if(An=0,at=$e=Te=null,os=!1,Xa=0,sa=null,t)throw Error(r(300));e===null||it||(e=e.dependencies,e!==null&&Pi(e)&&(it=!0))}function kf(e,t,n,l){Te=e;var s=0;do{if(ia&&(sa=null),Xa=0,ia=!1,25<=s)throw Error(r(301));if(s+=1,at=$e=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=dd,c=t(n,l)}while(ia);return c}function ey(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Za(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Te.flags|=1024),t}function mr(){var e=rs!==0;return rs=0,e}function yr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function br(e){if(os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}os=!1}An=0,at=$e=Te=null,ia=!1,Xa=rs=0,sa=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Te.memoizedState=at=e:at=at.next=e,at}function nt(){if($e===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=at===null?Te.memoizedState:at.next;if(t!==null)at=t,$e=e;else{if(e===null)throw Te.alternate===null?Error(r(467)):Error(r(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},at===null?Te.memoizedState=at=e:at=at.next=e}return at}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Za(e){var t=Xa;return Xa+=1,sa===null&&(sa=[]),e=vf(sa,e,t),t=Te,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?fd:kr),e}function us(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Za(e);if(e.$$typeof===ee)return mt(e)}throw Error(r(438,String(e)))}function Sr(e){var t=null,n=Te.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=cs(),Te.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ne;return t.index++,n}function xn(e,t){return typeof t=="function"?t(e):t}function fs(e){var t=nt();return vr(t,$e,e)}function vr(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var h=s.next;s.next=c.next,c.next=h}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var y=h=null,E=null,L=t,G=!1;do{var $=L.lane&-536870913;if($!==L.lane?(Ne&$)===$:(An&$)===$){var M=L.revertLane;if(M===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),$===ea&&(G=!0);else if((An&M)===M){L=L.next,M===ea&&(G=!0);continue}else $={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(y=E=$,h=c):E=E.next=$,Te.lanes|=M,Jn|=M;$=L.action,wl&&n(c,$),c=L.hasEagerState?L.eagerState:n(c,$)}else M={lane:$,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(y=E=M,h=c):E=E.next=M,Te.lanes|=$,Jn|=$;L=L.next}while(L!==null&&L!==t);if(E===null?h=c:E.next=y,!Ut(c,e.memoizedState)&&(it=!0,G&&(n=ta,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=E,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tr(e){var t=nt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);Ut(c,t.memoizedState)||(it=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function Of(e,t,n){var l=Te,s=nt(),c=ke;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var h=!Ut(($e||s).memoizedState,n);if(h&&(s.memoizedState=n,it=!0),s=s.queue,xr(Mf.bind(null,l,s,e),[e]),s.getSnapshot!==t||h||at!==null&&at.memoizedState.tag&1){if(l.flags|=2048,oa(9,{destroy:void 0},zf.bind(null,l,s,n,t),null),Ie===null)throw Error(r(349));c||(An&127)!==0||Lf(l,t,n)}return n}function Lf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t=cs(),Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zf(e,t,n,l){t.value=n,t.getSnapshot=l,jf(t)&&Uf(e)}function Mf(e,t,n){return n(function(){jf(t)&&Uf(e)})}function jf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch{return!0}}function Uf(e){var t=yl(e,2);t!==null&&zt(t,e,2)}function Er(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),wl){qt(!0);try{n()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function Bf(e,t,n,l){return e.baseState=n,vr(e,$e,typeof l=="function"?l:xn)}function ty(e,t,n,l,s){if(ps(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};j.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,_f(t,c)):(c.next=n.next,t.pending=n.next=c)}}function _f(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=j.T,h={};j.T=h;try{var y=n(s,l),E=j.S;E!==null&&E(h,y),Hf(e,t,y)}catch(L){Ar(e,t,L)}finally{c!==null&&h.types!==null&&(c.types=h.types),j.T=c}}else try{c=n(s,l),Hf(e,t,c)}catch(L){Ar(e,t,L)}}function Hf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Gf(e,t,l)},function(l){return Ar(e,t,l)}):Gf(e,t,n)}function Gf(e,t,n){t.status="fulfilled",t.value=n,Vf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_f(e,n)))}function Ar(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Vf(t),t=t.next;while(t!==l)}e.action=null}function Vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $f(e,t){return t}function Kf(e,t){if(ke){var n=Ie.formState;if(n!==null){e:{var l=Te;if(ke){if(Xe){t:{for(var s=Xe,c=Jt;s.nodeType!==8;){if(!c){s=null;break t}if(s=Wt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Xe=Wt(s.nextSibling),l=s.data==="F!";break e}}$n(l)}l=!1}l&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$f,lastRenderedState:t},n.queue=l,n=rd.bind(null,Te,l),l.dispatch=n,l=Er(!1),c=Dr.bind(null,Te,!1,l.queue),l=At(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=ty.bind(null,Te,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function qf(e){var t=nt();return Yf(t,$e,e)}function Yf(e,t,n){if(t=vr(e,t,$f)[0],e=fs(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Za(t)}catch(h){throw h===na?ts:h}else l=t;t=nt();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(Te.flags|=2048,oa(9,{destroy:void 0},ny.bind(null,s,n),null)),[l,c,e]}function ny(e,t){e.action=t}function If(e){var t=nt(),n=$e;if(n!==null)return Yf(t,n,e);nt(),t=t.memoizedState,n=nt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function oa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Te.updateQueue,t===null&&(t=cs(),Te.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Xf(){return nt().memoizedState}function ds(e,t,n,l){var s=At();Te.flags|=e,s.memoizedState=oa(1|t,{destroy:void 0},n,l===void 0?null:l)}function hs(e,t,n,l){var s=nt();l=l===void 0?null:l;var c=s.memoizedState.inst;$e!==null&&l!==null&&pr(l,$e.memoizedState.deps)?s.memoizedState=oa(t,c,n,l):(Te.flags|=e,s.memoizedState=oa(1|t,c,n,l))}function Zf(e,t){ds(8390656,8,e,t)}function xr(e,t){hs(2048,8,e,t)}function ly(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=cs(),Te.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Qf(e){var t=nt().memoizedState;return ly({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Ff(e,t){return hs(4,2,e,t)}function Jf(e,t){return hs(4,4,e,t)}function Pf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wf(e,t,n){n=n!=null?n.concat([e]):null,hs(4,4,Pf.bind(null,t,e),n)}function Rr(){}function ed(e,t){var n=nt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&pr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function td(e,t){var n=nt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&pr(t,l[1]))return l[0];if(l=e(),wl){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[l,t],l}function wr(e,t,n){return n===void 0||(An&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=nh(),Te.lanes|=e,Jn|=e,n)}function nd(e,t,n,l){return Ut(n,t)?n:aa.current!==null?(e=wr(e,n,l),Ut(e,t)||(it=!0),e):(An&42)===0||(An&1073741824)!==0&&(Ne&261930)===0?(it=!0,e.memoizedState=n):(e=nh(),Te.lanes|=e,Jn|=e,t)}function ld(e,t,n,l,s){var c=Y.p;Y.p=c!==0&&8>c?c:8;var h=j.T,y={};j.T=y,Dr(e,!1,t,n);try{var E=s(),L=j.S;if(L!==null&&L(y,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var G=Pm(E,l);Qa(e,t,G,$t(e))}else Qa(e,t,l,$t(e))}catch($){Qa(e,t,{then:function(){},status:"rejected",reason:$},$t())}finally{Y.p=c,h!==null&&y.types!==null&&(h.types=y.types),j.T=h}}function ay(){}function Nr(e,t,n,l){if(e.tag!==5)throw Error(r(476));var s=ad(e).queue;ld(e,s,t,F,n===null?ay:function(){return id(e),n(l)})}function ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function id(e){var t=ad(e);t.next===null&&(t=e.alternate.memoizedState),Qa(e,t.next.queue,{},$t())}function Cr(){return mt(di)}function sd(){return nt().memoizedState}function od(){return nt().memoizedState}function iy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=Yn(n);var l=In(t,e,n);l!==null&&(zt(l,t,n),qa(l,t,n)),t={cache:lr()},e.payload=t;return}t=t.return}}function sy(e,t,n){var l=$t();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ps(e)?cd(t,n):(n=Io(e,t,n,l),n!==null&&(zt(n,e,l),ud(n,t,l)))}function rd(e,t,n){var l=$t();Qa(e,t,n,l)}function Qa(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ps(e))cd(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,n);if(s.hasEagerState=!0,s.eagerState=y,Ut(y,h))return Zi(e,t,s,0),Ie===null&&Xi(),!1}catch{}if(n=Io(e,t,s,l),n!==null)return zt(n,e,l),ud(n,t,l),!0}return!1}function Dr(e,t,n,l){if(l={lane:2,revertLane:oc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ps(e)){if(t)throw Error(r(479))}else t=Io(e,n,l,2),t!==null&&zt(t,e,2)}function ps(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function cd(e,t){ia=os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,pu(e,n)}}var Fa={readContext:mt,use:us,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};Fa.useEffectEvent=We;var fd={readContext:mt,use:us,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Zf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ds(4194308,4,Pf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var l=e();if(wl){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=At();if(n!==void 0){var s=n(t);if(wl){qt(!0);try{n(t)}finally{qt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=sy.bind(null,Te,e),[l.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=Er(e);var t=e.queue,n=rd.bind(null,Te,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Rr,useDeferredValue:function(e,t){var n=At();return wr(n,e,t)},useTransition:function(){var e=Er(!1);return e=ld.bind(null,Te,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Te,s=At();if(ke){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ie===null)throw Error(r(349));(Ne&127)!==0||Lf(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Zf(Mf.bind(null,l,c,e),[e]),l.flags|=2048,oa(9,{destroy:void 0},zf.bind(null,l,c,n,t),null),n},useId:function(){var e=At(),t=Ie.identifierPrefix;if(ke){var n=fn,l=un;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=rs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Wm++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cr,useFormState:Kf,useActionState:Kf,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Dr.bind(null,Te,!0,n),n.dispatch=t,[e,t]},useMemoCache:Sr,useCacheRefresh:function(){return At().memoizedState=iy.bind(null,Te)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((Ue&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},kr={readContext:mt,use:us,useCallback:ed,useContext:mt,useEffect:xr,useImperativeHandle:Wf,useInsertionEffect:Ff,useLayoutEffect:Jf,useMemo:td,useReducer:fs,useRef:Xf,useState:function(){return fs(xn)},useDebugValue:Rr,useDeferredValue:function(e,t){var n=nt();return nd(n,$e.memoizedState,e,t)},useTransition:function(){var e=fs(xn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:Of,useId:sd,useHostTransitionStatus:Cr,useFormState:qf,useActionState:qf,useOptimistic:function(e,t){var n=nt();return Bf(n,$e,e,t)},useMemoCache:Sr,useCacheRefresh:od};kr.useEffectEvent=Qf;var dd={readContext:mt,use:us,useCallback:ed,useContext:mt,useEffect:xr,useImperativeHandle:Wf,useInsertionEffect:Ff,useLayoutEffect:Jf,useMemo:td,useReducer:Tr,useRef:Xf,useState:function(){return Tr(xn)},useDebugValue:Rr,useDeferredValue:function(e,t){var n=nt();return $e===null?wr(n,e,t):nd(n,$e.memoizedState,e,t)},useTransition:function(){var e=Tr(xn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:Of,useId:sd,useHostTransitionStatus:Cr,useFormState:If,useActionState:If,useOptimistic:function(e,t){var n=nt();return $e!==null?Bf(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Sr,useCacheRefresh:od};dd.useEffectEvent=Qf;function Or(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lr={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=$t(),s=Yn(l);s.payload=t,n!=null&&(s.callback=n),t=In(e,s,l),t!==null&&(zt(t,e,l),qa(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=$t(),s=Yn(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=In(e,s,l),t!==null&&(zt(t,e,l),qa(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),l=Yn(n);l.tag=2,t!=null&&(l.callback=t),t=In(e,l,n),t!==null&&(zt(t,e,n),qa(t,e,n))}};function hd(e,t,n,l,s,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ua(n,l)||!Ua(s,c):!0}function pd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Lr.enqueueReplaceState(t,t.state,null)}function Nl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function gd(e){Ii(e)}function md(e){console.error(e)}function yd(e){Ii(e)}function gs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function bd(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function zr(e,t,n){return n=Yn(n),n.tag=3,n.payload={element:null},n.callback=function(){gs(e,t)},n}function Sd(e){return e=Yn(e),e.tag=3,e}function vd(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){bd(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){bd(t,n,l),typeof s!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function oy(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Wl(t,n,s,!0),n=_t.current,n!==null){switch(n.tag){case 31:case 13:return Pt===null?Ns():n.alternate===null&&et===0&&(et=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===ns?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ac(e,l,s)),!1;case 22:return n.flags|=65536,l===ns?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ac(e,l,s)),!1}throw Error(r(435,n.tag))}return ac(e,l,s),Ns(),!1}if(ke)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Po&&(e=Error(r(422),{cause:l}),Ha(Zt(e,n)))):(l!==Po&&(t=Error(r(423),{cause:l}),Ha(Zt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Zt(l,n),s=zr(e.stateNode,l,s),cr(e,s),et!==4&&(et=2)),!1;var c=Error(r(520),{cause:l});if(c=Zt(c,n),ai===null?ai=[c]:ai.push(c),et!==4&&(et=2),t===null)return!0;l=Zt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=zr(n.stateNode,l,e),cr(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Pn===null||!Pn.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Sd(s),vd(s,e,n,l),cr(n,s),!1}n=n.return}while(n!==null);return!1}var Mr=Error(r(461)),it=!1;function yt(e,t,n,l){t.child=e===null?xf(t,null,n,l):Rl(t,e.child,n,l)}function Td(e,t,n,l,s){n=n.render;var c=t.ref;if("ref"in l){var h={};for(var y in l)y!=="ref"&&(h[y]=l[y])}else h=l;return Tl(t),l=gr(e,t,n,h,c,s),y=mr(),e!==null&&!it?(yr(e,t,s),Rn(e,t,s)):(ke&&y&&Fo(t),t.flags|=1,yt(e,t,l,s),t.child)}function Ed(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!Xo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Ad(e,t,c,l,s)):(e=Fi(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!$r(e,s)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ua,n(h,l)&&e.ref===t.ref)return Rn(e,t,s)}return t.flags|=1,e=Sn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Ad(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if(Ua(c,l)&&e.ref===t.ref)if(it=!1,t.pendingProps=l=c,$r(e,s))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Rn(e,t,s)}return jr(e,t,n,l,s)}function xd(e,t,n,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return Rd(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&es(t,c!==null?c.cachePool:null),c!==null?Nf(t,c):fr(),Cf(t);else return l=t.lanes=536870912,Rd(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(es(t,c.cachePool),Nf(t,c),Zn(),t.memoizedState=null):(e!==null&&es(t,null),fr(),Zn());return yt(e,t,s,n),t.child}function Ja(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rd(e,t,n,l,s){var c=ir();return c=c===null?null:{parent:lt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&es(t,null),fr(),Cf(t),e!==null&&Wl(e,t,l,!0),t.childLanes=s,null}function ms(e,t){return t=bs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wd(e,t,n){return Rl(t,e.child,null,n),e=ms(t,t.pendingProps),e.flags|=2,Ht(t),t.memoizedState=null,e}function ry(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(l.mode==="hidden")return e=ms(t,l),t.lanes=536870912,Ja(null,e);if(hr(t),(e=Xe)?(e=_h(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:un,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},n=cf(e),n.return=t,t.child=n,gt=t,Xe=null)):e=null,e===null)throw $n(t);return t.lanes=536870912,null}return ms(t,l)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(hr(t),s)if(t.flags&256)t.flags&=-257,t=wd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(it||Wl(e,t,n,!1),s=(n&e.childLanes)!==0,it||s){if(l=Ie,l!==null&&(h=gu(l,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,yl(e,h),zt(l,e,h),Mr;Ns(),t=wd(e,t,n)}else e=c.treeContext,Xe=Wt(h.nextSibling),gt=t,ke=!0,Vn=null,Jt=!1,e!==null&&df(t,e),t=ms(t,l),t.flags|=4096;return t}return e=Sn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ys(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function jr(e,t,n,l,s){return Tl(t),n=gr(e,t,n,l,void 0,s),l=mr(),e!==null&&!it?(yr(e,t,s),Rn(e,t,s)):(ke&&l&&Fo(t),t.flags|=1,yt(e,t,n,s),t.child)}function Nd(e,t,n,l,s,c){return Tl(t),t.updateQueue=null,n=kf(t,l,n,s),Df(e),l=mr(),e!==null&&!it?(yr(e,t,c),Rn(e,t,c)):(ke&&l&&Fo(t),t.flags|=1,yt(e,t,n,c),t.child)}function Cd(e,t,n,l,s){if(Tl(t),t.stateNode===null){var c=Ql,h=n.contextType;typeof h=="object"&&h!==null&&(c=mt(h)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},or(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?mt(h):Ql,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Or(t,n,h,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Lr.enqueueReplaceState(c,c.state,null),Ia(t,l,c,s),Ya(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,E=Nl(n,y);c.props=E;var L=c.context,G=n.contextType;h=Ql,typeof G=="object"&&G!==null&&(h=mt(G));var $=n.getDerivedStateFromProps;G=typeof $=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||L!==h)&&pd(t,c,l,h),qn=!1;var M=t.memoizedState;c.state=M,Ia(t,l,c,s),Ya(),L=t.memoizedState,y||M!==L||qn?(typeof $=="function"&&(Or(t,n,$,l),L=t.memoizedState),(E=qn||hd(t,n,E,l,M,L,h))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=h,l=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,rr(e,t),h=t.memoizedProps,G=Nl(n,h),c.props=G,$=t.pendingProps,M=c.context,L=n.contextType,E=Ql,typeof L=="object"&&L!==null&&(E=mt(L)),y=n.getDerivedStateFromProps,(L=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==$||M!==E)&&pd(t,c,l,E),qn=!1,M=t.memoizedState,c.state=M,Ia(t,l,c,s),Ya();var B=t.memoizedState;h!==$||M!==B||qn||e!==null&&e.dependencies!==null&&Pi(e.dependencies)?(typeof y=="function"&&(Or(t,n,y,l),B=t.memoizedState),(G=qn||hd(t,n,G,l,M,B,E)||e!==null&&e.dependencies!==null&&Pi(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),c.props=l,c.state=B,c.context=E,l=G):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,ys(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Rl(t,e.child,null,s),t.child=Rl(t,null,n,s)):yt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Rn(e,t,s),e}function Dd(e,t,n,l){return Sl(),t.flags|=256,yt(e,t,n,l),t.child}var Ur={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Br(e){return{baseLanes:e,cachePool:bf()}}function _r(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function kd(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),h&&(s=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(s?Xn(t):Zn(),(e=Xe)?(e=_h(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:un,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},n=cf(e),n.return=t,t.child=n,gt=t,Xe=null)):e=null,e===null)throw $n(t);return vc(e)?t.lanes=32:t.lanes=536870912,null}var y=l.children;return l=l.fallback,s?(Zn(),s=t.mode,y=bs({mode:"hidden",children:y},s),l=bl(l,s,n,null),y.return=t,l.return=t,y.sibling=l,t.child=y,l=t.child,l.memoizedState=Br(n),l.childLanes=_r(e,h,n),t.memoizedState=Ur,Ja(null,l)):(Xn(t),Hr(t,y))}var E=e.memoizedState;if(E!==null&&(y=E.dehydrated,y!==null)){if(c)t.flags&256?(Xn(t),t.flags&=-257,t=Gr(e,t,n)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),y=l.fallback,s=t.mode,l=bs({mode:"visible",children:l.children},s),y=bl(y,s,n,null),y.flags|=2,l.return=t,y.return=t,l.sibling=y,t.child=l,Rl(t,e.child,null,n),l=t.child,l.memoizedState=Br(n),l.childLanes=_r(e,h,n),t.memoizedState=Ur,t=Ja(null,l));else if(Xn(t),vc(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var L=h.dgst;h=L,l=Error(r(419)),l.stack="",l.digest=h,Ha({value:l,source:null,stack:null}),t=Gr(e,t,n)}else if(it||Wl(e,t,n,!1),h=(n&e.childLanes)!==0,it||h){if(h=Ie,h!==null&&(l=gu(h,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,yl(e,l),zt(h,e,l),Mr;Sc(y)||Ns(),t=Gr(e,t,n)}else Sc(y)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Xe=Wt(y.nextSibling),gt=t,ke=!0,Vn=null,Jt=!1,e!==null&&df(t,e),t=Hr(t,l.children),t.flags|=4096);return t}return s?(Zn(),y=l.fallback,s=t.mode,E=e.child,L=E.sibling,l=Sn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,L!==null?y=Sn(L,y):(y=bl(y,s,n,null),y.flags|=2),y.return=t,l.return=t,l.sibling=y,t.child=l,Ja(null,l),l=t.child,y=e.child.memoizedState,y===null?y=Br(n):(s=y.cachePool,s!==null?(E=lt._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=bf(),y={baseLanes:y.baseLanes|n,cachePool:s}),l.memoizedState=y,l.childLanes=_r(e,h,n),t.memoizedState=Ur,Ja(e.child,l)):(Xn(t),n=e.child,e=n.sibling,n=Sn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Hr(e,t){return t=bs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bs(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Gr(e,t,n){return Rl(t,e.child,null,n),e=Hr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Od(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),tr(e.return,t,n)}function Vr(e,t,n,l,s,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=s,h.treeForkCount=c)}function Ld(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var h=tt.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,te(tt,h),yt(e,t,l,n),l=ke?_a:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Od(e,n,t);else if(e.tag===19)Od(e,n,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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ss(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Vr(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ss(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Vr(t,!0,n,null,c,l);break;case"together":Vr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $r(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Pi(e)))}function cy(e,t,n){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),Kn(t,lt,e.memoizedState.cache),Sl();break;case 27:case 5:Rt(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?kd(e,t,n):(Xn(t),e=Rn(e,t,n),e!==null?e.sibling:null);Xn(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Wl(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return Ld(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),te(tt,tt.current),l)break;return null;case 22:return t.lanes=0,xd(e,t,n,t.pendingProps);case 24:Kn(t,lt,e.memoizedState.cache)}return Rn(e,t,n)}function zd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!$r(e,n)&&(t.flags&128)===0)return it=!1,cy(e,t,n);it=(e.flags&131072)!==0}else it=!1,ke&&(t.flags&1048576)!==0&&ff(t,_a,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")Xo(e)?(l=Nl(e,l),t.tag=1,t=Cd(null,t,e,l,n)):(t.tag=0,t=jr(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===H){t.tag=11,t=Td(null,t,e,l,n);break e}else if(s===Z){t.tag=14,t=Ed(null,t,e,l,n);break e}}throw t=fe(e)||e,Error(r(306,t,""))}}return t;case 0:return jr(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Nl(l,t.pendingProps),Cd(e,t,l,s,n);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,rr(e,t),Ia(t,l,null,n);var h=t.memoizedState;if(l=h.cache,Kn(t,lt,l),l!==c.cache&&nr(t,[lt],n,!0),Ya(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Dd(e,t,l,n);break e}else if(l!==s){s=Zt(Error(r(424)),t),Ha(s),t=Dd(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Xe=Wt(e.firstChild),gt=t,ke=!0,Vn=null,Jt=!0,n=xf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sl(),l===s){t=Rn(e,t,n);break e}yt(e,t,l,n)}t=t.child}return t;case 26:return ys(e,t),e===null?(n=qh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ke||(n=t.type,e=t.pendingProps,l=Ms(Ee.current).createElement(n),l[pt]=t,l[Nt]=e,bt(l,n,e),ft(l),t.stateNode=l):t.memoizedState=qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Rt(t),e===null&&ke&&(l=t.stateNode=Vh(t.type,t.pendingProps,Ee.current),gt=t,Jt=!0,s=Xe,nl(t.type)?(Tc=s,Xe=Wt(l.firstChild)):Xe=s),yt(e,t,t.pendingProps.children,n),ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((s=l=Xe)&&(l=Hy(l,t.type,t.pendingProps,Jt),l!==null?(t.stateNode=l,gt=t,Xe=Wt(l.firstChild),Jt=!1,s=!0):s=!1),s||$n(t)),Rt(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,l=c.children,mc(s,c)?l=null:h!==null&&mc(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=gr(e,t,ey,null,null,n),di._currentValue=s),ys(e,t),yt(e,t,l,n),t.child;case 6:return e===null&&ke&&((e=n=Xe)&&(n=Gy(n,t.pendingProps,Jt),n!==null?(t.stateNode=n,gt=t,Xe=null,e=!0):e=!1),e||$n(t)),null;case 13:return kd(e,t,n);case 4:return Ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Rl(t,null,l,n):yt(e,t,l,n),t.child;case 11:return Td(e,t,t.type,t.pendingProps,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Kn(t,t.type,l.value),yt(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,Tl(t),s=mt(s),l=l(s),t.flags|=1,yt(e,t,l,n),t.child;case 14:return Ed(e,t,t.type,t.pendingProps,n);case 15:return Ad(e,t,t.type,t.pendingProps,n);case 19:return Ld(e,t,n);case 31:return ry(e,t,n);case 22:return xd(e,t,n,t.pendingProps);case 24:return Tl(t),l=mt(lt),e===null?(s=ir(),s===null&&(s=Ie,c=lr(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},or(t),Kn(t,lt,s)):((e.lanes&n)!==0&&(rr(e,t),Ia(t,null,null,n),Ya()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Kn(t,lt,l)):(l=c.cache,Kn(t,lt,l),l!==s.cache&&nr(t,[lt],n,!0))),yt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wn(e){e.flags|=4}function Kr(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(sh())e.flags|=8192;else throw xl=ns,sr}else e.flags&=-16777217}function Md(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qh(t))if(sh())e.flags|=8192;else throw xl=ns,sr}function Ss(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?du():536870912,e.lanes|=t,fa|=t)}function Pa(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function uy(e,t,n){var l=t.pendingProps;switch(Jo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),En(lt),Ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wo())),Ze(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(wn(t),c!==null?(Ze(t),Md(t,c)):(Ze(t),Kr(t,s,null,l,n))):c?c!==e.memoizedState?(wn(t),Ze(t),Md(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&wn(t),Ze(t),Kr(t,s,e,l,n)),null;case 27:if(jt(t),n=Ee.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}e=se.current,Pl(t)?hf(t):(e=Vh(s,l,n),t.stateNode=e,wn(t))}return Ze(t),null;case 5:if(jt(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}if(c=se.current,Pl(t))hf(t);else{var h=Ms(Ee.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(s,{is:l.is}):h.createElement(s)}}c[pt]=t,c[Nt]=l;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(bt(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&wn(t)}}return Ze(t),Kr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=Ee.current,Pl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=gt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||kh(e.nodeValue,n)),e||$n(t,!0)}else e=Ms(e).createTextNode(l),e[pt]=t,t.stateNode=e}return Ze(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Pl(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[pt]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else n=Wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ht(t),t):(Ht(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ze(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Pl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[pt]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),s=!1}else s=Wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ht(t),t):(Ht(t),null)}return Ht(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ss(t,t.updateQueue),Ze(t),null);case 4:return Ye(),e===null&&fc(t.stateNode.containerInfo),Ze(t),null;case 10:return En(t.type),Ze(t),null;case 19:if(_(tt),l=t.memoizedState,l===null)return Ze(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)Pa(l,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ss(e),c!==null){for(t.flags|=128,Pa(l,!1),e=c.updateQueue,t.updateQueue=e,Ss(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)rf(n,e),n=n.sibling;return te(tt,tt.current&1|2),ke&&vn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&rt()>xs&&(t.flags|=128,s=!0,Pa(l,!1),t.lanes=4194304)}else{if(!s)if(e=ss(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ss(t,e),Pa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ke)return Ze(t),null}else 2*rt()-l.renderingStartTime>xs&&n!==536870912&&(t.flags|=128,s=!0,Pa(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=rt(),e.sibling=null,n=tt.current,te(tt,s?n&1|2:n&1),ke&&vn(t,l.treeForkCount),e):(Ze(t),null);case 22:case 23:return Ht(t),dr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),n=t.updateQueue,n!==null&&Ss(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&_(El),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),En(lt),Ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function fy(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(lt),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jt(t),null;case 31:if(t.memoizedState!==null){if(Ht(t),t.alternate===null)throw Error(r(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(tt),null;case 4:return Ye(),null;case 10:return En(t.type),null;case 22:case 23:return Ht(t),dr(),e!==null&&_(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return En(lt),null;case 25:return null;default:return null}}function jd(e,t){switch(Jo(t),t.tag){case 3:En(lt),Ye();break;case 26:case 27:case 5:jt(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&Ht(t);break;case 13:Ht(t);break;case 19:_(tt);break;case 10:En(t.type);break;case 22:case 23:Ht(t),dr(),e!==null&&_(El);break;case 24:En(lt)}}function Wa(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,h=n.inst;l=c(),h.destroy=l}n=n.next}while(n!==s)}}catch(y){Ge(t,t.return,y)}}function Qn(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var h=l.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,s=t;var E=n,L=y;try{L()}catch(G){Ge(s,E,G)}}}l=l.next}while(l!==c)}}catch(G){Ge(t,t.return,G)}}function Ud(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{wf(t,n)}catch(l){Ge(e,e.return,l)}}}function Bd(e,t,n){n.props=Nl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ge(e,t,l)}}function ei(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Ge(e,t,s)}}function dn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Ge(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ge(e,t,s)}else n.current=null}function _d(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Ge(e,e.return,s)}}function qr(e,t,n){try{var l=e.stateNode;zy(l,e.type,n,t),l[Nt]=t}catch(s){Ge(e,e.return,s)}}function Hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Yr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(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&&nl(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 Ir(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn));else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ir(e,t,n),e=e.sibling;e!==null;)Ir(e,t,n),e=e.sibling}function vs(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function Gd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);bt(t,l,n),t[pt]=e,t[Nt]=n}catch(c){Ge(e,e.return,c)}}var Nn=!1,st=!1,Xr=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,dt=null;function dy(e,t){if(e=e.containerInfo,pc=Vs,e=Pu(e),Go(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,y=-1,E=-1,L=0,G=0,$=e,M=null;t:for(;;){for(var B;$!==n||s!==0&&$.nodeType!==3||(y=h+s),$!==c||l!==0&&$.nodeType!==3||(E=h+l),$.nodeType===3&&(h+=$.nodeValue.length),(B=$.firstChild)!==null;)M=$,$=B;for(;;){if($===e)break t;if(M===n&&++L===s&&(y=h),M===c&&++G===l&&(E=h),(B=$.nextSibling)!==null)break;$=M,M=$.parentNode}$=B}n=y===-1||E===-1?null:{start:y,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(gc={focusedElem:e,selectionRange:n},Vs=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var oe=Nl(n.type,s);e=l.getSnapshotBeforeUpdate(oe,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ge(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)bc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function $d(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),l&4&&Wa(5,n);break;case 1:if(Dn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Ge(n,n.return,h)}else{var s=Nl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ge(n,n.return,h)}}l&64&&Ud(n),l&512&&ei(n,n.return);break;case 3:if(Dn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{wf(e,t)}catch(h){Ge(n,n.return,h)}}break;case 27:t===null&&l&4&&Gd(n);case 26:case 5:Dn(e,n),t===null&&l&4&&_d(n),l&512&&ei(n,n.return);break;case 12:Dn(e,n);break;case 31:Dn(e,n),l&4&&Yd(e,n);break;case 13:Dn(e,n),l&4&&Id(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ty.bind(null,n),Vy(e,n))));break;case 22:if(l=n.memoizedState!==null||Nn,!l){t=t!==null&&t.memoizedState!==null||st,s=Nn;var c=st;Nn=l,(st=t)&&!c?kn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),Nn=s,st=c}break;case 30:break;default:Dn(e,n)}}function Kd(e){var t=e.alternate;t!==null&&(e.alternate=null,Kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ao(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,Dt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:st||dn(n,t),Cn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:st||dn(n,t);var l=Qe,s=Dt;nl(n.type)&&(Qe=n.stateNode,Dt=!1),Cn(e,t,n),ci(n.stateNode),Qe=l,Dt=s;break;case 5:st||dn(n,t);case 6:if(l=Qe,s=Dt,Qe=null,Cn(e,t,n),Qe=l,Dt=s,Qe!==null)if(Dt)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode)}catch(c){Ge(n,t,c)}else try{Qe.removeChild(n.stateNode)}catch(c){Ge(n,t,c)}break;case 18:Qe!==null&&(Dt?(e=Qe,Uh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Sa(e)):Uh(Qe,n.stateNode));break;case 4:l=Qe,s=Dt,Qe=n.stateNode.containerInfo,Dt=!0,Cn(e,t,n),Qe=l,Dt=s;break;case 0:case 11:case 14:case 15:Qn(2,n,t),st||Qn(4,n,t),Cn(e,t,n);break;case 1:st||(dn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Bd(n,t,l)),Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:st=(l=st)||n.memoizedState!==null,Cn(e,t,n),st=l;break;default:Cn(e,t,n)}}function Yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sa(e)}catch(n){Ge(t,t.return,n)}}}function Id(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sa(e)}catch(n){Ge(t,t.return,n)}}function hy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vd),t;default:throw Error(r(435,e.tag))}}function Ts(e,t){var n=hy(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=Ey.bind(null,e,l);l.then(s,s)}})}function kt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(nl(y.type)){Qe=y.stateNode,Dt=!1;break e}break;case 5:Qe=y.stateNode,Dt=!1;break e;case 3:case 4:Qe=y.stateNode.containerInfo,Dt=!0;break e}y=y.return}if(Qe===null)throw Error(r(160));qd(c,h,s),Qe=null,Dt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xd(t,e),t=t.sibling}var ln=null;function Xd(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Ot(e),l&4&&(Qn(3,e,e.return),Wa(3,e),Qn(5,e,e.return));break;case 1:kt(t,e),Ot(e),l&512&&(st||n===null||dn(n,n.return)),l&64&&Nn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=ln;if(kt(t,e),Ot(e),l&512&&(st||n===null||dn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[Na]||c[pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),bt(c,l,n),c[pt]=e,ft(c),l=c;break e;case"link":var h=Xh("link","href",s).get(l+(n.href||""));if(h){for(var y=0;y<h.length;y++)if(c=h[y],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(y,1);break t}}c=s.createElement(l),bt(c,l,n),s.head.appendChild(c);break;case"meta":if(h=Xh("meta","content",s).get(l+(n.content||""))){for(y=0;y<h.length;y++)if(c=h[y],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(y,1);break t}}c=s.createElement(l),bt(c,l,n),s.head.appendChild(c);break;default:throw Error(r(468,l))}c[pt]=e,ft(c),l=c}e.stateNode=l}else Zh(s,e.type,e.stateNode);else e.stateNode=Ih(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Zh(s,e.type,e.stateNode):Ih(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qr(e,e.memoizedProps,n.memoizedProps)}break;case 27:kt(t,e),Ot(e),l&512&&(st||n===null||dn(n,n.return)),n!==null&&l&4&&qr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(kt(t,e),Ot(e),l&512&&(st||n===null||dn(n,n.return)),e.flags&32){s=e.stateNode;try{$l(s,"")}catch(oe){Ge(e,e.return,oe)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,qr(e,s,n!==null?n.memoizedProps:s)),l&1024&&(Xr=!0);break;case 6:if(kt(t,e),Ot(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(oe){Ge(e,e.return,oe)}}break;case 3:if(Bs=null,s=ln,ln=js(t.containerInfo),kt(t,e),ln=s,Ot(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Sa(t.containerInfo)}catch(oe){Ge(e,e.return,oe)}Xr&&(Xr=!1,Zd(e));break;case 4:l=ln,ln=js(e.stateNode.containerInfo),kt(t,e),Ot(e),ln=l;break;case 12:kt(t,e),Ot(e);break;case 31:kt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ts(e,l)));break;case 13:kt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(As=rt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ts(e,l)));break;case 22:s=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,L=Nn,G=st;if(Nn=L||s,st=G||E,kt(t,e),st=G,Nn=L,Ot(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||E||Nn||st||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(c=E.stateNode,s)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=E.stateNode;var $=E.memoizedProps.style,M=$!=null&&$.hasOwnProperty("display")?$.display:null;y.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(oe){Ge(E,E.return,oe)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(oe){Ge(E,E.return,oe)}}}else if(t.tag===18){if(n===null){E=t;try{var B=E.stateNode;s?Bh(B,!0):Bh(E.stateNode,!1)}catch(oe){Ge(E,E.return,oe)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ts(e,n))));break;case 19:kt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ts(e,l)));break;case 30:break;case 21:break;default:kt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Hd(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=Yr(e);vs(e,c,s);break;case 5:var h=n.stateNode;n.flags&32&&($l(h,""),n.flags&=-33);var y=Yr(e);vs(e,y,h);break;case 3:case 4:var E=n.stateNode.containerInfo,L=Yr(e);Ir(e,L,E);break;default:throw Error(r(161))}}catch(G){Ge(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Zd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$d(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),Cl(t);break;case 1:dn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Bd(t,t.return,n),Cl(t);break;case 27:ci(t.stateNode);case 26:case 5:dn(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function kn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:kn(s,c,n),Wa(4,c);break;case 1:if(kn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){Ge(l,l.return,L)}if(l=c,s=l.updateQueue,s!==null){var y=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)Rf(E[s],y)}catch(L){Ge(l,l.return,L)}}n&&h&64&&Ud(c),ei(c,c.return);break;case 27:Gd(c);case 26:case 5:kn(s,c,n),n&&l===null&&h&4&&_d(c),ei(c,c.return);break;case 12:kn(s,c,n);break;case 31:kn(s,c,n),n&&h&4&&Yd(s,c);break;case 13:kn(s,c,n),n&&h&4&&Id(s,c);break;case 22:c.memoizedState===null&&kn(s,c,n),ei(c,c.return);break;case 30:break;default:kn(s,c,n)}t=t.sibling}}function Zr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ga(n))}function Qr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ga(e))}function an(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qd(e,t,n,l),t=t.sibling}function Qd(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:an(e,t,n,l),s&2048&&Wa(9,t);break;case 1:an(e,t,n,l);break;case 3:an(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ga(e)));break;case 12:if(s&2048){an(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,y=c.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ge(t,t.return,E)}}else an(e,t,n,l);break;case 31:an(e,t,n,l);break;case 13:an(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?an(e,t,n,l):ti(e,t):c._visibility&2?an(e,t,n,l):(c._visibility|=2,ra(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Zr(h,t);break;case 24:an(e,t,n,l),s&2048&&Qr(t.alternate,t);break;default:an(e,t,n,l)}}function ra(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=n,E=l,L=h.flags;switch(h.tag){case 0:case 11:case 15:ra(c,h,y,E,s),Wa(8,h);break;case 23:break;case 22:var G=h.stateNode;h.memoizedState!==null?G._visibility&2?ra(c,h,y,E,s):ti(c,h):(G._visibility|=2,ra(c,h,y,E,s)),s&&L&2048&&Zr(h.alternate,h);break;case 24:ra(c,h,y,E,s),s&&L&2048&&Qr(h.alternate,h);break;default:ra(c,h,y,E,s)}t=t.sibling}}function ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:ti(n,l),s&2048&&Zr(l.alternate,l);break;case 24:ti(n,l),s&2048&&Qr(l.alternate,l);break;default:ti(n,l)}t=t.sibling}}var ni=8192;function ca(e,t,n){if(e.subtreeFlags&ni)for(e=e.child;e!==null;)Fd(e,t,n),e=e.sibling}function Fd(e,t,n){switch(e.tag){case 26:ca(e,t,n),e.flags&ni&&e.memoizedState!==null&&Wy(n,ln,e.memoizedState,e.memoizedProps);break;case 5:ca(e,t,n);break;case 3:case 4:var l=ln;ln=js(e.stateNode.containerInfo),ca(e,t,n),ln=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ni,ni=16777216,ca(e,t,n),ni=l):ca(e,t,n));break;default:ca(e,t,n)}}function Jd(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 li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];dt=l,Wd(l,e)}Jd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pd(e),e=e.sibling}function Pd(e){switch(e.tag){case 0:case 11:case 15:li(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:li(e);break;case 12:li(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Es(e)):li(e);break;default:li(e)}}function Es(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];dt=l,Wd(l,e)}Jd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),Es(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Es(t));break;default:Es(t)}e=e.sibling}}function Wd(e,t){for(;dt!==null;){var n=dt;switch(n.tag){case 0:case 11:case 15:Qn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ga(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,dt=l;else e:for(n=e;dt!==null;){l=dt;var s=l.sibling,c=l.return;if(Kd(l),l===n){dt=null;break e}if(s!==null){s.return=c,dt=s;break e}dt=c}}}var py={getCacheForType:function(e){var t=mt(lt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(lt).controller.signal}},gy=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ie=null,Re=null,Ne=0,He=0,Gt=null,Fn=!1,ua=!1,Fr=!1,On=0,et=0,Jn=0,Dl=0,Jr=0,Vt=0,fa=0,ai=null,Lt=null,Pr=!1,As=0,eh=0,xs=1/0,Rs=null,Pn=null,ut=0,Wn=null,da=null,Ln=0,Wr=0,ec=null,th=null,ii=0,tc=null;function $t(){return(Ue&2)!==0&&Ne!==0?Ne&-Ne:j.T!==null?oc():mu()}function nh(){if(Vt===0)if((Ne&536870912)===0||ke){var e=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Vt=e}else Vt=536870912;return e=_t.current,e!==null&&(e.flags|=32),Vt}function zt(e,t,n){(e===Ie&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(ha(e,0),el(e,Ne,Vt,!1)),wa(e,n),((Ue&2)===0||e!==Ie)&&(e===Ie&&((Ue&2)===0&&(Dl|=n),et===4&&el(e,Ne,Vt,!1)),hn(e))}function lh(e,t,n){if((Ue&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ra(e,t),s=l?by(e,t):lc(e,t,!0),c=l;do{if(s===0){ua&&!l&&el(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!my(n)){s=lc(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;s=ai;var E=y.current.memoizedState.isDehydrated;if(E&&(ha(y,h).flags|=256),h=lc(y,h,!1),h!==2){if(Fr&&!E){y.errorRecoveryDisabledLanes|=c,Dl|=c,s=4;break e}c=Lt,Lt=s,c!==null&&(Lt===null?Lt=c:Lt.push.apply(Lt,c))}s=h}if(c=!1,s!==2)continue}}if(s===1){ha(e,0),el(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:el(l,t,Vt,!Fn);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=As+300-rt(),10<s)){if(el(l,t,Vt,!Fn),ji(l,0,!0)!==0)break e;Ln=t,l.timeoutHandle=Mh(ah.bind(null,l,n,Lt,Rs,Pr,t,Vt,Dl,fa,Fn,c,"Throttled",-0,0),s);break e}ah(l,n,Lt,Rs,Pr,t,Vt,Dl,fa,Fn,c,null,-0,0)}}break}while(!0);hn(e)}function ah(e,t,n,l,s,c,h,y,E,L,G,$,M,B){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Fd(t,c,$);var oe=(c&62914560)===c?As-rt():(c&4194048)===c?eh-rt():0;if(oe=e1($,oe),oe!==null){Ln=c,e.cancelPendingCommit=oe(dh.bind(null,e,t,c,n,l,s,h,y,E,G,$,null,M,B)),el(e,c,h,!L);return}}dh(e,t,c,n,l,s,h,y,E)}function my(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!Ut(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function el(e,t,n,l){t&=~Jr,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-ht(s),h=1<<c;l[c]=-1,s&=~h}n!==0&&hu(e,n,t)}function ws(){return(Ue&6)===0?(si(0),!1):!0}function nc(){if(Re!==null){if(He===0)var e=Re.return;else e=Re,Tn=vl=null,br(e),la=null,$a=0,e=Re;for(;e!==null;)jd(e.alternate,e),e=e.return;Re=null}}function ha(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Uy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ln=0,nc(),Ie=e,Re=n=Sn(e.current,null),Ne=t,He=0,Gt=null,Fn=!1,ua=Ra(e,t),Fr=!1,fa=Vt=Jr=Dl=Jn=et=0,Lt=ai=null,Pr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-ht(l),c=1<<s;t|=e[s],l&=~c}return On=t,Xi(),n}function ih(e,t){Te=null,j.H=Fa,t===na||t===ts?(t=Tf(),He=3):t===sr?(t=Tf(),He=4):He=t===Mr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,Re===null&&(et=1,gs(e,Zt(t,e.current)))}function sh(){var e=_t.current;return e===null?!0:(Ne&4194048)===Ne?Pt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Pt:!1}function oh(){var e=j.H;return j.H=Fa,e===null?Fa:e}function rh(){var e=j.A;return j.A=py,e}function Ns(){et=4,Fn||(Ne&4194048)!==Ne&&_t.current!==null||(ua=!0),(Jn&134217727)===0&&(Dl&134217727)===0||Ie===null||el(Ie,Ne,Vt,!1)}function lc(e,t,n){var l=Ue;Ue|=2;var s=oh(),c=rh();(Ie!==e||Ne!==t)&&(Rs=null,ha(e,t)),t=!1;var h=et;e:do try{if(He!==0&&Re!==null){var y=Re,E=Gt;switch(He){case 8:nc(),h=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var L=He;if(He=0,Gt=null,pa(e,y,E,L),n&&ua){h=0;break e}break;default:L=He,He=0,Gt=null,pa(e,y,E,L)}}yy(),h=et;break}catch(G){ih(e,G)}while(!0);return t&&e.shellSuspendCounter++,Tn=vl=null,Ue=l,j.H=s,j.A=c,Re===null&&(Ie=null,Ne=0,Xi()),h}function yy(){for(;Re!==null;)ch(Re)}function by(e,t){var n=Ue;Ue|=2;var l=oh(),s=rh();Ie!==e||Ne!==t?(Rs=null,xs=rt()+500,ha(e,t)):ua=Ra(e,t);e:do try{if(He!==0&&Re!==null){t=Re;var c=Gt;t:switch(He){case 1:He=0,Gt=null,pa(e,t,c,1);break;case 2:case 9:if(Sf(c)){He=0,Gt=null,uh(t);break}t=function(){He!==2&&He!==9||Ie!==e||(He=7),hn(e)},c.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Sf(c)?(He=0,Gt=null,uh(t)):(He=0,Gt=null,pa(e,t,c,7));break;case 5:var h=null;switch(Re.tag){case 26:h=Re.memoizedState;case 5:case 27:var y=Re;if(h?Qh(h):y.stateNode.complete){He=0,Gt=null;var E=y.sibling;if(E!==null)Re=E;else{var L=y.return;L!==null?(Re=L,Cs(L)):Re=null}break t}}He=0,Gt=null,pa(e,t,c,5);break;case 6:He=0,Gt=null,pa(e,t,c,6);break;case 8:nc(),et=6;break e;default:throw Error(r(462))}}Sy();break}catch(G){ih(e,G)}while(!0);return Tn=vl=null,j.H=l,j.A=s,Ue=n,Re!==null?0:(Ie=null,Ne=0,Xi(),et)}function Sy(){for(;Re!==null&&!Bn();)ch(Re)}function ch(e){var t=zd(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?Cs(e):Re=t}function uh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Nd(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Nd(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:br(t);default:jd(n,t),t=Re=rf(t,On),t=zd(n,t,On)}e.memoizedProps=e.pendingProps,t===null?Cs(e):Re=t}function pa(e,t,n,l){Tn=vl=null,br(t),la=null,$a=0;var s=t.return;try{if(oy(e,s,t,n,Ne)){et=1,gs(e,Zt(n,e.current)),Re=null;return}}catch(c){if(s!==null)throw Re=s,c;et=1,gs(e,Zt(n,e.current)),Re=null;return}t.flags&32768?(ke||l===1?e=!0:ua||(Ne&536870912)!==0?e=!1:(Fn=e=!0,(l===2||l===9||l===3||l===6)&&(l=_t.current,l!==null&&l.tag===13&&(l.flags|=16384))),fh(t,e)):Cs(t)}function Cs(e){var t=e;do{if((t.flags&32768)!==0){fh(t,Fn);return}e=t.return;var n=uy(t.alternate,t,On);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);et===0&&(et=5)}function fh(e,t){do{var n=fy(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);et=6,Re=null}function dh(e,t,n,l,s,c,h,y,E){e.cancelPendingCommit=null;do Ds();while(ut!==0);if((Ue&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Yo,Pg(e,n,c,h,y,E),e===Ie&&(Re=Ie=null,Ne=0),da=t,Wn=e,Ln=n,Wr=c,ec=s,th=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ay(fl,function(){return yh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,s=Y.p,Y.p=2,h=Ue,Ue|=4;try{dy(e,t,n)}finally{Ue=h,Y.p=s,j.T=l}}ut=1,hh(),ph(),gh()}}function hh(){if(ut===1){ut=0;var e=Wn,t=da,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var l=Y.p;Y.p=2;var s=Ue;Ue|=4;try{Xd(t,e);var c=gc,h=Pu(e.containerInfo),y=c.focusedElem,E=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&Ju(y.ownerDocument.documentElement,y)){if(E!==null&&Go(y)){var L=E.start,G=E.end;if(G===void 0&&(G=L),"selectionStart"in y)y.selectionStart=L,y.selectionEnd=Math.min(G,y.value.length);else{var $=y.ownerDocument||document,M=$&&$.defaultView||window;if(M.getSelection){var B=M.getSelection(),oe=y.textContent.length,he=Math.min(E.start,oe),qe=E.end===void 0?he:Math.min(E.end,oe);!B.extend&&he>qe&&(h=qe,qe=he,he=h);var C=Fu(y,he),x=Fu(y,qe);if(C&&x&&(B.rangeCount!==1||B.anchorNode!==C.node||B.anchorOffset!==C.offset||B.focusNode!==x.node||B.focusOffset!==x.offset)){var k=$.createRange();k.setStart(C.node,C.offset),B.removeAllRanges(),he>qe?(B.addRange(k),B.extend(x.node,x.offset)):(k.setEnd(x.node,x.offset),B.addRange(k))}}}}for($=[],B=y;B=B.parentNode;)B.nodeType===1&&$.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<$.length;y++){var V=$[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Vs=!!pc,gc=pc=null}finally{Ue=s,Y.p=l,j.T=n}}e.current=t,ut=2}}function ph(){if(ut===2){ut=0;var e=Wn,t=da,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var l=Y.p;Y.p=2;var s=Ue;Ue|=4;try{$d(e,t.alternate,t)}finally{Ue=s,Y.p=l,j.T=n}}ut=3}}function gh(){if(ut===4||ut===3){ut=0,ot();var e=Wn,t=da,n=Ln,l=th;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,da=Wn=null,mh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Pn=null),To(n),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=j.T,s=Y.p,Y.p=2,j.T=null;try{for(var c=e.onRecoverableError,h=0;h<l.length;h++){var y=l[h];c(y.value,{componentStack:y.stack})}}finally{j.T=t,Y.p=s}}(Ln&3)!==0&&Ds(),hn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===tc?ii++:(ii=0,tc=e):ii=0,si(0)}}function mh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ga(t)))}function Ds(){return hh(),ph(),gh(),yh()}function yh(){if(ut!==5)return!1;var e=Wn,t=Wr;Wr=0;var n=To(Ln),l=j.T,s=Y.p;try{Y.p=32>n?32:n,j.T=null,n=ec,ec=null;var c=Wn,h=Ln;if(ut=0,da=Wn=null,Ln=0,(Ue&6)!==0)throw Error(r(331));var y=Ue;if(Ue|=4,Pd(c.current),Qd(c,c.current,h,n),Ue=y,si(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Pe,c)}catch{}return!0}finally{Y.p=s,j.T=l,mh(e,t)}}function bh(e,t,n){t=Zt(n,t),t=zr(e.stateNode,t,2),e=In(e,t,2),e!==null&&(wa(e,2),hn(e))}function Ge(e,t,n){if(e.tag===3)bh(e,e,n);else for(;t!==null;){if(t.tag===3){bh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pn===null||!Pn.has(l))){e=Zt(n,e),n=Sd(2),l=In(t,n,2),l!==null&&(vd(n,l,t,e),wa(l,2),hn(l));break}}t=t.return}}function ac(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new gy;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(Fr=!0,s.add(n),e=vy.bind(null,e,t,n),t.then(e,e))}function vy(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ie===e&&(Ne&n)===n&&(et===4||et===3&&(Ne&62914560)===Ne&&300>rt()-As?(Ue&2)===0&&ha(e,0):Jr|=n,fa===Ne&&(fa=0)),hn(e)}function Sh(e,t){t===0&&(t=du()),e=yl(e,t),e!==null&&(wa(e,t),hn(e))}function Ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sh(e,n)}function Ey(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Sh(e,n)}function Ay(e,t){return ul(e,t)}var ks=null,ga=null,ic=!1,Os=!1,sc=!1,tl=0;function hn(e){e!==ga&&e.next===null&&(ga===null?ks=ga=e:ga=ga.next=e),Os=!0,ic||(ic=!0,Ry())}function si(e,t){if(!sc&&Os){sc=!0;do for(var n=!1,l=ks;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var h=l.suspendedLanes,y=l.pingedLanes;c=(1<<31-ht(42|e)+1)-1,c&=s&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Ah(l,c))}else c=Ne,c=ji(l,l===Ie?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ra(l,c)||(n=!0,Ah(l,c));l=l.next}while(n);sc=!1}}function xy(){vh()}function vh(){Os=ic=!1;var e=0;tl!==0&&jy()&&(e=tl);for(var t=rt(),n=null,l=ks;l!==null;){var s=l.next,c=Th(l,t);c===0?(l.next=null,n===null?ks=s:n.next=s,s===null&&(ga=n)):(n=l,(e!==0||(c&3)!==0)&&(Os=!0)),l=s}ut!==0&&ut!==5||si(e),tl!==0&&(tl=0)}function Th(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-ht(c),y=1<<h,E=s[h];E===-1?((y&n)===0||(y&l)!==0)&&(s[h]=Jg(y,t)):E<=t&&(e.expiredLanes|=y),c&=~y}if(t=Ie,n=Ne,n=ji(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&wt(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ra(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&wt(l),To(n)){case 2:case 8:n=jl;break;case 32:n=fl;break;case 268435456:n=xa;break;default:n=fl}return l=Eh.bind(null,e),n=ul(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&wt(l),e.callbackPriority=2,e.callbackNode=null,2}function Eh(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ds()&&e.callbackNode!==n)return null;var l=Ne;return l=ji(e,e===Ie?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(lh(e,l,t),Th(e,rt()),e.callbackNode!=null&&e.callbackNode===n?Eh.bind(null,e):null)}function Ah(e,t){if(Ds())return null;lh(e,t,!0)}function Ry(){By(function(){(Ue&6)!==0?ul(Aa,xy):vh()})}function oc(){if(tl===0){var e=ea;e===0&&(e=Li,Li<<=1,(Li&261888)===0&&(Li=256)),tl=e}return tl}function xh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hi(""+e)}function Rh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function wy(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=xh((s[Nt]||null).action),h=l.submitter;h&&(t=(t=h[Nt]||null)?xh(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new Ki("action","action",null,l,s);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(tl!==0){var E=h?Rh(s,h):new FormData(s);Nr(n,{pending:!0,data:E,method:s.method,action:c},null,E)}}else typeof c=="function"&&(y.preventDefault(),E=h?Rh(s,h):new FormData(s),Nr(n,{pending:!0,data:E,method:s.method,action:c},c,E))},currentTarget:s}]})}}for(var rc=0;rc<qo.length;rc++){var cc=qo[rc],Ny=cc.toLowerCase(),Cy=cc[0].toUpperCase()+cc.slice(1);nn(Ny,"on"+Cy)}nn(tf,"onAnimationEnd"),nn(nf,"onAnimationIteration"),nn(lf,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(qm,"onTransitionRun"),nn(Ym,"onTransitionStart"),nn(Im,"onTransitionCancel"),nn(af,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),Dy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oi));function wh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var h=l.length-1;0<=h;h--){var y=l[h],E=y.instance,L=y.currentTarget;if(y=y.listener,E!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=L;try{c(s)}catch(G){Ii(G)}s.currentTarget=null,c=E}else for(h=0;h<l.length;h++){if(y=l[h],E=y.instance,L=y.currentTarget,y=y.listener,E!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=L;try{c(s)}catch(G){Ii(G)}s.currentTarget=null,c=E}}}}function we(e,t){var n=t[Eo];n===void 0&&(n=t[Eo]=new Set);var l=e+"__bubble";n.has(l)||(Nh(t,e,2,!1),n.add(l))}function uc(e,t,n){var l=0;t&&(l|=4),Nh(n,e,l,t)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[Ls]){e[Ls]=!0,Su.forEach(function(n){n!=="selectionchange"&&(Dy.has(n)||uc(n,!1,e),uc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ls]||(t[Ls]=!0,uc("selectionchange",!1,t))}}function Nh(e,t,n,l){switch(np(t)){case 2:var s=l1;break;case 8:s=a1;break;default:s=wc}n=s.bind(null,t,n,e),s=void 0,!Oo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function dc(e,t,n,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var y=l.stateNode.containerInfo;if(y===s)break;if(h===4)for(h=l.return;h!==null;){var E=h.tag;if((E===3||E===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;y!==null;){if(h=Bl(y),h===null)return;if(E=h.tag,E===5||E===6||E===26||E===27){l=c=h;continue e}y=y.parentNode}}l=l.return}Ou(function(){var L=c,G=Do(n),$=[];e:{var M=sf.get(e);if(M!==void 0){var B=Ki,oe=e;switch(e){case"keypress":if(Vi(n)===0)break e;case"keydown":case"keyup":B=Em;break;case"focusin":oe="focus",B=jo;break;case"focusout":oe="blur",B=jo;break;case"beforeblur":case"afterblur":B=jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Mu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=um;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Rm;break;case tf:case nf:case lf:B=hm;break;case af:B=Nm;break;case"scroll":case"scrollend":B=rm;break;case"wheel":B=Dm;break;case"copy":case"cut":case"paste":B=gm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Uu;break;case"toggle":case"beforetoggle":B=Om}var he=(t&4)!==0,qe=!he&&(e==="scroll"||e==="scrollend"),C=he?M!==null?M+"Capture":null:M;he=[];for(var x=L,k;x!==null;){var V=x;if(k=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||k===null||C===null||(V=Da(x,C),V!=null&&he.push(ri(x,V,k))),qe)break;x=x.return}0<he.length&&(M=new B(M,oe,null,n,G),$.push({event:M,listeners:he}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",M&&n!==Co&&(oe=n.relatedTarget||n.fromElement)&&(Bl(oe)||oe[Ul]))break e;if((B||M)&&(M=G.window===G?G:(M=G.ownerDocument)?M.defaultView||M.parentWindow:window,B?(oe=n.relatedTarget||n.toElement,B=L,oe=oe?Bl(oe):null,oe!==null&&(qe=f(oe),he=oe.tag,oe!==qe||he!==5&&he!==27&&he!==6)&&(oe=null)):(B=null,oe=L),B!==oe)){if(he=Mu,V="onMouseLeave",C="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(he=Uu,V="onPointerLeave",C="onPointerEnter",x="pointer"),qe=B==null?M:Ca(B),k=oe==null?M:Ca(oe),M=new he(V,x+"leave",B,n,G),M.target=qe,M.relatedTarget=k,V=null,Bl(G)===L&&(he=new he(C,x+"enter",oe,n,G),he.target=k,he.relatedTarget=qe,V=he),qe=V,B&&oe)t:{for(he=ky,C=B,x=oe,k=0,V=C;V;V=he(V))k++;V=0;for(var ue=x;ue;ue=he(ue))V++;for(;0<k-V;)C=he(C),k--;for(;0<V-k;)x=he(x),V--;for(;k--;){if(C===x||x!==null&&C===x.alternate){he=C;break t}C=he(C),x=he(x)}he=null}else he=null;B!==null&&Ch($,M,B,he,!1),oe!==null&&qe!==null&&Ch($,qe,oe,he,!0)}}e:{if(M=L?Ca(L):window,B=M.nodeName&&M.nodeName.toLowerCase(),B==="select"||B==="input"&&M.type==="file")var Me=qu;else if($u(M))if(Yu)Me=Vm;else{Me=Hm;var ce=_m}else B=M.nodeName,!B||B.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?L&&No(L.elementType)&&(Me=qu):Me=Gm;if(Me&&(Me=Me(e,L))){Ku($,Me,n,G);break e}ce&&ce(e,M,L),e==="focusout"&&L&&M.type==="number"&&L.memoizedProps.value!=null&&wo(M,"number",M.value)}switch(ce=L?Ca(L):window,e){case"focusin":($u(ce)||ce.contentEditable==="true")&&(Il=ce,Vo=L,Ba=null);break;case"focusout":Ba=Vo=Il=null;break;case"mousedown":$o=!0;break;case"contextmenu":case"mouseup":case"dragend":$o=!1,Wu($,n,G);break;case"selectionchange":if(Km)break;case"keydown":case"keyup":Wu($,n,G)}var Ae;if(Bo)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Yl?Gu(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(Bu&&n.locale!=="ko"&&(Yl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Yl&&(Ae=Lu()):(Hn=G,Lo="value"in Hn?Hn.value:Hn.textContent,Yl=!0)),ce=zs(L,Ce),0<ce.length&&(Ce=new ju(Ce,e,null,n,G),$.push({event:Ce,listeners:ce}),Ae?Ce.data=Ae:(Ae=Vu(n),Ae!==null&&(Ce.data=Ae)))),(Ae=zm?Mm(e,n):jm(e,n))&&(Ce=zs(L,"onBeforeInput"),0<Ce.length&&(ce=new ju("onBeforeInput","beforeinput",null,n,G),$.push({event:ce,listeners:Ce}),ce.data=Ae)),wy($,e,L,n,G)}wh($,t)})}function ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zs(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Da(e,n),s!=null&&l.unshift(ri(e,s,c)),s=Da(e,t),s!=null&&l.push(ri(e,s,c))),e.tag===3)return l;e=e.return}return[]}function ky(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ch(e,t,n,l,s){for(var c=t._reactName,h=[];n!==null&&n!==l;){var y=n,E=y.alternate,L=y.stateNode;if(y=y.tag,E!==null&&E===l)break;y!==5&&y!==26&&y!==27||L===null||(E=L,s?(L=Da(n,c),L!=null&&h.unshift(ri(n,L,E))):s||(L=Da(n,c),L!=null&&h.push(ri(n,L,E)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Oy=/\r\n?/g,Ly=/\u0000|\uFFFD/g;function Dh(e){return(typeof e=="string"?e:""+e).replace(Oy,`
|
|
9
|
+
`).replace(Ly,"")}function kh(e,t){return t=Dh(t),Dh(e)===t}function Ke(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||$l(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&$l(e,""+l);break;case"className":Bi(e,"class",l);break;case"tabIndex":Bi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bi(e,n,l);break;case"style":Du(e,l,c);break;case"data":if(t!=="object"){Bi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Hi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",s.name,s,null),Ke(e,t,"formEncType",s.formEncType,s,null),Ke(e,t,"formMethod",s.formMethod,s,null),Ke(e,t,"formTarget",s.formTarget,s,null)):(Ke(e,t,"encType",s.encType,s,null),Ke(e,t,"method",s.method,s,null),Ke(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Hi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=yn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Hi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":we("beforetoggle",e),we("toggle",e),Ui(e,"popover",l);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ui(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=sm.get(n)||n,Ui(e,n,l))}}function hc(e,t,n,l,s,c){switch(n){case"style":Du(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?$l(e,l):(typeof l=="number"||typeof l=="bigint")&&$l(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vu.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Nt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Ui(e,n,l)}}}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ke(e,t,c,h,n,null)}}s&&Ke(e,t,"srcSet",n.srcSet,n,null),l&&Ke(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var y=c=h=s=null,E=null,L=null;for(l in n)if(n.hasOwnProperty(l)){var G=n[l];if(G!=null)switch(l){case"name":s=G;break;case"type":h=G;break;case"checked":E=G;break;case"defaultChecked":L=G;break;case"value":c=G;break;case"defaultValue":y=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:Ke(e,t,l,G,n,null)}}Ru(e,c,y,E,L,h,s,!1);return;case"select":we("invalid",e),l=h=c=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":c=y;break;case"defaultValue":h=y;break;case"multiple":l=y;default:Ke(e,t,s,y,n,null)}t=c,n=h,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):n!=null&&Vl(e,!!l,n,!0);return;case"textarea":we("invalid",e),c=s=l=null;for(h in n)if(n.hasOwnProperty(h)&&(y=n[h],y!=null))switch(h){case"value":l=y;break;case"defaultValue":s=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:Ke(e,t,h,y,n,null)}Nu(e,l,s,c);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ke(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<oi.length;l++)we(oi[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(L in n)if(n.hasOwnProperty(L)&&(l=n[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ke(e,t,L,l,n,null)}return;default:if(No(t)){for(G in n)n.hasOwnProperty(G)&&(l=n[G],l!==void 0&&hc(e,t,G,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Ke(e,t,y,l,n,null))}function zy(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,h=null,y=null,E=null,L=null,G=null;for(B in n){var $=n[B];if(n.hasOwnProperty(B)&&$!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=$;default:l.hasOwnProperty(B)||Ke(e,t,B,null,l,$)}}for(var M in l){var B=l[M];if($=n[M],l.hasOwnProperty(M)&&(B!=null||$!=null))switch(M){case"type":c=B;break;case"name":s=B;break;case"checked":L=B;break;case"defaultChecked":G=B;break;case"value":h=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==$&&Ke(e,t,M,B,l,$)}}Ro(e,h,y,E,L,G,c,s);return;case"select":B=h=y=M=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":B=E;default:l.hasOwnProperty(c)||Ke(e,t,c,null,l,E)}for(s in l)if(c=l[s],E=n[s],l.hasOwnProperty(s)&&(c!=null||E!=null))switch(s){case"value":M=c;break;case"defaultValue":y=c;break;case"multiple":h=c;default:c!==E&&Ke(e,t,s,c,l,E)}t=y,n=h,l=B,M!=null?Vl(e,!!n,M,!1):!!l!=!!n&&(t!=null?Vl(e,!!n,t,!0):Vl(e,!!n,n?[]:"",!1));return;case"textarea":B=M=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ke(e,t,y,null,l,s)}for(h in l)if(s=l[h],c=n[h],l.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":M=s;break;case"defaultValue":B=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&Ke(e,t,h,s,l,c)}wu(e,M,B);return;case"option":for(var oe in n)M=n[oe],n.hasOwnProperty(oe)&&M!=null&&!l.hasOwnProperty(oe)&&(oe==="selected"?e.selected=!1:Ke(e,t,oe,null,l,M));for(E in l)M=l[E],B=n[E],l.hasOwnProperty(E)&&M!==B&&(M!=null||B!=null)&&(E==="selected"?e.selected=M&&typeof M!="function"&&typeof M!="symbol":Ke(e,t,E,M,l,B));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 he in n)M=n[he],n.hasOwnProperty(he)&&M!=null&&!l.hasOwnProperty(he)&&Ke(e,t,he,null,l,M);for(L in l)if(M=l[L],B=n[L],l.hasOwnProperty(L)&&M!==B&&(M!=null||B!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Ke(e,t,L,M,l,B)}return;default:if(No(t)){for(var qe in n)M=n[qe],n.hasOwnProperty(qe)&&M!==void 0&&!l.hasOwnProperty(qe)&&hc(e,t,qe,void 0,l,M);for(G in l)M=l[G],B=n[G],!l.hasOwnProperty(G)||M===B||M===void 0&&B===void 0||hc(e,t,G,M,l,B);return}}for(var C in n)M=n[C],n.hasOwnProperty(C)&&M!=null&&!l.hasOwnProperty(C)&&Ke(e,t,C,null,l,M);for($ in l)M=l[$],B=n[$],!l.hasOwnProperty($)||M===B||M==null&&B==null||Ke(e,t,$,M,l,B)}function Oh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function My(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,h=s.initiatorType,y=s.duration;if(c&&y&&Oh(h)){for(h=0,y=s.responseEnd,l+=1;l<n.length;l++){var E=n[l],L=E.startTime;if(L>y)break;var G=E.transferSize,$=E.initiatorType;G&&Oh($)&&(E=E.responseEnd,h+=G*(E<y?1:(y-L)/(E-L)))}if(--l,t+=8*(c+h)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pc=null,gc=null;function Ms(e){return e.nodeType===9?e:e.ownerDocument}function Lh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yc=null;function jy(){var e=window.event;return e&&e.type==="popstate"?e===yc?!1:(yc=e,!0):(yc=null,!1)}var Mh=typeof setTimeout=="function"?setTimeout:void 0,Uy=typeof clearTimeout=="function"?clearTimeout:void 0,jh=typeof Promise=="function"?Promise:void 0,By=typeof queueMicrotask=="function"?queueMicrotask:typeof jh<"u"?function(e){return jh.resolve(null).then(e).catch(_y)}:Mh;function _y(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function Uh(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),Sa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ci(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ci(n);for(var c=n.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[Na]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&ci(e.ownerDocument.body);n=s}while(n);Sa(t)}function Bh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bc(n),Ao(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Hy(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Na])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Wt(e.nextSibling),e===null)break}return null}function Gy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wt(e.nextSibling),e===null))return null;return e}function _h(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wt(e.nextSibling),e===null))return null;return e}function Sc(e){return e.data==="$?"||e.data==="$~"}function vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Vy(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Tc=null;function Hh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Wt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Gh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Vh(e,t,n){switch(t=Ms(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ao(e)}var en=new Map,$h=new Set;function js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=Y.d;Y.d={f:$y,r:Ky,D:qy,C:Yy,L:Iy,m:Xy,X:Qy,S:Zy,M:Fy};function $y(){var e=zn.f(),t=ws();return e||t}function Ky(e){var t=_l(e);t!==null&&t.tag===5&&t.type==="form"?id(t):zn.r(e)}var ma=typeof document>"u"?null:document;function Kh(e,t,n){var l=ma;if(l&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),$h.has(s)||($h.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),bt(t,"link",e),ft(t),l.head.appendChild(t)))}}function qy(e){zn.D(e),Kh("dns-prefetch",e,null)}function Yy(e,t){zn.C(e,t),Kh("preconnect",e,t)}function Iy(e,t,n){zn.L(e,t,n);var l=ma;if(l&&e&&t){var s='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+It(n.imageSizes)+'"]')):s+='[href="'+It(e)+'"]';var c=s;switch(t){case"style":c=ya(e);break;case"script":c=ba(e)}en.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),en.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(ui(c))||t==="script"&&l.querySelector(fi(c))||(t=l.createElement("link"),bt(t,"link",e),ft(t),l.head.appendChild(t)))}}function Xy(e,t){zn.m(e,t);var n=ma;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+It(l)+'"][href="'+It(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ba(e)}if(!en.has(c)&&(e=v({rel:"modulepreload",href:e},t),en.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(fi(c)))return}l=n.createElement("link"),bt(l,"link",e),ft(l),n.head.appendChild(l)}}}function Zy(e,t,n){zn.S(e,t,n);var l=ma;if(l&&e){var s=Hl(l).hoistableStyles,c=ya(e);t=t||"default";var h=s.get(c);if(!h){var y={loading:0,preload:null};if(h=l.querySelector(ui(c)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=en.get(c))&&Ec(e,n);var E=h=l.createElement("link");ft(E),bt(E,"link",e),E._p=new Promise(function(L,G){E.onload=L,E.onerror=G}),E.addEventListener("load",function(){y.loading|=1}),E.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Us(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:y},s.set(c,h)}}}function Qy(e,t){zn.X(e,t);var n=ma;if(n&&e){var l=Hl(n).hoistableScripts,s=ba(e),c=l.get(s);c||(c=n.querySelector(fi(s)),c||(e=v({src:e,async:!0},t),(t=en.get(s))&&Ac(e,t),c=n.createElement("script"),ft(c),bt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function Fy(e,t){zn.M(e,t);var n=ma;if(n&&e){var l=Hl(n).hoistableScripts,s=ba(e),c=l.get(s);c||(c=n.querySelector(fi(s)),c||(e=v({src:e,async:!0,type:"module"},t),(t=en.get(s))&&Ac(e,t),c=n.createElement("script"),ft(c),bt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qh(e,t,n,l){var s=(s=Ee.current)?js(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ya(n.href),n=Hl(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ya(n.href);var c=Hl(s).hoistableStyles,h=c.get(e);if(h||(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=s.querySelector(ui(e)))&&!c._p&&(h.instance=c,h.state.loading=5),en.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},en.set(e,n),c||Jy(s,e,n,h.state))),t&&l===null)throw Error(r(528,""));return h}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ba(n),n=Hl(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ya(e){return'href="'+It(e)+'"'}function ui(e){return'link[rel="stylesheet"]['+e+"]"}function Yh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Jy(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),bt(t,"link",n),ft(t),e.head.appendChild(t))}function ba(e){return'[src="'+It(e)+'"]'}function fi(e){return"script[async]"+e}function Ih(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(l)return t.instance=l,ft(l),l;var s=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ft(l),bt(l,"style",s),Us(l,n.precedence,e),t.instance=l;case"stylesheet":s=ya(n.href);var c=e.querySelector(ui(s));if(c)return t.state.loading|=4,t.instance=c,ft(c),c;l=Yh(n),(s=en.get(s))&&Ec(l,s),c=(e.ownerDocument||e).createElement("link"),ft(c);var h=c;return h._p=new Promise(function(y,E){h.onload=y,h.onerror=E}),bt(c,"link",l),t.state.loading|=4,Us(c,n.precedence,e),t.instance=c;case"script":return c=ba(n.src),(s=e.querySelector(fi(c)))?(t.instance=s,ft(s),s):(l=n,(s=en.get(c))&&(l=v({},n),Ac(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),ft(s),bt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Us(l,n.precedence,e));return t.instance}function Us(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,h=0;h<l.length;h++){var y=l[h];if(y.dataset.precedence===t)c=y;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bs=null;function Xh(e,t,n){if(Bs===null){var l=new Map,s=Bs=new Map;s.set(n,l)}else s=Bs,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[Na]||c[pt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=l.get(h);y?y.push(c):l.set(h,[c])}}return l}function Zh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Py(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Qh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wy(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ya(l.href),c=t.querySelector(ui(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_s.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ft(c);return}c=t.ownerDocument||t,l=Yh(l),(s=en.get(s))&&Ec(l,s),c=c.createElement("link"),ft(c);var h=c;h._p=new Promise(function(y,E){h.onload=y,h.onerror=E}),bt(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=_s.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var xc=0;function e1(e,t){return e.stylesheets&&e.count===0&&Gs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Gs(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&xc===0&&(xc=62500*My());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gs(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>xc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function _s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hs=null;function Gs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hs=new Map,t.forEach(t1,e),Hs=null,_s.call(e))}function t1(e,t){if(!(t.state.loading&4)){var n=Hs.get(e);if(n)var l=n.get(null);else{n=new Map,Hs.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}s=t.instance,h=s.getAttribute("data-precedence"),c=n.get(h)||l,c===l&&n.set(null,s),n.set(h,s),this.count++,l=_s.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var di={$$typeof:ee,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function n1(e,t,n,l,s,c,h,y,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=So(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.hiddenUpdates=So(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Fh(e,t,n,l,s,c,h,y,E,L,G,$){return e=new n1(e,t,n,h,E,L,G,$,y),t=1,c===!0&&(t|=24),c=Bt(3,null,null,t),e.current=c,c.stateNode=e,t=lr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},or(c),e}function Jh(e){return e?(e=Ql,e):Ql}function Ph(e,t,n,l,s,c){s=Jh(s),l.context===null?l.context=s:l.pendingContext=s,l=Yn(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=In(e,l,t),n!==null&&(zt(n,e,t),qa(n,e,t))}function Wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rc(e,t){Wh(e,t),(e=e.alternate)&&Wh(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=yl(e,67108864);t!==null&&zt(t,e,67108864),Rc(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=$t();t=vo(t);var n=yl(e,t);n!==null&&zt(n,e,t),Rc(e,t)}}var Vs=!0;function l1(e,t,n,l){var s=j.T;j.T=null;var c=Y.p;try{Y.p=2,wc(e,t,n,l)}finally{Y.p=c,j.T=s}}function a1(e,t,n,l){var s=j.T;j.T=null;var c=Y.p;try{Y.p=8,wc(e,t,n,l)}finally{Y.p=c,j.T=s}}function wc(e,t,n,l){if(Vs){var s=Nc(l);if(s===null)dc(e,t,l,$s,n),lp(e,l);else if(s1(s,e,t,n,l))l.stopPropagation();else if(lp(e,l),t&4&&-1<i1.indexOf(e)){for(;s!==null;){var c=_l(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=dl(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var E=1<<31-ht(h);y.entanglements[1]|=E,h&=~E}hn(c),(Ue&6)===0&&(xs=rt()+500,si(0))}}break;case 31:case 13:y=yl(c,2),y!==null&&zt(y,c,2),ws(),Rc(c,2)}if(c=Nc(l),c===null&&dc(e,t,l,$s,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else dc(e,t,l,null,n)}}function Nc(e){return e=Do(e),Cc(e)}var $s=null;function Cc(e){if($s=null,e=Bl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $s=e,null}function np(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ml()){case Aa:return 2;case jl:return 8;case fl:case Oi:return 32;case xa:return 268435456;default:return 32}default:return 32}}var Dc=!1,ll=null,al=null,il=null,hi=new Map,pi=new Map,sl=[],i1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lp(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":hi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pi.delete(t.pointerId)}}function gi(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=_l(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function s1(e,t,n,l,s){switch(t){case"focusin":return ll=gi(ll,e,t,n,l,s),!0;case"dragenter":return al=gi(al,e,t,n,l,s),!0;case"mouseover":return il=gi(il,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return hi.set(c,gi(hi.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,pi.set(c,gi(pi.get(c)||null,e,t,n,l,s)),!0}return!1}function ap(e){var t=Bl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,yu(e.priority,function(){tp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,yu(e.priority,function(){tp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ks(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Co=l,n.target.dispatchEvent(l),Co=null}else return t=_l(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function ip(e,t,n){Ks(e)&&n.delete(t)}function o1(){Dc=!1,ll!==null&&Ks(ll)&&(ll=null),al!==null&&Ks(al)&&(al=null),il!==null&&Ks(il)&&(il=null),hi.forEach(ip),pi.forEach(ip)}function qs(e,t){e.blockedOn===t&&(e.blockedOn=null,Dc||(Dc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,o1)))}var Ys=null;function sp(e){Ys!==e&&(Ys=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ys===e&&(Ys=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Cc(l||n)===null)continue;break}var c=_l(n);c!==null&&(e.splice(t,3),t-=3,Nr(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function Sa(e){function t(E){return qs(E,e)}ll!==null&&qs(ll,e),al!==null&&qs(al,e),il!==null&&qs(il,e),hi.forEach(t),pi.forEach(t);for(var n=0;n<sl.length;n++){var l=sl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<sl.length&&(n=sl[0],n.blockedOn===null);)ap(n),n.blockedOn===null&&sl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],h=s[Nt]||null;if(typeof c=="function")h||sp(n);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[Nt]||null)y=h.formAction;else if(Cc(s)!==null)continue}else y=h.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),sp(n)}}}function op(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return s=h})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function kc(e){this._internalRoot=e}Is.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=$t();Ph(n,l,e,t,null,null)},Is.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ph(e.current,2,null,e,null,null),ws(),t[Ul]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=mu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sl.length&&t!==0&&t<sl[n].priority;n++);sl.splice(n,0,e),n===0&&ap(e)}};var rp=i.version;if(rp!=="19.2.4")throw Error(r(527,rp,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var r1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Pe=Xs.inject(r1),ct=Xs}catch{}}return bi.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,l="",s=gd,c=md,h=yd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Fh(e,1,!1,null,null,n,l,null,s,c,h,op),e[Ul]=t.current,fc(e),new kc(t)},bi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var l=!1,s="",c=gd,h=md,y=yd,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Fh(e,1,!0,t,n??null,l,s,E,c,h,y,op),t.context=Jh(null),n=t.current,l=$t(),l=vo(l),s=Yn(l),s.callback=null,In(n,s,l),n=l,t.current.lanes=n,wa(t,n),hn(t),e[Ul]=t.current,fc(e),new Is(t)},bi.version="19.2.4",bi}var Hp;function GS(){if(Hp)return Hc.exports;Hp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Hc.exports=HS(),Hc.exports}var VS=GS();const w=16,sn=22,tn=16,S={deep0:"#0a1628",deep1:"#0e1f3a",deep2:"#132a4a",sea0:"#1a3a5c",sea1:"#1e4d6e",sea2:"#236480",sand0:"#c2a24e",sand1:"#d4b65c",sand2:"#e6ca72",sandD:"#a08838",coral0:"#e74c6f",coral1:"#ff6b8a",coralD:"#b33a58",coral2:"#f4a261",coral3:"#e76f51",kelp0:"#1b6b3a",kelp1:"#228b4a",kelp2:"#2ecc71",kelpD:"#145228",lob0:"#c0392b",lob1:"#e74c3c",lob2:"#ff6b5c",lobD:"#8b1a10",shell0:"#d4a06a",shell1:"#e8be8a",shell2:"#f5d6a8",shellD:"#b08040",lounge0:"#8b4513",lounge1:"#a0522d",lounge2:"#cd853f",loungeD:"#5c2e0a",bubble:"rgba(180,220,255,0.5)",bubbleH:"rgba(220,240,255,0.7)",uiBg:"rgba(10, 22, 40, 0.93)",uiBg2:"rgba(14, 28, 50, 0.97)",uiBorder:"#f4a261",inputBg:"rgba(15, 30, 55, 0.9)",inputBorder:"rgba(244,162,97,0.35)",text:"#e8e0d0",textDim:"#6a8090",green:"#2ecc71",amber:"#f4a261",red:"#e74c3c",cyan:"#5dade2",purple:"#9b59b6",black:"#0a0a14",chatUser:"rgba(244,162,97,0.10)",chatAgent:"rgba(46,204,113,0.08)"},Ci=[[2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2],[2,2,0,0,8,0,0,4,4,4,4,4,4,4,4,0,0,8,0,0,2,2],[2,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,2],[0,0,8,0,0,3,3,6,3,3,3,3,3,3,6,3,3,0,0,8,0,0],[0,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0],[0,0,7,0,0,3,3,6,3,3,3,3,3,3,6,3,3,0,0,7,0,0],[0,0,0,0,0,3,3,3,3,3,5,5,3,3,3,3,3,0,0,0,0,0],[0,0,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,9,0,0,0],[0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0],[0,7,0,1,0,0,9,0,0,0,1,1,0,0,0,9,0,0,1,0,7,0],[0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0],[0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0],[0,8,0,0,0,1,0,0,7,0,0,0,0,7,0,0,1,0,0,0,8,0],[0,0,0,0,0,1,0,9,0,0,0,0,0,0,9,0,1,0,0,0,0,0],[2,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,2],[2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2]],$S={A:[2,5,7,5,5],B:[6,5,6,5,6],C:[3,4,4,4,3],D:[6,5,5,5,6],E:[7,4,6,4,7],F:[7,4,6,4,4],G:[3,4,5,5,3],H:[5,5,7,5,5],I:[7,2,2,2,7],J:[1,1,1,5,2],K:[5,6,4,6,5],L:[4,4,4,4,7],M:[5,7,7,5,5],N:[5,7,7,5,5],O:[2,5,5,5,2],P:[6,5,6,4,4],Q:[2,5,5,6,3],R:[6,5,6,5,5],S:[3,4,2,1,6],T:[7,2,2,2,2],U:[5,5,5,5,2],V:[5,5,5,2,2],W:[5,5,7,7,5],X:[5,5,2,5,5],Y:[5,5,2,2,2],Z:[7,1,2,4,7],0:[2,5,5,5,2],1:[2,6,2,2,7],2:[6,1,2,4,7],3:[6,1,2,1,6],4:[5,5,7,1,1],5:[7,4,6,1,6],6:[3,4,6,5,2],7:[7,1,2,2,2],8:[2,5,2,5,2],9:[2,5,3,1,6],":":[0,2,0,2,0],"/":[1,1,2,4,4]," ":[0,0,0,0,0],"-":[0,0,7,0,0],".":[0,0,0,0,2]},KS=Array.from({length:18},(a,i)=>({x:Math.random()*sn*w,y:Math.random()*tn*w,speed:.2+Math.random()*.4,size:1+Math.floor(Math.random()*2),wobble:Math.random()*Math.PI*2})),qS=[{id:"discover",duration:1800},{id:"handshake",duration:2200},{id:"auth",duration:1600},{id:"sync",duration:2400},{id:"ready",duration:0}];function YS({logs:a=[]}){const i=a.slice(-15);return b.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:i.map((o,r)=>b.jsxs("div",{style:{fontSize:11,lineHeight:1.4,opacity:.4+r/i.length*.6,borderLeft:`2px solid ${o.color}`,paddingLeft:6,animation:"tideFadeIn 0.3s ease-out"},children:[b.jsx("span",{style:{color:o.color,fontWeight:"bold"},children:o.agent}),b.jsx("div",{style:{color:S.textDim},children:o.action})]},o.id))})}const IS="openclaw-messages",XS=1,gn="messages";let Si=null;function go(){return Si||(Si=new Promise((a,i)=>{const o=indexedDB.open(IS,XS);o.onupgradeneeded=()=>{const r=o.result;r.objectStoreNames.contains(gn)||r.createObjectStore(gn,{keyPath:"key"}).createIndex("agentKey",["gatewayUrl","agentId"],{unique:!1})},o.onsuccess=()=>a(o.result),o.onerror=()=>{Si=null,i(o.error)}}),Si)}function ZS(a,i,o){return`${a}::${i}::${o}`}async function QS(a,i){const o=await go();return new Promise((r,u)=>{const p=o.transaction(gn,"readonly").objectStore(gn).index("agentKey").getAll(IDBKeyRange.only([a,i]));p.onsuccess=()=>{const m=p.result;m.sort((T,v)=>T.timestamp-v.timestamp),r(m.map(T=>T.message))},p.onerror=()=>u(p.error)})}async function Gp(a,i,o){const r=await go();return new Promise((u,f)=>{const g=r.transaction(gn,"readwrite").objectStore(gn),p={key:ZS(a,i,o.id),gatewayUrl:a,agentId:i,message:{...o,streaming:void 0},timestamp:Date.now()},m=g.put(p);m.onsuccess=()=>u(),m.onerror=()=>f(m.error)})}async function FS(a,i){const o=await go();return new Promise((r,u)=>{const p=o.transaction(gn,"readwrite").objectStore(gn).index("agentKey").openCursor(IDBKeyRange.only([a,i]));p.onsuccess=()=>{const m=p.result;m?(m.delete(),m.continue()):r()},p.onerror=()=>u(p.error)})}async function JS(a){const i=await go();return new Promise((o,r)=>{const f=i.transaction(gn,"readwrite").objectStore(gn),g=f.index("agentKey").openCursor(),p=new Map;g.onsuccess=()=>{const m=g.result;if(m){const T=m.value,v=`${T.gatewayUrl}::${T.agentId}`,N=p.get(v)||[];N.push(T),p.set(v,N),m.continue()}else{for(const T of p.values())if(T.length>a){T.sort((N,D)=>N.timestamp-D.timestamp);const v=T.slice(0,T.length-a);for(const N of v)f.delete(N.key)}o()}},g.onerror=()=>r(g.error)})}function ge(a,i){if(a.startsWith("rgb"))return a;const o=parseInt(a.slice(1,3),16)+i,r=parseInt(a.slice(3,5),16)+i,u=parseInt(a.slice(5,7),16)+i;return`rgb(${Math.max(0,Math.min(255,o))},${Math.max(0,Math.min(255,r))},${Math.max(0,Math.min(255,u))})`}function tu(a,i,o,r,u=1){const f=i.toUpperCase().split("");let d=o;f.forEach(g=>{const p=$S[g];p&&p.forEach((m,T)=>{for(let v=0;v<3;v++)m&1<<2-v&&a.fillRect(d+v*u,r+T*u,u,u)}),d+=4*u})}function Kt({color:a,size:i=48,style:o}){const r=U.useRef(null),u=U.useRef(Math.random()*100);return U.useEffect(()=>{let f;const d=()=>{const g=r.current;if(!g)return;const p=g.getContext("2d");if(!p)return;const m=u.current++;p.clearRect(0,0,16,16);const T=Math.sin(m*.08)>0?-1:0,v=a;p.fillStyle=v,p.fillRect(4,5+T,8,7),p.fillStyle=ge(v,25),p.fillRect(5,5+T,3,2),p.fillStyle=ge(v,-15),p.fillRect(4,8+T,8,1),p.fillStyle=ge(v,10),p.fillRect(5,2+T,6,4),p.fillStyle="#0a0a14",p.fillRect(4,2+T,2,2),p.fillRect(10,2+T,2,2),p.fillStyle="#fff",p.fillRect(4,1+T,1,1),p.fillRect(11,1+T,1,1),p.fillStyle=ge(v,-20);const N=Math.sin(m*.1)*1.5;p.fillRect(3+Math.round(N),T,1,2),p.fillRect(12-Math.round(N),T,1,2);const D=Math.sin(m*.06)>.7?1:0;p.fillStyle=ge(v,15),p.fillRect(1,5+T,3,3),p.fillRect(0,4+T,2,2+D),p.fillStyle=ge(v,-10),p.fillRect(0,7+T-D,2,2),p.fillStyle=ge(v,15),p.fillRect(12,5+T,3,3),p.fillRect(14,4+T,2,2+D),p.fillStyle=ge(v,-10),p.fillRect(14,7+T-D,2,2),p.fillStyle=ge(v,-25),p.fillRect(6,12+T,4,3),p.fillRect(4,14,3,1),p.fillRect(9,14,3,1),p.fillStyle=ge(v,-30);for(let O=0;O<3;O++){const q=Math.sin(m*.12+O*1.5)>0?1:0;p.fillRect(2,8+O*2+T+q,2,1),p.fillRect(12,8+O*2+T-q,2,1)}f=requestAnimationFrame(d)};return d(),()=>{f!==void 0&&cancelAnimationFrame(f)}},[a]),b.jsx("canvas",{ref:r,width:16,height:16,style:{width:i,height:i,imageRendering:"pixelated",...o}})}function nu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var zl=nu();function vg(a){zl=a}var kl={exec:()=>null};function Oe(a,i=""){let o=typeof a=="string"?a:a.source,r={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(xt.caret,"$1"),o=o.replace(u,d),r},getRegex:()=>new RegExp(o,i)};return r}var PS=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),xt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}>`)},WS=/^(?:[ \t]*(?:\n|$))+/,ev=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ki=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lu=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Tg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Eg=Oe(Tg).replace(/bull/g,lu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),lv=Oe(Tg).replace(/bull/g,lu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),au=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,av=/^[^\n]+/,iu=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iv=Oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",iu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sv=Oe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lu).getRegex(),mo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",su=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ov=Oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",su).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ag=Oe(au).replace("hr",ki).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),rv=Oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ag).getRegex(),ou={blockquote:rv,code:ev,def:iv,fences:tv,heading:nv,hr:ki,html:ov,lheading:Eg,list:sv,newline:WS,paragraph:Ag,table:kl,text:av},Vp=Oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ki).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),cv={...ou,lheading:lv,table:Vp,paragraph:Oe(au).replace("hr",ki).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},uv={...ou,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",su).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:kl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(au).replace("hr",ki).replace("heading",` *#{1,6} *[^
|
|
10
|
+
]`).replace("lheading",Eg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xg=/^( {2,}|\\)\n(?!\s*$)/,hv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yo=/[\p{P}\p{S}]/u,ru=/[\s\p{P}\p{S}]/u,Rg=/[^\s\p{P}\p{S}]/u,pv=Oe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ru).getRegex(),wg=/(?!~)[\p{P}\p{S}]/u,gv=/(?!~)[\s\p{P}\p{S}]/u,mv=/(?:[^\s\p{P}\p{S}]|~)/u,Ng=/(?![*_])[\p{P}\p{S}]/u,yv=/(?![*_])[\s\p{P}\p{S}]/u,bv=/(?:[^\s\p{P}\p{S}]|[*_])/u,Sv=Oe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",PS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Cg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vv=Oe(Cg,"u").replace(/punct/g,yo).getRegex(),Tv=Oe(Cg,"u").replace(/punct/g,wg).getRegex(),Dg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ev=Oe(Dg,"gu").replace(/notPunctSpace/g,Rg).replace(/punctSpace/g,ru).replace(/punct/g,yo).getRegex(),Av=Oe(Dg,"gu").replace(/notPunctSpace/g,mv).replace(/punctSpace/g,gv).replace(/punct/g,wg).getRegex(),xv=Oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Rg).replace(/punctSpace/g,ru).replace(/punct/g,yo).getRegex(),Rv=Oe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ng).getRegex(),wv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Nv=Oe(wv,"gu").replace(/notPunctSpace/g,bv).replace(/punctSpace/g,yv).replace(/punct/g,Ng).getRegex(),Cv=Oe(/\\(punct)/,"gu").replace(/punct/g,yo).getRegex(),Dv=Oe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),kv=Oe(su).replace("(?:-->|$)","-->").getRegex(),Ov=Oe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",kv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lv=Oe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",oo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kg=Oe(/^!?\[(label)\]\[(ref)\]/).replace("label",oo).replace("ref",iu).getRegex(),Og=Oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",iu).getRegex(),zv=Oe("reflink|nolink(?!\\()","g").replace("reflink",kg).replace("nolink",Og).getRegex(),$p=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cu={_backpedal:kl,anyPunctuation:Cv,autolink:Dv,blockSkip:Sv,br:xg,code:dv,del:kl,delLDelim:kl,delRDelim:kl,emStrongLDelim:vv,emStrongRDelimAst:Ev,emStrongRDelimUnd:xv,escape:fv,link:Lv,nolink:Og,punctuation:pv,reflink:kg,reflinkSearch:zv,tag:Ov,text:hv,url:kl},Mv={...cu,link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",oo).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oo).getRegex()},Qc={...cu,emStrongRDelimAst:Av,emStrongLDelim:Tv,delLDelim:Rv,delRDelim:Nv,url:Oe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",$p).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Oe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",$p).getRegex()},jv={...Qc,br:Oe(xg).replace("{2,}","*").getRegex(),text:Oe(Qc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qs={normal:ou,gfm:cv,pedantic:uv},vi={normal:cu,gfm:Qc,breaks:jv,pedantic:Mv},Uv={"&":"&","<":"<",">":">",'"':""","'":"'"},Kp=a=>Uv[a];function Mn(a,i){if(i){if(xt.escapeTest.test(a))return a.replace(xt.escapeReplace,Kp)}else if(xt.escapeTestNoEncode.test(a))return a.replace(xt.escapeReplaceNoEncode,Kp);return a}function qp(a){try{a=encodeURI(a).replace(xt.percentDecode,"%")}catch{return null}return a}function Yp(a,i){let o=a.replace(xt.findPipe,(f,d,g)=>{let p=!1,m=d;for(;--m>=0&&g[m]==="\\";)p=!p;return p?"|":" |"}),r=o.split(xt.splitPipe),u=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),i)if(r.length>i)r.splice(i);else for(;r.length<i;)r.push("");for(;u<r.length;u++)r[u]=r[u].trim().replace(xt.slashPipe,"|");return r}function Ti(a,i,o){let r=a.length;if(r===0)return"";let u=0;for(;u<r&&a.charAt(r-u-1)===i;)u++;return a.slice(0,r-u)}function Bv(a,i){if(a.indexOf(i[1])===-1)return-1;let o=0;for(let r=0;r<a.length;r++)if(a[r]==="\\")r++;else if(a[r]===i[0])o++;else if(a[r]===i[1]&&(o--,o<0))return r;return o>0?-2:-1}function _v(a,i=0){let o=i,r="";for(let u of a)if(u===" "){let f=4-o%4;r+=" ".repeat(f),o+=f}else r+=u,o++;return r}function Ip(a,i,o,r,u){let f=i.href,d=i.title||null,g=a[1].replace(u.other.outputLinkReplace,"$1");r.state.inLink=!0;let p={type:a[0].charAt(0)==="!"?"image":"link",raw:o,href:f,title:d,text:g,tokens:r.inlineTokens(g)};return r.state.inLink=!1,p}function Hv(a,i,o){let r=a.match(o.other.indentCodeCompensation);if(r===null)return i;let u=r[1];return i.split(`
|
|
11
|
+
`).map(f=>{let d=f.match(o.other.beginningSpace);if(d===null)return f;let[g]=d;return g.length>=u.length?f.slice(u.length):f}).join(`
|
|
12
|
+
`)}var ro=class{options;rules;lexer;constructor(a){this.options=a||zl}space(a){let i=this.rules.block.newline.exec(a);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(a){let i=this.rules.block.code.exec(a);if(i){let o=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Ti(o,`
|
|
13
|
+
`)}}}fences(a){let i=this.rules.block.fences.exec(a);if(i){let o=i[0],r=Hv(o,i[3]||"",this.rules);return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:r}}}heading(a){let i=this.rules.block.heading.exec(a);if(i){let o=i[2].trim();if(this.rules.other.endingHash.test(o)){let r=Ti(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(a){let i=this.rules.block.hr.exec(a);if(i)return{type:"hr",raw:Ti(i[0],`
|
|
14
|
+
`)}}blockquote(a){let i=this.rules.block.blockquote.exec(a);if(i){let o=Ti(i[0],`
|
|
15
|
+
`).split(`
|
|
16
|
+
`),r="",u="",f=[];for(;o.length>0;){let d=!1,g=[],p;for(p=0;p<o.length;p++)if(this.rules.other.blockquoteStart.test(o[p]))g.push(o[p]),d=!0;else if(!d)g.push(o[p]);else break;o=o.slice(p);let m=g.join(`
|
|
17
|
+
`),T=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
18
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
19
|
+
${m}`:m,u=u?`${u}
|
|
20
|
+
${T}`:T;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(T,f,!0),this.lexer.state.top=v,o.length===0)break;let N=f.at(-1);if(N?.type==="code")break;if(N?.type==="blockquote"){let D=N,O=D.raw+`
|
|
21
|
+
`+o.join(`
|
|
22
|
+
`),q=this.blockquote(O);f[f.length-1]=q,r=r.substring(0,r.length-D.raw.length)+q.raw,u=u.substring(0,u.length-D.text.length)+q.text;break}else if(N?.type==="list"){let D=N,O=D.raw+`
|
|
23
|
+
`+o.join(`
|
|
24
|
+
`),q=this.list(O);f[f.length-1]=q,r=r.substring(0,r.length-N.raw.length)+q.raw,u=u.substring(0,u.length-D.raw.length)+q.raw,o=O.substring(f.at(-1).raw.length).split(`
|
|
25
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:f,text:u}}}list(a){let i=this.rules.block.list.exec(a);if(i){let o=i[1].trim(),r=o.length>1,u={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let f=this.rules.other.listItemRegex(o),d=!1;for(;a;){let p=!1,m="",T="";if(!(i=f.exec(a))||this.rules.block.hr.test(a))break;m=i[0],a=a.substring(m.length);let v=_v(i[2].split(`
|
|
26
|
+
`,1)[0],i[1].length),N=a.split(`
|
|
27
|
+
`,1)[0],D=!v.trim(),O=0;if(this.options.pedantic?(O=2,T=v.trimStart()):D?O=i[1].length+1:(O=v.search(this.rules.other.nonSpaceChar),O=O>4?1:O,T=v.slice(O),O+=i[1].length),D&&this.rules.other.blankLine.test(N)&&(m+=N+`
|
|
28
|
+
`,a=a.substring(N.length+1),p=!0),!p){let q=this.rules.other.nextBulletRegex(O),J=this.rules.other.hrRegex(O),Q=this.rules.other.fencesBeginRegex(O),I=this.rules.other.headingBeginRegex(O),ee=this.rules.other.htmlBeginRegex(O),H=this.rules.other.blockquoteBeginRegex(O);for(;a;){let z=a.split(`
|
|
29
|
+
`,1)[0],ie;if(N=z,this.options.pedantic?(N=N.replace(this.rules.other.listReplaceNesting," "),ie=N):ie=N.replace(this.rules.other.tabCharGlobal," "),Q.test(N)||I.test(N)||ee.test(N)||H.test(N)||q.test(N)||J.test(N))break;if(ie.search(this.rules.other.nonSpaceChar)>=O||!N.trim())T+=`
|
|
30
|
+
`+ie.slice(O);else{if(D||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Q.test(v)||I.test(v)||J.test(v))break;T+=`
|
|
31
|
+
`+N}D=!N.trim(),m+=z+`
|
|
32
|
+
`,a=a.substring(z.length+1),v=ie.slice(O)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(d=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(T),loose:!1,text:T,tokens:[]}),u.raw+=m}let g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let p of u.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){if(p.text=p.text.replace(this.rules.other.listReplaceTask,""),p.tokens[0]?.type==="text"||p.tokens[0]?.type==="paragraph"){p.tokens[0].raw=p.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),p.tokens[0].text=p.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let T=this.lexer.inlineQueue.length-1;T>=0;T--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[T].src)){this.lexer.inlineQueue[T].src=this.lexer.inlineQueue[T].src.replace(this.rules.other.listReplaceTask,"");break}}let m=this.rules.other.listTaskCheckbox.exec(p.raw);if(m){let T={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};p.checked=T.checked,u.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=T.raw+p.tokens[0].raw,p.tokens[0].text=T.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(T)):p.tokens.unshift({type:"paragraph",raw:T.raw,text:T.raw,tokens:[T]}):p.tokens.unshift(T)}}if(!u.loose){let m=p.tokens.filter(v=>v.type==="space"),T=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=T}}if(u.loose)for(let p of u.items){p.loose=!0;for(let m of p.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(a){let i=this.rules.block.html.exec(a);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(a){let i=this.rules.block.def.exec(a);if(i){let o=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:r,title:u}}}table(a){let i=this.rules.block.table.exec(a);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let o=Yp(i[1]),r=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
33
|
+
`):[],f={type:"table",raw:i[0],header:[],align:[],rows:[]};if(o.length===r.length){for(let d of r)this.rules.other.tableAlignRight.test(d)?f.align.push("right"):this.rules.other.tableAlignCenter.test(d)?f.align.push("center"):this.rules.other.tableAlignLeft.test(d)?f.align.push("left"):f.align.push(null);for(let d=0;d<o.length;d++)f.header.push({text:o[d],tokens:this.lexer.inline(o[d]),header:!0,align:f.align[d]});for(let d of u)f.rows.push(Yp(d,f.header.length).map((g,p)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[p]})));return f}}lheading(a){let i=this.rules.block.lheading.exec(a);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(a){let i=this.rules.block.paragraph.exec(a);if(i){let o=i[1].charAt(i[1].length-1)===`
|
|
34
|
+
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}text(a){let i=this.rules.block.text.exec(a);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(a){let i=this.rules.inline.escape.exec(a);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(a){let i=this.rules.inline.tag.exec(a);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(a){let i=this.rules.inline.link.exec(a);if(i){let o=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let f=Ti(o.slice(0,-1),"\\");if((o.length-f.length)%2===0)return}else{let f=Bv(i[2],"()");if(f===-2)return;if(f>-1){let d=(i[0].indexOf("!")===0?5:4)+i[1].length+f;i[2]=i[2].substring(0,f),i[0]=i[0].substring(0,d).trim(),i[3]=""}}let r=i[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(r);f&&(r=f[1],u=f[3])}else u=i[3]?i[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),Ip(i,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(a,i){let o;if((o=this.rules.inline.reflink.exec(a))||(o=this.rules.inline.nolink.exec(a))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=i[r.toLowerCase()];if(!u){let f=o[0].charAt(0);return{type:"text",raw:f,text:f}}return Ip(o,u,o[0],this.lexer,this.rules)}}emStrong(a,i,o=""){let r=this.rules.inline.emStrongLDelim.exec(a);if(!(!r||r[3]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!o||this.rules.inline.punctuation.exec(o))){let u=[...r[0]].length-1,f,d,g=u,p=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,i=i.slice(-1*a.length+u);(r=m.exec(i))!=null;){if(f=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!f)continue;if(d=[...f].length,r[3]||r[4]){g+=d;continue}else if((r[5]||r[6])&&u%3&&!((u+d)%3)){p+=d;continue}if(g-=d,g>0)continue;d=Math.min(d,d+g+p);let T=[...r[0]][0].length,v=a.slice(0,u+r.index+T+d);if(Math.min(u,d)%2){let D=v.slice(1,-1);return{type:"em",raw:v,text:D,tokens:this.lexer.inlineTokens(D)}}let N=v.slice(2,-2);return{type:"strong",raw:v,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(a){let i=this.rules.inline.code.exec(a);if(i){let o=i[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),u=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&u&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:i[0],text:o}}}br(a){let i=this.rules.inline.br.exec(a);if(i)return{type:"br",raw:i[0]}}del(a,i,o=""){let r=this.rules.inline.delLDelim.exec(a);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let u=[...r[0]].length-1,f,d,g=u,p=this.rules.inline.delRDelim;for(p.lastIndex=0,i=i.slice(-1*a.length+u);(r=p.exec(i))!=null;){if(f=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!f||(d=[...f].length,d!==u))continue;if(r[3]||r[4]){g+=d;continue}if(g-=d,g>0)continue;d=Math.min(d,d+g);let m=[...r[0]][0].length,T=a.slice(0,u+r.index+m+d),v=T.slice(u,-u);return{type:"del",raw:T,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(a){let i=this.rules.inline.autolink.exec(a);if(i){let o,r;return i[2]==="@"?(o=i[1],r="mailto:"+o):(o=i[1],r=o),{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(a){let i;if(i=this.rules.inline.url.exec(a)){let o,r;if(i[2]==="@")o=i[0],r="mailto:"+o;else{let u;do u=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(u!==i[0]);o=i[0],i[1]==="www."?r="http://"+i[0]:r=i[0]}return{type:"link",raw:i[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(a){let i=this.rules.inline.text.exec(a);if(i){let o=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:o}}}},on=class Fc{tokens;options;state;inlineQueue;tokenizer;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||zl,this.options.tokenizer=this.options.tokenizer||new ro,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:xt,block:Qs.normal,inline:vi.normal};this.options.pedantic?(o.block=Qs.pedantic,o.inline=vi.pedantic):this.options.gfm&&(o.block=Qs.gfm,this.options.breaks?o.inline=vi.breaks:o.inline=vi.gfm),this.tokenizer.rules=o}static get rules(){return{block:Qs,inline:vi}}static lex(i,o){return new Fc(o).lex(i)}static lexInline(i,o){return new Fc(o).inlineTokens(i)}lex(i){i=i.replace(xt.carriageReturn,`
|
|
35
|
+
`),this.blockTokens(i,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,o=[],r=!1){for(this.options.pedantic&&(i=i.replace(xt.tabCharGlobal," ").replace(xt.spaceLine,""));i;){let u;if(this.options.extensions?.block?.some(d=>(u=d.call({lexer:this},i,o))?(i=i.substring(u.raw.length),o.push(u),!0):!1))continue;if(u=this.tokenizer.space(i)){i=i.substring(u.raw.length);let d=o.at(-1);u.raw.length===1&&d!==void 0?d.raw+=`
|
|
36
|
+
`:o.push(u);continue}if(u=this.tokenizer.code(i)){i=i.substring(u.raw.length);let d=o.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
37
|
+
`)?"":`
|
|
38
|
+
`)+u.raw,d.text+=`
|
|
39
|
+
`+u.text,this.inlineQueue.at(-1).src=d.text):o.push(u);continue}if(u=this.tokenizer.fences(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.heading(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.hr(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.blockquote(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.list(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.html(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.def(i)){i=i.substring(u.raw.length);let d=o.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
40
|
+
`)?"":`
|
|
41
|
+
`)+u.raw,d.text+=`
|
|
42
|
+
`+u.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},o.push(u));continue}if(u=this.tokenizer.table(i)){i=i.substring(u.raw.length),o.push(u);continue}if(u=this.tokenizer.lheading(i)){i=i.substring(u.raw.length),o.push(u);continue}let f=i;if(this.options.extensions?.startBlock){let d=1/0,g=i.slice(1),p;this.options.extensions.startBlock.forEach(m=>{p=m.call({lexer:this},g),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(f=i.substring(0,d+1))}if(this.state.top&&(u=this.tokenizer.paragraph(f))){let d=o.at(-1);r&&d?.type==="paragraph"?(d.raw+=(d.raw.endsWith(`
|
|
43
|
+
`)?"":`
|
|
44
|
+
`)+u.raw,d.text+=`
|
|
45
|
+
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):o.push(u),r=f.length!==i.length,i=i.substring(u.raw.length);continue}if(u=this.tokenizer.text(i)){i=i.substring(u.raw.length);let d=o.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
46
|
+
`)?"":`
|
|
47
|
+
`)+u.raw,d.text+=`
|
|
48
|
+
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):o.push(u);continue}if(i){let d="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,o}inline(i,o=[]){return this.inlineQueue.push({src:i,tokens:o}),o}inlineTokens(i,o=[]){let r=i,u=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)p.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,u.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let f;for(;(u=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)f=u[2]?u[2].length:0,r=r.slice(0,u.index+f)+"["+"a".repeat(u[0].length-f-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let d=!1,g="";for(;i;){d||(g=""),d=!1;let p;if(this.options.extensions?.inline?.some(T=>(p=T.call({lexer:this},i,o))?(i=i.substring(p.raw.length),o.push(p),!0):!1))continue;if(p=this.tokenizer.escape(i)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.tag(i)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.link(i)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(p.raw.length);let T=o.at(-1);p.type==="text"&&T?.type==="text"?(T.raw+=p.raw,T.text+=p.text):o.push(p);continue}if(p=this.tokenizer.emStrong(i,r,g)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.codespan(i)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.br(i)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.del(i,r,g)){i=i.substring(p.raw.length),o.push(p);continue}if(p=this.tokenizer.autolink(i)){i=i.substring(p.raw.length),o.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(i))){i=i.substring(p.raw.length),o.push(p);continue}let m=i;if(this.options.extensions?.startInline){let T=1/0,v=i.slice(1),N;this.options.extensions.startInline.forEach(D=>{N=D.call({lexer:this},v),typeof N=="number"&&N>=0&&(T=Math.min(T,N))}),T<1/0&&T>=0&&(m=i.substring(0,T+1))}if(p=this.tokenizer.inlineText(m)){i=i.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(g=p.raw.slice(-1)),d=!0;let T=o.at(-1);T?.type==="text"?(T.raw+=p.raw,T.text+=p.text):o.push(p);continue}if(i){let T="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(T);break}else throw new Error(T)}}return o}},co=class{options;parser;constructor(a){this.options=a||zl}space(a){return""}code({text:a,lang:i,escaped:o}){let r=(i||"").match(xt.notSpaceStart)?.[0],u=a.replace(xt.endingNewline,"")+`
|
|
49
|
+
`;return r?'<pre><code class="language-'+Mn(r)+'">'+(o?u:Mn(u,!0))+`</code></pre>
|
|
50
|
+
`:"<pre><code>"+(o?u:Mn(u,!0))+`</code></pre>
|
|
51
|
+
`}blockquote({tokens:a}){return`<blockquote>
|
|
52
|
+
${this.parser.parse(a)}</blockquote>
|
|
53
|
+
`}html({text:a}){return a}def(a){return""}heading({tokens:a,depth:i}){return`<h${i}>${this.parser.parseInline(a)}</h${i}>
|
|
54
|
+
`}hr(a){return`<hr>
|
|
55
|
+
`}list(a){let i=a.ordered,o=a.start,r="";for(let d=0;d<a.items.length;d++){let g=a.items[d];r+=this.listitem(g)}let u=i?"ol":"ul",f=i&&o!==1?' start="'+o+'"':"";return"<"+u+f+`>
|
|
56
|
+
`+r+"</"+u+`>
|
|
57
|
+
`}listitem(a){return`<li>${this.parser.parse(a.tokens)}</li>
|
|
58
|
+
`}checkbox({checked:a}){return"<input "+(a?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:a}){return`<p>${this.parser.parseInline(a)}</p>
|
|
59
|
+
`}table(a){let i="",o="";for(let u=0;u<a.header.length;u++)o+=this.tablecell(a.header[u]);i+=this.tablerow({text:o});let r="";for(let u=0;u<a.rows.length;u++){let f=a.rows[u];o="";for(let d=0;d<f.length;d++)o+=this.tablecell(f[d]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
60
|
+
<thead>
|
|
61
|
+
`+i+`</thead>
|
|
62
|
+
`+r+`</table>
|
|
63
|
+
`}tablerow({text:a}){return`<tr>
|
|
64
|
+
${a}</tr>
|
|
65
|
+
`}tablecell(a){let i=this.parser.parseInline(a.tokens),o=a.header?"th":"td";return(a.align?`<${o} align="${a.align}">`:`<${o}>`)+i+`</${o}>
|
|
66
|
+
`}strong({tokens:a}){return`<strong>${this.parser.parseInline(a)}</strong>`}em({tokens:a}){return`<em>${this.parser.parseInline(a)}</em>`}codespan({text:a}){return`<code>${Mn(a,!0)}</code>`}br(a){return"<br>"}del({tokens:a}){return`<del>${this.parser.parseInline(a)}</del>`}link({href:a,title:i,tokens:o}){let r=this.parser.parseInline(o),u=qp(a);if(u===null)return r;a=u;let f='<a href="'+a+'"';return i&&(f+=' title="'+Mn(i)+'"'),f+=">"+r+"</a>",f}image({href:a,title:i,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let u=qp(a);if(u===null)return Mn(o);a=u;let f=`<img src="${a}" alt="${o}"`;return i&&(f+=` title="${Mn(i)}"`),f+=">",f}text(a){return"tokens"in a&&a.tokens?this.parser.parseInline(a.tokens):"escaped"in a&&a.escaped?a.text:Mn(a.text)}},uu=class{strong({text:a}){return a}em({text:a}){return a}codespan({text:a}){return a}del({text:a}){return a}html({text:a}){return a}text({text:a}){return a}link({text:a}){return""+a}image({text:a}){return""+a}br(){return""}checkbox({raw:a}){return a}},rn=class Jc{options;renderer;textRenderer;constructor(i){this.options=i||zl,this.options.renderer=this.options.renderer||new co,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new uu}static parse(i,o){return new Jc(o).parse(i)}static parseInline(i,o){return new Jc(o).parseInline(i)}parse(i){let o="";for(let r=0;r<i.length;r++){let u=i[r];if(this.options.extensions?.renderers?.[u.type]){let d=u,g=this.options.extensions.renderers[d.type].call({parser:this},d);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){o+=g||"";continue}}let f=u;switch(f.type){case"space":{o+=this.renderer.space(f);break}case"hr":{o+=this.renderer.hr(f);break}case"heading":{o+=this.renderer.heading(f);break}case"code":{o+=this.renderer.code(f);break}case"table":{o+=this.renderer.table(f);break}case"blockquote":{o+=this.renderer.blockquote(f);break}case"list":{o+=this.renderer.list(f);break}case"checkbox":{o+=this.renderer.checkbox(f);break}case"html":{o+=this.renderer.html(f);break}case"def":{o+=this.renderer.def(f);break}case"paragraph":{o+=this.renderer.paragraph(f);break}case"text":{o+=this.renderer.text(f);break}default:{let d='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return o}parseInline(i,o=this.renderer){let r="";for(let u=0;u<i.length;u++){let f=i[u];if(this.options.extensions?.renderers?.[f.type]){let g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){r+=g||"";continue}}let d=f;switch(d.type){case"escape":{r+=o.text(d);break}case"html":{r+=o.html(d);break}case"link":{r+=o.link(d);break}case"image":{r+=o.image(d);break}case"checkbox":{r+=o.checkbox(d);break}case"strong":{r+=o.strong(d);break}case"em":{r+=o.em(d);break}case"codespan":{r+=o.codespan(d);break}case"br":{r+=o.br(d);break}case"del":{r+=o.del(d);break}case"text":{r+=o.text(d);break}default:{let g='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}},Ai=class{options;block;constructor(a){this.options=a||zl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(a){return a}postprocess(a){return a}processAllTokens(a){return a}emStrongMask(a){return a}provideLexer(){return this.block?on.lex:on.lexInline}provideParser(){return this.block?rn.parse:rn.parseInline}},Gv=class{defaults=nu();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=rn;Renderer=co;TextRenderer=uu;Lexer=on;Tokenizer=ro;Hooks=Ai;constructor(...a){this.use(...a)}walkTokens(a,i){let o=[];for(let r of a)switch(o=o.concat(i.call(this,r)),r.type){case"table":{let u=r;for(let f of u.header)o=o.concat(this.walkTokens(f.tokens,i));for(let f of u.rows)for(let d of f)o=o.concat(this.walkTokens(d.tokens,i));break}case"list":{let u=r;o=o.concat(this.walkTokens(u.items,i));break}default:{let u=r;this.defaults.extensions?.childTokens?.[u.type]?this.defaults.extensions.childTokens[u.type].forEach(f=>{let d=u[f].flat(1/0);o=o.concat(this.walkTokens(d,i))}):u.tokens&&(o=o.concat(this.walkTokens(u.tokens,i)))}}return o}use(...a){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=i.renderers[u.name];f?i.renderers[u.name]=function(...d){let g=u.renderer.apply(this,d);return g===!1&&(g=f.apply(this,d)),g}:i.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=i[u.level];f?f.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),r.extensions=i),o.renderer){let u=this.defaults.renderer||new co(this.defaults);for(let f in o.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let d=f,g=o.renderer[d],p=u[d];u[d]=(...m)=>{let T=g.apply(u,m);return T===!1&&(T=p.apply(u,m)),T||""}}r.renderer=u}if(o.tokenizer){let u=this.defaults.tokenizer||new ro(this.defaults);for(let f in o.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let d=f,g=o.tokenizer[d],p=u[d];u[d]=(...m)=>{let T=g.apply(u,m);return T===!1&&(T=p.apply(u,m)),T}}r.tokenizer=u}if(o.hooks){let u=this.defaults.hooks||new Ai;for(let f in o.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let d=f,g=o.hooks[d],p=u[d];Ai.passThroughHooks.has(f)?u[d]=m=>{if(this.defaults.async&&Ai.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await g.call(u,m);return p.call(u,v)})();let T=g.call(u,m);return p.call(u,T)}:u[d]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await g.apply(u,m);return v===!1&&(v=await p.apply(u,m)),v})();let T=g.apply(u,m);return T===!1&&(T=p.apply(u,m)),T}}r.hooks=u}if(o.walkTokens){let u=this.defaults.walkTokens,f=o.walkTokens;r.walkTokens=function(d){let g=[];return g.push(f.call(this,d)),u&&(g=g.concat(u.call(this,d))),g}}this.defaults={...this.defaults,...r}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,i){return on.lex(a,i??this.defaults)}parser(a,i){return rn.parse(a,i??this.defaults)}parseMarkdown(a){return(i,o)=>{let r={...o},u={...this.defaults,...r},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&r.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=a),u.async)return(async()=>{let d=u.hooks?await u.hooks.preprocess(i):i,g=await(u.hooks?await u.hooks.provideLexer():a?on.lex:on.lexInline)(d,u),p=u.hooks?await u.hooks.processAllTokens(g):g;u.walkTokens&&await Promise.all(this.walkTokens(p,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser():a?rn.parse:rn.parseInline)(p,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(i=u.hooks.preprocess(i));let d=(u.hooks?u.hooks.provideLexer():a?on.lex:on.lexInline)(i,u);u.hooks&&(d=u.hooks.processAllTokens(d)),u.walkTokens&&this.walkTokens(d,u.walkTokens);let g=(u.hooks?u.hooks.provideParser():a?rn.parse:rn.parseInline)(d,u);return u.hooks&&(g=u.hooks.postprocess(g)),g}catch(d){return f(d)}}}onError(a,i){return o=>{if(o.message+=`
|
|
67
|
+
Please report this to https://github.com/markedjs/marked.`,a){let r="<p>An error occurred:</p><pre>"+Mn(o.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(o);throw o}}},Ll=new Gv;function Be(a,i){return Ll.parse(a,i)}Be.options=Be.setOptions=function(a){return Ll.setOptions(a),Be.defaults=Ll.defaults,vg(Be.defaults),Be};Be.getDefaults=nu;Be.defaults=zl;Be.use=function(...a){return Ll.use(...a),Be.defaults=Ll.defaults,vg(Be.defaults),Be};Be.walkTokens=function(a,i){return Ll.walkTokens(a,i)};Be.parseInline=Ll.parseInline;Be.Parser=rn;Be.parser=rn.parse;Be.Renderer=co;Be.TextRenderer=uu;Be.Lexer=on;Be.lexer=on.lex;Be.Tokenizer=ro;Be.Hooks=Ai;Be.parse=Be;Be.options;Be.setOptions;Be.use;Be.walkTokens;Be.parseInline;rn.parse;on.lex;const Vv=4e4;Be.setOptions({gfm:!0,breaks:!0});const $v=new Set(["a","b","blockquote","br","code","del","em","h1","h2","h3","h4","hr","i","li","ol","p","pre","strong","table","tbody","td","th","thead","tr","ul","span","div"]);function Kv(a){return a.replace(/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/g,(i,o)=>{const r=o.toLowerCase();return $v.has(r)?i:""})}function qv({content:a}){const i=U.useMemo(()=>{if(!a)return"";if(a.length>Vv)return null;try{return Kv(Be.parse(a,{async:!1}))}catch{return null}},[a]);return a?i===null?b.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.55},children:a}):b.jsxs(b.Fragment,{children:[b.jsx("style",{children:Yv}),b.jsx("div",{className:"md-content",dangerouslySetInnerHTML:{__html:i}})]}):null}const Yv=`
|
|
68
|
+
.md-content {
|
|
69
|
+
font-size: 13px;
|
|
70
|
+
line-height: 1.6;
|
|
71
|
+
word-break: break-word;
|
|
72
|
+
color: #e8e0d0;
|
|
73
|
+
}
|
|
74
|
+
.md-content p { margin: 0 0 8px 0; }
|
|
75
|
+
.md-content p:last-child { margin-bottom: 0; }
|
|
76
|
+
.md-content h1, .md-content h2, .md-content h3, .md-content h4 {
|
|
77
|
+
color: #f4a261;
|
|
78
|
+
margin: 12px 0 6px 0;
|
|
79
|
+
font-family: 'Courier New', monospace;
|
|
80
|
+
letter-spacing: 0.5px;
|
|
81
|
+
}
|
|
82
|
+
.md-content h1 { font-size: 18px; }
|
|
83
|
+
.md-content h2 { font-size: 16px; }
|
|
84
|
+
.md-content h3 { font-size: 14px; }
|
|
85
|
+
.md-content h4 { font-size: 13px; }
|
|
86
|
+
.md-content strong, .md-content b { color: #f4a261; }
|
|
87
|
+
.md-content em, .md-content i { color: #5dade2; }
|
|
88
|
+
.md-content code {
|
|
89
|
+
font-family: 'Courier New', monospace;
|
|
90
|
+
color: #2ecc71;
|
|
91
|
+
background: rgba(10,22,40,0.8);
|
|
92
|
+
padding: 1px 5px;
|
|
93
|
+
border-radius: 3px;
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
}
|
|
96
|
+
.md-content pre {
|
|
97
|
+
background: rgba(10,22,40,0.95);
|
|
98
|
+
border: 1px solid rgba(244,162,97,0.2);
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
padding: 10px 12px;
|
|
101
|
+
overflow-x: auto;
|
|
102
|
+
margin: 8px 0;
|
|
103
|
+
}
|
|
104
|
+
.md-content pre code {
|
|
105
|
+
background: none;
|
|
106
|
+
padding: 0;
|
|
107
|
+
color: #e8e0d0;
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
}
|
|
110
|
+
.md-content blockquote {
|
|
111
|
+
border-left: 3px solid #f4a261;
|
|
112
|
+
margin: 8px 0;
|
|
113
|
+
padding: 4px 12px;
|
|
114
|
+
color: #c0b8a8;
|
|
115
|
+
background: rgba(244,162,97,0.05);
|
|
116
|
+
}
|
|
117
|
+
.md-content ul, .md-content ol {
|
|
118
|
+
margin: 6px 0;
|
|
119
|
+
padding-left: 20px;
|
|
120
|
+
}
|
|
121
|
+
.md-content li { margin: 2px 0; }
|
|
122
|
+
.md-content a {
|
|
123
|
+
color: #5dade2;
|
|
124
|
+
text-decoration: underline;
|
|
125
|
+
text-underline-offset: 2px;
|
|
126
|
+
}
|
|
127
|
+
.md-content a:hover { color: #7ec8f0; }
|
|
128
|
+
.md-content hr {
|
|
129
|
+
border: none;
|
|
130
|
+
border-top: 1px solid rgba(244,162,97,0.2);
|
|
131
|
+
margin: 12px 0;
|
|
132
|
+
}
|
|
133
|
+
.md-content table {
|
|
134
|
+
border-collapse: collapse;
|
|
135
|
+
width: 100%;
|
|
136
|
+
margin: 8px 0;
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
}
|
|
139
|
+
.md-content th, .md-content td {
|
|
140
|
+
border: 1px solid rgba(244,162,97,0.25);
|
|
141
|
+
padding: 5px 8px;
|
|
142
|
+
text-align: left;
|
|
143
|
+
}
|
|
144
|
+
.md-content th {
|
|
145
|
+
background: rgba(244,162,97,0.12);
|
|
146
|
+
color: #f4a261;
|
|
147
|
+
font-weight: bold;
|
|
148
|
+
}
|
|
149
|
+
.md-content del { color: #6a8090; }
|
|
150
|
+
`,to={background:S.uiBg,border:`2px solid ${S.uiBorder}`,borderRadius:6,padding:20,width:400,position:"relative",overflow:"hidden"},Ta={display:"block",fontSize:9,letterSpacing:2,color:S.amber,marginBottom:6,fontWeight:"bold",fontFamily:"'Courier New', monospace"},Di={width:"100%",padding:"10px 12px",background:S.inputBg,border:`1px solid ${S.inputBorder}`,borderRadius:3,color:S.text,fontFamily:"'Courier New', monospace",fontSize:13,outline:"none",boxSizing:"border-box"},Iv={fontSize:9,color:S.textDim,marginTop:2,marginBottom:14,textAlign:"right"};function rl(a){return{padding:"11px 20px",background:`${a}18`,border:`2px solid ${a}`,borderRadius:4,color:a,fontFamily:"'Courier New', monospace",fontSize:11,fontWeight:"bold",letterSpacing:2,cursor:"pointer"}}const Ea={padding:"11px 20px",background:"transparent",border:`1px solid ${S.textDim}`,borderRadius:4,color:S.textDim,fontFamily:"'Courier New', monospace",fontSize:11,letterSpacing:1,cursor:"pointer"};function Pc({color:a}){return b.jsx("div",{style:{width:14,height:14,border:`2px solid ${a}30`,borderTop:`2px solid ${a}`,borderRadius:14,animation:"spin 0.8s linear infinite",flexShrink:0},children:b.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})})}const R=(a,i,o,r=1,u=1)=>a.fillRect(i,o,r,u),Xv=a=>{a.fillStyle=S.shell1,R(a,3,2,10,12),a.fillStyle=S.shell2,R(a,3,2,10,2),R(a,3,12,10,2),a.fillStyle=S.shellD,R(a,3,4,10,1),R(a,3,12,10,1),a.fillStyle=S.shell0,R(a,2,2,1,2),R(a,13,2,1,2),R(a,2,12,1,2),R(a,13,12,1,2),a.fillStyle=S.sea1,R(a,5,5,6,1),R(a,5,7,5,1),R(a,5,9,6,1),R(a,5,11,3,1)},Zv=a=>{a.fillStyle=S.shell1,R(a,4,2,1,10),a.fillStyle=S.shell2,R(a,2,2,2,1),R(a,1,3,3,1),R(a,1,4,3,1),R(a,2,5,2,1),R(a,2,6,2,1),R(a,3,7,1,1),a.fillStyle=ge(S.shell1,15),R(a,5,2,2,1),R(a,5,3,3,1),R(a,5,4,3,1),R(a,5,5,2,1),R(a,5,6,2,1),R(a,5,7,1,1),a.fillStyle=S.shell2,R(a,3,1,3,1),a.fillStyle=S.shellD,R(a,4,12,1,2),R(a,4,14,1,1),a.fillStyle=S.cyan,R(a,4,15,1,1),R(a,3,14,1,1),a.fillStyle=ge(S.cyan,-30),R(a,4,13,1,1)},Qv=a=>{a.fillStyle=S.shell2,R(a,7,1,2,10),a.fillStyle=S.shellD,R(a,7,11,2,1),a.fillStyle=ge(S.shell2,-20),R(a,7,12,2,1),R(a,8,13,1,1),a.fillStyle=S.deep1,R(a,7,2,2,1),a.fillStyle=S.kelp1,R(a,6,1,1,1),R(a,5,2,1,1),R(a,4,3,1,1),R(a,3,4,1,1),R(a,2,5,1,1),R(a,3,6,1,1),R(a,4,7,1,1),R(a,5,8,1,1),R(a,4,9,1,1),R(a,3,10,1,1),a.fillStyle=S.kelpD,R(a,2,6,1,1),R(a,3,7,1,1)},Xp=a=>{a.fillStyle=S.coral2,R(a,4,3,8,10),a.fillStyle=S.coral1,R(a,3,4,1,8),R(a,4,3,8,1),R(a,12,4,1,8),R(a,4,12,8,1),a.fillStyle=ge(S.coral2,-20),R(a,6,5,4,1),R(a,5,6,1,4),R(a,6,10,4,1),R(a,10,6,1,4),a.fillStyle=S.lob0,R(a,7,7,2,2),a.fillStyle=ge(S.coral2,25),R(a,5,4,2,2),a.fillStyle=S.coral1,R(a,4,2,3,1),R(a,5,1,1,1),a.fillStyle=S.green,R(a,6,6,1,1),R(a,7,7,1,1),R(a,6,8,1,1),a.fillStyle=S.green,R(a,9,8,2,1)},Fv=a=>{a.fillStyle=S.shell0,R(a,3,7,8,3),a.fillStyle=S.shell1,R(a,3,7,8,1),a.fillStyle=S.shellD,R(a,3,9,8,1),a.fillStyle=S.sand1,R(a,5,6,1,5),R(a,8,6,1,5),a.fillStyle=S.cyan,R(a,11,6,2,5),a.fillStyle=ge(S.cyan,20),R(a,11,7,2,1),a.fillStyle=S.sand0,R(a,13,6,1,5),a.fillStyle=S.shellD,R(a,2,7,1,3),a.fillStyle=S.sand0,R(a,1,7,1,3),a.fillStyle=S.lounge1,R(a,6,10,3,2),R(a,7,12,1,2)},Jv=a=>{a.fillStyle=S.sand0,R(a,5,2,6,1),R(a,4,3,1,1),R(a,11,3,1,1),R(a,3,4,1,4),R(a,12,4,1,4),R(a,4,8,1,1),R(a,11,8,1,1),R(a,5,9,6,1),a.fillStyle=S.sand1,R(a,5,2,6,1),R(a,4,3,1,1),a.fillStyle=ge(S.cyan,-20),R(a,5,3,6,1),R(a,4,4,8,4),R(a,5,8,6,1),a.fillStyle=ge(S.cyan,30),R(a,5,4,2,2),a.fillStyle=S.lounge1,R(a,10,10,2,1),R(a,11,11,2,1),R(a,12,12,2,1),R(a,13,13,2,1),a.fillStyle=S.loungeD,R(a,13,14,2,1)},Fs=a=>{a.fillStyle=ge(S.cyan,-30),R(a,5,5,6,8),a.fillStyle=ge(S.cyan,-10),R(a,5,5,2,8),a.fillStyle=ge(S.cyan,-50),R(a,10,5,1,8),a.fillStyle=ge(S.cyan,-25),R(a,6,3,4,2),a.fillStyle=S.sand0,R(a,7,1,2,2),a.fillStyle=S.sandD,R(a,7,2,2,1),a.fillStyle=S.shell2,R(a,7,7,3,1),R(a,7,9,2,1),a.fillStyle=S.cyan,R(a,5,12,6,1),a.fillStyle=ge(S.cyan,15),R(a,6,13,4,1),a.fillStyle=ge(S.cyan,-40),R(a,5,13,6,1)},Pv=(a,i)=>{const o=i;a.fillStyle=o,R(a,5,6,6,5),a.fillStyle=ge(o,20),R(a,6,6,4,2),a.fillStyle=ge(o,-15),R(a,5,9,6,2),a.fillStyle="#0a0a14",R(a,6,5,1,1),R(a,9,5,1,1),a.fillStyle=ge(o,10),R(a,6,4,1,1),R(a,9,4,1,1),a.fillStyle="#fff",R(a,6,3,1,1),R(a,9,3,1,1),a.fillStyle=ge(o,15),R(a,3,5,2,2),R(a,2,4,1,2),R(a,11,5,2,2),R(a,13,4,1,2),a.fillStyle=ge(o,-10),R(a,2,6,1,1),R(a,13,6,1,1),a.fillStyle=ge(o,-20),R(a,4,10,1,2),R(a,3,11,1,1),R(a,11,10,1,2),R(a,12,11,1,1),R(a,6,11,1,2),R(a,9,11,1,2)},Wv=a=>{a.fillStyle=S.sand0,R(a,4,1,8,1),R(a,3,2,1,1),R(a,12,2,1,1),R(a,2,3,1,2),R(a,13,3,1,2),R(a,1,5,1,6),R(a,14,5,1,6),R(a,2,11,1,2),R(a,13,11,1,2),R(a,3,13,1,1),R(a,12,13,1,1),R(a,4,14,8,1),a.fillStyle=S.sand1,R(a,4,1,8,1),R(a,3,2,1,1),R(a,2,3,1,2),a.fillStyle=ge(S.cyan,-25),R(a,4,2,8,1),R(a,3,3,10,2),R(a,2,5,12,6),R(a,3,11,10,2),R(a,4,13,8,1),a.fillStyle=ge(S.cyan,15),R(a,4,3,3,2),R(a,3,5,2,2),a.fillStyle=S.sandD,R(a,4,1,1,1),R(a,11,1,1,1),R(a,1,6,1,1),R(a,14,6,1,1),R(a,1,9,1,1),R(a,14,9,1,1),R(a,4,14,1,1),R(a,11,14,1,1)},e2=a=>{a.fillStyle=S.lounge1,R(a,1,3,14,10),a.fillStyle=S.lounge2,R(a,1,4,14,1),R(a,1,8,14,1),R(a,1,11,14,1),a.fillStyle=S.loungeD,R(a,1,6,14,1),R(a,1,10,14,1),a.fillStyle=S.shell1,R(a,5,5,6,6),a.fillStyle=S.shell2,R(a,5,5,6,2),R(a,5,5,2,6),a.fillStyle=S.shellD,R(a,5,10,6,1),R(a,10,5,1,6),a.fillStyle=S.sandD,R(a,5,5,1,1),R(a,10,5,1,1),R(a,5,10,1,1),R(a,10,10,1,1)},t2=a=>{a.fillStyle=S.coral2,R(a,6,6,4,4),a.fillStyle=S.coral2,R(a,7,1,2,5),a.fillStyle=S.coral1,R(a,7,1,1,5),a.fillStyle=S.coral2,R(a,7,10,2,5),a.fillStyle=ge(S.coral2,-15),R(a,8,10,1,5),a.fillStyle=S.coral2,R(a,1,7,5,2),a.fillStyle=S.coral1,R(a,1,7,5,1),a.fillStyle=S.coral2,R(a,10,7,5,2),a.fillStyle=ge(S.coral2,-15),R(a,10,8,5,1),a.fillStyle=S.coral2,R(a,3,3,2,2),R(a,2,2,1,1),R(a,4,4,1,1),R(a,11,3,2,2),R(a,13,2,1,1),R(a,11,4,1,1),a.fillStyle=ge(S.coral2,20),R(a,7,7,2,1),a.fillStyle=ge(S.coral2,15),R(a,7,3,1,1),R(a,3,7,1,1),R(a,12,7,1,1),R(a,7,12,1,1)},n2={read:Xv,write:Zv,edit:Qv,bash:Xp,exec:Xp,glob:Fv,grep:Jv,web_fetch:Fs,webfetch:Fs,web_search:Fs,websearch:Fs,task:Pv,browser:Wv,apply_patch:e2};function l2(a){return n2[a.trim().toLowerCase()]??t2}function a2({toolName:a,color:i,size:o=22}){const r=U.useRef(null);return U.useEffect(()=>{const u=r.current;if(!u)return;const f=u.getContext("2d");if(!f)return;f.clearRect(0,0,16,16),l2(a)(f,i)},[a,i]),b.jsx("canvas",{ref:r,width:16,height:16,style:{width:o,height:o,imageRendering:"pixelated",flexShrink:0}})}const i2={read:{labelKey:"tools.readFile",detailKeys:["file_path","path"]},write:{labelKey:"tools.writeFile",detailKeys:["file_path","path"]},edit:{labelKey:"tools.editFile",detailKeys:["file_path","path"]},bash:{labelKey:"tools.runCommand",detailKeys:["command","cmd"]},exec:{labelKey:"tools.runCommand",detailKeys:["command","cmd"]},glob:{labelKey:"tools.findFiles",detailKeys:["pattern","path"]},grep:{labelKey:"tools.searchCode",detailKeys:["pattern","query"]},web_fetch:{labelKey:"tools.fetchUrl",detailKeys:["url","targetUrl"]},webfetch:{labelKey:"tools.fetchUrl",detailKeys:["url","targetUrl"]},web_search:{labelKey:"tools.webSearch",detailKeys:["query"]},websearch:{labelKey:"tools.webSearch",detailKeys:["query"]},task:{labelKey:"tools.subAgent",detailKeys:["prompt","description"]},browser:{labelKey:"tools.browser",detailKeys:["targetUrl","url"]},apply_patch:{labelKey:"tools.applyPatch",detailKeys:["path"]}};function Lg(a){const i=a.trim().toLowerCase();return i2[i]??{labelKey:""}}const s2=80,Zp=100;function o2(a){const i=Object.keys(a);if(i.length===0)return a;for(const o of i){const r=a[o];if(typeof r=="string"&&r.startsWith("{"))try{return JSON.parse(r)}catch{}}return a}function r2(a){const i=Lg(a.toolName);if(!i.detailKeys?.length)return null;const o=o2(a.args??{});for(const r of i.detailKeys){const u=o[r];if(typeof u=="string"&&u)return u.length>120?`${u.slice(0,117)}...`:u}return null}function c2(a){if(!a)return null;const i=a.trim();if(!i)return null;if(i.length<=s2)return{inline:!0,text:i};const o=i.split(`
|
|
151
|
+
`).slice(0,2).join(`
|
|
152
|
+
`);return{inline:!1,text:o.length>Zp?`${o.slice(0,Zp)}...`:o}}function u2({block:a,agentColor:i}){const{t:o}=cl(),[r,u]=U.useState(!1),f=Lg(a.toolName),d=a.phase!=="result",g=r2(a),p=c2(a.output),m={border:`1px solid ${d?`${i}30`:`${S.green}25`}`,borderRadius:6,background:"rgba(10,22,40,0.6)",margin:"4px 0",overflow:"hidden",transition:"border-color 0.2s"},T=b.jsxs(b.Fragment,{children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 10px 2px"},children:[b.jsx(a2,{toolName:a.toolName,color:i,size:22}),b.jsx("span",{style:{fontSize:11,fontWeight:500,fontFamily:"'Courier New', monospace",letterSpacing:.5,color:S.amber,opacity:.75,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.labelKey?o(f.labelKey):a.toolName||o("tools.fallback")}),d?b.jsx(Pc,{color:i}):b.jsx("span",{style:{fontSize:13,color:S.green,flexShrink:0},children:"✓"}),a.output&&b.jsx("span",{style:{fontSize:10,color:S.textDim,flexShrink:0,transition:"transform 0.2s",transform:r?"rotate(180deg)":"rotate(0deg)"},children:"▼"})]}),g&&b.jsx("div",{style:{padding:"0 10px 4px 32px",fontSize:11,fontFamily:"'Courier New', monospace",color:S.textDim,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g}),!r&&p&&b.jsx("div",{style:{padding:"0 10px 4px 32px",fontSize:11,fontFamily:"'Courier New', monospace",color:p.inline?S.text:S.textDim,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:p.inline?"nowrap":"pre-wrap",maxHeight:p.inline?"auto":34,lineHeight:1.4},children:p.text}),!r&&!p&&!d&&b.jsx("div",{style:{padding:"0 10px 4px 32px",fontSize:10,color:S.green,letterSpacing:.5},children:o("tools.completed")}),r&&a.output&&b.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.05)",maxHeight:300,overflowY:"auto",padding:"8px 10px"},children:b.jsx("pre",{style:{margin:0,fontSize:11,fontFamily:"'Courier New', monospace",color:S.text,whiteSpace:"pre-wrap",wordBreak:"break-word",lineHeight:1.45},children:a.output})})]});return a.output?b.jsx("button",{type:"button",style:{...m,cursor:"pointer",width:"100%",padding:0,textAlign:"left",font:"inherit",color:"inherit"},onClick:()=>u(v=>!v),children:T}):b.jsx("div",{style:m,children:T})}function Qp({color:a}){return b.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",height:12},children:[[0,1,2].map(i=>b.jsx("div",{style:{width:5,height:5,borderRadius:5,background:a,animation:`bounce 1s ${i*.15}s infinite ease-in-out`}},i)),b.jsx("style",{children:"@keyframes bounce { 0%,60%,100% { transform:translateY(0); opacity:0.3; } 30% { transform:translateY(-4px); opacity:1; } }"})]})}function f2({agents:a=[],onSendMessage:i,initialActiveId:o,expanded:r,gatewayUrl:u}){const{t:f}=cl(),[d,g]=U.useState(()=>o&&a.find(X=>X.id===o)||a[0]||null),[p,m]=U.useState({}),[T,v]=U.useState(""),[N,D]=U.useState(!1),O=U.useRef(null),q=U.useRef(null),J=U.useRef(0),Q=U.useCallback(()=>`msg-${Date.now()}-${++J.current}`,[]),I=d?p[d.id]||[]:[],ee={active:S.green,busy:S.amber,idle:S.textDim};U.useEffect(()=>{if(!d||!u)return;let X=!1;return QS(u,d.id).then(re=>{X||re.length>0&&m(W=>W[d.id]?.length?W:{...W,[d.id]:re})}),()=>{X=!0}},[d,u]),U.useEffect(()=>{JS(200)},[]),U.useEffect(()=>{a.length>0&&!d&&g(a[0])},[a,d]),U.useEffect(()=>{if(o){const X=a.find(re=>re.id===o);X&&g(X),q.current?.focus()}},[o,a]);const H=(X,re)=>{if(!X.trim()||N||!d)return;const W=d.id;v(re!==void 0?re:"");const fe={id:Q(),from:"user",blocks:[{type:"text",text:X}]},Le={id:Q(),from:"agent",blocks:[{type:"text",text:""}],streaming:!0};m(Y=>({...Y,[W]:[...Y[W]||[],fe,Le]})),D(!0),u&&Gp(u,W,fe);const j=Y=>{m(F=>{const de=F[W]||[];return{...F,[W]:[...de.slice(0,-1),Y]}})};i?Promise.resolve(i(W,X,j)).then(Y=>{m(F=>{const de=F[W]||[];return{...F,[W]:[...de.slice(0,-1),Y]}}),u&&Gp(u,W,Y),D(!1)}).catch(()=>{D(!1)}):setTimeout(()=>{const Y={id:Q(),from:"agent",blocks:[{type:"text",text:`[${W}] Message received.`}]};m(F=>({...F,[W]:[...(F[W]||[]).slice(0,-1),Y]})),D(!1)},1e3+Math.random()*1200)},z=()=>{H(T)},ie=()=>{if(!d||N)return;const X=T.trim();H("/new",X)},Z=I.length,P=I[Z-1],ae=P?.blocks.reduce((X,re)=>X+(re.type==="text"?re.text.length:0),0),ne=P?.streaming?`${Z}-${P.blocks.length}-${ae}`:`${Z}`;return U.useEffect(()=>{O.current?.scrollIntoView({behavior:"smooth"})},[ne]),U.useEffect(()=>{q.current?.focus()},[]),d?b.jsxs("div",{style:{...to,padding:0,width:"100%",display:"flex",flexDirection:"column",height:r?"100%":560,boxSizing:"border-box",border:"none",borderRadius:0},children:[b.jsx("div",{style:{display:"flex",borderBottom:"1px solid rgba(255,255,255,0.05)",overflowX:"auto",flexShrink:0},children:a.map(X=>b.jsxs("button",{type:"button",onClick:()=>g(X),style:{padding:"10px 12px",background:d.id===X.id?`${X.color}10`:"transparent",border:"none",borderBottom:`2px solid ${d.id===X.id?X.color:"transparent"}`,cursor:"pointer",color:d.id===X.id?X.color:S.textDim,fontFamily:"'Courier New', monospace",fontSize:11,fontWeight:"bold",letterSpacing:1,display:"flex",alignItems:"center",gap:5,whiteSpace:"nowrap"},children:[b.jsx("span",{style:{width:6,height:6,borderRadius:6,background:ee[X.status],boxShadow:X.status==="active"?`0 0 4px ${S.green}60`:"none"}}),X.id]},X.id))}),b.jsxs("div",{style:{padding:"10px 16px",display:"flex",alignItems:"center",gap:12,borderBottom:"1px solid rgba(255,255,255,0.03)",flexShrink:0},children:[b.jsx(Kt,{color:d.color,size:32,style:{}}),b.jsxs("div",{style:{flex:1},children:[b.jsx("div",{style:{fontSize:15,fontWeight:"bold",color:d.color},children:d.id}),b.jsxs("div",{style:{fontSize:11,color:S.textDim},children:[d.role," · ",d.status.toUpperCase()]})]}),b.jsx("button",{type:"button",onClick:ie,disabled:N,style:{background:"none",border:`1px solid ${S.textDim}50`,borderRadius:2,padding:"3px 8px",cursor:N?"default":"pointer",fontSize:10,color:S.textDim,fontFamily:"'Courier New', monospace",letterSpacing:1,opacity:N?.3:.7},title:f("chat.newSessionTooltip"),children:f("chat.newSession")}),I.length>0&&b.jsx("button",{type:"button",onClick:()=>{u&&FS(u,d.id),m(X=>({...X,[d.id]:[]}))},style:{background:"none",border:`1px solid ${S.red}30`,borderRadius:2,padding:"3px 8px",cursor:"pointer",fontSize:10,color:S.red,fontFamily:"'Courier New', monospace",letterSpacing:1,opacity:.7},title:f("chat.clearTooltip"),children:f("chat.clear")})]}),b.jsxs("div",{className:"thin-scroll",style:{flex:1,overflowY:"auto",padding:"12px 16px",display:"flex",flexDirection:"column",gap:10},children:[I.length===0&&!N&&b.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,opacity:.4},children:[b.jsx(Kt,{color:d.color,size:44}),b.jsxs("div",{style:{fontSize:12,color:S.textDim,textAlign:"center",lineHeight:1.6},children:[f("chat.emptyState",{agentId:d.id}),b.jsx("br",{}),b.jsx("span",{style:{fontSize:11},children:f("chat.emptyStateHint")})]})]}),I.map(X=>{if(X.from==="user"){const W=X.blocks.filter(fe=>fe.type==="text").map(fe=>fe.text).join("");return b.jsx("div",{style:{display:"flex",flexDirection:"row-reverse",gap:8,alignItems:"flex-end"},children:b.jsx("div",{style:{maxWidth:"78%",padding:"8px 12px",borderRadius:"8px 8px 2px 8px",background:S.chatUser,border:`1px solid ${S.amber}18`,fontSize:13,lineHeight:1.55,color:S.text},children:W})},X.id)}return!X.blocks.some(W=>W.type==="text"&&W.text||W.type==="tool_call")&&X.streaming?b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-end"},children:[b.jsx(Kt,{color:d.color,size:22,style:{flexShrink:0}}),b.jsx("div",{style:{padding:"10px 16px",borderRadius:"8px 8px 8px 2px",background:S.chatAgent,border:`1px solid ${d.color}18`},children:b.jsx(Qp,{color:d.color})})]},X.id):b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[b.jsx(Kt,{color:d.color,size:22,style:{flexShrink:0,marginTop:4}}),b.jsxs("div",{style:{maxWidth:"85%",minWidth:0,flex:1},children:[X.blocks.map((W,fe)=>W.type==="tool_call"?b.jsx(u2,{block:W,agentColor:d.color},W.toolCallId||`tc-${fe}`):W.text?b.jsx("div",{style:{padding:"8px 12px",borderRadius:"8px 8px 8px 2px",background:S.chatAgent,border:`1px solid ${d.color}18`,marginBottom:fe<X.blocks.length-1?4:0},children:b.jsx(qv,{content:W.text})},`${X.id}-text-${fe}`):null),X.streaming&&b.jsx("div",{style:{marginTop:4,paddingLeft:4},children:b.jsx(Qp,{color:d.color})})]})]},X.id)}),b.jsx("div",{ref:O})]}),b.jsxs("div",{style:{padding:"10px 12px",borderTop:"1px solid rgba(255,255,255,0.05)",display:"flex",gap:8,flexShrink:0},children:[b.jsx("input",{ref:q,value:T,onChange:X=>v(X.target.value),onKeyDown:X=>X.key==="Enter"&&z(),placeholder:f("chat.placeholder",{agentId:d.id}),style:{...Di,marginBottom:0,flex:1}}),b.jsx("button",{type:"button",onClick:z,disabled:!T.trim()||N,style:{...rl(d.color),opacity:T.trim()&&!N?1:.3,padding:"8px 16px",fontSize:12},children:f("chat.send")})]})]}):null}function wi({icon:a,title:i,trailing:o}){return b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16,paddingBottom:12,borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[b.jsx("span",{style:{fontSize:14},children:a}),b.jsx("div",{style:{fontSize:12,fontWeight:"bold",letterSpacing:3,color:S.amber},children:i}),o&&b.jsx("div",{style:{marginLeft:"auto"},children:o})]})}const no={padding:20,width:400};function d2({name:a,setName:i,color:o,setColor:r,editAgent:u,onUpdate:f,onCancel:d,deploying:g,deployError:p,setDeploying:m,setDeployError:T}){const{t:v}=cl(),[N,D]=U.useState(null),O=["#e74c3c","#ff6b8a","#f4a261","#2ecc71","#1abc9c","#5dade2","#9b59b6","#e67e22"],q=I=>b.jsx("button",{type:"button",onClick:()=>D(N===I?null:I),style:{background:"none",border:"none",cursor:"pointer",fontSize:14,color:N===I?S.green:S.textDim,padding:"2px 6px",flexShrink:0},children:N===I?"✓":"✎"}),J={display:"flex",alignItems:"center",padding:"10px 0",borderBottom:"1px solid rgba(255,255,255,0.05)",gap:12},Q=async()=>{if(!g){m(!0),T(null);try{await f?.({...u,name:a,color:o})}catch(I){T(I instanceof Error?I.message:v("creator.updateFailed"))}finally{m(!1)}}};return b.jsxs("div",{style:no,children:[b.jsxs("div",{style:{display:"flex",gap:14,alignItems:"center",marginBottom:16},children:[b.jsx("div",{style:{background:`${o}10`,border:`1px solid ${o}25`,borderRadius:4,padding:6},children:b.jsx(Kt,{color:o,size:48})}),b.jsxs("div",{style:{flex:1},children:[b.jsx("span",{style:Ta,children:v("creator.shellColor")}),b.jsx("div",{style:{display:"flex",gap:5,flexWrap:"wrap",marginTop:4},children:O.map(I=>b.jsx("button",{type:"button",onClick:()=>r(I),style:{width:22,height:22,borderRadius:3,background:I,border:o===I?"2px solid #fff":"2px solid transparent",cursor:"pointer",transform:o===I?"scale(1.15)":"scale(1)"}},I))})]})]}),b.jsx("div",{style:{borderTop:"1px solid rgba(255,255,255,0.06)",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:b.jsxs("div",{style:{...J,borderBottom:"none"},children:[b.jsx("span",{style:{fontSize:9,letterSpacing:2,color:S.amber,fontWeight:"bold",width:60,flexShrink:0},children:v("creator.nameLabel")}),b.jsx("div",{style:{flex:1,minWidth:0},children:N==="name"?b.jsx("input",{value:a,onChange:I=>i(I.target.value.slice(0,12)),maxLength:12,style:{...Di,padding:"6px 10px",fontSize:12},onKeyDown:I=>{I.key==="Enter"&&D(null)}}):b.jsx("span",{style:{fontSize:13,fontWeight:"bold",color:o,letterSpacing:1},children:a.toUpperCase()||"---"})}),q("name")]})}),p&&b.jsx("div",{style:{fontSize:10,color:S.red,marginTop:12,textAlign:"center",padding:"6px 10px",background:`${S.red}10`,border:`1px solid ${S.red}30`,borderRadius:3},children:p}),b.jsxs("div",{style:{display:"flex",gap:8,marginTop:16},children:[b.jsx("button",{type:"button",onClick:d,style:{...Ea,flex:1},children:v("creator.cancel")}),b.jsx("button",{type:"button",onClick:Q,disabled:g||a.trim().length===0,style:{...rl(S.green),flex:2,opacity:g||a.trim().length===0?.5:1,cursor:g?"wait":"pointer"},children:v(g?"creator.saving":"creator.save")})]})]})}function Fp({onDeploy:a,editAgent:i,onUpdate:o,onCancel:r}){const{t:u}=cl(),f=!!i,[d,g]=U.useState(i?.name||""),[p,m]=U.useState(i?.color||"#e74c3c"),[T,v]=U.useState("edit"),[N,D]=U.useState(!1),[O,q]=U.useState(null),J=["#e74c3c","#ff6b8a","#f4a261","#2ecc71","#1abc9c","#5dade2","#9b59b6","#e67e22"],Q=d.trim().length>0;if(f)return b.jsx(d2,{name:d,setName:g,color:p,setColor:m,editAgent:i,onUpdate:o,onCancel:r,deploying:N,deployError:O,setDeploying:D,setDeployError:q});if(T==="deployed")return b.jsxs("div",{style:no,children:[b.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"32px 0 16px"},children:[b.jsx("div",{style:{width:80,height:80,borderRadius:80,background:`${S.green}15`,border:`3px solid ${S.green}40`,display:"flex",alignItems:"center",justifyContent:"center",animation:"fadeIn 0.4s ease"},children:b.jsx("span",{style:{fontSize:36,color:S.green},children:"✓"})}),b.jsxs("div",{style:{textAlign:"center"},children:[b.jsx("div",{style:{fontSize:14,fontWeight:"bold",color:S.green,letterSpacing:2},children:u("creator.agentDeployed")}),b.jsx("div",{style:{fontSize:12,color:p,marginTop:6,fontWeight:"bold"},children:d.toUpperCase()}),b.jsx("div",{style:{fontSize:10,color:S.textDim,marginTop:4},children:u("creator.joinedPod")})]}),b.jsx(Kt,{color:p,size:56}),b.jsx("button",{type:"button",onClick:()=>{v("edit"),g(""),q(null)},style:{...rl(S.amber),marginTop:8},children:u("creator.spawnAnother")})]}),b.jsx("style",{children:"@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }"})]});const I=async()=>{if(!N){D(!0),q(null);try{await a?.({name:d,color:p}),v("deployed")}catch(ee){q(ee instanceof Error?ee.message:u("creator.deployFailed"))}finally{D(!1)}}};if(T==="preview"){const ee=[{label:u("creator.specDesignation"),value:d.toUpperCase()},{label:u("creator.specShellColor"),value:p,isColor:!0},{label:u("creator.specMode"),value:u("creator.specModeValue")},{label:u("creator.specPodAssignment"),value:u("creator.specPodAssignmentValue")},{label:u("creator.specBootTime"),value:u("creator.specBootTimeValue")}];return b.jsxs("div",{style:no,children:[b.jsx(wi,{icon:"🔍",title:u("creator.previewTitle")}),b.jsxs("div",{style:{background:`linear-gradient(135deg, ${S.deep1}, ${S.deep2})`,border:`1px solid ${p}30`,borderRadius:6,padding:20,marginBottom:16,position:"relative",overflow:"hidden"},children:[b.jsx("div",{style:{position:"absolute",top:0,right:0,width:60,height:60,background:`linear-gradient(135deg, transparent 50%, ${p}10 50%)`}}),b.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start"},children:[b.jsx("div",{style:{background:`radial-gradient(circle, ${p}20 0%, transparent 70%)`,padding:8,borderRadius:6,border:`1px solid ${p}25`},children:b.jsx(Kt,{color:p,size:64})}),b.jsx("div",{style:{flex:1,minWidth:0},children:b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:6},children:[b.jsx("span",{style:{fontSize:18,fontWeight:"bold",color:p,letterSpacing:2},children:d.toUpperCase()}),b.jsx("span",{style:{padding:"2px 8px",borderRadius:2,background:`${S.amber}15`,border:`1px solid ${S.amber}40`,fontSize:8,color:S.amber,letterSpacing:1},children:u("creator.newBadge")})]})})]})]}),b.jsxs("div",{style:{background:"rgba(255,255,255,0.02)",borderRadius:4,padding:14,marginBottom:16,border:"1px solid rgba(255,255,255,0.04)"},children:[b.jsx("div",{style:{fontSize:9,color:S.textDim,letterSpacing:2,marginBottom:10},children:u("creator.deploymentSpecs")}),ee.map((H,z)=>b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"5px 0",borderBottom:z<ee.length-1?"1px solid rgba(255,255,255,0.03)":"none",fontSize:10},children:[b.jsx("span",{style:{color:S.textDim},children:H.label}),b.jsx("span",{style:{color:H.isColor?H.value:S.text,fontWeight:"bold"},children:H.isColor?b.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[b.jsx("span",{style:{width:10,height:10,borderRadius:2,background:H.value,display:"inline-block"}}),H.value]}):H.value})]},H.label))]}),O&&b.jsx("div",{style:{fontSize:10,color:S.red,marginBottom:8,textAlign:"center",padding:"6px 10px",background:`${S.red}10`,border:`1px solid ${S.red}30`,borderRadius:3},children:O}),b.jsxs("div",{style:{display:"flex",gap:8},children:[b.jsx("button",{type:"button",onClick:()=>{q(null),v("edit")},style:{...Ea,flex:1},children:u("creator.editBack")}),b.jsx("button",{type:"button",onClick:I,disabled:N,style:{...rl(S.green),flex:2,opacity:N?.6:1,cursor:N?"wait":"pointer"},children:u(N?"creator.deploying":"creator.confirmDeploy")})]})]})}return b.jsxs("div",{style:no,children:[b.jsx(wi,{icon:"✦",title:u("creator.spawnNewTitle")}),b.jsxs("div",{style:{display:"flex",gap:14,alignItems:"center",marginBottom:16},children:[b.jsx("div",{style:{background:`${p}10`,border:`1px solid ${p}25`,borderRadius:4,padding:6},children:b.jsx(Kt,{color:p,size:48})}),b.jsxs("div",{style:{flex:1},children:[b.jsx("span",{style:Ta,children:u("creator.shellColor")}),b.jsx("div",{style:{display:"flex",gap:5,flexWrap:"wrap",marginTop:4},children:J.map(ee=>b.jsx("button",{type:"button",onClick:()=>m(ee),style:{width:22,height:22,borderRadius:3,background:ee,border:p===ee?"2px solid #fff":"2px solid transparent",cursor:"pointer",transform:p===ee?"scale(1.15)":"scale(1)"}},ee))})]})]}),b.jsx("label",{style:Ta,htmlFor:"agent-name",children:u("creator.agentDesignation")}),b.jsx("input",{id:"agent-name",value:d,onChange:ee=>g(ee.target.value.slice(0,12)),placeholder:u("creator.namePlaceholder"),maxLength:12,style:Di}),b.jsxs("div",{style:Iv,children:[d.length,"/12"]}),r&&b.jsx("button",{type:"button",onClick:r,style:{...Ea,width:"100%",marginBottom:8},children:u("creator.cancelWithIcon")}),b.jsx("button",{type:"button",onClick:()=>Q&&v("preview"),disabled:!Q,style:{...rl(Q?p:"#444"),width:"100%",opacity:Q?1:.35,cursor:Q?"pointer":"not-allowed"},children:u("creator.previewNext")}),!Q&&b.jsx("div",{style:{fontSize:9,color:S.textDim,marginTop:6,textAlign:"center"},children:u("creator.fillInName")})]})}function Kc(){return b.jsx("div",{style:{width:1,height:28,background:"rgba(255,255,255,0.06)"}})}function Ei({children:a,defaultX:i=0,defaultY:o=0,centered:r=!1,title:u,style:f}){const[d,g]=U.useState({x:i,y:o}),[p,m]=U.useState(!r),T=U.useRef(null);U.useLayoutEffect(()=>{if(r&&T.current&&!p){const N=T.current.getBoundingClientRect();g({x:Math.max(16,(window.innerWidth-N.width)/2),y:Math.max(16,(window.innerHeight-N.height)/2)}),m(!0)}},[r,p]);const v=U.useCallback(N=>{if(N.target.closest("button, input, textarea, select"))return;N.preventDefault();const D=N.clientX-d.x,O=N.clientY-d.y,q=Q=>g({x:Q.clientX-D,y:Q.clientY-O}),J=()=>{window.removeEventListener("pointermove",q),window.removeEventListener("pointerup",J)};window.addEventListener("pointermove",q),window.addEventListener("pointerup",J)},[d.x,d.y]);return b.jsxs("div",{ref:T,style:{position:"fixed",left:d.x,top:d.y,zIndex:50,background:S.uiBg,border:`2px solid ${S.uiBorder}`,borderRadius:4,backdropFilter:"blur(8px)",boxShadow:"0 4px 24px rgba(0,0,0,0.5)",opacity:p?1:0,...f},children:[b.jsxs("div",{onPointerDown:v,style:{cursor:"grab",padding:"5px 10px",borderBottom:"1px solid rgba(255,255,255,0.05)",fontSize:11,color:S.textDim,letterSpacing:2,userSelect:"none",display:"flex",alignItems:"center",gap:6},children:[b.jsx("span",{style:{opacity:.3,fontSize:10},children:"☰"}),u]}),a]})}const K=(a,i,o,r=1,u=1)=>a.fillRect(i,o,r,u),h2=a=>{a.fillStyle="#ffffff",K(a,0,3,16,10),a.fillStyle="#b22234",K(a,0,3,16,2),K(a,0,7,16,2),K(a,0,11,16,2),a.fillStyle="#3c3b6e",K(a,0,3,7,6),a.fillStyle="#ffffff",K(a,1,4,1,1),K(a,3,4,1,1),K(a,5,4,1,1),K(a,2,5,1,1),K(a,4,5,1,1),K(a,1,6,1,1),K(a,3,6,1,1),K(a,5,6,1,1),K(a,2,7,1,1),K(a,4,7,1,1)},p2=a=>{a.fillStyle="#de2910",K(a,0,3,16,10),a.fillStyle="#ffde00",K(a,2,5,2,2),K(a,3,4,1,1),K(a,1,6,1,1),K(a,5,4,1,1),K(a,6,5,1,1),K(a,6,7,1,1),K(a,5,8,1,1)},g2=a=>{a.fillStyle="#ff9933",K(a,0,3,16,3),a.fillStyle="#ffffff",K(a,0,6,16,4),a.fillStyle="#138808",K(a,0,10,16,3),a.fillStyle="#000080",K(a,7,7,2,2),K(a,6,7,1,1),K(a,9,8,1,1)},m2=a=>{a.fillStyle="#ff0000",K(a,0,3,16,5),a.fillStyle="#ffffff",K(a,0,8,16,5)},y2=a=>{a.fillStyle="#009c3b",K(a,0,3,16,10),a.fillStyle="#ffdf00",K(a,7,4,2,1),K(a,5,5,6,1),K(a,3,6,10,1),K(a,2,7,12,2),K(a,3,9,10,1),K(a,5,10,6,1),K(a,7,11,2,1),a.fillStyle="#002776",K(a,6,7,4,2),K(a,7,6,2,1),K(a,7,9,2,1)},b2=a=>{a.fillStyle="#ffffff",K(a,0,3,16,3),a.fillStyle="#0039a6",K(a,0,6,16,4),a.fillStyle="#d52b1e",K(a,0,10,16,3)},S2=a=>{a.fillStyle="#006847",K(a,0,3,5,10),a.fillStyle="#ffffff",K(a,5,3,6,10),a.fillStyle="#ce1126",K(a,11,3,5,10),a.fillStyle="#6b3e26",K(a,7,7,2,2),K(a,7,6,1,1)},v2=a=>{a.fillStyle="#ffffff",K(a,0,3,16,10),a.fillStyle="#bc002d",K(a,6,6,4,4),K(a,7,5,2,1),K(a,7,10,2,1),K(a,5,7,1,2),K(a,10,7,1,2)},T2=a=>{a.fillStyle="#ce1126",K(a,0,3,16,3),a.fillStyle="#ffffff",K(a,0,6,16,4),a.fillStyle="#000000",K(a,0,10,16,3),a.fillStyle="#c09300",K(a,7,7,2,2),K(a,6,7,1,1),K(a,9,7,1,1)},E2=a=>{a.fillStyle="#da251d",K(a,0,3,16,10),a.fillStyle="#ffff00",K(a,7,5,2,1),K(a,6,6,4,1),K(a,5,7,6,2),K(a,6,9,1,1),K(a,9,9,1,1),K(a,7,10,2,1)},A2=a=>{a.fillStyle="#000000",K(a,0,3,16,3),a.fillStyle="#dd0000",K(a,0,6,16,4),a.fillStyle="#ffcc00",K(a,0,10,16,3)},x2=a=>{a.fillStyle="#006a4e",K(a,0,3,16,10),a.fillStyle="#f42a41",K(a,5,6,4,4),K(a,6,5,2,1),K(a,6,10,2,1),K(a,4,7,1,2),K(a,9,7,1,2)},R2=a=>{a.fillStyle="#ffffff",K(a,0,3,4,10),a.fillStyle="#01411c",K(a,4,3,12,10),a.fillStyle="#ffffff",K(a,8,5,3,1),K(a,7,6,1,1),K(a,11,6,1,1),K(a,7,7,1,2),K(a,11,7,1,2),K(a,7,9,1,1),K(a,11,9,1,1),K(a,8,10,3,1),K(a,12,6,1,1),K(a,12,8,1,1),K(a,13,7,1,1)},w2=a=>{a.fillStyle="#ffffff",K(a,0,3,16,10),a.fillStyle="#cd2e3a",K(a,6,5,4,3),K(a,5,6,1,2),K(a,10,6,1,1),a.fillStyle="#0047a0",K(a,6,8,4,3),K(a,5,8,1,1),K(a,10,8,1,2),a.fillStyle="#000000",K(a,1,4,3,1),K(a,1,6,3,1),K(a,12,4,3,1),K(a,12,6,3,1),K(a,1,9,3,1),K(a,1,11,3,1),K(a,12,9,3,1),K(a,12,11,3,1)},N2=a=>{a.fillStyle="#002395",K(a,0,3,5,10),a.fillStyle="#ffffff",K(a,5,3,6,10),a.fillStyle="#ed2939",K(a,11,3,5,10)},C2=a=>{a.fillStyle="#ef2b2d",K(a,0,3,16,10),a.fillStyle="#ffffff",K(a,0,6,16,4),K(a,4,3,4,10),a.fillStyle="#002868",K(a,0,7,16,2),K(a,5,3,2,10)},D2={US:h2,CN:p2,IN:g2,ID:m2,BR:y2,RU:b2,MX:S2,JP:v2,EG:T2,VN:E2,DE:A2,BD:x2,PK:R2,KR:w2,FR:N2,NO:C2};function Jp({countryCode:a,size:i=16}){const o=U.useRef(null),r=D2[a];return U.useEffect(()=>{const u=o.current;if(!u||!r)return;const f=u.getContext("2d");f&&(f.clearRect(0,0,16,16),r(f))},[r]),r?b.jsx("canvas",{ref:o,width:16,height:16,style:{width:i*1.5,height:i,imageRendering:"pixelated",flexShrink:0}}):null}const uo=["#e74c3c","#ff6b8a","#f4a261","#9b59b6","#2ecc71","#1abc9c","#5dade2","#e76f51","#f39c12","#8e44ad","#3498db","#e74c6f"],Pp=[{x:10,y:8,dir:0},{x:7,y:9,dir:2},{x:14,y:9,dir:1},{x:4,y:11,dir:3},{x:17,y:11,dir:1},{x:12,y:7,dir:0},{x:9,y:10,dir:2},{x:15,y:8,dir:0},{x:6,y:12,dir:1},{x:18,y:9,dir:3},{x:3,y:9,dir:0},{x:13,y:11,dir:2}],zg="openclaw-agent-colors",Mg="openclaw-agent-positions";function jg(){try{return JSON.parse(localStorage.getItem(zg)??"{}")||{}}catch{return{}}}function Ug(a){return jg()[a]||null}function Wp(a,i){const o=jg();o[a]=i,localStorage.setItem(zg,JSON.stringify(o))}function Bg(){try{return JSON.parse(localStorage.getItem(Mg)??"{}")||{}}catch{return{}}}function k2(a){return Bg()[a]||null}function O2(a,i,o){const r=Bg();r[a]={x:i,y:o},localStorage.setItem(Mg,JSON.stringify(r))}function eg(a){return a?a.map((i,o)=>{const r=Pp[o%Pp.length],u=k2(i.id),f=Ug(i.id)||uo[o%uo.length];return{id:(i.identity?.name||i.name||i.id).toUpperCase().slice(0,8),role:i.identity?.theme||"Agent",color:f,x:u?u.x:r.x,y:u?u.y:r.y,dir:r.dir,_gatewayId:i.id}}):[]}function tg(a){return a?a.map((i,o)=>{const r=Ug(i.id)||uo[o%uo.length];return{id:(i.identity?.name||i.name||i.id).toUpperCase().slice(0,8),role:i.identity?.theme||"Agent",color:r,status:"active",_gatewayId:i.id}}):[]}let L2=0;function qc(a,i,o){return{id:String(++L2),agent:a,action:i,color:o,t:0}}const Yc="openclaw-device-keypair",ng="openclaw-device-id",_g="openclaw-device-token:";function Hg(a){const i=new Uint8Array(a);let o="";for(let r=0;r<i.length;r++)o+=String.fromCharCode(i[r]);return btoa(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function z2(a){const i=new Uint8Array(a);return Array.from(i,o=>o.toString(16).padStart(2,"0")).join("")}async function Gg(){const a=localStorage.getItem(Yc);let i,o;if(a){const g=JSON.parse(a);i=await crypto.subtle.importKey("jwk",g.publicKey,{name:"Ed25519"},!0,["verify"]),o=await crypto.subtle.importKey("jwk",g.privateKey,{name:"Ed25519"},!0,["sign"])}else{localStorage.removeItem(Yc),localStorage.removeItem(ng);const g=await crypto.subtle.generateKey("Ed25519",!0,["sign","verify"]);i=g.publicKey,o=g.privateKey;const p=await crypto.subtle.exportKey("jwk",i),m=await crypto.subtle.exportKey("jwk",o);localStorage.setItem(Yc,JSON.stringify({publicKey:p,privateKey:m}))}const r=await crypto.subtle.exportKey("raw",i),u=await crypto.subtle.digest("SHA-256",r),f=z2(u),d=Hg(r);return localStorage.setItem(ng,f),{deviceId:f,publicKeyB64:d,privateKey:o}}async function M2(a,{deviceId:i,nonce:o,token:r}){const u=Date.now(),f=`v2|${i}|openclaw-control-ui|ui|operator|operator.read,operator.write,operator.admin|${u}|${r||""}|${o||""}`,d=new TextEncoder().encode(f),g=await crypto.subtle.sign("Ed25519",a,d);return{signature:Hg(g),signedAt:u}}function Vg(a){return localStorage.getItem(_g+a)||null}function j2(a,i){localStorage.setItem(_g+a,i)}class U2{#e=null;#a="disconnected";#y="";#b=1;#t=new Map;#i=new Map;#c=null;#S=null;#v=null;#u=null;#f=3e4;#d=0;#s=null;#o=1e3;#l=!1;#h=null;#T=null;#p=null;#E="";#r=null;get state(){return this.#a}get connected(){return this.#a==="connected"}get pairing(){return this.#a==="pairing"}get helloPayload(){return this.#v}constructor({onEvent:i,onStateChange:o}={}){this.#c=i||null,this.#S=o||null}async connect(i,o){this.#l=!1,this.#y=i,this.#E=o||"",this.#o=1e3;try{this.#r=new URL(i).host}catch{this.#r=i}this.#T=await Gg(),this.#p=Vg(this.#r),this.#g()}disconnect(){this.#l=!0,this.#s!=null&&clearTimeout(this.#s),this.#s=null,this.#m(),this.#e&&(this.#e.close(1e3),this.#e=null),this.#x("Disconnected"),this.#n("disconnected")}retry(){this.#l=!1,this.#g()}request(i,o){return new Promise((r,u)=>{if(!this.#e||this.#e.readyState!==WebSocket.OPEN)return u(new Error("Not connected"));const f=String(this.#b++),d=setTimeout(()=>{this.#t.delete(f),u(new Error(`Request ${i} timed out`))},6e4);this.#t.set(f,{resolve:r,reject:u,timer:d,method:i}),this.#e.send(JSON.stringify({type:"req",id:f,method:i,params:o}))})}on(i,o){return this.#i.has(i)||this.#i.set(i,new Set),this.#i.get(i)?.add(o),()=>this.#i.get(i)?.delete(o)}#g(){this.#n("connecting");try{this.#e=new WebSocket(this.#y)}catch{this.#n("disconnected"),this.#A();return}this.#e.onopen=()=>{},this.#e.onmessage=i=>{let o;try{o=JSON.parse(i.data)}catch{return}this.#R(o)},this.#e.onerror=()=>{},this.#e.onclose=()=>{this.#m(),this.#e=null;const i=this.#a==="pairing";if(this.#x("Connection closed"),i){this.#n("pairing");return}this.#n("disconnected"),this.#l||this.#A()}}#R(i){i.type==="event"?this.#w(i):i.type==="res"&&this.#N(i)}#w(i){const o=i.event,r=i.payload??{};if(o==="connect.challenge"){this.#h=r?.nonce??null,this.#n("challenged"),this.#C();return}if(o==="tick"){this.#d=Date.now();return}const u=this.#i.get(o);if(u)for(const f of u)f(r,i);this.#c&&this.#c(o,r,i)}#N(i){const{ok:o,error:r}=i,u=i.id??"",f=i.payload??{},d=this.#t.get(u);if(d&&!(o&&f?.status==="accepted")){if(!o&&r?.code==="NOT_PAIRED"){clearTimeout(d.timer),this.#t.delete(u),this.#n("pairing");return}if(clearTimeout(d.timer),this.#t.delete(u),o){if(f?.type==="hello-ok"){const g=f?.auth?.deviceToken;g&&this.#r&&(j2(this.#r,String(g)),this.#p=String(g)),this.#v=f,this.#f=f.policy?.tickIntervalMs??3e4,this.#D(),this.#o=1e3,this.#n("connected")}d.resolve(f)}else d.method==="connect"&&(this.#l=!0),d.reject(new Error(r?.message||"Request failed"))}}async#C(){this.#n("handshaking");const i=String(this.#b++),o=this.#T;if(!o)return;const r={minProtocol:3,maxProtocol:3,client:{id:"openclaw-control-ui",version:"1.0.0",platform:"web",mode:"ui"},caps:["tool-events"],role:"operator",scopes:["operator.read","operator.write","operator.admin"]},u=this.#p||this.#E||"",{signature:f,signedAt:d}=await M2(o.privateKey,{deviceId:o.deviceId,nonce:this.#h,token:u});r.device={id:o.deviceId,publicKey:o.publicKeyB64,signature:f,signedAt:d,nonce:this.#h},u&&(r.auth={token:u});const g=setTimeout(()=>{this.#t.delete(i),this.#e&&this.#e.close(1008)},1e4);this.#t.set(i,{resolve:p=>{},reject:p=>{this.#c?.("error",{message:p.message},{type:"error"})},timer:g,method:"connect"}),this.#e?.send(JSON.stringify({type:"req",id:i,method:"connect",params:r}))}#D(){this.#d=Date.now(),this.#m(),this.#u=setInterval(()=>{Date.now()-this.#d>this.#f*2&&this.#e&&this.#e.close(4e3,"Tick timeout")},this.#f)}#m(){this.#u&&(clearInterval(this.#u),this.#u=null)}#A(){this.#l||(this.#s=setTimeout(()=>{this.#s=null,this.#l||this.#g()},this.#o),this.#o=Math.min(this.#o*2,3e4))}#n(i){this.#a!==i&&(this.#a=i,this.#S?.(i))}#x(i){for(const[o,r]of this.#t)clearTimeout(r.timer),r.reject(new Error(i));this.#t.clear()}}function lg(a){if(a==null)return null;if(typeof a=="string")return a;const o=a?.content;return Array.isArray(o)&&o.filter(r=>typeof r?.text=="string").map(r=>r.text).join(`
|
|
153
|
+
`)||null}const $g="openclaw-gateway",Kg="openclaw-gateway-history",ag=5;function B2(){try{return JSON.parse(localStorage.getItem($g)??"null")||null}catch{return null}}function _2(a){localStorage.setItem($g,JSON.stringify({url:a}));let i=fu();i=i.filter(o=>o.url!==a),i.unshift({url:a,ts:Date.now()}),i.length>ag&&(i=i.slice(0,ag)),localStorage.setItem(Kg,JSON.stringify(i))}function fu(){try{return JSON.parse(localStorage.getItem(Kg)??"[]")||[]}catch{return[]}}const qg=U.createContext(null);function H2({children:a}){const[i,o]=U.useState("disconnected"),[r,u]=U.useState(null),[f,d]=U.useState([]),[g,p]=U.useState([]),[m,T]=U.useState([]),[v,N]=U.useState([]),[D,O]=U.useState(null),[q,J]=U.useState(null),[Q,I]=U.useState(null),[ee,H]=U.useState("disconnected"),[z,ie]=U.useState(null),[Z,P]=U.useState(null),[ae,ne]=U.useState([]),[X,re]=U.useState([]),W=U.useRef(null),fe=U.useRef([]),Le=U.useRef([]),j=U.useRef([]);U.useEffect(()=>{Gg().then(pe=>P(pe.deviceId))},[]),U.useEffect(()=>{Le.current=g},[g]),U.useEffect(()=>{j.current=f},[f]);const Y=U.useCallback((pe,De)=>{if(pe==="error"){u(String(De?.message||"Connection error"));return}if(pe==="agent"){const Se=De,xe=De.sessionKey,Fe=xe?.startsWith("agent:")?xe.split(":")[1]:void 0,ze=Fe?Le.current.find(wt=>wt.id===Fe):void 0,St=(ze?.identity?.name||ze?.name||Fe||"AGENT").toUpperCase().slice(0,8),ul=(Fe?j.current.find(wt=>wt._gatewayId===Fe):void 0)?.color||"#f4a261";N(wt=>[...wt.slice(-14),qc(St,String(Se?.stream||"event"),ul)])}pe==="presence"&&N(Se=>[...Se.slice(-14),qc("SYSTEM","Presence update","#5dade2")])},[]),F=U.useCallback(()=>{for(const pe of fe.current)pe();fe.current=[],W.current&&(W.current.disconnect(),W.current=null)},[]),de=U.useCallback(async(pe,De)=>{try{const Se=De?{agentId:De}:{},xe=await pe.request("skills.status",Se);return(xe.skills||xe.entries||[]).filter(ze=>ze.eligible!==!1&&!ze.disabled).map(ze=>({id:ze.skillKey||ze.name,name:ze.name,icon:ze.emoji||"⚙️",desc:ze.description||"",cat:ze.source||"skill"}))}catch{return[]}},[]),be=U.useCallback(async pe=>{try{const De=await pe.request("skills.status",{});return(De.skills||De.entries||[]).filter(xe=>!xe.blockedByAllowlist&&(xe.eligible!==!1||xe.disabled)).map(xe=>({id:xe.skillKey||xe.name,name:xe.name,icon:xe.emoji||"⚙️",desc:xe.description||"",cat:xe.source||"skill",enabled:!xe.disabled}))}catch{return[]}},[]),A=U.useCallback(async pe=>{H("syncing");try{const Se=(await pe.request("agents.list")).agents||[];p(Se),d(eg(Se)),T(tg(Se)),Se.forEach(ze=>{const St=(ze.identity?.name||ze.name||ze.id).toUpperCase().slice(0,8);N(Un=>[...Un.slice(-14),qc(St,"Connected","#2ecc71")])});const[xe,Fe]=await Promise.all([de(pe),be(pe)]);return ne(xe),re(Fe),H("connected"),Se}catch{return H("connected"),[]}},[de,be]),_=U.useCallback(async({name:pe,workspace:De,emoji:Se})=>{const xe=W.current;if(!xe?.connected)throw new Error("Not connected");return await xe.request("agents.create",{name:pe,workspace:De,emoji:Se}),A(xe)},[A]),te=U.useCallback(async({agentId:pe,name:De,workspace:Se,model:xe,avatar:Fe})=>{const ze=W.current;if(!ze?.connected)throw new Error("Not connected");const St={agentId:pe};De!==void 0&&(St.name=De),Se!==void 0&&(St.workspace=Se),xe!==void 0&&(St.model=xe),Fe!==void 0&&(St.avatar=Fe),await ze.request("agents.update",St),await A(ze)},[A]),se=U.useCallback(async({skillKey:pe,enabled:De})=>{const Se=W.current;if(!Se?.connected)throw new Error("Not connected");await Se.request("skills.update",{skillKey:pe,enabled:De})},[]),me=U.useCallback(async()=>{const pe=W.current;if(!pe?.connected)return;const[De,Se]=await Promise.all([de(pe),be(pe)]);ne(De),re(Se)},[de,be]),Ee=U.useCallback((pe,De)=>{F(),u(null),d([]),p([]),T([]),N([]),O(null),J(null),I(null),ie(null);const Se=new U2({onStateChange:Fe=>{if(o(Fe),Fe==="pairing"&&(H("pairing"),ie("pending")),Fe==="connected"){ie(null);const ze=Se.helloPayload;ze&&(I(ze),O(ze.server??null),J(ze.features??null)),_2(pe),A(Se)}Fe==="disconnected"&&ie(ze=>(ze||H("disconnected"),ze))},onEvent:Y});W.current=Se;const xe=Se.on("agent",Fe=>{});fe.current.push(xe),Se.connect(pe,De)},[F,A,Y]),le=U.useCallback(()=>{F(),o("disconnected"),H("disconnected"),u(null),ie(null),d([]),p([]),T([]),N([]),O(null),J(null),I(null),ne([]),re([])},[F]),Ve=U.useCallback(()=>{const pe=W.current;pe&&(ie(null),pe.retry())},[]),Ye=U.useCallback((pe,De,Se)=>{const xe=W.current;if(!xe?.connected)return Promise.reject(new Error("Not connected"));const ze=m.find(St=>St.id===pe)?._gatewayId||void 0;return new Promise((St,Un)=>{const ul=crypto.randomUUID();let wt=!1,Bn=null;const ot={id:crypto.randomUUID(),from:"agent",blocks:[{type:"text",text:""}],streaming:!0},rt=()=>{const Je=ot.blocks[ot.blocks.length-1];if(Je?.type==="text")return Je;const _e={type:"text",text:""};return ot.blocks.push(_e),_e},Ml=()=>{Se&&Se({...ot,blocks:ot.blocks.map(Je=>({...Je}))})},Aa=Je=>{if(wt)return;wt=!0,clearTimeout(fl),Oi?.(),xa?.(),Je.streaming=!1;const _e={...Je,blocks:Je.blocks.map(Pe=>({...Pe}))};Se&&Se(_e),St(_e)},jl=Je=>{wt||(wt=!0,clearTimeout(fl),Oi?.(),xa?.(),Un(Je))},fl=setTimeout(()=>jl(new Error("Agent response timed out")),12e4),Oi=xe.on("chat",Je=>{const _e=Je;if(!(Bn&&_e.runId!==Bn)){if(_e.state==="delta"){const Pe=_e.message?.content?.[0]?.text||_e.message?.text||_e.message?.delta||"";rt().text=Pe,Ml()}else if(_e.state==="final"||_e.state==="error"||_e.state==="aborted")if(_e.state==="error")jl(new Error(_e.errorMessage||"Agent error"));else{const Pe=_e.message?.content?.[0]?.text||_e.message?.text;Pe?rt().text=Pe:rt().text||(rt().text="[No response]"),Aa(ot)}}}),xa=xe.on("agent",Je=>{const _e=Je;if(_e.stream!=="tool"||Bn&&_e.runId!==Bn)return;const Pe=_e.data??{},ct=typeof Pe.toolCallId=="string"?Pe.toolCallId:"",qt=typeof Pe.name=="string"?Pe.name:"tool",ht=Pe.phase;if(ht==="start"){const vt={type:"tool_call",toolCallId:ct,toolName:qt,args:Pe.args??{},output:null,phase:"start"},cn=ot.blocks.length-1;ot.blocks[cn]?.type==="text"?ot.blocks.splice(cn,0,vt):ot.blocks.push(vt),ot.blocks[ot.blocks.length-1]?.type!=="text"&&ot.blocks.push({type:"text",text:""}),Ml()}else if(ht==="update"){const vt=ot.blocks.find(cn=>cn.type==="tool_call"&&cn.toolCallId===ct);vt&&vt.type==="tool_call"&&(vt.output=lg(Pe.partialResult)??vt.output,vt.phase="update"),Ml()}else if(ht==="result"){const vt=ot.blocks.find(cn=>cn.type==="tool_call"&&cn.toolCallId===ct);vt&&vt.type==="tool_call"&&(vt.output=lg(Pe.result)??vt.output,vt.phase="result"),Ml()}});xe.request("agent",{message:De,agentId:ze,idempotencyKey:ul}).then(Je=>{const _e=Je;if(Bn=_e?.runId??null,ot.runId=Bn??void 0,_e?.status==="ok"&&_e?.result){const ct=(_e.result.payloads||[]).map(qt=>qt.text).filter(Boolean).join(`
|
|
154
|
+
`)||"[No response]";rt().text=ct,Aa(ot)}}).catch(Je=>{jl(Je instanceof Error?Je:new Error(String(Je)))})})},[m]);U.useEffect(()=>{const pe=W.current;if(!pe)return;const De=pe.on("error",Se=>{u(String(Se?.message||"Connection error"))});return()=>{De()}},[]);const Rt=U.useCallback(pe=>{const De=pe||g;d(eg(De)),T(tg(De))},[g]),jt={connectionState:i,connectionError:r,connectionPhase:ee,pairingState:z,deviceId:Z,connect:Ee,disconnect:le,retryPairing:Ve,agents:f,rawAgents:g,chatAgents:m,activityLogs:v,serverInfo:D,features:q,sendAgentMessage:Ye,createAgent:_,updateAgent:te,updateSkill:se,refreshSkills:me,remapAgents:Rt,skills:ae,allSkills:X,client:W.current,helloPayload:Q,savedConnection:B2(),connectionHistory:fu()};return b.jsx(qg.Provider,{value:jt,children:a})}function Yg(){const a=U.useContext(qg);if(!a)throw new Error("useGateway must be used within GatewayProvider");return a}const ig=["en","zh","hi","id","pt","ru","es","ja","ar","vi","de","bn","ur","ko","fr","no"],G2={en:"English",zh:"中文",hi:"हिन्दी",id:"Indonesia",pt:"Português",ru:"Русский",es:"Español",ja:"日本語",ar:"العربية",vi:"Tiếng Việt",de:"Deutsch",bn:"বাংলা",ur:"اردو",ko:"한국어",fr:"Français",no:"Norsk"},sg={en:"US",zh:"CN",hi:"IN",id:"ID",pt:"BR",ru:"RU",es:"MX",ja:"JP",ar:"EG",vi:"VN",de:"DE",bn:"BD",ur:"PK",ko:"KR",fr:"FR",no:"NO"};function Ig(){const{i18n:a}=cl(),[i,o]=U.useState(!1),[r,u]=U.useState(!1),f=U.useRef(null),d=U.useRef(null),g=ig.includes(a.language)?a.language:"en";U.useEffect(()=>{if(!i)return;const m=T=>{f.current&&!f.current.contains(T.target)&&o(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[i]);const p=U.useCallback(()=>{const m=d.current;m&&u(m.scrollTop+m.clientHeight<m.scrollHeight-4)},[]);return U.useEffect(()=>{i&&p()},[i,p]),b.jsxs("div",{ref:f,style:{position:"relative",zIndex:300},children:[b.jsxs("button",{type:"button",onClick:()=>o(m=>!m),style:{...Ea,fontSize:11,padding:"4px 10px",display:"flex",alignItems:"center",gap:6,color:S.textDim,borderColor:`${S.textDim}40`},children:[b.jsx(Jp,{countryCode:sg[g],size:12}),b.jsx("span",{style:{textTransform:"uppercase"},children:g}),b.jsx("span",{style:{fontSize:8},children:i?"▲":"▼"})]}),i&&b.jsxs("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,background:S.uiBg2,border:`2px solid ${S.uiBorder}`,borderRadius:4,minWidth:180,boxShadow:"0 8px 32px rgba(0,0,0,0.6)"},children:[b.jsx("div",{ref:d,className:"thin-scroll",onScroll:p,style:{padding:"4px 0",maxHeight:320,overflowY:"auto"},children:ig.map(m=>{const T=m===g;return b.jsxs("button",{type:"button",onClick:()=>{a.changeLanguage(m),o(!1)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 12px",background:T?`${S.amber}15`:"transparent",border:"none",cursor:"pointer",color:T?S.amber:S.text,fontFamily:"'Courier New', monospace",fontSize:11,textAlign:"left"},onMouseEnter:v=>{T||(v.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:v=>{v.currentTarget.style.background=T?`${S.amber}15`:"transparent"},children:[b.jsx(Jp,{countryCode:sg[m],size:12}),b.jsx("span",{style:{flex:1},children:G2[m]}),b.jsx("span",{style:{fontSize:9,color:S.textDim},children:m.toUpperCase()})]},m)})}),r&&b.jsx("div",{style:{borderTop:`1px solid ${S.uiBorder}`,padding:"5px 12px",fontSize:9,color:S.textDim,textAlign:"center",fontFamily:"'Courier New', monospace"},children:"▼ Scroll for more"})]})]})}const V2={connecting:0,challenged:1,handshaking:2,pairing:2,syncing:3};function $2({connectionState:a,connectionError:i,onStartConnect:o,onRetryPairing:r,deviceId:u}){const{t:f}=cl(),d=`${location.protocol==="https:"?"wss":"ws"}://${location.host}`,[g,p]=U.useState("select"),[m,T]=U.useState(d),[v,N]=U.useState(""),[D,O]=U.useState(0),q=fu();U.useEffect(()=>{try{const z=JSON.parse(localStorage.getItem("openclaw-gateway")??"null");z?.url&&T(z.url)}catch{}},[]),U.useEffect(()=>{if(g==="connecting"){const z=V2[a];z!==void 0&&O(z)}},[a,g]),U.useEffect(()=>{i&&g==="connecting"&&p("error")},[i,g]);const J=()=>{m.trim()&&(p("connecting"),O(0),o?.(m.trim(),v||void 0))},Q=z=>{T(z.url)},I=u?`${u.slice(0,4)}...${u.slice(-4)}`:null;let ee=!1;try{const z=m.trim()?new URL(m.trim()).host:null;ee=z?!!Vg(z):!1}catch{}const H=a==="pairing";if(g==="select")return b.jsxs("div",{style:{...to,overflow:"visible"},children:[b.jsx(wi,{icon:"🌊",title:f("gateway.loginTitle"),trailing:b.jsx(Ig,{})}),b.jsx("div",{style:{fontSize:11,color:S.textDim,marginBottom:16,lineHeight:1.5},children:f("gateway.loginDescription")}),b.jsx("label",{style:Ta,htmlFor:"gateway-url",children:f("gateway.urlLabel")}),b.jsx("input",{id:"gateway-url",value:m,onChange:z=>T(z.target.value),placeholder:d,style:Di,onKeyDown:z=>z.key==="Enter"&&J()}),b.jsx("div",{style:{marginBottom:14}}),b.jsxs("div",{style:{padding:"10px 12px",borderRadius:4,marginBottom:14,background:ee?`${S.green}08`:`${S.purple}08`,border:`1px solid ${ee?S.green:S.purple}20`},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[b.jsx("div",{style:{width:8,height:8,borderRadius:8,background:ee?S.green:S.purple,boxShadow:ee?`0 0 6px ${S.green}60`:"none"}}),b.jsx("span",{style:{fontSize:10,fontWeight:"bold",color:ee?S.green:S.purple,letterSpacing:.5},children:f(ee?"gateway.devicePaired":"gateway.newDevice")})]}),I&&b.jsx("div",{style:{fontSize:9,color:S.textDim,marginTop:5,marginLeft:16},children:ee?f("gateway.devicePairedDesc",{deviceId:I}):f("gateway.newDeviceDesc",{deviceId:I})})]}),!ee&&b.jsxs(b.Fragment,{children:[b.jsx("label",{style:Ta,htmlFor:"gateway-token",children:f("gateway.tokenLabel")}),b.jsx("input",{id:"gateway-token",value:v,onChange:z=>N(z.target.value),placeholder:f("gateway.tokenPlaceholder"),type:"password",style:Di,onKeyDown:z=>z.key==="Enter"&&J()}),b.jsx("div",{style:{marginBottom:6}})]}),b.jsx("div",{style:{marginBottom:20}}),b.jsxs("button",{type:"button",onClick:J,disabled:!m.trim(),style:{...rl(S.green),width:"100%",opacity:m.trim()?1:.35,cursor:m.trim()?"pointer":"not-allowed",display:"flex",alignItems:"center",justifyContent:"center",gap:8},children:[b.jsx(Kt,{color:S.green,size:16})," ",f("gateway.connect")]}),q.length>0&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,margin:"20px 0 16px"},children:[b.jsx("div",{style:{flex:1,height:1,background:"rgba(255,255,255,0.06)"}}),b.jsx("span",{style:{fontSize:9,color:S.textDim,letterSpacing:2},children:f("gateway.recent")}),b.jsx("div",{style:{flex:1,height:1,background:"rgba(255,255,255,0.06)"}})]}),b.jsx("span",{style:Ta,children:f("gateway.recentConnections")}),b.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:q.map(z=>{const ie=z.ts?new Date(z.ts):null,Z=ie?ie.toLocaleDateString(void 0,{month:"short",day:"numeric"})+" "+ie.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):"";let P=z.url;try{P=new URL(z.url).host}catch{}return b.jsxs("button",{type:"button",onClick:()=>Q(z),style:{display:"flex",alignItems:"center",gap:12,padding:"12px 14px",background:"rgba(46,204,113,0.04)",border:`1px solid ${S.green}30`,borderRadius:4,cursor:"pointer",color:S.text,fontFamily:"'Courier New', monospace",textAlign:"left",width:"100%"},onMouseEnter:ae=>{ae.currentTarget.style.background="rgba(46,204,113,0.08)"},onMouseLeave:ae=>{ae.currentTarget.style.background="rgba(46,204,113,0.04)"},children:[b.jsx(Kt,{color:S.lob1,size:36}),b.jsxs("div",{style:{flex:1,minWidth:0},children:[b.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:b.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:P})}),b.jsxs("div",{style:{fontSize:9,color:S.textDim,marginTop:3,display:"flex",gap:12},children:[b.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:180},children:z.url}),Z&&b.jsxs(b.Fragment,{children:[b.jsx("span",{children:"·"}),b.jsx("span",{children:Z})]})]})]}),b.jsx("div",{style:{fontSize:14,color:S.amber,flexShrink:0},children:"→"})]},z.url)})})]})]});if(g==="error")return b.jsxs("div",{style:to,children:[b.jsx(wi,{icon:"⚠️",title:f("gateway.connectionFailedTitle")}),b.jsx("div",{style:{textAlign:"center",marginBottom:20},children:b.jsx("div",{style:{display:"inline-block",padding:16,borderRadius:8,background:`radial-gradient(circle, ${S.red}15 0%, transparent 70%)`},children:b.jsx(Kt,{color:S.red,size:56})})}),b.jsx("div",{style:{fontSize:11,color:S.red,textAlign:"center",marginBottom:20,lineHeight:1.5},children:i||f("gateway.connectionFailedDefault")}),b.jsx("button",{type:"button",onClick:()=>{p("select")},style:{...rl(S.amber),width:"100%"},children:f("gateway.tryAgain")})]});if(g==="connecting"){let z=m;try{z=new URL(m).host}catch{}return b.jsxs("div",{style:to,children:[b.jsx(wi,{icon:"⟳",title:f("gateway.connectingTitle")}),b.jsxs("div",{style:{textAlign:"center",marginBottom:20},children:[b.jsx("div",{style:{display:"inline-block",padding:16,borderRadius:8,background:`radial-gradient(circle, ${S.amber}10 0%, transparent 70%)`},children:b.jsx(Kt,{color:S.amber,size:56})}),b.jsx("div",{style:{fontSize:13,fontWeight:"bold",color:S.text,marginTop:8},children:z})]}),b.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,marginBottom:20},children:qS.map((ie,Z)=>{const P=Z===D,ae=Z<D,ne=H&&Z===2,X=ne?S.purple:P?S.amber:ae?S.green:S.textDim;return b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 12px",borderRadius:3,background:ne?`${S.purple}08`:P?`${S.amber}08`:ae?`${S.green}06`:"transparent"},children:[b.jsx("div",{style:{width:28,height:28,borderRadius:28,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:"bold",background:ae?`${S.green}20`:ne?`${S.purple}15`:P?`${S.amber}15`:"rgba(255,255,255,0.03)",border:`2px solid ${ae?S.green:ne?S.purple:P?S.amber:"rgba(255,255,255,0.06)"}`,color:ae?S.green:ne?S.purple:P?S.amber:S.textDim},children:ae?"✓":Z+1}),b.jsxs("div",{style:{flex:1,minWidth:0},children:[b.jsx("div",{style:{fontSize:11,fontWeight:"bold",color:X},children:f(`connection.steps.${ie.id}.label`).toUpperCase()}),b.jsx("div",{style:{fontSize:9,color:S.textDim,marginTop:2},children:f(ne?"gateway.pairingWaiting":`connection.steps.${ie.id}.desc`)}),P&&!ne&&b.jsx("div",{style:{marginTop:6,height:3,borderRadius:3,background:"rgba(255,255,255,0.06)",overflow:"hidden"},children:b.jsx("div",{style:{height:"100%",borderRadius:3,background:`linear-gradient(90deg, transparent, ${S.amber}, ${S.coral2}, transparent)`,backgroundSize:"200% 100%",animation:"shimmer 1.5s infinite linear",width:"100%"}})}),ne&&b.jsxs("div",{style:{marginTop:6,display:"flex",alignItems:"center",gap:6},children:[b.jsx("div",{style:{width:6,height:6,borderRadius:6,background:S.purple,animation:"pulse 1.5s infinite ease-in-out"}}),b.jsx("span",{style:{fontSize:9,color:S.purple},children:f("gateway.pairingInProgress")})]})]}),ae&&b.jsx("span",{style:{fontSize:9,color:S.green,flexShrink:0},children:"✓"}),P&&!ne&&b.jsx(Pc,{color:S.amber}),ne&&b.jsx(Pc,{color:S.purple})]},ie.id)})}),H&&b.jsxs("div",{style:{background:`${S.purple}08`,border:`1px solid ${S.purple}25`,borderRadius:4,padding:"14px",marginBottom:20},children:[b.jsx("div",{style:{fontSize:10,color:S.textDim,lineHeight:1.5},children:b.jsx(s0,{i18nKey:"gateway.pairingDescription",components:{code:b.jsx("code",{style:{background:"rgba(255,255,255,0.06)",padding:"2px 5px",borderRadius:3,fontSize:10,color:S.purple}})}})}),b.jsx("button",{type:"button",onClick:()=>r?.(),style:{...rl(S.purple),width:"100%",marginTop:12},children:f("gateway.retryConnection")})]}),b.jsx("style",{children:`
|
|
155
|
+
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
|
156
|
+
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
|
|
157
|
+
`})]})}return null}function Js({label:a,value:i,color:o,pulse:r,pulseRate:u="2s"}){return b.jsxs("div",{style:{textAlign:"center"},children:[b.jsx("div",{style:{fontSize:10,letterSpacing:2,color:S.textDim,marginBottom:2},children:a}),b.jsx("div",{style:{fontSize:14,fontWeight:"bold",color:o,animation:r?`pulse ${u} infinite`:"none"},children:i})]})}function bo(a,i,o,r){const u=(i*7+o*13)%5;if(a.fillStyle=u<2?S.sea0:u<4?S.sea1:S.sea2,a.fillRect(i*w,o*w,w,w),Math.sin(r*.04+i*1.2+o*.8)>.6&&(a.fillStyle="rgba(93,173,226,0.08)",a.fillRect(i*w+(r+i*3)%12,o*w+(r+o*5)%12,5,2)),(i*11+o*7)%13===0){const d=(o*w+(r*.3+i*5)%w)%(tn*w);a.fillStyle="rgba(210,180,120,0.15)",a.fillRect(i*w+6,d,1,1)}}function K2(a,i,o,r){const u=(i*3+o*11)%3;a.fillStyle=u===0?S.deep0:u===1?S.deep1:S.deep2,a.fillRect(i*w,o*w,w,w),Math.sin(r*.025+i+o*2)>.7&&(a.fillStyle="rgba(30,77,110,0.12)",a.fillRect(i*w+(r*.5+i*4)%14,o*w+5,4,1))}function Xg(a,i,o){a.fillStyle=S.sand1,a.fillRect(i*w,o*w,w,w),a.fillStyle=S.sand2,(i+o)%3===0&&a.fillRect(i*w+3,o*w+5,2,1),(i*5+o)%4===0&&a.fillRect(i*w+10,o*w+11,3,1),a.fillStyle=S.sandD,(i+o*3)%5===0&&a.fillRect(i*w+7,o*w+2,1,1),o>0&&Ci[o-1]?.[i]!==1&&(a.fillStyle=S.sandD,a.fillRect(i*w,o*w,w,1))}function q2(a,i,o){a.fillStyle=S.lounge1,a.fillRect(i*w,o*w,w,w),a.fillStyle=S.loungeD,a.fillRect(i*w,o*w+4,w,1),a.fillRect(i*w,o*w+10,w,1),(i+o)%4===0&&(a.fillStyle=S.lounge0,a.fillRect(i*w+6,o*w+6,3,3),a.fillStyle=S.lounge2,a.fillRect(i*w+7,o*w+7,1,1)),a.fillStyle=S.loungeD,a.fillRect(i*w+w-1,o*w,1,w)}function Y2(a,i,o){a.fillStyle=S.lob0,a.fillRect(i*w,o*w,w,w),a.fillStyle=S.lob1;const r=(i+o)%2;a.fillRect(i*w+(r?2:0),o*w+3,6,2),a.fillRect(i*w+(r?8:10),o*w+9,5,2),a.fillStyle=S.lob2,(i+o)%3===0&&a.fillRect(i*w+4,o*w+1,3,1),a.fillStyle=S.lobD,a.fillRect(i*w,o*w+w-2,w,2)}function I2(a,i,o){a.fillStyle=S.lounge1,a.fillRect(i*w,o*w,w,w),a.fillStyle=S.deep0,a.fillRect(i*w+2,o*w+3,12,13),a.fillStyle=S.deep1,a.fillRect(i*w+4,o*w+1,8,2),a.fillStyle=S.shell0,a.fillRect(i*w+1,o*w+3,1,13),a.fillRect(i*w+14,o*w+3,1,13),a.fillRect(i*w+2,o*w+2,12,1),a.fillStyle=S.amber,a.fillRect(i*w+11,o*w+9,2,2),a.fillStyle=S.sand2,a.fillRect(i*w+11,o*w+9,1,1)}function X2(a,i,o){a.fillStyle=S.lounge1,a.fillRect(i*w,o*w,w,w),a.fillStyle=S.loungeD,a.fillRect(i*w,o*w+4,w,1),a.fillRect(i*w,o*w+10,w,1),a.fillStyle=S.shell0,a.fillRect(i*w+3,o*w+2,10,12),a.fillStyle=S.shellD,a.fillRect(i*w+4,o*w+3,8,10),a.fillStyle=S.cyan,a.fillRect(i*w+5,o*w+4,6,8),a.fillStyle=S.shell0,a.fillRect(i*w+7,o*w+4,2,8),a.fillRect(i*w+5,o*w+7,6,2),a.fillStyle="rgba(255,255,255,0.3)",a.fillRect(i*w+5,o*w+4,2,3)}function Z2(a,i,o,r){bo(a,i,o,r);const u=(i*7+o*3)%3,f=[[S.coral0,S.coral1,S.coralD],[S.coral2,S.coral3,"#c45a30"],[S.coral0,"#ff8fa3",S.coralD]][u],d=Math.sin(r*.05+i*2)>0?1:0;a.fillStyle=f[0],a.fillRect(i*w+4,o*w+5+d,3,8),a.fillRect(i*w+2,o*w+4+d,2,5),a.fillRect(i*w+7,o*w+6+d,3,6),a.fillStyle=f[1],a.fillRect(i*w+3,o*w+3+d,4,3),a.fillRect(i*w+8,o*w+4+d,3,3),a.fillRect(i*w+10,o*w+7+d,3,4),a.fillStyle=f[2],a.fillRect(i*w+4,o*w+13,3,2),a.fillRect(i*w+8,o*w+12,2,2)}function Q2(a,i,o,r){bo(a,i,o,r);const u=Math.sin(r*.06+o)*2,f=Math.sin(r*.06+o+2)*2;a.fillStyle=S.kelp0;for(let d=0;d<12;d++){const g=Math.round(Math.sin(d*.4+r*.04)*1.5+u);a.fillRect(i*w+5+g,o*w+3+d,3,2)}a.fillStyle=S.kelp1;for(let d=0;d<10;d++){const g=Math.round(Math.sin(d*.5+r*.04+1)*1+f);a.fillRect(i*w+10+g,o*w+5+d,2,2)}a.fillStyle=S.kelp2,a.fillRect(i*w+3+Math.round(u),o*w+3,4,2),a.fillRect(i*w+9+Math.round(f),o*w+5,3,2)}function F2(a,i,o,r){Ci[o]?.[i-1]===1||Ci[o]?.[i+1]===1?Xg(a,i,o):bo(a,i,o,r),(i*3+o*7)%2===0?(a.fillStyle=S.shell1,a.fillRect(i*w+4,o*w+8,8,6),a.fillRect(i*w+6,o*w+6,6,2),a.fillStyle=S.shell2,a.fillRect(i*w+5,o*w+9,3,3),a.fillStyle=S.shellD,a.fillRect(i*w+9,o*w+10,2,3),a.fillStyle=S.coral0,a.fillRect(i*w+7,o*w+10,1,1)):(a.fillStyle=S.coral2,a.fillRect(i*w+7,o*w+8,3,6),a.fillRect(i*w+4,o*w+10,9,2),a.fillRect(i*w+5,o*w+8,2,2),a.fillRect(i*w+10,o*w+8,2,2),a.fillStyle=S.coral3,a.fillRect(i*w+8,o*w+10,1,1))}function J2(a,i){KS.forEach(o=>{o.y-=o.speed,o.x+=Math.sin(i*.03+o.wobble)*.3,o.y<-4&&(o.y=tn*w+4,o.x=Math.random()*sn*w),a.fillStyle=S.bubble,a.fillRect(Math.round(o.x),Math.round(o.y),o.size,o.size),a.fillStyle=S.bubbleH,a.fillRect(Math.round(o.x),Math.round(o.y),1,1)})}function P2(a,i,o){const r=i.x*w,u=i.y*w,f=Math.sin(o*.08+i.x*1.5)>0?-1:0,d=i.color;a.fillStyle="rgba(0,0,0,0.3)",a.fillRect(r+2,u+14,12,2),a.fillStyle=ge(d,-25),a.fillRect(r+6,u+12+f,4,4),a.fillRect(r+5,u+14+f,6,2),a.fillStyle=ge(d,-40),a.fillRect(r+4,u+15,3,1),a.fillRect(r+9,u+15,3,1),a.fillStyle=d,a.fillRect(r+4,u+5+f,8,8),a.fillRect(r+5,u+4+f,6,1),a.fillStyle=ge(d,30),a.fillRect(r+5,u+5+f,3,2),a.fillStyle=ge(d,-15),a.fillRect(r+4,u+8+f,8,1),a.fillRect(r+4,u+11+f,8,1),a.fillStyle=ge(d,10),a.fillRect(r+5,u+2+f,6,4),a.fillRect(r+6,u+1+f,4,1),a.fillStyle=d,a.fillRect(r+4,u+1+f,2,2),a.fillRect(r+10,u+1+f,2,2),a.fillStyle=S.black,a.fillRect(r+4,u+1+f,1,1),a.fillRect(r+11,u+1+f,1,1),a.fillStyle="#fff",a.fillRect(r+4,u+f,1,1),a.fillRect(r+11,u+f,1,1),a.fillStyle=ge(d,-20);const g=Math.sin(o*.1+i.x)*1.5;a.fillRect(r+3+Math.round(g),u-2+f,1,3),a.fillRect(r+12-Math.round(g),u-2+f,1,3),a.fillRect(r+2+Math.round(g),u-3+f,1,2),a.fillRect(r+13-Math.round(g),u-3+f,1,2);const p=Math.sin(o*.06+i.x*3)>.7?1:0;a.fillStyle=ge(d,15),a.fillRect(r+1,u+5+f,3,4),a.fillRect(r-1,u+4+f,3,2+p),a.fillStyle=ge(d,-10),a.fillRect(r-1,u+7+f-p,3,2),a.fillStyle=ge(d,15),a.fillRect(r+12,u+5+f,3,4),a.fillRect(r+14,u+4+f,3,2+p),a.fillStyle=ge(d,-10),a.fillRect(r+14,u+7+f-p,3,2),a.fillStyle=ge(d,-30);for(let v=0;v<3;v++){const N=Math.sin(o*.12+v*1.5)>0?1:0;a.fillRect(r+2,u+8+v*2+f+N,2,1),a.fillRect(r+12,u+8+v*2+f-N,2,1)}const m=u-8+f,T=i.id.length*4+6;a.fillStyle=S.uiBg,a.fillRect(r+8-T/2,m-1,T,7),a.fillStyle=d,tu(a,i.id,r+8-i.id.length*4/2+2,m,1)}function W2(a,i,o){a.fillStyle=S.lounge0,a.fillRect(i+7,o+6,2,10),a.fillStyle=S.shellD,a.fillRect(i+0,o+0,16,8),a.fillStyle=S.shell1,a.fillRect(i+1,o+1,14,6),a.fillStyle=S.lob0,tu(a,"CLAW",i+2,o+2,1)}const eT=new Set([0,1]),Zg=new Set;for(let a=0;a<tn;a++)for(let i=0;i<sn;i++)eT.has(Ci[a]?.[i])&&Zg.add(`${i},${a}`);function og(a,i){return Zg.has(`${a},${i}`)}const rg=.04;function tT({agents:a=[],onSelectAgent:i,selectedAgent:o}){const r=U.useRef(null),u=U.useRef(0),f=U.useRef(0),d=U.useRef(o),g=U.useRef(a),p=U.useRef({}),m=U.useRef(null);d.current=o,g.current=a,U.useEffect(()=>{const v=r.current;if(!v)return;const N=O=>{const q=v.getBoundingClientRect(),J=sn*w/q.width,Q=tn*w/q.height,I=(O.clientX-q.left)*J,ee=(O.clientY-q.top)*Q,H=Math.floor(I/w),z=Math.floor(ee/w);H>=0&&H<sn&&z>=0&&z<tn?m.current={x:H,y:z}:m.current=null},D=()=>{m.current=null};return v.addEventListener("mousemove",N),v.addEventListener("mouseleave",D),()=>{v.removeEventListener("mousemove",N),v.removeEventListener("mouseleave",D)}},[]),U.useEffect(()=>{const v=()=>{const N=r.current;if(!N){f.current=requestAnimationFrame(v);return}const D=N.getContext("2d");if(!D){f.current=requestAnimationFrame(v);return}const O=u.current++;D.clearRect(0,0,sn*w,tn*w);const q=d.current,J=m.current;for(let H=0;H<tn;H++)for(let z=0;z<sn;z++){switch(Ci[H]?.[z]??0){case 0:bo(D,z,H,O);break;case 1:Xg(D,z,H);break;case 2:K2(D,z,H,O);break;case 3:q2(D,z,H);break;case 4:Y2(D,z,H);break;case 5:I2(D,z,H);break;case 6:X2(D,z,H);break;case 7:Z2(D,z,H,O);break;case 8:Q2(D,z,H,O);break;case 9:F2(D,z,H,O);break}if(q&&J&&J.x===z&&J.y===H&&og(z,H)){const Z=Math.sin(O*.15)*.15+.35;D.fillStyle=`rgba(244, 162, 97, ${Z})`,D.fillRect(z*w,H*w,w,w),D.strokeStyle="rgba(244, 162, 97, 0.6)",D.lineWidth=1,D.strokeRect(z*w+.5,H*w+.5,w-1,w-1)}}W2(D,2*w,7*w),D.fillStyle="rgba(10,22,40,0.85)",D.fillRect(7*w+8,5*w+10,7*w,9),D.fillStyle=S.amber,tu(D,"LOBSTER LOUNGE",7*w+12,5*w+12,1),J2(D,O);const Q=g.current,I=[];for(const H of Q){let z=p.current[H.id];z||(z={cx:H.x,cy:H.y,tx:H.x,ty:H.y},p.current[H.id]=z);const ie=z.tx-z.cx,Z=z.ty-z.cy;Math.abs(ie)>.05?z.cx+=Math.sign(ie)*Math.min(rg,Math.abs(ie)):Math.abs(Z)>.05?(z.cx=z.tx,z.cy+=Math.sign(Z)*Math.min(rg,Math.abs(Z))):(z.cx!==z.tx||z.cy!==z.ty)&&(z.cx=z.tx,z.cy=z.ty,O2(H._gatewayId,z.tx,z.ty)),I.push({...H,x:z.cx,y:z.cy})}const ee=I.sort((H,z)=>H.y-z.y);for(const H of ee)P2(D,H,O);if(q){const H=I.find(z=>z.id===q);if(H){const z=Math.sin(O*.15)*.5+.5;D.strokeStyle=`rgba(244, 162, 97, ${.4+z*.6})`,D.lineWidth=1,D.strokeRect(H.x*w-2,H.y*w-10,w+4,w+14)}}f.current=requestAnimationFrame(v)};return f.current=requestAnimationFrame(v),()=>cancelAnimationFrame(f.current)},[]);const T=v=>{const N=r.current;if(!N)return;const D=N.getBoundingClientRect(),O=sn*w/D.width,q=tn*w/D.height,J=(v.clientX-D.left)*O,Q=(v.clientY-D.top)*q,I=d.current;if(I){const H=Math.floor(J/w),z=Math.floor(Q/w),ie=g.current.find(Z=>{const P=p.current[Z.id],ae=P?P.cx:Z.x,ne=P?P.cy:Z.y;return J>=ae*w-4&&J<=(ae+1)*w+4&&Q>=ne*w-10&&Q<=(ne+1)*w+6});if(ie){i?.(ie.id===I?null:ie.id);return}if(og(H,z)){const Z=p.current[I];Z&&(Z.tx=H,Z.ty=z);return}i?.(null);return}const ee=g.current.find(H=>{const z=p.current[H.id],ie=z?z.cx:H.x,Z=z?z.cy:H.y;return J>=ie*w-4&&J<=(ie+1)*w+4&&Q>=Z*w-10&&Q<=(Z+1)*w+6});i?.(ee?ee.id:null)};return b.jsx("canvas",{ref:r,width:sn*w,height:tn*w,onClick:T,style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"100vw",maxHeight:"100vh",width:`min(100vw, calc(100vh * ${sn} / ${tn}))`,height:`min(100vh, calc(100vw * ${tn} / ${sn}))`,imageRendering:"pixelated",cursor:"pointer",display:"block"}})}function nT(){const a=U.useRef(null),i=U.useRef(Array.from({length:20},()=>({x:Math.random()*300,y:Math.random()*400,s:.1+Math.random()*.3,sz:1+Math.floor(Math.random()*2),w:Math.random()*Math.PI*2})));return U.useEffect(()=>{let o,r=0;const u=()=>{const f=a.current;if(!f)return;const d=f.getContext("2d");if(d){r++;for(let g=0;g<400;g++){const p=g/400;d.fillStyle=`rgb(${Math.round(10+p*16)},${Math.round(22+p*32)},${Math.round(40+p*42)})`,d.fillRect(0,g,300,1)}for(let g=0;g<6;g++){const p=(Math.sin(r*.018+g*1.7)*.5+.5)*300,m=(Math.cos(r*.012+g*2.3)*.5+.5)*400;d.fillStyle="rgba(93,173,226,0.04)",d.fillRect(p-20,m-1,40,2)}i.current.forEach(g=>{g.y-=g.s,g.x+=Math.sin(r*.02+g.w)*.15,g.y<-4&&(g.y=404,g.x=Math.random()*300),d.fillStyle="rgba(180,220,255,0.3)",d.fillRect(Math.round(g.x),Math.round(g.y),g.sz,g.sz),d.fillStyle="rgba(220,240,255,0.5)",d.fillRect(Math.round(g.x),Math.round(g.y),1,1)}),o=requestAnimationFrame(u)}};return u(),()=>{o!==void 0&&cancelAnimationFrame(o)}},[]),b.jsx("canvas",{ref:a,width:300,height:400,style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",imageRendering:"pixelated",opacity:.5,pointerEvents:"none",zIndex:0}})}function lT({skills:a=[],onToggle:i}){const{t:o}=cl(),[r,u]=U.useState(""),d=[...r.trim()?a.filter(p=>[p.name,p.desc,p.cat].join(" ").toLowerCase().includes(r.trim().toLowerCase())):a].sort((p,m)=>p.enabled!==m.enabled?p.enabled?-1:1:p.name.localeCompare(m.name)),g=a.filter(p=>p.enabled).length;return b.jsxs("div",{style:{width:300},children:[b.jsx("div",{style:{padding:"8px 10px"},children:b.jsxs("div",{style:{position:"relative"},children:[b.jsx("input",{type:"text",value:r,onChange:p=>u(p.target.value),placeholder:o("skills.searchPlaceholder"),style:{width:"100%",padding:"6px 10px",paddingRight:50,background:S.inputBg,border:`1px solid ${S.inputBorder}`,borderRadius:3,color:S.text,fontSize:11,fontFamily:"'Courier New', monospace",outline:"none",boxSizing:"border-box"}}),b.jsxs("span",{style:{position:"absolute",right:10,top:"50%",transform:"translateY(-50%)",fontSize:9,color:S.textDim,pointerEvents:"none"},children:[g,"/",a.length]})]})}),b.jsx("div",{style:{maxHeight:280,overflowY:"auto",borderTop:"1px solid rgba(255,255,255,0.06)",paddingBottom:6},children:d.length===0?b.jsx("div",{style:{fontSize:10,color:S.textDim,textAlign:"center",padding:16},children:o(r?"skills.noMatching":"skills.noAvailable")}):d.map(p=>b.jsxs("button",{type:"button",onClick:()=>i?.(p.id,!p.enabled),style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 12px",background:"transparent",border:"none",borderBottom:"1px solid rgba(255,255,255,0.03)",cursor:"pointer",textAlign:"left",fontFamily:"'Courier New', monospace"},children:[b.jsx("span",{style:{fontSize:13,width:18,textAlign:"center",flexShrink:0},children:p.icon}),b.jsx("span",{style:{flex:1,fontSize:11,color:p.enabled?S.text:S.textDim,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p.name}),p.enabled&&b.jsx("span",{style:{fontSize:9,fontWeight:"bold",color:S.green,letterSpacing:1,flexShrink:0},children:o("skills.on")})]},p.id))})]})}function aT(){const{t:a}=cl(),{agents:i,chatAgents:o,activityLogs:r,sendAgentMessage:u,disconnect:f,serverInfo:d,helloPayload:g,createAgent:p,updateAgent:m,updateSkill:T,refreshSkills:v,remapAgents:N,allSkills:D,savedConnection:O}=Yg(),[q,J]=U.useState(null),[Q,I]=U.useState("collapsed"),[ee,H]=U.useState(null),[z,ie]=U.useState(!0),[Z,P]=U.useState(()=>{const le=new Date;return`${String(le.getUTCHours()).padStart(2,"0")}:${String(le.getUTCMinutes()).padStart(2,"0")}`}),[ae,ne]=U.useState(0),[X,re]=U.useState("STRONG"),[W,fe]=U.useState(!1),[Le,j]=U.useState(null),Y=U.useRef(null),F=U.useRef(null),de=U.useRef(null);U.useEffect(()=>{if(Q==="collapsed"&&z)return;const le=Ve=>{Q!=="collapsed"&&Y.current&&!Y.current.contains(Ve.target)&&I("collapsed"),!z&&F.current&&!F.current.contains(Ve.target)&&ie(!0)};return document.addEventListener("mousedown",le),()=>document.removeEventListener("mousedown",le)},[Q,z]),U.useEffect(()=>{const le=["STRONG","MEDIUM","WEAK"];let Ve=Date.now()+(60+Math.random()*180)*1e3;const Ye=setInterval(()=>{ne(jt=>jt+1);const Rt=new Date;P(`${String(Rt.getUTCHours()).padStart(2,"0")}:${String(Rt.getUTCMinutes()).padStart(2,"0")}`),Date.now()>=Ve&&(re(jt=>{const pe=le.filter(De=>De!==jt);return pe[Math.floor(Math.random()*pe.length)]}),Ve=Date.now()+(60+Math.random()*180)*1e3)},1e3);return()=>clearInterval(Ye)},[]),U.useEffect(()=>{i.length===0&&fe(!0)},[i.length]),U.useEffect(()=>{const le=de.current;le&&(le.scrollTop=le.scrollHeight)},[]);const be=g?.snapshot?.uptimeMs,A=be!=null?be<6e4?`${Math.round(be/1e3)}s`:be<36e5?`${Math.round(be/6e4)}m`:`${Math.round(be/36e5)}h`:null,_=i.find(le=>le.id===q),te=async({name:le,color:Ve})=>{const Ye=le.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),Rt=await p({name:le,workspace:`agents/${Ye}`,emoji:"🦞"});if(Ve&&Rt){const jt=Rt.find(pe=>(pe.identity?.name||pe.name)===le);jt&&(Wp(jt.id,Ve),N(Rt))}fe(!1)},se=async le=>{le._gatewayId&&le.color&&Wp(le._gatewayId,le.color),await m({agentId:le._gatewayId,name:le.name}),j(null)},me=()=>{_&&j({_gatewayId:_._gatewayId,name:_.id,color:_.color})},Ee=async(le,Ve)=>{await T({skillKey:le,enabled:Ve}),await v()};return b.jsxs("div",{style:{position:"relative",width:"100vw",height:"100vh",overflow:"hidden",fontFamily:"'Courier New', monospace",color:S.text},children:[b.jsx(tT,{agents:i,selectedAgent:q,onSelectAgent:J}),b.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,zIndex:100,display:"flex",alignItems:"center",gap:10,padding:"6px 16px",background:"rgba(10,22,40,0.85)",borderBottom:"1px solid rgba(255,255,255,0.06)",backdropFilter:"blur(8px)"},children:[b.jsx("span",{style:{width:6,height:6,borderRadius:6,background:S.green,boxShadow:`0 0 6px ${S.green}60`,flexShrink:0}}),b.jsxs("span",{style:{fontSize:12,color:S.textDim},children:[d?.host||"gateway",d?.version?` v${d.version}`:"",A?` · up ${A}`:""]}),b.jsx("div",{style:{flex:1}}),b.jsx(Ig,{}),b.jsx("button",{type:"button",onClick:()=>{j(null),fe(le=>!le)},style:{...Ea,fontSize:11,padding:"4px 12px",color:S.green,borderColor:`${S.green}40`},children:a("dashboard.spawnAgent")}),b.jsx("button",{type:"button",onClick:f,style:{...Ea,fontSize:11,padding:"4px 12px",color:S.red,borderColor:`${S.red}40`},children:a("dashboard.disconnect")})]}),b.jsx(Ei,{title:a("dashboard.hudTitle"),defaultX:Math.max(16,(window.innerWidth-460)/2),defaultY:40,children:b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"8px 16px",flexWrap:"wrap"},children:[b.jsx(Js,{label:a("dashboard.missionLabel"),value:a("dashboard.missionValue"),color:S.lob1}),b.jsx(Kc,{}),b.jsx(Js,{label:a("dashboard.podLabel"),value:a("dashboard.podValue",{count:i.length}),color:S.green}),b.jsx(Kc,{}),b.jsx(Js,{label:a("dashboard.timeLabel"),value:a("dashboard.timeValue",{time:Z}),color:S.amber}),b.jsx(Kc,{}),b.jsx(Js,{label:a("dashboard.currentLabel"),value:a(`dashboard.current.${X.toLowerCase()}`),color:X==="STRONG"?S.red:X==="MEDIUM"?S.amber:S.green,pulse:!0,pulseRate:X==="STRONG"?"0.8s":X==="MEDIUM"?"2s":"4s"})]})}),b.jsx(Ei,{title:a("dashboard.podRosterTitle"),defaultX:16,defaultY:120,children:b.jsx("div",{style:{padding:"8px 10px",width:155},children:i.map(le=>b.jsxs("button",{type:"button",onClick:()=>J(q===le.id?null:le.id),style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 8px",marginBottom:4,background:q===le.id?"rgba(244,162,97,0.12)":"transparent",border:q===le.id?`1px solid ${S.uiBorder}`:"1px solid transparent",borderRadius:2,cursor:"pointer",color:S.text,fontFamily:"'Courier New', monospace",fontSize:12,textAlign:"left"},children:[b.jsx("span",{style:{width:10,height:10,borderRadius:1,background:le.color,display:"inline-block",flexShrink:0}}),b.jsxs("span",{style:{flexGrow:1},children:[b.jsx("div",{style:{fontWeight:"bold",fontSize:12},children:le.id}),b.jsx("div",{style:{fontSize:11,color:S.textDim},children:le.role})]}),b.jsx("span",{style:{width:6,height:6,borderRadius:6,background:S.green,animation:"pulse 2s infinite"}})]},le.id))})}),b.jsxs("div",{ref:F,style:{position:"fixed",bottom:16,left:16,zIndex:200,width:z?"auto":320,border:`2px solid ${S.uiBorder}`,boxShadow:"0 8px 32px rgba(0,0,0,0.6)",borderRadius:6,overflow:"hidden",background:S.uiBg},children:[b.jsxs("button",{type:"button",onClick:()=>{z&&J(null),ie(le=>!le)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"8px 14px",background:"transparent",border:"none",borderBottom:z?"none":"1px solid rgba(255,255,255,0.05)",cursor:"pointer",color:S.textDim,fontFamily:"'Courier New', monospace",fontSize:11,letterSpacing:2,textAlign:"left"},children:[b.jsx("span",{style:{color:S.amber},children:z?"▶":"▼"}),a("dashboard.skillsTitle"),b.jsxs("span",{style:{marginLeft:"auto",fontSize:10,opacity:.5},children:[D.filter(le=>le.enabled).length,"/",D.length]})]}),!z&&b.jsx(lT,{skills:D,onToggle:Ee})]}),b.jsx(Ei,{title:a("dashboard.tideLogTitle"),defaultX:window.innerWidth-200,defaultY:120,children:b.jsx("div",{ref:de,className:"thin-scroll",style:{padding:"8px 10px",width:155,maxHeight:200,overflowY:"auto"},children:b.jsx(YS,{logs:r,tick:ae})})}),_&&b.jsxs("div",{style:{position:"fixed",bottom:16,left:"50%",transform:"translateX(-50%)",zIndex:60,background:S.uiBg,border:`2px solid ${_.color}`,borderRadius:4,padding:"8px 16px",display:"flex",alignItems:"center",gap:12,backdropFilter:"blur(8px)",boxShadow:"0 4px 24px rgba(0,0,0,0.5)"},children:[b.jsx(Kt,{color:_.color,size:32}),b.jsxs("div",{children:[b.jsx("div",{style:{fontSize:15,fontWeight:"bold",color:_.color},children:_.id}),b.jsx("div",{style:{fontSize:12,color:S.textDim},children:_.role})]}),b.jsx("button",{type:"button",onClick:me,style:{background:"none",border:`1px solid ${S.amber}40`,borderRadius:2,padding:"3px 10px",cursor:"pointer",fontSize:11,color:S.amber,fontFamily:"'Courier New', monospace",letterSpacing:1},children:a("dashboard.editButton")}),b.jsx("button",{type:"button",onClick:()=>{H(q),J(null),I("normal")},style:{background:"rgba(46,204,113,0.12)",border:`1px solid ${S.green}`,borderRadius:2,padding:"3px 10px",cursor:"pointer",fontSize:11,color:S.green,fontFamily:"'Courier New', monospace",letterSpacing:1},children:a("dashboard.chatButton")})]}),W&&!Le&&b.jsx(Ei,{title:a("dashboard.spawnAgentTitle"),centered:!0,children:b.jsx(Fp,{onDeploy:te,onCancel:()=>fe(!1)})}),Le&&b.jsx(Ei,{title:a("dashboard.editAgentTitle"),centered:!0,children:b.jsx(Fp,{editAgent:Le,onUpdate:se,onCancel:()=>j(null)},Le._gatewayId)}),o.length>0&&b.jsxs("div",{ref:Y,style:{position:"fixed",bottom:16,right:16,zIndex:200,width:Q==="collapsed"?"auto":Q==="expanded"?"max(50vw, 420px)":420,maxWidth:Q==="expanded"?"calc(100vw - 32px)":void 0,height:Q==="expanded"?"calc(100vh - 68px)":void 0,display:Q==="expanded"?"flex":void 0,flexDirection:Q==="expanded"?"column":void 0,border:`2px solid ${S.uiBorder}`,boxShadow:"0 8px 32px rgba(0,0,0,0.6)",borderRadius:6,overflow:"hidden",background:S.uiBg},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",borderBottom:Q==="collapsed"?"none":"1px solid rgba(255,255,255,0.05)"},children:[Q!=="collapsed"&&b.jsx("button",{type:"button",onClick:le=>{le.stopPropagation(),I(Q==="expanded"?"normal":"expanded")},style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 10px",background:"transparent",border:"none",cursor:"pointer",color:S.amber,flexShrink:0},title:a(Q==="expanded"?"dashboard.contractTooltip":"dashboard.expandTooltip"),children:Q==="expanded"?b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("title",{children:a("dashboard.contractTooltip")}),b.jsx("path",{d:"m14 10 7-7"}),b.jsx("path",{d:"M20 10h-6V4"}),b.jsx("path",{d:"m3 21 7-7"}),b.jsx("path",{d:"M4 14h6v6"})]}):b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("title",{children:a("dashboard.expandTooltip")}),b.jsx("path",{d:"M15 3h6v6"}),b.jsx("path",{d:"m21 3-7 7"}),b.jsx("path",{d:"m3 21 7-7"}),b.jsx("path",{d:"M9 21H3v-6"})]})}),b.jsxs("button",{type:"button",onClick:()=>{Q==="collapsed"?(H(q),J(null),I("normal")):I("collapsed")},style:{display:"flex",alignItems:"center",gap:8,flex:1,padding:Q!=="collapsed"?"8px 14px 8px 0":"8px 14px",background:"transparent",border:"none",cursor:"pointer",color:S.textDim,fontFamily:"'Courier New', monospace",fontSize:11,letterSpacing:2,textAlign:"left"},children:[b.jsx("span",{style:{color:S.amber},children:Q==="collapsed"?"▶":"▼"}),a("dashboard.agentChat"),b.jsx("span",{style:{marginLeft:"auto",fontSize:10,opacity:.5},children:o.length})]})]}),b.jsx("div",{style:{display:Q==="collapsed"?"none":Q==="expanded"?"flex":"contents",flex:Q==="expanded"?1:void 0,minHeight:0},children:b.jsx(f2,{agents:o,onSendMessage:u,initialActiveId:ee,expanded:Q==="expanded",gatewayUrl:O?.url})})]}),b.jsx("style",{children:`
|
|
158
|
+
@keyframes pulse {
|
|
159
|
+
0%, 100% { opacity: 1; }
|
|
160
|
+
50% { opacity: 0.3; }
|
|
161
|
+
}
|
|
162
|
+
@keyframes tideFadeIn {
|
|
163
|
+
from { opacity: 0; transform: translateY(6px); }
|
|
164
|
+
to { opacity: 1; transform: translateY(0); }
|
|
165
|
+
}
|
|
166
|
+
`})]})}function iT(){const{connectionState:a,connectionError:i,connectionPhase:o,deviceId:r,connect:u,retryPairing:f}=Yg();return o==="connected"?b.jsx(aT,{}):b.jsxs(b.Fragment,{children:[b.jsx(nT,{}),b.jsx("div",{style:{position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",fontFamily:"'Courier New', monospace"},children:b.jsx($2,{connectionState:o==="syncing"?"syncing":o==="pairing"?"pairing":a,connectionError:i,onStartConnect:(g,p)=>u(g,p),onRetryPairing:f,deviceId:r})})]})}function sT(){return b.jsx(H2,{children:b.jsx(iT,{})})}const Qg=document.getElementById("root");if(!Qg)throw new Error("Root element not found");VS.createRoot(Qg).render(b.jsx(U.StrictMode,{children:b.jsx(sT,{})}));
|