// ==UserScript== // @name Personal Blog Annoying Features and Pendant Purification // @name:zh-CN 个人博客恼人功能和挂件净化 // @namespace https://github.com/qixing-jk/fuck-annoying-blog-widget // @version 2.2.0 // @description purify personal blogs by removing or disabling common annoying widgets and effects. // @description:zh-CN 净化个人博客,自动移除或禁用常见的烦人挂件和特效。 // @icon https://raw.githubusercontent.com/qixing-jk/fuck-annoying-blog-widget/refs/heads/main/src/assets/logo.jpg // @downloadURL https://raw.githubusercontent.com/qixing-jk/fuck-annoying-blog-widget/refs/heads/main/dist/fuck-annoying-blog-widget.optimized.user.js // @updateURL https://raw.githubusercontent.com/qixing-jk/fuck-annoying-blog-widget/refs/heads/main/dist/fuck-annoying-blog-widget.optimized.user.js // @match *://*/* // @grant GM_addStyle // @grant GM_getValue // @grant GM_registerMenuCommand // @grant GM_setValue // @run-at document-start // ==/UserScript== (e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const o=document.createElement("style");o.textContent=e,document.head.append(o)})(' ._mask_7wjdf_1{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:#00000026;z-index:999}._panel_7wjdf_14{background:#fff;padding:24px;border-radius:8px;width:360px;box-shadow:0 2px 16px #0000002e;font-family:sans-serif;position:relative}._headerBar_7wjdf_24{display:flex;justify-content:flex-end;align-items:center;height:32px;margin-bottom:2px}._titleRow_7wjdf_32{display:flex;align-items:center;justify-content:center;margin-bottom:22px;position:relative}._title_7wjdf_32{text-align:center;flex:none;line-height:1.1;margin:0}._version_7wjdf_47{margin-left:8px;font-size:12px;color:#888;font-weight:400;line-height:1;position:relative;bottom:-2px}._tabs_7wjdf_57{display:flex;margin-bottom:20px}._tabBtn_7wjdf_62{flex:1;padding:8px;background:none;border:none;outline:none;cursor:pointer;border-bottom:1.5px solid #eee;font-weight:400;color:#333;transition:color .2s,border-bottom .2s;border-top-left-radius:6px;border-top-right-radius:6px}._tabBtnActive_7wjdf_77{color:#1677ff;font-weight:700;border-bottom:1.5px solid #1677ff}._featureList_7wjdf_83{min-height:220px}._featureItem_7wjdf_87{margin-bottom:12px}._featureItemRow_7wjdf_91{display:flex;align-items:center;justify-content:space-between;padding:2px 0 2px 2px;min-height:36px}._featureItemLabel_7wjdf_99{flex:1;font-size:15px;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._featureItemControl_7wjdf_108{display:flex;align-items:center;gap:12px}._select_7wjdf_114{padding:3px 8px;font-size:14px;border-radius:4px;border:1px solid #d9d9d9;margin-right:8px}._switch_7wjdf_122{position:relative;display:inline-block;width:44px;height:24px}._switch_7wjdf_122 input{opacity:0;width:0;height:0}._slider_7wjdf_135{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:24px;transition:.2s}._switch_7wjdf_122 input:checked+._slider_7wjdf_135{background-color:#1890ff}._slider_7wjdf_135:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px #00000014}._switch_7wjdf_122 input:checked+._slider_7wjdf_135:before{transform:translate(20px)}._saveBtn_7wjdf_168{width:100%;padding:10px 0;background:#1677ff;color:#fff;border:none;border-radius:4px;font-weight:700;font-size:16px;margin-top:16px;cursor:pointer;letter-spacing:1px}._closeBtn_7wjdf_182{position:absolute;top:16px;right:16px;background:none;border:none;outline:none;cursor:pointer;font-size:22px}._footerBar_7wjdf_193{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:12px;border-top:1.5px solid #eee}._selectorContainer_7wjdf_203{margin-top:12px;padding:10px 0 0 4px;border-top:1px dashed #e8e8e8}._selectorLabel_7wjdf_209{display:block;font-size:13px;color:#666;margin-bottom:6px;font-weight:500}._selectorInput_7wjdf_217{width:100%;padding:8px 10px;border:1px solid #d9d9d9;border-radius:4px;font-family:monospace;font-size:13px;line-height:1.5;resize:vertical;min-height:80px;margin-bottom:6px}._selectorInput_7wjdf_217:focus{border-color:#40a9ff;box-shadow:0 0 0 2px #1890ff33;outline:none}._selectorHint_7wjdf_236{font-size:12px;color:#999;line-height:1.4;margin-top:4px}._footerBar_7wjdf_193 button{margin-left:8px;padding:2px 12px}._footerBar_7wjdf_193>div{display:flex;flex:1;justify-content:flex-end}._overlay_v9hyx_1{position:fixed;inset:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:1000}._modal_v9hyx_14{background:#fff;color:#222;border-radius:8px;box-shadow:0 4px 24px #00000021;width:340px;max-width:90vw;padding:24px 20px 16px;animation:_modalIn_v9hyx_1 .2s cubic-bezier(.4,0,.2,1)}@keyframes _modalIn_v9hyx_1{0%{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}._title_v9hyx_36{font-size:18px;font-weight:600;margin-bottom:12px}._content_v9hyx_42{font-size:15px;margin-bottom:20px}._footer_v9hyx_47{display:flex;justify-content:flex-end;gap:12px}._ok_v9hyx_53{background:#1677ff;color:#fff;border:none;border-radius:4px;padding:6px 18px;font-size:15px;cursor:pointer;transition:background .2s}._ok_v9hyx_53:hover{background:#0958d9}._cancel_v9hyx_68{background:#f5f5f5;color:#222;border:none;border-radius:4px;padding:6px 18px;font-size:15px;cursor:pointer;transition:background .2s}._cancel_v9hyx_68:hover{background:#e4e4e4}._banner_1lgb5_1{position:fixed;top:24px;left:50%;transform:translate(-50%);min-width:220px;max-width:90vw;padding:12px 24px;border-radius:6px;font-size:16px;font-weight:500;z-index:1200;box-shadow:0 2px 12px #00000017;animation:_bannerIn_1lgb5_1 .3s cubic-bezier(.4,0,.2,1)}@keyframes _bannerIn_1lgb5_1{0%{opacity:0;transform:translate(-50%) translateY(-20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}._success_1lgb5_28{background:#f6ffed;color:#389e0d;border:1px solid #b7eb8f}._error_1lgb5_34{background:#fff2f0;color:#cf1322;border:1px solid #ffa39e}._info_1lgb5_40{background:#e6f4ff;color:#0958d9;border:1px solid #91caff}._switch_lhu2n_1{position:relative;display:inline-block;width:44px;height:24px}._switch_lhu2n_1 input{opacity:0;width:0;height:0}._slider_lhu2n_14{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:24px;transition:.2s}._switch_lhu2n_1 input:checked+._slider_lhu2n_14{background-color:#1890ff}._slider_lhu2n_14:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px #00000014}._switch_lhu2n_1 input:checked+._slider_lhu2n_14:before{transform:translate(20px)} '); (function () { 'use strict'; function Bh(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Ac={exports:{}},Ra={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Kd;function Qy(){if(Kd)return Ra;Kd=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var y in f)y!=="key"&&(d[y]=f[y]);}else d=f;return f=d.ref,{$$typeof:o,type:s,key:g,ref:f!==void 0?f:null,props:d}}return Ra.Fragment=i,Ra.jsx=c,Ra.jsxs=c,Ra}var kd;function Xy(){return kd||(kd=1,Ac.exports=Qy()),Ac.exports}var Y=Xy();const Hh="Website Purifier Settings",qh="Close",Yh="Refresh to Apply",Gh="Current Site",Vh="Global",Qh="Save",Xh="Save and Refresh",Zh="Start Execution",Kh="End Execution",kh="Unsaved Changes",$h="You have unsaved changes. Do you want to save them before proceeding?",Jh="Saved successfully!",Fh="Cancel",Zy={panelTitle:Hh,closeTitle:qh,refreshButton:Yh,currentSiteConfigTab:Gh,globalConfigTab:Vh,save:Qh,saveAndRefresh:Xh,startExecution:Zh,endExecution:Kh,unsavedTitle:kh,unsavedContent:$h,saveSuccess:Jh,cancel:Fh},Ky=Object.freeze(Object.defineProperty({__proto__:null,cancel:Fh,closeTitle:qh,currentSiteConfigTab:Gh,default:Zy,endExecution:Kh,globalConfigTab:Vh,panelTitle:Hh,refreshButton:Yh,save:Qh,saveAndRefresh:Xh,saveSuccess:Jh,startExecution:Zh,unsavedContent:$h,unsavedTitle:kh},Symbol.toStringTag,{value:"Module"})),Wh="Default configurations",ky={defaultConfigs:Wh},$y=Object.freeze(Object.defineProperty({__proto__:null,default:ky,defaultConfigs:Wh},Symbol.toStringTag,{value:"Module"})),Ih={eventInterceptorFound:"Event Found interceptor for feature: {{featureName}}",propertyInterceptorsFound:"Found property interceptors for feature: {{featureName}}"},Ph={error:"Failed to execute feature: {{featureName}}",start:"Starting to execute feature: {{featureName}}",end:"Finished executing feature: {{featureName}}"},eg={label:"Disable Title Hijacking",description:"Prevent websites from including baiting text through the title to grab the user's attention when switching to other tabs."},tg={label:"Remove Background Effects",description:"Disables animated backgrounds, such as falling petals, snowflakes, or other canvas-based effects."},lg={label:"Remove Music Player",description:"Hides the auto-playing background music player often found on personal blogs."},ng={label:"Remove Custom Cursor",description:"Restores the default system mouse pointer, disabling any custom cursors or pointer trail effects."},ag={label:"Remove Live2D Widget",description:"Hides the animated character widget, usually located in the corner of the screen."},ug={label:"Remove Click Effects",description:"Disables colorful words, sparkles, or other effects that appear when you click the mouse."},ig={label:"Remove Custom Context Menu",description:"Removes site-specific right-click menus, restoring the browser default menu."},sg={label:"Auto Expand Code Blocks",description:"Automatically clicks and expands all collapsed code block areas, supporting common blogs, forums, and more.",expandCodeBlocks:"Expand code blocks automatically",noSelectors:"No selectors configured for auto-expanding code blocks",selectorError:"Error with selector '{{selector}}': {{error}}",noElementsFound:"No matching elements found for auto-expand selectors",selectorsLabel:"CSS Selectors (one per line)",selectorsHint:"Enter CSS selectors that match 'expand' buttons for code blocks. Each selector should be on a new line.",selectorsPlaceholder:`e.g., .expand-button .code-expand [data-expand]`},cg={label:"Remove Cursor Trail Effects",description:"Disables trailing effects that appear when moving the mouse, such as stars, hearts, or sparkles."},Jy={loadFeatures:Ih,executeFeatures:Ph,disableTitleChange:eg,removeBackgroundEffects:tg,removeMusicPlayer:lg,removeCustomCursor:ng,removeLive2D:ag,removeClickEffects:ug,removeCustomContextMenu:ig,autoExpandCodeBlocks:sg,removeCursorTrailEffect:cg},Fy=Object.freeze(Object.defineProperty({__proto__:null,autoExpandCodeBlocks:sg,default:Jy,disableTitleChange:eg,executeFeatures:Ph,loadFeatures:Ih,removeBackgroundEffects:tg,removeClickEffects:ug,removeCursorTrailEffect:cg,removeCustomContextMenu:ig,removeCustomCursor:ng,removeLive2D:ag,removeMusicPlayer:lg},Symbol.toStringTag,{value:"Module"})),og={load:"Load feature registry"},rg={install:"Installing Event Interceptor Service",installSuccess:"Event Interceptor Service installed successfully.",run:"Event Interceptor Service is running.",blocked:"Event Interceptor successfully intercepted the {{blockedEventType}} event, the event has been blocked."},fg={install:"installing Property Interceptor Service",installSuccess:"Property Interceptor Service installed successfully.",blocked:"Property Interceptor of {{featureName}} successfully intercepted the {{propertyName}} property, the property has been blocked.",getter:{blocked:"Property Interceptor of {{featureName}} successfully intercepted the {{propertyName}} property getter, the getter has been blocked."},notConfigurable:"Property Interceptor failed to intercept the {{propertyName}} property of {{targetObject}}, the property is not configurable."},Wy={featureRegistry:og,eventInterceptor:rg,propertyInterceptor:fg},Iy=Object.freeze(Object.defineProperty({__proto__:null,default:Wy,eventInterceptor:rg,featureRegistry:og,propertyInterceptor:fg},Symbol.toStringTag,{value:"Module"})),dg={startFind:"Start searching for elements matching the {{selector}} selector",nowFound:"Immediately found elements matching the {{selector}} selector",delayFound:"Delayed finding elements matching the {{selector}} selector",destroy:"Remove elements matching the {{selector}} selector",startObserver:"Start observing elements matching the {{selector}} selector",stopObserver:"Stop observing elements matching the {{selector}} selector"},Py={watchAndDestroy:dg},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Py,watchAndDestroy:dg},Symbol.toStringTag,{value:"Module"})),hg="网站净化设置",gg="关闭",pg="刷新页面生效",mg="当前站点",yg="全局",vg="保存",bg="保存并刷新",Sg="开始执行",_g="执行结束",xg="有未保存的更改",Eg="你有未保存的更改,是否在继续前保存?",Tg="保存成功!",Og="取消",tv={panelTitle:hg,closeTitle:gg,refreshButton:pg,currentSiteConfigTab:mg,globalConfigTab:yg,save:vg,saveAndRefresh:bg,startExecution:Sg,endExecution:_g,unsavedTitle:xg,unsavedContent:Eg,saveSuccess:Tg,cancel:Og},lv=Object.freeze(Object.defineProperty({__proto__:null,cancel:Og,closeTitle:gg,currentSiteConfigTab:mg,default:tv,endExecution:_g,globalConfigTab:yg,panelTitle:hg,refreshButton:pg,save:vg,saveAndRefresh:bg,saveSuccess:Tg,startExecution:Sg,unsavedContent:Eg,unsavedTitle:xg},Symbol.toStringTag,{value:"Module"})),Ag="默认配置",nv={defaultConfigs:Ag},av=Object.freeze(Object.defineProperty({__proto__:null,default:nv,defaultConfigs:Ag},Symbol.toStringTag,{value:"Module"})),Mg={eventInterceptorFound:"已为功能 {{featureName}} 发现事件拦截器",propertyInterceptorsFound:"已为功能 {{featureName}} 发现属性拦截器"},Rg={error:"执行功能失败:{{featureName}}",start:"开始执行功能:{{featureName}}",end:"执行功能结束:{{featureName}}"},Cg={label:"禁止标题变更",description:"防止网站在切换到其他标签页时通过标题加入诱导性文本来吸引用户的注意力。"},Ng={label:"移除背景特效",description:"禁用动态的背景效果,例如背景飘花、雪花、彩带或其他基于Canvas的动画。"},Dg={label:"移除音乐播放器",description:"隐藏在部分个人博客上会自动播放的背景音乐播放器。"},zg={label:"移除自定义鼠标指针",description:"恢复系统默认的鼠标指针样式,禁用网站设置的特殊图标指针或鼠标拖尾特效。"},jg={label:"移除Live2D看板娘",description:"隐藏通常位于屏幕角落的动态卡通人物(看板娘)挂件。"},Ug={label:"移除点击特效",description:"禁用鼠标点击时出现的彩色文字、爱心、烟花或其他浮夸的点击反馈效果。"},wg={label:"移除自定义右键菜单",description:"移除网站自定义的右键菜单,还原浏览器默认菜单。"},Lg={label:"自动展开代码块",description:"自动点击并展开所有折叠的代码块区域,支持常见博客、论坛等页面。",expandCodeBlocks:"执行自动展开代码块",noSelectors:"未配置自动展开代码块的选择器",selectorError:"选择器 '{{selector}}' 出错: {{error}}",noElementsFound:"未找到匹配自动展开选择器的元素",selectorsLabel:"CSS 选择器(每行一个)",selectorsHint:"输入匹配代码块'展开'按钮的 CSS 选择器,每个选择器占一行。",selectorsPlaceholder:`例如:.expand-button .code-expand [data-expand]`},Bg={label:"移除鼠标拖尾特效",description:"禁用鼠标移动时出现的拖尾特效,例如星星、爱心、光点等。"},uv={loadFeatures:Mg,executeFeatures:Rg,disableTitleChange:Cg,removeBackgroundEffects:Ng,removeMusicPlayer:Dg,removeCustomCursor:zg,removeLive2D:jg,removeClickEffects:Ug,removeCustomContextMenu:wg,autoExpandCodeBlocks:Lg,removeCursorTrailEffect:Bg},iv=Object.freeze(Object.defineProperty({__proto__:null,autoExpandCodeBlocks:Lg,default:uv,disableTitleChange:Cg,executeFeatures:Rg,loadFeatures:Mg,removeBackgroundEffects:Ng,removeClickEffects:Ug,removeCursorTrailEffect:Bg,removeCustomContextMenu:wg,removeCustomCursor:zg,removeLive2D:jg,removeMusicPlayer:Dg},Symbol.toStringTag,{value:"Module"})),Hg={load:"加载功能注册表"},qg={install:"正在安装事件拦截服务",installSuccess:"事件拦截服务安装成功。",run:"事件拦截服务正在运行。",blocked:"事件拦截服务已成功拦截{{blockedEventType}}事件,事件已被阻止。"},Yg={install:"正在安装属性拦截服务",installSuccess:"属性拦截服务安装成功。",blocked:"{{featureName}}的属性拦截器已成功拦截{{propertyName}}属性,属性已被阻止。",getter:{blocked:"{{featureName}}的属性拦截器已成功拦截{{propertyName}}属性的getter,getter已被阻止。"},notConfigurable:"属性拦截器拦截{{targetObject}}的{{propertyName}}属性失败,该属性不可配置。"},sv={featureRegistry:Hg,eventInterceptor:qg,propertyInterceptor:Yg},cv=Object.freeze(Object.defineProperty({__proto__:null,default:sv,eventInterceptor:qg,featureRegistry:Hg,propertyInterceptor:Yg},Symbol.toStringTag,{value:"Module"})),Gg={startFind:"开始查找符合{{selector}}选择器的元素",nowFound:"立即找到符合{{selector}}选择器的元素",delayFound:"延迟找到符合{{selector}}选择器的元素",destroy:"移除符合{{selector}}选择器的元素",startObserver:"开始监视符合{{selector}}选择器的元素",stopObserver:"停止监视符合{{selector}}选择器的元素"},ov={watchAndDestroy:Gg},rv=Object.freeze(Object.defineProperty({__proto__:null,default:ov,watchAndDestroy:Gg},Symbol.toStringTag,{value:"Module"})),$=o=>typeof o=="string",Ca=()=>{let o,i;const c=new Promise((s,f)=>{o=s,i=f;});return c.resolve=o,c.reject=i,c},$d=o=>o==null?"":""+o,fv=(o,i,c)=>{o.forEach(s=>{i[s]&&(c[s]=i[s]);});},dv=/###/g,Jd=o=>o&&o.indexOf("###")>-1?o.replace(dv,"."):o,Fd=o=>!o||$(o),Da=(o,i,c)=>{const s=$(i)?i.split("."):i;let f=0;for(;f{const{obj:s,k:f}=Da(o,i,Object);if(s!==void 0||i.length===1){s[f]=c;return}let d=i[i.length-1],g=i.slice(0,i.length-1),y=Da(o,g,Object);for(;y.obj===void 0&&g.length;)d=`${g[g.length-1]}.${d}`,g=g.slice(0,g.length-1),y=Da(o,g,Object),y?.obj&&typeof y.obj[`${y.k}.${d}`]<"u"&&(y.obj=void 0);y.obj[`${y.k}.${d}`]=c;},hv=(o,i,c,s)=>{const{obj:f,k:d}=Da(o,i,Object);f[d]=f[d]||[],f[d].push(c);},ai=(o,i)=>{const{obj:c,k:s}=Da(o,i);if(c&&Object.prototype.hasOwnProperty.call(c,s))return c[s]},gv=(o,i,c)=>{const s=ai(o,c);return s!==void 0?s:ai(i,c)},Vg=(o,i,c)=>{for(const s in i)s!=="__proto__"&&s!=="constructor"&&(s in o?$(o[s])||o[s]instanceof String||$(i[s])||i[s]instanceof String?c&&(o[s]=i[s]):Vg(o[s],i[s],c):o[s]=i[s]);return o},Rn=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var pv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const mv=o=>$(o)?o.replace(/[&<>"'\/]/g,i=>pv[i]):o;class yv{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[];}getRegExp(i){const c=this.regExpMap.get(i);if(c!==void 0)return c;const s=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,s),this.regExpQueue.push(i),s}}const vv=[" ",",","?","!",";"],bv=new yv(20),Sv=(o,i,c)=>{i=i||"",c=c||"";const s=vv.filter(g=>i.indexOf(g)<0&&c.indexOf(g)<0);if(s.length===0)return true;const f=bv.getRegExp(`(${s.map(g=>g==="?"?"\\?":g).join("|")})`);let d=!f.test(o);if(!d){const g=o.indexOf(c);g>0&&!f.test(o.substring(0,g))&&(d=true);}return d},Gc=(o,i,c=".")=>{if(!o)return;if(o[i])return Object.prototype.hasOwnProperty.call(o,i)?o[i]:void 0;const s=i.split(c);let f=o;for(let d=0;d-1&&bo?.replace("_","-"),_v={type:"logger",log(o){this.output("log",o);},warn(o){this.output("warn",o);},error(o){this.output("error",o);},output(o,i){console?.[o]?.apply?.(console,i);}};let xv=class Vc{constructor(i,c={}){this.init(i,c);}init(i,c={}){this.prefix=c.prefix||"i18next:",this.logger=i||_v,this.options=c,this.debug=c.debug;}log(...i){return this.forward(i,"log","",true)}warn(...i){return this.forward(i,"warn","",true)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",true)}forward(i,c,s,f){return f&&!this.debug?null:($(i[0])&&(i[0]=`${s}${this.prefix} ${i[0]}`),this.logger[c](i))}create(i){return new Vc(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Vc(this.logger,i)}};var Ut=new xv;class ci{constructor(){this.observers={};}on(i,c){return i.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const f=this.observers[s].get(c)||0;this.observers[s].set(c,f+1);}),this}off(i,c){if(this.observers[i]){if(!c){delete this.observers[i];return}this.observers[i].delete(c);}}emit(i,...c){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([f,d])=>{for(let g=0;g{for(let g=0;g-1&&this.options.ns.splice(c,1);}getResource(i,c,s,f={}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,g=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let y;i.indexOf(".")>-1?y=i.split("."):(y=[i,c],s&&(Array.isArray(s)?y.push(...s):$(s)&&d?y.push(...s.split(d)):y.push(s)));const b=ai(this.data,y);return !b&&!c&&!s&&i.indexOf(".")>-1&&(i=y[0],c=y[1],s=y.slice(2).join(".")),b||!g||!$(s)?b:Gc(this.data?.[i]?.[c],s,d)}addResource(i,c,s,f,d={silent:false}){const g=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let y=[i,c];s&&(y=y.concat(g?s.split(g):s)),i.indexOf(".")>-1&&(y=i.split("."),f=c,c=y[1]),this.addNamespaces(c),Wd(this.data,y,f),d.silent||this.emit("added",i,c,s,f);}addResources(i,c,s,f={silent:false}){for(const d in s)($(s[d])||Array.isArray(s[d]))&&this.addResource(i,c,d,s[d],{silent:true});f.silent||this.emit("added",i,c,s);}addResourceBundle(i,c,s,f,d,g={silent:false,skipCopy:false}){let y=[i,c];i.indexOf(".")>-1&&(y=i.split("."),f=s,s=c,c=y[1]),this.addNamespaces(c);let b=ai(this.data,y)||{};g.skipCopy||(s=JSON.parse(JSON.stringify(s))),f?Vg(b,s,d):b={...b,...s},Wd(this.data,y,b),g.silent||this.emit("added",i,c,s);}removeResourceBundle(i,c){this.hasResourceBundle(i,c)&&delete this.data[i][c],this.removeNamespaces(c),this.emit("removed",i,c);}hasResourceBundle(i,c){return this.getResource(i,c)!==void 0}getResourceBundle(i,c){return c||(c=this.options.defaultNS),this.getResource(i,c)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const c=this.getDataByLanguage(i);return !!(c&&Object.keys(c)||[]).find(f=>c[f]&&Object.keys(c[f]).length>0)}toJSON(){return this.data}}var Qg={processors:{},addPostProcessor(o){this.processors[o.name]=o;},handle(o,i,c,s,f){return o.forEach(d=>{i=this.processors[d]?.process(i,c,s,f)??i;}),i}};const Pd={},eh=o=>!$(o)&&typeof o!="boolean"&&typeof o!="number";class ui extends ci{constructor(i,c={}){super(),fv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ut.create("translator");}changeLanguage(i){i&&(this.language=i);}exists(i,c={interpolation:{}}){const s={...c};return i==null?false:this.resolve(i,s)?.res!==void 0}extractFromKey(i,c){let s=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let d=c.ns||this.options.defaultNS||[];const g=s&&i.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!Sv(i,s,f);if(g&&!y){const b=i.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return {key:i,namespaces:$(d)?[d]:d};const p=i.split(s);(s!==f||s===f&&this.options.ns.indexOf(p[0])>-1)&&(d=p.shift()),i=p.join(f);}return {key:i,namespaces:$(d)?[d]:d}}translate(i,c,s){let f=typeof c=="object"?{...c}:c;if(typeof f!="object"&&this.options.overloadTranslationOptionHandler&&(f=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(f={...f}),f||(f={}),i==null)return "";Array.isArray(i)||(i=[String(i)]);const d=f.returnDetails!==void 0?f.returnDetails:this.options.returnDetails,g=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,{key:y,namespaces:b}=this.extractFromKey(i[i.length-1],f),p=b[b.length-1];let O=f.nsSeparator!==void 0?f.nsSeparator:this.options.nsSeparator;O===void 0&&(O=":");const N=f.lng||this.language,w=f.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(N?.toLowerCase()==="cimode")return w?d?{res:`${p}${O}${y}`,usedKey:y,exactUsedKey:y,usedLng:N,usedNS:p,usedParams:this.getUsedParamsDetails(f)}:`${p}${O}${y}`:d?{res:y,usedKey:y,exactUsedKey:y,usedLng:N,usedNS:p,usedParams:this.getUsedParamsDetails(f)}:y;const B=this.resolve(i,f);let H=B?.res;const se=B?.usedKey||y,ne=B?.exactUsedKey||y,ae=["[object Number]","[object Function]","[object RegExp]"],I=f.joinArrays!==void 0?f.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,F=f.count!==void 0&&!$(f.count),V=ui.hasDefaultValue(f),oe=F?this.pluralResolver.getSuffix(N,f.count,f):"",re=f.ordinal&&F?this.pluralResolver.getSuffix(N,f.count,{ordinal:false}):"",$e=F&&!f.ordinal&&f.count===0,ze=$e&&f[`defaultValue${this.options.pluralSeparator}zero`]||f[`defaultValue${oe}`]||f[`defaultValue${re}`]||f.defaultValue;let Xe=H;ee&&!H&&V&&(Xe=ze);const Tt=eh(Xe),Be=Object.prototype.toString.apply(Xe);if(ee&&Xe&&Tt&&ae.indexOf(Be)<0&&!($(I)&&Array.isArray(Xe))){if(!f.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const He=this.options.returnedObjectHandler?this.options.returnedObjectHandler(se,Xe,{...f,ns:b}):`key '${y} (${this.language})' returned an object instead of string.`;return d?(B.res=He,B.usedParams=this.getUsedParamsDetails(f),B):He}if(g){const He=Array.isArray(Xe),je=He?[]:{},Ue=He?ne:se;for(const M in Xe)if(Object.prototype.hasOwnProperty.call(Xe,M)){const j=`${Ue}${g}${M}`;V&&!H?je[M]=this.translate(j,{...f,defaultValue:eh(ze)?ze[M]:void 0,joinArrays:false,ns:b}):je[M]=this.translate(j,{...f,joinArrays:false,ns:b}),je[M]===j&&(je[M]=Xe[M]);}H=je;}}else if(ee&&$(I)&&Array.isArray(H))H=H.join(I),H&&(H=this.extendTranslation(H,i,f,s));else {let He=false,je=false;!this.isValidLookup(H)&&V&&(He=true,H=ze),this.isValidLookup(H)||(je=true,H=y);const M=(f.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&je?void 0:H,j=V&&ze!==H&&this.options.updateMissing;if(je||He||j){if(this.logger.log(j?"updateKey":"missingKey",N,p,y,j?ze:H),g){const D=this.resolve(y,{...f,keySeparator:false});D&&D.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 Q=[];const fe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,f.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fe&&fe[0])for(let D=0;D{const X=V&&U!==H?U:M;this.options.missingKeyHandler?this.options.missingKeyHandler(D,p,L,X,j,f):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(D,p,L,X,j,f),this.emit("missingKey",D,p,L,H);};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?Q.forEach(D=>{const L=this.pluralResolver.getSuffixes(D,f);$e&&f[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(U=>{v([D],y+U,f[`defaultValue${U}`]||ze);});}):v(Q,y,ze));}H=this.extendTranslation(H,i,f,B,s),je&&H===y&&this.options.appendNamespaceToMissingKey&&(H=`${p}${O}${y}`),(je||He)&&this.options.parseMissingKeyHandler&&(H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${O}${y}`:y,He?H:void 0,f));}return d?(B.res=H,B.usedParams=this.getUsedParamsDetails(f),B):H}extendTranslation(i,c,s,f,d){if(this.i18nFormat?.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const b=$(i)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(b){const N=i.match(this.interpolator.nestingRegexp);p=N&&N.length;}let O=s.replace&&!$(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(O={...this.options.interpolation.defaultVariables,...O}),i=this.interpolator.interpolate(i,O,s.lng||this.language||f.usedLng,s),b){const N=i.match(this.interpolator.nestingRegexp),w=N&&N.length;pd?.[0]===N[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${c[0]}`),null):this.translate(...N,c),s)),s.interpolation&&this.interpolator.reset();}const g=s.postProcess||this.options.postProcess,y=$(g)?[g]:g;return i!=null&&y?.length&&s.applyPostProcessor!==false&&(i=Qg.handle(y,i,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...f,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),i}resolve(i,c={}){let s,f,d,g,y;return $(i)&&(i=[i]),i.forEach(b=>{if(this.isValidLookup(s))return;const p=this.extractFromKey(b,c),O=p.key;f=O;let N=p.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const w=c.count!==void 0&&!$(c.count),B=w&&!c.ordinal&&c.count===0,H=c.context!==void 0&&($(c.context)||typeof c.context=="number")&&c.context!=="",se=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);N.forEach(ne=>{this.isValidLookup(s)||(y=ne,!Pd[`${se[0]}-${ne}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(y)&&(Pd[`${se[0]}-${ne}`]=true,this.logger.warn(`key "${f}" for languages "${se.join(", ")}" won't get resolved as namespace "${y}" 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!!!")),se.forEach(ae=>{if(this.isValidLookup(s))return;g=ae;const I=[O];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(I,O,ae,ne,c);else {let F;w&&(F=this.pluralResolver.getSuffix(ae,c.count,c));const V=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(I.push(O+F),c.ordinal&&F.indexOf(oe)===0&&I.push(O+F.replace(oe,this.options.pluralSeparator)),B&&I.push(O+V)),H){const re=`${O}${this.options.contextSeparator}${c.context}`;I.push(re),w&&(I.push(re+F),c.ordinal&&F.indexOf(oe)===0&&I.push(re+F.replace(oe,this.options.pluralSeparator)),B&&I.push(re+V));}}let ee;for(;ee=I.pop();)this.isValidLookup(s)||(d=ee,s=this.getResource(ae,ne,ee,c));}));});}),{res:s,usedKey:f,exactUsedKey:d,usedLng:g,usedNS:y}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,c,s,f={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(i,c,s,f):this.resourceStore.getResource(i,c,s,f)}getUsedParamsDetails(i={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=i.replace&&!$(i.replace);let f=s?i.replace:i;if(s&&typeof i.count<"u"&&(f.count=i.count),this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),!s){f={...f};for(const d of c)delete f[d];}return f}static hasDefaultValue(i){const c="defaultValue";for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&c===s.substring(0,c.length)&&i[s]!==void 0)return true;return false}}class th{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||false,this.logger=Ut.create("languageUtils");}getScriptPartFromCode(i){if(i=ja(i),!i||i.indexOf("-")<0)return null;const c=i.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(i){if(i=ja(i),!i||i.indexOf("-")<0)return i;const c=i.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(i){if($(i)&&i.indexOf("-")>-1){let c;try{c=Intl.getCanonicalLocales(i)[0];}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(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 c;return i.forEach(s=>{if(c)return;const f=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(f))&&(c=f);}),!c&&this.options.supportedLngs&&i.forEach(s=>{if(c)return;const f=this.getScriptPartFromCode(s);if(this.isSupportedCode(f))return c=f;const d=this.getLanguagePartFromCode(s);if(this.isSupportedCode(d))return c=d;c=this.options.supportedLngs.find(g=>{if(g===d)return g;if(!(g.indexOf("-")<0&&d.indexOf("-")<0)&&(g.indexOf("-")>0&&d.indexOf("-")<0&&g.substring(0,g.indexOf("-"))===d||g.indexOf(d)===0&&d.length>1))return g});}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(i,c){if(!i)return [];if(typeof i=="function"&&(i=i(c)),$(i)&&(i=[i]),Array.isArray(i))return i;if(!c)return i.default||[];let s=i[c];return s||(s=i[this.getScriptPartFromCode(c)]),s||(s=i[this.formatLanguageCode(c)]),s||(s=i[this.getLanguagePartFromCode(c)]),s||(s=i.default),s||[]}toResolveHierarchy(i,c){const s=this.getFallbackCodes((c===false?[]:c)||this.options.fallbackLng||[],i),f=[],d=g=>{g&&(this.isSupportedCode(g)?f.push(g):this.logger.warn(`rejecting language code not found in supportedLngs: ${g}`));};return $(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(i))):$(i)&&d(this.formatLanguageCode(i)),s.forEach(g=>{f.indexOf(g)<0&&d(this.formatLanguageCode(g));}),f}}const lh={zero:0,one:1,two:2,few:3,many:4,other:5},nh={select:o=>o===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ev{constructor(i,c={}){this.languageUtils=i,this.options=c,this.logger=Ut.create("pluralResolver"),this.pluralRulesCache={};}addRule(i,c){this.rules[i]=c;}clearCache(){this.pluralRulesCache={};}getRule(i,c={}){const s=ja(i==="dev"?"en":i),f=c.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:s,type:f});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let g;try{g=new Intl.PluralRules(s,{type:f});}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),nh;if(!i.match(/-|_/))return nh;const b=this.languageUtils.getLanguagePartFromCode(i);g=this.getRule(b,c);}return this.pluralRulesCache[d]=g,g}needsPlural(i,c={}){let s=this.getRule(i,c);return s||(s=this.getRule("dev",c)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(i,c,s={}){return this.getSuffixes(i,s).map(f=>`${c}${f}`)}getSuffixes(i,c={}){let s=this.getRule(i,c);return s||(s=this.getRule("dev",c)),s?s.resolvedOptions().pluralCategories.sort((f,d)=>lh[f]-lh[d]).map(f=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f}`):[]}getSuffix(i,c,s={}){const f=this.getRule(i,s);return f?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${f.select(c)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",c,s))}}const ah=(o,i,c,s=".",f=true)=>{let d=gv(o,i,c);return !d&&f&&$(c)&&(d=Gc(o,c,s),d===void 0&&(d=Gc(i,c,s))),d},Mc=o=>o.replace(/\$/g,"$$$$");class Tv{constructor(i={}){this.logger=Ut.create("interpolator"),this.options=i,this.format=i?.interpolation?.format||(c=>c),this.init(i);}init(i={}){i.interpolation||(i.interpolation={escapeValue:true});const{escape:c,escapeValue:s,useRawValueToEscape:f,prefix:d,prefixEscaped:g,suffix:y,suffixEscaped:b,formatSeparator:p,unescapeSuffix:O,unescapePrefix:N,nestingPrefix:w,nestingPrefixEscaped:B,nestingSuffix:H,nestingSuffixEscaped:se,nestingOptionsSeparator:ne,maxReplaces:ae,alwaysFormat:I}=i.interpolation;this.escape=c!==void 0?c:mv,this.escapeValue=s!==void 0?s:true,this.useRawValueToEscape=f!==void 0?f:false,this.prefix=d?Rn(d):g||"{{",this.suffix=y?Rn(y):b||"}}",this.formatSeparator=p||",",this.unescapePrefix=O?"":N||"-",this.unescapeSuffix=this.unescapePrefix?"":O||"",this.nestingPrefix=w?Rn(w):B||Rn("$t("),this.nestingSuffix=H?Rn(H):se||Rn(")"),this.nestingOptionsSeparator=ne||",",this.maxReplaces=ae||1e3,this.alwaysFormat=I!==void 0?I:false,this.resetRegExp();}reset(){this.options&&this.init(this.options);}resetRegExp(){const i=(c,s)=>c?.source===s?(c.lastIndex=0,c):new RegExp(s,"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,c,s,f){let d,g,y;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=B=>{if(B.indexOf(this.formatSeparator)<0){const ae=ah(c,b,B,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ae,void 0,s,{...f,...c,interpolationkey:B}):ae}const H=B.split(this.formatSeparator),se=H.shift().trim(),ne=H.join(this.formatSeparator).trim();return this.format(ah(c,b,se,this.options.keySeparator,this.options.ignoreJSONStructure),ne,s,{...f,...c,interpolationkey:se})};this.resetRegExp();const O=f?.missingInterpolationHandler||this.options.missingInterpolationHandler,N=f?.interpolation?.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return [{regex:this.regexpUnescape,safeValue:B=>Mc(B)},{regex:this.regexp,safeValue:B=>this.escapeValue?Mc(this.escape(B)):Mc(B)}].forEach(B=>{for(y=0;d=B.regex.exec(i);){const H=d[1].trim();if(g=p(H),g===void 0)if(typeof O=="function"){const ne=O(i,d,f);g=$(ne)?ne:"";}else if(f&&Object.prototype.hasOwnProperty.call(f,H))g="";else if(N){g=d[0];continue}else this.logger.warn(`missed to pass in variable ${H} for interpolating ${i}`),g="";else !$(g)&&!this.useRawValueToEscape&&(g=$d(g));const se=B.safeValue(g);if(i=i.replace(d[0],se),N?(B.regex.lastIndex+=g.length,B.regex.lastIndex-=d[0].length):B.regex.lastIndex=0,y++,y>=this.maxReplaces)break}}),i}nest(i,c,s={}){let f,d,g;const y=(b,p)=>{const O=this.nestingOptionsSeparator;if(b.indexOf(O)<0)return b;const N=b.split(new RegExp(`${O}[ ]*{`));let w=`{${N[1]}`;b=N[0],w=this.interpolate(w,g);const B=w.match(/'/g),H=w.match(/"/g);((B?.length??0)%2===0&&!H||H.length%2!==0)&&(w=w.replace(/'/g,'"'));try{g=JSON.parse(w),p&&(g={...p,...g});}catch(se){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,se),`${b}${O}${w}`}return g.defaultValue&&g.defaultValue.indexOf(this.prefix)>-1&&delete g.defaultValue,b};for(;f=this.nestingRegexp.exec(i);){let b=[];g={...s},g=g.replace&&!$(g.replace)?g.replace:g,g.applyPostProcessor=false,delete g.defaultValue;const p=/{.*}/.test(f[1])?f[1].lastIndexOf("}")+1:f[1].indexOf(this.formatSeparator);if(p!==-1&&(b=f[1].slice(p).split(this.formatSeparator).map(O=>O.trim()).filter(Boolean),f[1]=f[1].slice(0,p)),d=c(y.call(this,f[1].trim(),g),g),d&&f[0]===i&&!$(d))return d;$(d)||(d=$d(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${i}`),d=""),b.length&&(d=b.reduce((O,N)=>this.format(O,N,s.lng,{...s,interpolationkey:f[1].trim()}),d.trim())),i=i.replace(f[0],d),this.regexp.lastIndex=0;}return i}}const Ov=o=>{let i=o.toLowerCase().trim();const c={};if(o.indexOf("(")>-1){const s=o.split("(");i=s[0].toLowerCase().trim();const f=s[1].substring(0,s[1].length-1);i==="currency"&&f.indexOf(":")<0?c.currency||(c.currency=f.trim()):i==="relativetime"&&f.indexOf(":")<0?c.range||(c.range=f.trim()):f.split(";").forEach(g=>{if(g){const[y,...b]=g.split(":"),p=b.join(":").trim().replace(/^'+|'+$/g,""),O=y.trim();c[O]||(c[O]=p),p==="false"&&(c[O]=false),p==="true"&&(c[O]=true),isNaN(p)||(c[O]=parseInt(p,10));}});}return {formatName:i,formatOptions:c}},uh=o=>{const i={};return (c,s,f)=>{let d=f;f&&f.interpolationkey&&f.formatParams&&f.formatParams[f.interpolationkey]&&f[f.interpolationkey]&&(d={...d,[f.interpolationkey]:void 0});const g=s+JSON.stringify(d);let y=i[g];return y||(y=o(ja(s),f),i[g]=y),y(c)}},Av=o=>(i,c,s)=>o(ja(c),s)(i);class Mv{constructor(i={}){this.logger=Ut.create("formatter"),this.options=i,this.init(i);}init(i,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const s=c.cacheInBuiltFormats?uh:Av;this.formats={number:s((f,d)=>{const g=new Intl.NumberFormat(f,{...d});return y=>g.format(y)}),currency:s((f,d)=>{const g=new Intl.NumberFormat(f,{...d,style:"currency"});return y=>g.format(y)}),datetime:s((f,d)=>{const g=new Intl.DateTimeFormat(f,{...d});return y=>g.format(y)}),relativetime:s((f,d)=>{const g=new Intl.RelativeTimeFormat(f,{...d});return y=>g.format(y,d.range||"day")}),list:s((f,d)=>{const g=new Intl.ListFormat(f,{...d});return y=>g.format(y)})};}add(i,c){this.formats[i.toLowerCase().trim()]=c;}addCached(i,c){this.formats[i.toLowerCase().trim()]=uh(c);}format(i,c,s,f={}){const d=c.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(y=>y.indexOf(")")>-1)){const y=d.findIndex(b=>b.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,y)].join(this.formatSeparator);}return d.reduce((y,b)=>{const{formatName:p,formatOptions:O}=Ov(b);if(this.formats[p]){let N=y;try{const w=f?.formatParams?.[f.interpolationkey]||{},B=w.locale||w.lng||f.locale||f.lng||s;N=this.formats[p](y,B,{...O,...f,...w});}catch(w){this.logger.warn(w);}return N}else this.logger.warn(`there was no format function for ${p}`);return y},i)}}const Rv=(o,i)=>{o.pending[i]!==void 0&&(delete o.pending[i],o.pendingCount--);};class Cv extends ci{constructor(i,c,s,f={}){super(),this.backend=i,this.store=c,this.services=s,this.languageUtils=s.languageUtils,this.options=f,this.logger=Ut.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,f.backend,f);}queueLoad(i,c,s,f){const d={},g={},y={},b={};return i.forEach(p=>{let O=true;c.forEach(N=>{const w=`${p}|${N}`;!s.reload&&this.store.hasResourceBundle(p,N)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?g[w]===void 0&&(g[w]=true):(this.state[w]=1,O=false,g[w]===void 0&&(g[w]=true),d[w]===void 0&&(d[w]=true),b[N]===void 0&&(b[N]=true)));}),O||(y[p]=true);}),(Object.keys(d).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(g),toLoadLanguages:Object.keys(y),toLoadNamespaces:Object.keys(b)}}loaded(i,c,s){const f=i.split("|"),d=f[0],g=f[1];c&&this.emit("failedLoading",d,g,c),!c&&s&&this.store.addResourceBundle(d,g,s,void 0,void 0,{skipCopy:true}),this.state[i]=c?-1:2,c&&s&&(this.state[i]=0);const y={};this.queue.forEach(b=>{hv(b.loaded,[d],g),Rv(b,i),c&&b.errors.push(c),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(p=>{y[p]||(y[p]={});const O=b.loaded[p];O.length&&O.forEach(N=>{y[p][N]===void 0&&(y[p][N]=true);});}),b.done=true,b.errors.length?b.callback(b.errors):b.callback());}),this.emit("loaded",y),this.queue=this.queue.filter(b=>!b.done);}read(i,c,s,f=0,d=this.retryTimeout,g){if(!i.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:c,fcName:s,tried:f,wait:d,callback:g});return}this.readingCalls++;const y=(p,O)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback);}if(p&&O&&f{this.read.call(this,i,c,s,f+1,d*2,g);},d);return}g(p,O);},b=this.backend[s].bind(this.backend);if(b.length===2){try{const p=b(i,c);p&&typeof p.then=="function"?p.then(O=>y(null,O)).catch(y):y(null,p);}catch(p){y(p);}return}return b(i,c,y)}prepareLoading(i,c,s={},f){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();$(i)&&(i=this.languageUtils.toResolveHierarchy(i)),$(c)&&(c=[c]);const d=this.queueLoad(i,c,s,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(g=>{this.loadOne(g);});}load(i,c,s){this.prepareLoading(i,c,{},s);}reload(i,c,s){this.prepareLoading(i,c,{reload:true},s);}loadOne(i,c=""){const s=i.split("|"),f=s[0],d=s[1];this.read(f,d,"read",void 0,void 0,(g,y)=>{g&&this.logger.warn(`${c}loading namespace ${d} for language ${f} failed`,g),!g&&y&&this.logger.log(`${c}loaded namespace ${d} for language ${f}`,y),this.loaded(i,g,y);});}saveMissing(i,c,s,f,d,g={},y=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(c)){this.logger.warn(`did not save key "${s}" as the namespace "${c}" 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(!(s==null||s==="")){if(this.backend?.create){const b={...g,isUpdate:d},p=this.backend.create.bind(this.backend);if(p.length<6)try{let O;p.length===5?O=p(i,c,s,f,b):O=p(i,c,s,f),O&&typeof O.then=="function"?O.then(N=>y(null,N)).catch(y):y(null,O);}catch(O){y(O);}else p(i,c,s,f,y,b);}!i||!i[0]||this.store.addResource(i[0],c,s,f);}}}const ih=()=>({debug:false,initAsync:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:o=>{let i={};if(typeof o[1]=="object"&&(i=o[1]),$(o[1])&&(i.defaultValue=o[1]),$(o[2])&&(i.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const c=o[3]||o[2];Object.keys(c).forEach(s=>{i[s]=c[s];});}return i},interpolation:{escapeValue:true,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true},cacheInBuiltFormats:true}),sh=o=>($(o.ns)&&(o.ns=[o.ns]),$(o.fallbackLng)&&(o.fallbackLng=[o.fallbackLng]),$(o.fallbackNS)&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs?.indexOf?.("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),typeof o.initImmediate=="boolean"&&(o.initAsync=o.initImmediate),o),ei=()=>{},Nv=o=>{Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(c=>{typeof o[c]=="function"&&(o[c]=o[c].bind(o));});};class Ua extends ci{constructor(i={},c){if(super(),this.options=sh(i),this.services={},this.logger=Ut,this.modules={external:[]},Nv(this),c&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,c),this;setTimeout(()=>{this.init(i,c);},0);}}init(i={},c){this.isInitializing=true,typeof i=="function"&&(c=i,i={}),i.defaultNS==null&&i.ns&&($(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const s=ih();this.options={...s,...this.options,...sh(i)},this.options.interpolation={...s.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const f=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Ut.init(f(this.modules.logger),this.options):Ut.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Mv;const O=new th(this.options);this.store=new Id(this.options.resources,this.options);const N=this.services;N.logger=Ut,N.resourceStore=this.store,N.languageUtils=O,N.pluralResolver=new Ev(O,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(N.formatter=f(p),N.formatter.init&&N.formatter.init(N,this.options),this.options.interpolation.format=N.formatter.format.bind(N.formatter)),N.interpolator=new Tv(this.options),N.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},N.backendConnector=new Cv(f(this.modules.backend),N.resourceStore,N,this.options),N.backendConnector.on("*",(B,...H)=>{this.emit(B,...H);}),this.modules.languageDetector&&(N.languageDetector=f(this.modules.languageDetector),N.languageDetector.init&&N.languageDetector.init(N,this.options.detection,this.options)),this.modules.i18nFormat&&(N.i18nFormat=f(this.modules.i18nFormat),N.i18nFormat.init&&N.i18nFormat.init(this)),this.translator=new ui(this.services,this.options),this.translator.on("*",(B,...H)=>{this.emit(B,...H);}),this.modules.external.forEach(B=>{B.init&&B.init(this);});}if(this.format=this.options.interpolation.format,c||(c=ei),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...O)=>this.store[p](...O);}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...O)=>(this.store[p](...O),this);});const y=Ca(),b=()=>{const p=(O,N)=>{this.isInitializing=false,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=true,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),y.resolve(N),c(O,N);};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p);};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),y}loadResources(i,c=ei){let s=c;const f=$(i)?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(f?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const d=[],g=y=>{if(!y||y==="cimode")return;this.services.languageUtils.toResolveHierarchy(y).forEach(p=>{p!=="cimode"&&d.indexOf(p)<0&&d.push(p);});};f?g(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>g(b)),this.options.preload?.forEach?.(y=>g(y)),this.services.backendConnector.load(d,this.options.ns,y=>{!y&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(y);});}else s(null);}reloadResources(i,c,s){const f=Ca();return typeof i=="function"&&(s=i,i=void 0),typeof c=="function"&&(s=c,c=void 0),i||(i=this.languages),c||(c=this.options.ns),s||(s=ei),this.services.backendConnector.reload(i,c,d=>{f.resolve(),s(d);}),f}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"&&Qg.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 c=0;c-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i));}}changeLanguage(i,c){this.isLanguageChangingTo=i;const s=Ca();this.emit("languageChanging",i);const f=y=>{this.language=y,this.languages=this.services.languageUtils.toResolveHierarchy(y),this.resolvedLanguage=void 0,this.setResolvedLanguage(y);},d=(y,b)=>{b?this.isLanguageChangingTo===i&&(f(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,s.resolve((...p)=>this.t(...p)),c&&c(y,(...p)=>this.t(...p));},g=y=>{!i&&!y&&this.services.languageDetector&&(y=[]);const b=$(y)?y:y&&y[0],p=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes($(y)?[y]:y);p&&(this.language||f(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,O=>{d(O,p);});};return !i&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(i),s}getFixedT(i,c,s){const f=(d,g,...y)=>{let b;typeof g!="object"?b=this.options.overloadTranslationOptionHandler([d,g].concat(y)):b={...g},b.lng=b.lng||f.lng,b.lngs=b.lngs||f.lngs,b.ns=b.ns||f.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||s||f.keyPrefix);const p=this.options.keySeparator||".";let O;return b.keyPrefix&&Array.isArray(d)?O=d.map(N=>`${b.keyPrefix}${p}${N}`):O=b.keyPrefix?`${b.keyPrefix}${p}${d}`:d,this.t(O,b)};return $(i)?f.lng=i:f.lngs=i,f.ns=c,f.keyPrefix=s,f}t(...i){return this.translator?.translate(...i)}exists(...i){return this.translator?.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i;}hasLoadedNamespace(i,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),false;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),false;const s=c.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:false,d=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return true;const g=(y,b)=>{const p=this.services.backendConnector.state[`${y}|${b}`];return p===-1||p===0||p===2};if(c.precheck){const y=c.precheck(this,g);if(y!==void 0)return y}return !!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(s,i)&&(!f||g(d,i)))}loadNamespaces(i,c){const s=Ca();return this.options.ns?($(i)&&(i=[i]),i.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f);}),this.loadResources(f=>{s.resolve(),c&&c(f);}),s):(c&&c(),Promise.resolve())}loadLanguages(i,c){const s=Ca();$(i)&&(i=[i]);const f=this.options.preload||[],d=i.filter(g=>f.indexOf(g)<0&&this.services.languageUtils.isSupportedCode(g));return d.length?(this.options.preload=f.concat(d),this.loadResources(g=>{s.resolve(),c&&c(g);}),s):(c&&c(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!i)return "rtl";try{const f=new Intl.Locale(i);if(f&&f.getTextInfo){const d=f.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const c=["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"],s=this.services?.languageUtils||new th(ih());return i.toLowerCase().indexOf("-latn")>1?"ltr":c.indexOf(s.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},c){return new Ua(i,c)}cloneInstance(i={},c=ei){const s=i.forkResourceStore;s&&delete i.forkResourceStore;const f={...this.options,...i,isClone:true},d=new Ua(f);if((i.debug!==void 0||i.prefix!==void 0)&&(d.logger=d.logger.clone(i)),["store","services","language"].forEach(y=>{d[y]=this[y];}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},s){const y=Object.keys(this.store.data).reduce((b,p)=>(b[p]={...this.store.data[p]},b[p]=Object.keys(b[p]).reduce((O,N)=>(O[N]={...b[p][N]},O),b[p]),b),{});d.store=new Id(y,f),d.services.resourceStore=d.store;}return d.translator=new ui(d.services,f),d.translator.on("*",(y,...b)=>{d.emit(y,...b);}),d.init(f,c),d.translator.options=f,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return {options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const J=Ua.createInstance();J.createInstance=Ua.createInstance;J.createInstance;J.dir;J.init;J.loadResources;J.reloadResources;J.use;J.changeLanguage;J.getFixedT;const ti=J.t;J.exists;J.setDefaultNamespace;J.hasLoadedNamespace;J.loadNamespaces;J.loadLanguages;var Rc={exports:{}},P={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ch;function Dv(){if(ch)return P;ch=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.iterator;function w(v){return v===null||typeof v!="object"?null:(v=N&&v[N]||v["@@iterator"],typeof v=="function"?v:null)}var B={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,se={};function ne(v,D,L){this.props=v,this.context=D,this.refs=se,this.updater=L||B;}ne.prototype.isReactComponent={},ne.prototype.setState=function(v,D){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,D,"setState");},ne.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate");};function ae(){}ae.prototype=ne.prototype;function I(v,D,L){this.props=v,this.context=D,this.refs=se,this.updater=L||B;}var ee=I.prototype=new ae;ee.constructor=I,H(ee,ne.prototype),ee.isPureReactComponent=true;var F=Array.isArray,V={H:null,A:null,T:null,S:null,V:null},oe=Object.prototype.hasOwnProperty;function re(v,D,L,U,X,de){return L=de.ref,{$$typeof:o,type:v,key:D,ref:L!==void 0?L:null,props:de}}function $e(v,D){return re(v.type,D,void 0,void 0,void 0,v.props)}function ze(v){return typeof v=="object"&&v!==null&&v.$$typeof===o}function Xe(v){var D={"=":"=0",":":"=2"};return "$"+v.replace(/[=:]/g,function(L){return D[L]})}var Tt=/\/+/g;function Be(v,D){return typeof v=="object"&&v!==null&&v.key!=null?Xe(""+v.key):D.toString(36)}function He(){}function je(v){switch(v.status){case "fulfilled":return v.value;case "rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(He,He):(v.status="pending",v.then(function(D){v.status==="pending"&&(v.status="fulfilled",v.value=D);},function(D){v.status==="pending"&&(v.status="rejected",v.reason=D);})),v.status){case "fulfilled":return v.value;case "rejected":throw v.reason}}throw v}function Ue(v,D,L,U,X){var de=typeof v;(de==="undefined"||de==="boolean")&&(v=null);var W=false;if(v===null)W=true;else switch(de){case "bigint":case "string":case "number":W=true;break;case "object":switch(v.$$typeof){case o:case i:W=true;break;case O:return W=v._init,Ue(W(v._payload),D,L,U,X)}}if(W)return X=X(v),W=U===""?"."+Be(v,0):U,F(X)?(L="",W!=null&&(L=W.replace(Tt,"$&/")+"/"),Ue(X,D,L,"",function(Ft){return Ft})):X!=null&&(ze(X)&&(X=$e(X,L+(X.key==null||v&&v.key===X.key?"":(""+X.key).replace(Tt,"$&/")+"/")+W)),D.push(X)),1;W=0;var at=U===""?".":U+":";if(F(v))for(var xe=0;xe{const f=[c,{code:i,...s||{}}];if(o?.services?.logger?.forward)return o.services.logger.forward(f,"warn","react-i18next::",true);Gl(f[0])&&(f[0]=`react-i18next:: ${f[0]}`),o?.services?.logger?.warn?o.services.logger.warn(...f):console?.warn&&console.warn(...f);},rh={},Qc=(o,i,c,s)=>{Gl(c)&&rh[c]||(Gl(c)&&(rh[c]=new Date),jv(o,i,c,s));},Xg=(o,i)=>()=>{if(o.isInitialized)i();else {const c=()=>{setTimeout(()=>{o.off("initialized",c);},0),i();};o.on("initialized",c);}},Xc=(o,i,c)=>{o.loadNamespaces(i,Xg(o,c));},fh=(o,i,c,s)=>{if(Gl(c)&&(c=[c]),o.options.preload&&o.options.preload.indexOf(i)>-1)return Xc(o,c,s);c.forEach(f=>{o.options.ns.indexOf(f)<0&&o.options.ns.push(f);}),o.loadLanguages(i,Xg(o,s));},Uv=(o,i,c={})=>!i.languages||!i.languages.length?(Qc(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),true):i.hasLoadedNamespace(o,{lng:c.lng,precheck:(s,f)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!f(s.isLanguageChangingTo,o))return false}}),Gl=o=>typeof o=="string",wv=o=>typeof o=="object"&&o!==null,Lv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Bv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hv=o=>Bv[o],qv=o=>o.replace(Lv,Hv);let Zc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:qv};const Yv=(o={})=>{Zc={...Zc,...o};},Gv=()=>Zc;let Zg;const Vv=o=>{Zg=o;},Qv=()=>Zg,Xv={type:"3rdParty",init(o){Yv(o.options.react),Vv(o);}},Zv=Qe.createContext();class Kv{constructor(){this.usedNamespaces={};}addUsedNamespaces(i){i.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=true);});}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const kv=(o,i)=>{const c=Qe.useRef();return Qe.useEffect(()=>{c.current=o;},[o,i]),c.current},Kg=(o,i,c,s)=>o.getFixedT(i,c,s),$v=(o,i,c,s)=>Qe.useCallback(Kg(o,i,c,s),[o,i,c,s]),Jv=(o,i={})=>{const{i18n:c}=i,{i18n:s,defaultNS:f}=Qe.useContext(Zv)||{},d=c||s||Qv();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new Kv),!d){Qc(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const F=(oe,re)=>Gl(re)?re:wv(re)&&Gl(re.defaultValue)?re.defaultValue:Array.isArray(oe)?oe[oe.length-1]:oe,V=[F,{},false];return V.t=F,V.i18n={},V.ready=false,V}d.options.react?.wait&&Qc(d,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const g={...Gv(),...d.options.react,...i},{useSuspense:y,keyPrefix:b}=g;let p=f||d.options?.defaultNS;p=Gl(p)?[p]:p||["translation"],d.reportNamespaces.addUsedNamespaces?.(p);const O=(d.isInitialized||d.initializedStoreOnce)&&p.every(F=>Uv(F,d,g)),N=$v(d,i.lng||null,g.nsMode==="fallback"?p:p[0],b),w=()=>N,B=()=>Kg(d,i.lng||null,g.nsMode==="fallback"?p:p[0],b),[H,se]=Qe.useState(w);let ne=p.join();i.lng&&(ne=`${i.lng}${ne}`);const ae=kv(ne),I=Qe.useRef(true);Qe.useEffect(()=>{const{bindI18n:F,bindI18nStore:V}=g;I.current=true,!O&&!y&&(i.lng?fh(d,i.lng,p,()=>{I.current&&se(B);}):Xc(d,p,()=>{I.current&&se(B);})),O&&ae&&ae!==ne&&I.current&&se(B);const oe=()=>{I.current&&se(B);};return F&&d?.on(F,oe),V&&d?.store.on(V,oe),()=>{I.current=false,d&&F&&F?.split(" ").forEach(re=>d.off(re,oe)),V&&d&&V.split(" ").forEach(re=>d.store.off(re,oe));}},[d,ne]),Qe.useEffect(()=>{I.current&&O&&se(w);},[d,b,O]);const ee=[H,d,O];if(ee.t=H,ee.i18n=d,ee.ready=O,O||!O&&!y)return ee;throw new Promise(F=>{i.lng?fh(d,i.lng,p,()=>F()):Xc(d,p,()=>F());})},{slice:Fv,forEach:Wv}=[];function Iv(o){return Wv.call(Fv.call(arguments,1),i=>{if(i)for(const c in i)o[c]===void 0&&(o[c]=i[c]);}),o}function Pv(o){return typeof o!="string"?false:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(c=>c.test(o))}const dh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,e0=function(o,i){const s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},f=encodeURIComponent(i);let d=`${o}=${f}`;if(s.maxAge>0){const g=s.maxAge-0;if(Number.isNaN(g))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(g)}`;}if(s.domain){if(!dh.test(s.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${s.domain}`;}if(s.path){if(!dh.test(s.path))throw new TypeError("option path is invalid");d+=`; Path=${s.path}`;}if(s.expires){if(typeof s.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${s.expires.toUTCString()}`;}if(s.httpOnly&&(d+="; HttpOnly"),s.secure&&(d+="; Secure"),s.sameSite)switch(typeof s.sameSite=="string"?s.sameSite.toLowerCase():s.sameSite){case true:d+="; SameSite=Strict";break;case "lax":d+="; SameSite=Lax";break;case "strict":d+="; SameSite=Strict";break;case "none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s.partitioned&&(d+="; Partitioned"),d},hh={create(o,i,c,s){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};c&&(f.expires=new Date,f.expires.setTime(f.expires.getTime()+c*60*1e3)),s&&(f.domain=s),document.cookie=e0(o,i,f);},read(o){const i=`${o}=`,c=document.cookie.split(";");for(let s=0;s-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));const d=s.substring(1).split("&");for(let g=0;g0&&d[g].substring(0,y)===i&&(c=d[g].substring(y+1));}}return c}},n0={name:"hash",lookup(o){let{lookupHash:i,lookupFromHashIndex:c}=o,s;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const d=f.substring(1);if(i){const g=d.split("&");for(let y=0;y0&&g[y].substring(0,b)===i&&(s=g[y].substring(b+1));}}if(s)return s;if(!s&&c>-1){const g=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(g)?g[typeof c=="number"?c:0]?.replace("/",""):void 0}}}return s}};let Cn=null;const gh=()=>{if(Cn!==null)return Cn;try{if(Cn=typeof window<"u"&&window.localStorage!==null,!Cn)return !1;const o="i18next.translate.boo";window.localStorage.setItem(o,"foo"),window.localStorage.removeItem(o);}catch{Cn=false;}return Cn};var a0={name:"localStorage",lookup(o){let{lookupLocalStorage:i}=o;if(i&&gh())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(o,i){let{lookupLocalStorage:c}=i;c&&gh()&&window.localStorage.setItem(c,o);}};let Nn=null;const ph=()=>{if(Nn!==null)return Nn;try{if(Nn=typeof window<"u"&&window.sessionStorage!==null,!Nn)return !1;const o="i18next.translate.boo";window.sessionStorage.setItem(o,"foo"),window.sessionStorage.removeItem(o);}catch{Nn=false;}return Nn};var u0={name:"sessionStorage",lookup(o){let{lookupSessionStorage:i}=o;if(i&&ph())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(o,i){let{lookupSessionStorage:c}=i;c&&ph()&&window.sessionStorage.setItem(c,o);}},i0={name:"navigator",lookup(o){const i=[];if(typeof navigator<"u"){const{languages:c,userLanguage:s,language:f}=navigator;if(c)for(let d=0;d0?i:void 0}},s0={name:"htmlTag",lookup(o){let{htmlTag:i}=o,c;const s=i||(typeof document<"u"?document.documentElement:null);return s&&typeof s.getAttribute=="function"&&(c=s.getAttribute("lang")),c}},c0={name:"path",lookup(o){let{lookupFromPathIndex:i}=o;if(typeof window>"u")return;const c=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?c[typeof i=="number"?i:0]?.replace("/",""):void 0}},o0={name:"subdomain",lookup(o){let{lookupFromSubdomainIndex:i}=o;const c=typeof i=="number"?i+1:1,s=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(s)return s[c]}};let kg=false;try{document.cookie,kg=!0;}catch{}const $g=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];kg||$g.splice(1,1);const r0=()=>({order:$g,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:o=>o});class Jg{constructor(i){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,c);}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=Iv(c,this.options||{},r0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=f=>f.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=s,this.addDetector(t0),this.addDetector(l0),this.addDetector(a0),this.addDetector(u0),this.addDetector(i0),this.addDetector(s0),this.addDetector(c0),this.addDetector(o0),this.addDetector(n0);}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,c=[];return i.forEach(s=>{if(this.detectors[s]){let f=this.detectors[s].lookup(this.options);f&&typeof f=="string"&&(f=[f]),f&&(c=c.concat(f));}}),c=c.filter(s=>s!=null&&!Pv(s)).map(s=>this.options.convertDetectedLanguage(s)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?c:c.length>0?c[0]:null}cacheUserLanguage(i){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;c&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||c.forEach(s=>{this.detectors[s]&&this.detectors[s].cacheUserLanguage(i,this.options);}));}}Jg.type="languageDetector";const _l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};_l.defaultMerge;function f0(o,i){return i}function d0(o,i){return o.filter(c=>c!==void 0)}var mh;(function(o){o[o.NOT=0]="NOT",o[o.RECORD=1]="RECORD",o[o.ARRAY=2]="ARRAY",o[o.SET=3]="SET",o[o.MAP=4]="MAP",o[o.OTHER=5]="OTHER";})(mh||(mh={}));function yh(o){return typeof o!="object"||o===null?0:Array.isArray(o)?2:p0(o)?1:o instanceof Set?3:o instanceof Map?4:5}function h0(o){const i=new Set;for(const c of o)for(const s of [...Object.keys(c),...Object.getOwnPropertySymbols(c)])i.add(s);return i}function g0(o,i){return typeof o=="object"&&Object.prototype.propertyIsEnumerable.call(o,i)}function Fg(o){let i=0,c=o[0]?.[Symbol.iterator]();return {[Symbol.iterator](){return {next(){do{if(c===void 0)return {done:true,value:void 0};const s=c.next();if(s.done===true){i+=1,c=o[i]?.[Symbol.iterator]();continue}return {done:false,value:s.value}}while(true)}}}}}const vh=["[object Object]","[object Module]"];function p0(o){if(!vh.includes(Object.prototype.toString.call(o)))return false;const{constructor:i}=o;if(i===void 0)return true;const c=i.prototype;return !(c===null||typeof c!="object"||!vh.includes(Object.prototype.toString.call(c))||!c.hasOwnProperty("isPrototypeOf"))}function m0(o,i,c){const s={};for(const f of h0(o)){const d=[];for(const b of o)g0(b,f)&&d.push(b[f]);if(d.length===0)continue;const g=i.metaDataUpdater(c,{key:f,parents:o}),y=Ig(d,i,g);y!==_l.skip&&(f==="__proto__"?Object.defineProperty(s,f,{value:y,configurable:true,enumerable:true,writable:true}):s[f]=y);}return s}function y0(o){return o.flat()}function v0(o){return new Set(Fg(o))}function b0(o){return new Map(Fg(o))}function S0(o){return o.at(-1)}const li={mergeRecords:m0,mergeArrays:y0,mergeSets:v0,mergeMaps:b0,mergeOthers:S0};function _0(...o){return Wg({})(...o)}function Wg(o,i){const c=x0(o,s);function s(...f){return Ig(f,c,i)}return s}function x0(o,i){return {defaultMergeFunctions:li,mergeFunctions:{...li,...Object.fromEntries(Object.entries(o).filter(([c,s])=>Object.hasOwn(li,c)).map(([c,s])=>s===false?[c,li.mergeOthers]:[c,s]))},metaDataUpdater:o.metaDataUpdater??f0,deepmerge:i,useImplicitDefaultMerging:o.enableImplicitDefaultMerging??false,filterValues:o.filterValues===false?void 0:o.filterValues??d0,actions:_l}}function Ig(o,i,c){const s=i.filterValues?.(o,c)??o;if(s.length===0)return;if(s.length===1)return Cc(s,i,c);const f=yh(s[0]);if(f!==0&&f!==5){for(let d=1;d>>1,v=M[fe];if(0>>1;fef(U,Q))Xf(de,U)?(M[fe]=de,M[X]=Q,fe=X):(M[fe]=U,M[L]=Q,fe=L);else if(Xf(de,Q))M[fe]=de,M[X]=Q,fe=X;else break e}}return j}function f(M,j){var Q=M.sortIndex-j.sortIndex;return Q!==0?Q:M.id-j.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;o.unstable_now=function(){return d.now()};}else {var g=Date,y=g.now();o.unstable_now=function(){return g.now()-y};}var b=[],p=[],O=1,N=null,w=3,B=false,H=false,se=false,ne=false,ae=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function F(M){for(var j=c(p);j!==null;){if(j.callback===null)s(p);else if(j.startTime<=M)s(p),j.sortIndex=j.expirationTime,i(b,j);else break;j=c(p);}}function V(M){if(se=false,F(M),!H)if(c(b)!==null)H=true,oe||(oe=true,Be());else {var j=c(p);j!==null&&Ue(V,j.startTime-M);}}var oe=false,re=-1,$e=5,ze=-1;function Xe(){return ne?true:!(o.unstable_now()-ze<$e)}function Tt(){if(ne=false,oe){var M=o.unstable_now();ze=M;var j=true;try{e:{H=!1,se&&(se=!1,I(re),re=-1),B=!0;var Q=w;try{t:{for(F(M),N=c(b);N!==null&&!(N.expirationTime>M&&Xe());){var fe=N.callback;if(typeof fe=="function"){N.callback=null,w=N.priorityLevel;var v=fe(N.expirationTime<=M);if(M=o.unstable_now(),typeof v=="function"){N.callback=v,F(M),j=!0;break t}N===c(b)&&s(b),F(M);}else s(b);N=c(b);}if(N!==null)j=!0;else {var D=c(p);D!==null&&Ue(V,D.startTime-M),j=!1;}}break e}finally{N=null,w=Q,B=!1;}j=void 0;}}finally{j?Be():oe=false;}}}var Be;if(typeof ee=="function")Be=function(){ee(Tt);};else if(typeof MessageChannel<"u"){var He=new MessageChannel,je=He.port2;He.port1.onmessage=Tt,Be=function(){je.postMessage(null);};}else Be=function(){ae(Tt,0);};function Ue(M,j){re=ae(function(){M(o.unstable_now());},j);}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(M){M.callback=null;},o.unstable_forceFrameRate=function(M){0>M||125fe?(M.sortIndex=Q,i(p,M),c(b)===null&&M===c(p)&&(se?(I(re),re=-1):se=true,Ue(V,Q-fe))):(M.sortIndex=v,i(b,M),H||B||(H=true,oe||(oe=true,Be()))),M},o.unstable_shouldYield=Xe,o.unstable_wrapCallback=function(M){var j=w;return function(){var Q=w;w=j;try{return M.apply(this,arguments)}finally{w=Q;}}};}(zc)),zc}var _h;function N0(){return _h||(_h=1,Dc.exports=C0()),Dc.exports}var jc={exports:{}},We={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xh;function D0(){if(xh)return We;xh=1;var o=Jc();function i(b){var p="https://react.dev/errors/"+b;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o);}catch(i){console.error(i);}}return o(),jc.exports=D0(),jc.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Th;function j0(){if(Th)return Na;Th=1;var o=N0(),i=Jc(),c=z0();function s(e){var t="https://react.dev/errors/"+e;if(1v||(e.current=fe[v],fe[v]=null,v--);}function U(e,t){v++,fe[v]=e.current,e.current=t;}var X=D(null),de=D(null),W=D(null),at=D(null);function xe(e,t){switch(U(W,t),U(de,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sd(t),e=_d(t,e);else switch(e){case "svg":e=1;break;case "math":e=2;break;default:e=0;}}L(X),U(X,e);}function Ft(){L(X),L(de),L(W);}function fi(e){e.memoizedState!==null&&U(at,e);var t=X.current,l=_d(t,e.type);t!==l&&(U(de,e),U(X,l));}function qa(e){de.current===e&&(L(X),L(de)),at.current===e&&(L(at),Ea._currentValue=Q);}var di=Object.prototype.hasOwnProperty,hi=o.unstable_scheduleCallback,gi=o.unstable_cancelCallback,_p=o.unstable_shouldYield,xp=o.unstable_requestPaint,Rt=o.unstable_now,Ep=o.unstable_getCurrentPriorityLevel,Ic=o.unstable_ImmediatePriority,Pc=o.unstable_UserBlockingPriority,Ya=o.unstable_NormalPriority,Tp=o.unstable_LowPriority,eo=o.unstable_IdlePriority,Op=o.log,Ap=o.unstable_setDisableYieldValue,Dn=null,ut=null;function Wt(e){if(typeof Op=="function"&&Ap(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Dn,e);}catch{}}var it=Math.clz32?Math.clz32:Cp,Mp=Math.log,Rp=Math.LN2;function Cp(e){return e>>>=0,e===0?32:31-(Mp(e)/Rp|0)|0}var Ga=256,Va=4194304;function xl(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Qa(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?a=xl(n):(r&=h,r!==0?a=xl(r):l||(l=h&~e,l!==0&&(a=xl(l))))):(h=n&~u,h!==0?a=xl(h):r!==0?a=xl(r):l||(l=n&~e,l!==0&&(a=xl(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function zn(e,t){return (e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Np(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 to(){var e=Ga;return Ga<<=1,(Ga&4194048)===0&&(Ga=256),e}function lo(){var e=Va;return Va<<=1,(Va&62914560)===0&&(Va=4194304),e}function pi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function jn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0);}function Dp(e,t,l,n,a,u){var r=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,m=e.expirationTimes,E=e.hiddenUpdates;for(l=r&~l;0)":-1a||m[n]!==E[a]){var R=` `+m[n].replace(" at new "," at ");return e.displayName&&R.includes("")&&(R=R.replace("",e.displayName)),R}while(1<=n&&0<=a);break}}}finally{_i=false,Error.prepareStackTrace=l;}return (l=e?e.displayName||e.name:"")?kl(l):""}function Bp(e){switch(e.tag){case 26:case 27:case 5:return kl(e.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return xi(e.type,false);case 11:return xi(e.type.render,false);case 1:return xi(e.type,true);case 31:return kl("Activity");default:return ""}}function ho(e){try{var t="";do t+=Bp(e),e=e.return;while(e);return t}catch(l){return ` Error generating stack: `+l.message+` `+l.stack}}function gt(e){switch(typeof e){case "bigint":case "boolean":case "number":case "string":case "undefined":return e;case "object":return e;default:return ""}}function go(e){var t=e.type;return (e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hp(e){var t=go(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:true,get:function(){return a.call(this)},set:function(r){n=""+r,u.call(this,r);}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r;},stopTracking:function(){e._valueTracker=null,delete e[t];}}}}function Ka(e){e._valueTracker||(e._valueTracker=Hp(e));}function po(e){if(!e)return false;var t=e._valueTracker;if(!t)return true;var l=t.getValue(),n="";return e&&(n=go(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),true):false}function ka(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 qp=/[\n"\\]/g;function pt(e){return e.replace(qp,function(t){return "\\"+t.charCodeAt(0).toString(16)+" "})}function Ei(e,t,l,n,a,u,r,h){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gt(t)):e.value!==""+gt(t)&&(e.value=""+gt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,r,gt(t)):l!=null?Ti(e,r,gt(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+gt(h):e.removeAttribute("name");}function mo(e,t,l,n,a,u,r,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;l=l!=null?""+gt(l):"",t=t!=null?""+gt(t):l,h||t===e.value||(e.value=t),e.defaultValue=t;}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=h?e.checked:!!n,e.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r);}function Ti(e,t,l){t==="number"&&ka(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l);}function $l(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ci=false;if(Lt)try{var Bn={};Object.defineProperty(Bn,"passive",{get:function(){Ci=!0;}}),window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn);}catch{Ci=false;}var Pt=null,Ni=null,Ja=null;function Eo(){if(Ja)return Ja;var e,t=Ni,l=t.length,n,a="value"in Pt?Pt.value:Pt.textContent,u=a.length;for(e=0;e=Yn),Co=" ",No=false;function Do(e,t){switch(e){case "keyup":return hm.indexOf(t.keyCode)!==-1;case "keydown":return t.keyCode!==229;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function zo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Il=false;function pm(e,t){switch(e){case "compositionend":return zo(t);case "keypress":return t.which!==32?null:(No=true,Co);case "textInput":return e=t.data,e===Co&&No?null:e;default:return null}}function mm(e,t){if(Il)return e==="compositionend"||!wi&&Do(e,t)?(e=Eo(),Ja=Ni=Pt=null,Il=false,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)return {node:l,offset:t-e};e=n;}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode;}l=void 0;}l=Yo(l);}}function Vo(e,t){return e&&t?e===t?true:e&&e.nodeType===3?false:t&&t.nodeType===3?Vo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):false:false}function Qo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ka(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string";}catch{l=false;}if(l)e=t.contentWindow;else break;t=ka(e.document);}return t}function Hi(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 Tm=Lt&&"documentMode"in document&&11>=document.documentMode,Pl=null,qi=null,Xn=null,Yi=false;function Xo(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yi||Pl==null||Pl!==ka(n)||(n=Pl,"selectionStart"in n&&Hi(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xn&&Qn(Xn,n)||(Xn=n,n=qu(qi,"onSelect"),0>=r,a-=r,Ht=1<<32-it(t)+a|l<u?u:8;var r=M.T,h={};M.T=h,Os(e,false,t,l);try{var m=a(),E=M.S;if(E!==null&&E(h,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var R=jm(m,n);ua(e,t,R,dt(e));}else ua(e,t,n,dt(e));}catch(z){ua(e,t,{then:function(){},status:"rejected",reason:z},dt());}finally{j.p=u,M.T=r;}}function Hm(){}function Es(e,t,l,n){if(e.tag!==5)throw Error(s(476));var a=Zr(e).queue;Xr(e,a,t,Q,l===null?Hm:function(){return Kr(e),l(n)});}function Zr(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:Q},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kr(e){var t=Zr(e).next.queue;ua(e,t,{},dt());}function Ts(){return Fe(Ea)}function kr(){return De().memoizedState}function $r(){return De().memoizedState}function qm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=dt();e=ll(l);var n=nl(t,e,l);n!==null&&(ht(n,t,l),Pn(n,t,l)),t={cache:es()},e.payload=t;return}t=t.return;}}function Ym(e,t,l){var n=dt();l={lane:n,revertLane:0,action:l,hasEagerState:false,eagerState:null,next:null},bu(e)?Fr(t,l):(l=Xi(e,t,l,n),l!==null&&(ht(l,e,n),Wr(l,t,n)));}function Jr(e,t,l){var n=dt();ua(e,t,l,n);}function ua(e,t,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:false,eagerState:null,next:null};if(bu(e))Fr(t,a);else {var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,h=u(r,l);if(a.hasEagerState=!0,a.eagerState=h,st(h,r))return lu(e,t,a,0),_e===null&&tu(),!1}catch{}finally{}if(l=Xi(e,t,a,n),l!==null)return ht(l,e,n),Wr(l,t,n),true}return false}function Os(e,t,l,n){if(n={lane:2,revertLane:nc(),action:n,hasEagerState:false,eagerState:null,next:null},bu(e)){if(t)throw Error(s(479))}else t=Xi(e,l,n,2),t!==null&&ht(t,e,2);}function bu(e){var t=e.alternate;return e===te||t!==null&&t===te}function Fr(e,t){rn=hu=true;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t;}function Wr(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,ao(e,l);}}var Su={readContext:Fe,use:pu,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re},Ir={readContext:Fe,use:pu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:wr,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vu(4194308,4,qr.bind(null,t,e),l);},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t);},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var n=e();if(wl){Wt(true);try{e();}finally{Wt(false);}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=tt();if(l!==void 0){var a=l(t);if(wl){Wt(true);try{l(t);}finally{Wt(false);}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Ym.bind(null,te,e),[n.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=Jr.bind(null,te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(e,t){var l=tt();return xs(l,e,t)},useTransition:function(){var e=bs(false);return e=Xr.bind(null,te,e.queue,true,false),tt().memoizedState=e,[false,e]},useSyncExternalStore:function(e,t,l){var n=te,a=tt();if(ge){if(l===void 0)throw Error(s(407));l=l();}else {if(l=t(),_e===null)throw Error(s(349));(ce&124)!==0||br(n,t,l);}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,wr(_r.bind(null,n,u,e),[e]),n.flags|=2048,dn(9,yu(),Sr.bind(null,n,u,l,t),null),l},useId:function(){var e=tt(),t=_e.identifierPrefix;if(ge){var l=qt,n=Ht;l=(n&~(1<<32-it(n)-1)).toString(32)+l,t="«"+t+"R"+l,l=gu++,0K?(Ve=G,G=null):Ve=G.sibling;var he=T(_,G,x[K],C);if(he===null){G===null&&(G=Ve);break}e&&G&&he.alternate===null&&t(_,G),S=u(he,S,K),le===null?q=he:le.sibling=he,le=he,G=Ve;}if(K===x.length)return l(_,G),ge&&Cl(_,K),q;if(G===null){for(;KK?(Ve=G,G=null):Ve=G.sibling;var Sl=T(_,G,he.value,C);if(Sl===null){G===null&&(G=Ve);break}e&&G&&Sl.alternate===null&&t(_,G),S=u(Sl,S,K),le===null?q=Sl:le.sibling=Sl,le=Sl,G=Ve;}if(he.done)return l(_,G),ge&&Cl(_,K),q;if(G===null){for(;!he.done;K++,he=x.next())he=z(_,he.value,C),he!==null&&(S=u(he,S,K),le===null?q=he:le.sibling=he,le=he);return ge&&Cl(_,K),q}for(G=n(G);!he.done;K++,he=x.next())he=A(G,_,K,he.value,C),he!==null&&(e&&he.alternate!==null&&G.delete(he.key===null?K:he.key),S=u(he,S,K),le===null?q=he:le.sibling=he,le=he);return e&&G.forEach(function(Vy){return t(_,Vy)}),ge&&Cl(_,K),q}function be(_,S,x,C){if(typeof x=="object"&&x!==null&&x.type===H&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case w:e:{for(var q=x.key;S!==null;){if(S.key===q){if(q=x.type,q===H){if(S.tag===7){l(_,S.sibling),C=a(S,x.props.children),C.return=_,_=C;break e}}else if(S.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===$e&&ef(q)===S.type){l(_,S.sibling),C=a(S,x.props),sa(C,x),C.return=_,_=C;break e}l(_,S);break}else t(_,S);S=S.sibling;}x.type===H?(C=Ml(x.props.children,_.mode,C,x.key),C.return=_,_=C):(C=au(x.type,x.key,x.props,null,_.mode,C),sa(C,x),C.return=_,_=C);}return r(_);case B:e:{for(q=x.key;S!==null;){if(S.key===q)if(S.tag===4&&S.stateNode.containerInfo===x.containerInfo&&S.stateNode.implementation===x.implementation){l(_,S.sibling),C=a(S,x.children||[]),C.return=_,_=C;break e}else {l(_,S);break}else t(_,S);S=S.sibling;}C=ki(x,_.mode,C),C.return=_,_=C;}return r(_);case $e:return q=x._init,x=q(x._payload),be(_,S,x,C)}if(Ue(x))return k(_,S,x,C);if(Be(x)){if(q=Be(x),typeof q!="function")throw Error(s(150));return x=q.call(x),Z(_,S,x,C)}if(typeof x.then=="function")return be(_,S,_u(x),C);if(x.$$typeof===ee)return be(_,S,cu(_,x),C);xu(_,x);}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,S!==null&&S.tag===6?(l(_,S.sibling),C=a(S,x),C.return=_,_=C):(l(_,S),C=Ki(x,_.mode,C),C.return=_,_=C),r(_)):l(_,S)}return function(_,S,x,C){try{ia=0;var q=be(_,S,x,C);return hn=null,q}catch(G){if(G===Wn||G===ru)throw G;var le=ct(29,G,null,_.mode);return le.lanes=C,le.return=_,le}finally{}}}var gn=tf(true),lf=tf(false),St=D(null),Nt=null;function ul(e){var t=e.alternate;U(Le,Le.current&1),U(St,e),Nt===null&&(t===null||on.current!==null||t.memoizedState!==null)&&(Nt=e);}function nf(e){if(e.tag===22){if(U(Le,Le.current),U(St,e),Nt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Nt=e);}}else il();}function il(){U(Le,Le.current),U(St,St.current);}function Qt(e){L(St),Nt===e&&(Nt=null),L(Le);}var Le=D(0);function Eu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||pc(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return;}t.sibling.return=t.return,t=t.sibling;}return null}function As(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:O({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l);}var Ms={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=dt(),a=ll(n);a.payload=t,l!=null&&(a.callback=l),t=nl(e,a,n),t!==null&&(ht(t,e,n),Pn(t,e,n));},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=dt(),a=ll(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=nl(e,a,n),t!==null&&(ht(t,e,n),Pn(t,e,n));},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=dt(),n=ll(l);n.tag=2,t!=null&&(n.callback=t),t=nl(e,n,l),t!==null&&(ht(t,e,l),Pn(t,e,l));}};function af(e,t,l,n,a,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,r):t.prototype&&t.prototype.isPureReactComponent?!Qn(l,n)||!Qn(a,u):true}function uf(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Ms.enqueueReplaceState(t,t.state,null);}function Ll(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n]);}if(e=e.defaultProps){l===t&&(l=O({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a]);}return l}var Tu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:true,cancelable:true,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);};function sf(e){Tu(e);}function cf(e){console.error(e);}function of(e){Tu(e);}function Ou(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack});}catch(n){setTimeout(function(){throw n});}}function rf(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null});}catch(a){setTimeout(function(){throw a});}}function Rs(e,t,l){return l=ll(l),l.tag=3,l.payload={element:null},l.callback=function(){Ou(e,t);},l}function ff(e){return e=ll(e),e.tag=3,e}function df(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){rf(t,l,n);};}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){rf(t,l,n),typeof a!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""});});}function Vm(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&$n(t,l,a,true),l=St.current,l!==null){switch(l.tag){case 13:return Nt===null?Is():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ns?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),ec(e,n,a)),false;case 22:return l.flags|=65536,n===ns?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),ec(e,n,a)),false}throw Error(s(435,l.tag))}return ec(e,n,a),Is(),false}if(ge)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Fi&&(e=Error(s(422),{cause:n}),kn(mt(e,l)))):(n!==Fi&&(t=Error(s(423),{cause:n}),kn(mt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=mt(n,l),a=Rs(e.stateNode,n,a),is(e,a),Me!==4&&(Me=2)),false;var u=Error(s(520),{cause:n});if(u=mt(u,l),ga===null?ga=[u]:ga.push(u),Me!==4&&(Me=2),t===null)return true;n=mt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Rs(l.stateNode,n,e),is(l,e),false;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(dl===null||!dl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=ff(a),df(a,e,l,n),is(l,a),false}l=l.return;}while(l!==null);return false}var hf=Error(s(461)),Ye=false;function Ze(e,t,l,n){t.child=e===null?lf(t,null,l,n):gn(t,e.child,l,n);}function gf(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var r={};for(var h in n)h!=="ref"&&(r[h]=n[h]);}else r=n;return jl(t),n=fs(e,t,l,r,u,a),h=ds(),e!==null&&!Ye?(hs(e,t,a),Xt(e,t,a)):(ge&&h&&$i(t),t.flags|=1,Ze(e,t,n,a),t.child)}function pf(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Zi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,mf(e,t,u,n,a)):(e=au(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ls(e,a)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:Qn,l(r,n)&&e.ref===t.ref)return Xt(e,t,a)}return t.flags|=1,e=Bt(u,n),e.ref=t.ref,e.return=t,t.child=e}function mf(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(Qn(u,n)&&e.ref===t.ref)if(Ye=false,t.pendingProps=n=u,Ls(e,a))(e.flags&131072)!==0&&(Ye=true);else return t.lanes=e.lanes,Xt(e,t,a)}return Cs(e,t,l,n,a)}function yf(e,t,l){var n=t.pendingProps,a=n.children,u=e!==null?e.memoizedState:null;if(n.mode==="hidden"){if((t.flags&128)!==0){if(n=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;t.childLanes=u&~n;}else t.childLanes=0,t.child=null;return vf(e,t,n,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ou(t,u!==null?u.cachePool:null),u!==null?pr(t,u):cs(),nf(t);else return t.lanes=t.childLanes=536870912,vf(e,t,u!==null?u.baseLanes|l:l,l)}else u!==null?(ou(t,u.cachePool),pr(t,u),il(),t.memoizedState=null):(e!==null&&ou(t,null),cs(),il());return Ze(e,t,a,l),t.child}function vf(e,t,l,n){var a=ls();return a=a===null?null:{parent:we._currentValue,pool:a},t.memoizedState={baseLanes:l,cachePool:a},e!==null&&ou(t,null),cs(),nf(t),e!==null&&$n(e,t,n,true),null}function Au(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else {if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816);}}function Cs(e,t,l,n,a){return jl(t),l=fs(e,t,l,n,void 0,a),n=ds(),e!==null&&!Ye?(hs(e,t,a),Xt(e,t,a)):(ge&&n&&$i(t),t.flags|=1,Ze(e,t,l,a),t.child)}function bf(e,t,l,n,a,u){return jl(t),t.updateQueue=null,l=yr(t,n,l,a),mr(e),n=ds(),e!==null&&!Ye?(hs(e,t,u),Xt(e,t,u)):(ge&&n&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function Sf(e,t,l,n,a){if(jl(t),t.stateNode===null){var u=nn,r=l.contextType;typeof r=="object"&&r!==null&&(u=Fe(r)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ms,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},as(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?Fe(r):nn,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(As(t,l,r,n),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Ms.enqueueReplaceState(u,u.state,null),ta(t,n,u,a),ea(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=true;}else if(e===null){u=t.stateNode;var h=t.memoizedProps,m=Ll(l,h);u.props=m;var E=u.context,R=l.contextType;r=nn,typeof R=="object"&&R!==null&&(r=Fe(R));var z=l.getDerivedStateFromProps;R=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||E!==r)&&uf(t,u,n,r),tl=false;var T=t.memoizedState;u.state=T,ta(t,n,u,a),ea(),E=t.memoizedState,h||T!==E||tl?(typeof z=="function"&&(As(t,l,z,n),E=t.memoizedState),(m=tl||af(t,l,m,n,T,E,r))?(R||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=E),u.props=n,u.state=E,u.context=r,n=m):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=false);}else {u=t.stateNode,us(e,t),r=t.memoizedProps,R=Ll(l,r),u.props=R,z=t.pendingProps,T=u.context,E=l.contextType,m=nn,typeof E=="object"&&E!==null&&(m=Fe(E)),h=l.getDerivedStateFromProps,(E=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==z||T!==m)&&uf(t,u,n,m),tl=false,T=t.memoizedState,u.state=T,ta(t,n,u,a),ea();var A=t.memoizedState;r!==z||T!==A||tl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof h=="function"&&(As(t,l,h,n),A=t.memoizedState),(R=tl||af(t,l,R,n,T,A,m)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(E||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,A,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,A,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=A),u.props=n,u.state=A,u.context=m,n=R):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=false);}return u=n,Au(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=gn(t,e.child,null,a),t.child=gn(t,null,l,a)):Ze(e,t,l,a),t.memoizedState=u.state,e=t.child):e=Xt(e,t,a),e}function _f(e,t,l,n){return Kn(),t.flags|=256,Ze(e,t,l,n),t.child}var Ns={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return {baseLanes:e,cachePool:sr()}}function zs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=_t),e}function xf(e,t,l){var n=t.pendingProps,a=false,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?false:(Le.current&2)!==0),r&&(a=true,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(a?ul(t):il(),ge){var h=Ae,m;if(m=h){e:{for(m=h,h=Ct;m.nodeType!==8;){if(!h){h=null;break e}if(m=Mt(m.nextSibling),m===null){h=null;break e}}h=m;}h!==null?(t.memoizedState={dehydrated:h,treeContext:Rl!==null?{id:Ht,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},m=ct(18,null,null,0),m.stateNode=h,m.return=t,t.child=m,Ie=t,Ae=null,m=true):m=false;}m||Dl(t);}if(h=t.memoizedState,h!==null&&(h=h.dehydrated,h!==null))return pc(h)?t.lanes=32:t.lanes=536870912,null;Qt(t);}return h=n.children,n=n.fallback,a?(il(),a=t.mode,h=Mu({mode:"hidden",children:h},a),n=Ml(n,a,l,null),h.return=t,n.return=t,h.sibling=n,t.child=h,a=t.child,a.memoizedState=Ds(l),a.childLanes=zs(e,r,l),t.memoizedState=Ns,n):(ul(t),js(t,h))}if(m=e.memoizedState,m!==null&&(h=m.dehydrated,h!==null)){if(u)t.flags&256?(ul(t),t.flags&=-257,t=Us(e,t,l)):t.memoizedState!==null?(il(),t.child=e.child,t.flags|=128,t=null):(il(),a=n.fallback,h=t.mode,n=Mu({mode:"visible",children:n.children},h),a=Ml(a,h,l,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,gn(t,e.child,null,l),n=t.child,n.memoizedState=Ds(l),n.childLanes=zs(e,r,l),t.memoizedState=Ns,t=a);else if(ul(t),pc(h)){if(r=h.nextSibling&&h.nextSibling.dataset,r)var E=r.dgst;r=E,n=Error(s(419)),n.stack="",n.digest=r,kn({value:n,source:null,stack:null}),t=Us(e,t,l);}else if(Ye||$n(e,t,l,false),r=(l&e.childLanes)!==0,Ye||r){if(r=_e,r!==null&&(n=l&-l,n=(n&42)!==0?1:mi(n),n=(n&(r.suspendedLanes|l))!==0?0:n,n!==0&&n!==m.retryLane))throw m.retryLane=n,ln(e,n),ht(r,e,n),hf;h.data==="$?"||Is(),t=Us(e,t,l);}else h.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ae=Mt(h.nextSibling),Ie=t,ge=true,Nl=null,Ct=false,e!==null&&(vt[bt++]=Ht,vt[bt++]=qt,vt[bt++]=Rl,Ht=e.id,qt=e.overflow,Rl=t),t=js(t,n.children),t.flags|=4096);return t}return a?(il(),a=n.fallback,h=t.mode,m=e.child,E=m.sibling,n=Bt(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,E!==null?a=Bt(E,a):(a=Ml(a,h,l,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,h=e.child.memoizedState,h===null?h=Ds(l):(m=h.cachePool,m!==null?(E=we._currentValue,m=m.parent!==E?{parent:E,pool:E}:m):m=sr(),h={baseLanes:h.baseLanes|l,cachePool:m}),a.memoizedState=h,a.childLanes=zs(e,r,l),t.memoizedState=Ns,n):(ul(t),l=e.child,e=l.sibling,l=Bt(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function js(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=ct(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Us(e,t,l){return gn(t,e.child,null,l),e=js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ef(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ii(e.return,t,l);}function ws(e,t,l,n,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a);}function Tf(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;if(Ze(e,t,n.children,l),n=Le.current,(n&2)!==0)n=n&1|2,t.flags|=128;else {if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ef(e,l,t);else if(e.tag===19)Ef(e,l,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;}n&=1;}switch(U(Le,n),a){case "forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Eu(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),ws(t,false,a,l,u);break;case "backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Eu(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e;}ws(t,true,l,null,u);break;case "together":ws(t,false,null,null,void 0);break;default:t.memoizedState=null;}return t.child}function Xt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),fl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if($n(e,t,l,false),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Bt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Bt(e,e.pendingProps),l.return=t;l.sibling=null;}return t.child}function Ls(e,t){return (e.lanes&t)!==0?true:(e=e.dependencies,!!(e!==null&&su(e)))}function Qm(e,t,l){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),el(t,we,e.memoizedState.cache),Kn();break;case 27:case 5:fi(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:el(t,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(ul(t),t.flags|=128,null):(l&t.child.childLanes)!==0?xf(e,t,l):(ul(t),e=Xt(e,t,l),e!==null?e.sibling:null);ul(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||($n(e,t,l,false),n=(l&t.childLanes)!==0),a){if(n)return Tf(e,t,l);t.flags|=128;}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(Le,Le.current),n)break;return null;case 22:case 23:return t.lanes=0,yf(e,t,l);case 24:el(t,we,e.memoizedState.cache);}return Xt(e,t,l)}function Of(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=true;else {if(!Ls(e,l)&&(t.flags&128)===0)return Ye=false,Qm(e,t,l);Ye=(e.flags&131072)!==0;}else Ye=false,ge&&(t.flags&1048576)!==0&&er(t,iu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var n=t.elementType,a=n._init;if(n=a(n._payload),t.type=n,typeof n=="function")Zi(n)?(e=Ll(n,e),t.tag=1,t=Sf(null,t,n,e,l)):(t.tag=0,t=Cs(null,t,n,e,l));else {if(n!=null){if(a=n.$$typeof,a===F){t.tag=11,t=gf(null,t,n,e,l);break e}else if(a===re){t.tag=14,t=pf(null,t,n,e,l);break e}}throw t=je(n)||n,Error(s(306,t,""))}}return t;case 0:return Cs(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Ll(n,t.pendingProps),Sf(e,t,n,a,l);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,us(e,t),ta(t,n,null,l);var r=t.memoizedState;if(n=r.cache,el(t,we,n),n!==u.cache&&Pi(t,[we],l,true),ea(),n=r.element,u.isDehydrated)if(u={element:n,isDehydrated:false,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=_f(e,t,n,l);break e}else if(n!==a){a=mt(Error(s(424)),t),kn(a),t=_f(e,t,n,l);break e}else {switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e;}for(Ae=Mt(e.firstChild),Ie=t,ge=true,Nl=null,Ct=true,l=lf(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;}else {if(Kn(),n===a){t=Xt(e,t,l);break e}Ze(e,t,n,l);}t=t.child;}return t;case 26:return Au(e,t),e===null?(l=Cd(t.type,null,t.pendingProps,null))?t.memoizedState=l:ge||(l=t.type,e=t.pendingProps,n=Gu(W.current).createElement(l),n[Je]=t,n[Pe]=e,ke(n,l,e),qe(n),t.stateNode=n):t.memoizedState=Cd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fi(t),e===null&&ge&&(n=t.stateNode=Ad(t.type,t.pendingProps,W.current),Ie=t,Ct=true,a=Ae,pl(t.type)?(mc=a,Ae=Mt(n.firstChild)):Ae=a),Ze(e,t,t.pendingProps.children,l),Au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((a=n=Ae)&&(n=yy(n,t.type,t.pendingProps,Ct),n!==null?(t.stateNode=n,Ie=t,Ae=Mt(n.firstChild),Ct=false,a=true):a=false),a||Dl(t)),fi(t),a=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,n=u.children,dc(a,u)?n=null:r!==null&&dc(a,r)&&(t.flags|=32),t.memoizedState!==null&&(a=fs(e,t,wm,null,null,l),Ea._currentValue=a),Au(e,t),Ze(e,t,n,l),t.child;case 6:return e===null&&ge&&((e=l=Ae)&&(l=vy(l,t.pendingProps,Ct),l!==null?(t.stateNode=l,Ie=t,Ae=null,e=true):e=false),e||Dl(t)),null;case 13:return xf(e,t,l);case 4:return xe(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gn(t,null,n,l):Ze(e,t,n,l),t.child;case 11:return gf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,el(t,t.type,n.value),Ze(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,jl(t),a=Fe(a),n=n(a),t.flags|=1,Ze(e,t,n,l),t.child;case 14:return pf(e,t,t.type,t.pendingProps,l);case 15:return mf(e,t,t.type,t.pendingProps,l);case 19:return Tf(e,t,l);case 31:return n=t.pendingProps,l=t.mode,n={mode:n.mode,children:n.children},e===null?(l=Mu(n,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Bt(e.child,n),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return yf(e,t,l);case 24:return jl(t),n=Fe(we),e===null?(a=ls(),a===null&&(a=_e,u=es(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},as(t),el(t,we,a)):((e.lanes&l)!==0&&(us(e,t),ta(t,null,null,l),ea()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),el(t,we,n)):(n=u.cache,el(t,we,n),n!==a.cache&&Pi(t,[we],l,true))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Zt(e){e.flags|=4;}function Af(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ud(t)){if(t=St.current,t!==null&&((ce&4194048)===ce?Nt!==null:(ce&62914560)!==ce&&(ce&536870912)===0||t!==Nt))throw In=ns,cr;e.flags|=8192;}}function Ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lo():536870912,e.lanes|=t,vn|=t);}function ca(e,t){if(!ge)switch(e.tailMode){case "hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case "collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Xm(e,t,l){var n=t.pendingProps;switch(Ji(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gt(we),Ft(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Zn(t)?Zt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nr())),Te(t),null;case 26:return l=t.memoizedState,e===null?(Zt(t),l!==null?(Te(t),Af(t,l)):(Te(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Zt(t),Te(t),Af(t,l)):(Te(t),t.flags&=-16777217):(e.memoizedProps!==n&&Zt(t),Te(t),t.flags&=-16777217),null;case 27:qa(t),l=W.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Zt(t);else {if(!n){if(t.stateNode===null)throw Error(s(166));return Te(t),null}e=X.current,Zn(t)?tr(t):(e=Ad(a,n,l),t.stateNode=e,Zt(t));}return Te(t),null;case 5:if(qa(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Zt(t);else {if(!n){if(t.stateNode===null)throw Error(s(166));return Te(t),null}if(e=X.current,Zn(t))tr(t);else {switch(a=Gu(W.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case "svg":e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case "math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case "script":e=a.createElement("div"),e.innerHTML="