claudecode-dashboard 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +31 -22
- package/package.json +1 -1
- package/dist/app-ALZQA2MU.js +0 -124
- package/dist/build-ATVYGQFJ.js +0 -2
- package/dist/chunk-AHIRPBQB.js +0 -7
- package/dist/chunk-CUZUQPDA.js +0 -47
- package/dist/chunk-H6DM526Z.js +0 -238
- package/dist/chunk-KBW7PPBV.js +0 -2
- package/dist/devtools-XXWLXKPC.js +0 -8
- package/dist/react-JYLNFGAJ.js +0 -2
package/dist/build-ATVYGQFJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
export{a as Box,f as Newline,g as Spacer,d as Static,b as Text,e as Transform,o as measureElement,c as render,j as useApp,m as useFocus,n as useFocusManager,i as useInput,l as useStderr,h as useStdin,k as useStdout}from'./chunk-H6DM526Z.js';import'./chunk-CUZUQPDA.js';import'./chunk-KBW7PPBV.js';
|
package/dist/chunk-AHIRPBQB.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {mkdir,appendFile,readFile,readdir}from'fs/promises';import {existsSync}from'fs';import {homedir}from'os';import {join}from'path';var u=class{name="memory";entries=[];listeners=new Set;maxEntries;constructor(t=100){this.maxEntries=t;}write(t){this.entries.push(t),this.entries.length>this.maxEntries&&(this.entries=this.entries.slice(-this.maxEntries)),this.notifyListeners();}getEntries(){return [...this.entries]}getRecent(t){return this.entries.slice(-t)}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}clear(){this.entries=[],this.notifyListeners();}notifyListeners(){let t=this.getEntries();this.listeners.forEach(e=>e(t));}},d=class{name="file";logDir;logFile;buffer=[];flushInterval=null;initialized=false;constructor(t){this.logDir=t||join(homedir(),".claude","claudecode-dashboard","logs");let e=new Date().toISOString().split("T")[0];this.logFile=join(this.logDir,`${e}.jsonl`);}async ensureDir(){this.initialized||(existsSync(this.logDir)||await mkdir(this.logDir,{recursive:true}),this.initialized=true);}async write(t){let e=JSON.stringify({ts:t.timestamp.toISOString(),lvl:t.level,src:t.source,msg:t.message,...t.meta&&{meta:t.meta}});this.buffer.push(e),(t.level==="error"||this.buffer.length>=10)&&await this.flush();}async flush(){if(this.buffer.length===0)return;await this.ensureDir();let t=this.buffer.join(`
|
|
3
|
-
`)+`
|
|
4
|
-
`;this.buffer=[],await appendFile(this.logFile,t);}startAutoFlush(t=5e3){this.flushInterval||(this.flushInterval=setInterval(()=>this.flush(),t));}stopAutoFlush(){this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null);}},h=class{sinks=[];minLevel="info";levelOrder={debug:0,info:1,warn:2,error:3};addSink(t){this.sinks.push(t);}removeSink(t){this.sinks=this.sinks.filter(e=>e.name!==t);}getSink(t){return this.sinks.find(e=>e.name===t)}setMinLevel(t){this.minLevel=t;}shouldLog(t){return this.levelOrder[t]>=this.levelOrder[this.minLevel]}log(t,e,r,a){if(!this.shouldLog(t))return;let s={level:t,source:e,message:r,timestamp:new Date,meta:a};for(let n of this.sinks)try{n.write(s);}catch{}}debug(t,e,r){this.log("debug",t,e,r);}info(t,e,r){this.log("info",t,e,r);}warn(t,e,r){this.log("warn",t,e,r);}error(t,e,r){this.log("error",t,e,r);}async flush(){for(let t of this.sinks)t.flush&&await t.flush();}},y=new u(100),b=new d,m=new h;m.addSink(y);m.addSink(b);function nt(){return y}function p(){return join(homedir(),".claude")}function M(){return join(homedir(),".claude.json")}var f={userSettings:()=>join(p(),"settings.json"),userSettingsLocal:()=>join(p(),"settings.local.json"),userMemory:()=>join(p(),"CLAUDE.md"),userSkills:()=>join(p(),"skills"),userAgents:()=>join(p(),"agents"),userCommands:()=>join(p(),"commands"),userHooks:()=>join(p(),"hooks"),userOutputStyles:()=>join(p(),"output-styles"),userPlugins:()=>join(p(),"plugins"),metadata:()=>join(p(),"metadata.json"),history:()=>join(p(),"history.jsonl"),todos:()=>join(p(),"todos"),projects:()=>join(p(),"projects"),claudeJson:()=>M()};async function ft(){let i=f.userSettings();if(!existsSync(i))return null;try{let t=await readFile(i,"utf-8");return JSON.parse(t)}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("settings",`Failed to parse ${i}: ${e}`),null}}function O(i){let t=i.match(/^---\n([\s\S]*?)\n---/);if(!t)return {};let e=t[1],r={};for(let a of e.split(`
|
|
5
|
-
`)){let[s,...n]=a.split(":"),o=n.join(":").trim();s==="name"&&(r.name=o),s==="description"&&(r.description=o),s==="allowed-tools"&&(r.allowedTools=o.split(",").map(l=>l.trim())),s==="model"&&(r.model=o);}return r}async function kt(){let i=f.userSkills();if(!existsSync(i))return [];try{let t=await readdir(i,{withFileTypes:!0}),e=[];for(let r of t){if(!r.isDirectory())continue;let a=join(i,r.name,"SKILL.md");if(existsSync(a))try{let s=await readFile(a,"utf-8"),n=O(s);e.push({name:n.name||r.name,description:n.description,allowedTools:n.allowedTools,model:n.model,source:"user",path:a});}catch(s){let n=s instanceof Error?s.message:"Unknown error";m.warn("skills",`Failed to read skill ${r.name}: ${n}`);}}return e}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("skills",`Failed to read skills directory: ${e}`),[]}}function _(i){let t=i.match(/^---\n([\s\S]*?)\n---/);if(!t)return {};let e=t[1],r={};for(let a of e.split(`
|
|
6
|
-
`)){let[s,...n]=a.split(":"),o=n.join(":").trim();s==="name"&&(r.name=o),s==="description"&&(r.description=o),s==="tools"&&(r.tools=o.split(",").map(l=>l.trim())),s==="model"&&(r.model=o),s==="permissionMode"&&(r.permissionMode=o),s==="skills"&&(r.skills=o.split(",").map(l=>l.trim()));}return r}async function jt(){let i=f.userAgents();if(!existsSync(i))return [];try{let t=await readdir(i),e=[];for(let r of t){if(!r.endsWith(".md"))continue;let a=join(i,r);try{let s=await readFile(a,"utf-8"),n=_(s),o=n.name||r.replace(".md","");e.push({name:o,description:n.description,tools:n.tools,model:n.model,permissionMode:n.permissionMode,skills:n.skills,source:"user",path:a});}catch(s){let n=s instanceof Error?s.message:"Unknown error";m.warn("agents",`Failed to read agent ${r}: ${n}`);}}return e}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("agents",`Failed to read agents directory: ${e}`),[]}}function B(i){let t=i.match(/^---\n([\s\S]*?)\n---/);if(!t)return {};let e=t[1],r={};for(let a of e.split(`
|
|
7
|
-
`)){let[s,...n]=a.split(":"),o=n.join(":").trim();s==="description"&&(r.description=o),s==="argument-hint"&&(r.argumentHint=o),s==="allowed-tools"&&(r.allowedTools=o.split(",").map(l=>l.trim())),s==="model"&&(r.model=o);}return r}async function Ut(){let i=f.userCommands();if(!existsSync(i))return [];try{let t=await readdir(i,{recursive:!0}),e=[];for(let r of t){let a=String(r);if(!a.endsWith(".md"))continue;let s=join(i,a);try{let n=await readFile(s,"utf-8"),o=B(n),l=a.replace(/\.md$/,"").replace(/[\/\\]/g,":");e.push({name:l,description:o.description,argumentHint:o.argumentHint,allowedTools:o.allowedTools,model:o.model,source:"user",path:s});}catch(n){let o=n instanceof Error?n.message:"Unknown error";m.warn("commands",`Failed to read command ${a}: ${o}`);}}return e}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("commands",`Failed to read commands directory: ${e}`),[]}}async function Rt(){let i=f.userSettings();if(!existsSync(i))return [];try{let t=await readFile(i,"utf-8"),e=JSON.parse(t);if(!e.hooks)return [];let r=[];for(let[a,s]of Object.entries(e.hooks))for(let n of s)for(let o of n.hooks)r.push({event:a,matcher:n.matcher,type:o.type,command:o.command,prompt:o.prompt,timeout:o.timeout,source:"user"});return r}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("hooks",`Failed to parse hooks from settings: ${e}`),[]}}async function qt(){let i=[],t=join(homedir(),".mcp.json");if(existsSync(t))try{let r=await readFile(t,"utf-8"),a=JSON.parse(r);if(a.mcpServers)for(let[s,n]of Object.entries(a.mcpServers))i.push({name:s,type:n.type||(n.command?"stdio":"http"),url:n.url,command:n.command,args:n.args,env:n.env,scope:"user"});}catch(r){let a=r instanceof Error?r.message:"Unknown error";m.error("mcp",`Failed to parse ~/.mcp.json: ${a}`);}let e=join(process.cwd(),".mcp.json");if(existsSync(e))try{let r=await readFile(e,"utf-8"),a=JSON.parse(r);if(a.mcpServers)for(let[s,n]of Object.entries(a.mcpServers))i.push({name:s,type:n.type||(n.command?"stdio":"http"),url:n.url,command:n.command,args:n.args,env:n.env,scope:"project"});}catch(r){let a=r instanceof Error?r.message:"Unknown error";m.error("mcp",`Failed to parse ./.mcp.json: ${a}`);}return i}async function Zt(){let i=f.userPlugins();if(!existsSync(i))return [];try{let t=await readdir(i,{withFileTypes:!0}),e=[];for(let r of t){if(!r.isDirectory())continue;let a=join(i,r.name),s=join(a,"plugin.json");if(existsSync(s))try{let n=await readFile(s,"utf-8"),o=JSON.parse(n),l=g=>g?Array.isArray(g)?g:[g]:[];e.push({name:o.name||r.name,version:o.version,description:o.description,enabled:!0,path:a,commands:l(o.commands),agents:l(o.agents),skills:l(o.skills),hooks:o.hooks?[o.hooks]:[],mcpServers:o.mcpServers?[o.mcpServers]:[]});}catch(n){let o=n instanceof Error?n.message:"Unknown error";m.warn("plugins",`Failed to read plugin ${r.name}: ${o}`);}}return e}catch(t){let e=t instanceof Error?t.message:"Unknown error";return m.error("plugins",`Failed to read plugins directory: ${e}`),[]}}export{m as a,nt as b,ft as c,kt as d,jt as e,Ut as f,Rt as g,qt as h,Zt as i};
|
package/dist/chunk-CUZUQPDA.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {b}from'./chunk-KBW7PPBV.js';var Nr=b(f=>{var K=Symbol.for("react.element"),rn=Symbol.for("react.portal"),tn=Symbol.for("react.fragment"),nn=Symbol.for("react.strict_mode"),an=Symbol.for("react.profiler"),on=Symbol.for("react.provider"),un=Symbol.for("react.context"),sn=Symbol.for("react.forward_ref"),cn=Symbol.for("react.suspense"),fn=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),kr=Symbol.iterator;function pn(t){return t===null||typeof t!="object"?null:(t=kr&&t[kr]||t["@@iterator"],typeof t=="function"?t:null)}var jr={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xr=Object.assign,Ir={};function W(t,u,d){this.props=t,this.context=u,this.refs=Ir,this.updater=d||jr;}W.prototype.isReactComponent={};W.prototype.setState=function(t,u){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,u,"setState");};W.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate");};function $r(){}$r.prototype=W.prototype;function xe(t,u,d){this.props=t,this.context=u,this.refs=Ir,this.updater=d||jr;}var Ie=xe.prototype=new $r;Ie.constructor=xe;xr(Ie,W.prototype);Ie.isPureReactComponent=true;var Pr=Array.isArray,Dr=Object.prototype.hasOwnProperty,$e={current:null},Fr={key:true,ref:true,__self:true,__source:true};function Lr(t,u,d){var y,h={},b=null,C=null;if(u!=null)for(y in u.ref!==void 0&&(C=u.ref),u.key!==void 0&&(b=""+u.key),u)Dr.call(u,y)&&!Fr.hasOwnProperty(y)&&(h[y]=u[y]);var _=arguments.length-2;if(_===1)h.children=d;else if(1<_){for(var m=Array(_),T=0;T<_;T++)m[T]=arguments[T+2];h.children=m;}if(t&&t.defaultProps)for(y in _=t.defaultProps,_)h[y]===void 0&&(h[y]=_[y]);return {$$typeof:K,type:t,key:b,ref:C,props:h,_owner:$e.current}}function dn(t,u){return {$$typeof:K,type:t.type,key:u,ref:t.ref,props:t.props,_owner:t._owner}}function De(t){return typeof t=="object"&&t!==null&&t.$$typeof===K}function vn(t){var u={"=":"=0",":":"=2"};return "$"+t.replace(/[=:]/g,function(d){return u[d]})}var Ar=/\/+/g;function je(t,u){return typeof t=="object"&&t!==null&&t.key!=null?vn(""+t.key):u.toString(36)}function se(t,u,d,y,h){var b=typeof t;(b==="undefined"||b==="boolean")&&(t=null);var C=false;if(t===null)C=true;else switch(b){case "string":case "number":C=true;break;case "object":switch(t.$$typeof){case K:case rn:C=true;}}if(C)return C=t,h=h(C),t=y===""?"."+je(C,0):y,Pr(h)?(d="",t!=null&&(d=t.replace(Ar,"$&/")+"/"),se(h,u,d,"",function(T){return T})):h!=null&&(De(h)&&(h=dn(h,d+(!h.key||C&&C.key===h.key?"":(""+h.key).replace(Ar,"$&/")+"/")+t)),u.push(h)),1;if(C=0,y=y===""?".":y+":",Pr(t))for(var _=0;_<t.length;_++){b=t[_];var m=y+je(b,_);C+=se(b,u,d,m,h);}else if(m=pn(t),typeof m=="function")for(t=m.call(t),_=0;!(b=t.next()).done;)b=b.value,m=y+je(b,_++),C+=se(b,u,d,m,h);else if(b==="object")throw u=String(t),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.");return C}function ie(t,u,d){if(t==null)return t;var y=[],h=0;return se(t,y,"","",function(b){return u.call(d,b,h++)}),y}function yn(t){if(t._status===-1){var u=t._result;u=u(),u.then(function(d){(t._status===0||t._status===-1)&&(t._status=1,t._result=d);},function(d){(t._status===0||t._status===-1)&&(t._status=2,t._result=d);}),t._status===-1&&(t._status=0,t._result=u);}if(t._status===1)return t._result.default;throw t._result}var A={current:null},ce={transition:null},hn={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:ce,ReactCurrentOwner:$e};function Mr(){throw Error("act(...) is not supported in production builds of React.")}f.Children={map:ie,forEach:function(t,u,d){ie(t,function(){u.apply(this,arguments);},d);},count:function(t){var u=0;return ie(t,function(){u++;}),u},toArray:function(t){return ie(t,function(u){return u})||[]},only:function(t){if(!De(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};f.Component=W;f.Fragment=tn;f.Profiler=an;f.PureComponent=xe;f.StrictMode=nn;f.Suspense=cn;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hn;f.act=Mr;f.cloneElement=function(t,u,d){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var y=xr({},t.props),h=t.key,b=t.ref,C=t._owner;if(u!=null){if(u.ref!==void 0&&(b=u.ref,C=$e.current),u.key!==void 0&&(h=""+u.key),t.type&&t.type.defaultProps)var _=t.type.defaultProps;for(m in u)Dr.call(u,m)&&!Fr.hasOwnProperty(m)&&(y[m]=u[m]===void 0&&_!==void 0?_[m]:u[m]);}var m=arguments.length-2;if(m===1)y.children=d;else if(1<m){_=Array(m);for(var T=0;T<m;T++)_[T]=arguments[T+2];y.children=_;}return {$$typeof:K,type:t.type,key:h,ref:b,props:y,_owner:C}};f.createContext=function(t){return t={$$typeof:un,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:on,_context:t},t.Consumer=t};f.createElement=Lr;f.createFactory=function(t){var u=Lr.bind(null,t);return u.type=t,u};f.createRef=function(){return {current:null}};f.forwardRef=function(t){return {$$typeof:sn,render:t}};f.isValidElement=De;f.lazy=function(t){return {$$typeof:ln,_payload:{_status:-1,_result:t},_init:yn}};f.memo=function(t,u){return {$$typeof:fn,type:t,compare:u===void 0?null:u}};f.startTransition=function(t){var u=ce.transition;ce.transition={};try{t();}finally{ce.transition=u;}};f.unstable_act=Mr;f.useCallback=function(t,u){return A.current.useCallback(t,u)};f.useContext=function(t){return A.current.useContext(t)};f.useDebugValue=function(){};f.useDeferredValue=function(t){return A.current.useDeferredValue(t)};f.useEffect=function(t,u){return A.current.useEffect(t,u)};f.useId=function(){return A.current.useId()};f.useImperativeHandle=function(t,u,d){return A.current.useImperativeHandle(t,u,d)};f.useInsertionEffect=function(t,u){return A.current.useInsertionEffect(t,u)};f.useLayoutEffect=function(t,u){return A.current.useLayoutEffect(t,u)};f.useMemo=function(t,u){return A.current.useMemo(t,u)};f.useReducer=function(t,u,d){return A.current.useReducer(t,u,d)};f.useRef=function(t){return A.current.useRef(t)};f.useState=function(t){return A.current.useState(t)};f.useSyncExternalStore=function(t,u,d){return A.current.useSyncExternalStore(t,u,d)};f.useTransition=function(){return A.current.useTransition()};f.version="18.3.1";});var Vr=b((l,fe)=>{process.env.NODE_ENV!=="production"&&(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.3.1",u=Symbol.for("react.element"),d=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Ur=Symbol.for("react.offscreen"),Le=Symbol.iterator,Wr="@@iterator";function Me(e){if(e===null||typeof e!="object")return null;var r=Le&&e[Le]||e[Wr];return typeof r=="function"?r:null}var Ne={current:null},F={transition:null},k={current:null,isBatchingLegacy:false,didScheduleLegacyUpdate:false},j={current:null},Y={},G=null;function Ve(e){G=e;}Y.setExtraStackFrame=function(e){G=e;},Y.getCurrentStack=null,Y.getStackAddendum=function(){var e="";G&&(e+=G);var r=Y.getCurrentStack;return r&&(e+=r()||""),e};var Yr=false,zr=false,Br=false,Hr=false,Kr=false,L={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:F,ReactCurrentOwner:j};L.ReactDebugCurrentFrame=Y,L.ReactCurrentActQueue=k;function M(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ue("warn",e,n);}}function v(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ue("error",e,n);}}function Ue(e,r,n){{var a=L.ReactDebugCurrentFrame,o=a.getStackAddendum();o!==""&&(r+="%s",n=n.concat([o]));var s=n.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s);}}var We={};function pe(e,r){{var n=e.constructor,a=n&&(n.displayName||n.name)||"ReactClass",o=a+"."+r;if(We[o])return;v("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,a),We[o]=true;}}var Ye={isMounted:function(e){return false},enqueueForceUpdate:function(e,r,n){pe(e,"forceUpdate");},enqueueReplaceState:function(e,r,n,a){pe(e,"replaceState");},enqueueSetState:function(e,r,n,a){pe(e,"setState");}},x=Object.assign,de={};Object.freeze(de);function $(e,r,n){this.props=e,this.context=r,this.refs=de,this.updater=n||Ye;}$.prototype.isReactComponent={},$.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState");},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate");};{var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},qr=function(e,r){Object.defineProperty($.prototype,e,{get:function(){M("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1]);}});};for(var ye in ve)ve.hasOwnProperty(ye)&&qr(ye,ve[ye]);}function ze(){}ze.prototype=$.prototype;function he(e,r,n){this.props=e,this.context=r,this.refs=de,this.updater=n||Ye;}var me=he.prototype=new ze;me.constructor=he,x(me,$.prototype),me.isPureReactComponent=true;function Gr(){var e={current:null};return Object.seal(e),e}var Qr=Array.isArray;function Q(e){return Qr(e)}function Xr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Jr(e){try{return Be(e),!1}catch{return true}}function Be(e){return ""+e}function X(e){if(Jr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xr(e)),Be(e)}function Zr(e,r,n){var a=e.displayName;if(a)return a;var o=r.displayName||r.name||"";return o!==""?n+"("+o+")":n}function He(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return "Fragment";case d:return "Portal";case b:return "Profiler";case h:return "StrictMode";case T:return "Suspense";case le:return "SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return He(r)+".Consumer";case C:var n=e;return He(n._context)+".Provider";case m:return Zr(e,e.render,"ForwardRef");case D:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case q:{var o=e,s=o._payload,i=o._init;try{return I(i(s))}catch{return null}}}return null}var z=Object.prototype.hasOwnProperty,Ke={key:true,ref:true,__self:true,__source:true},qe,Ge,ge;ge={};function Qe(e){if(z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return false}return e.ref!==void 0}function Xe(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return e.key!==void 0}function et(e,r){var n=function(){qe||(qe=true,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r));};n.isReactWarning=true,Object.defineProperty(e,"key",{get:n,configurable:true});}function rt(e,r){var n=function(){Ge||(Ge=true,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r));};n.isReactWarning=true,Object.defineProperty(e,"ref",{get:n,configurable:true});}function tt(e){if(typeof e.ref=="string"&&j.current&&e.__self&&j.current.stateNode!==e.__self){var r=I(j.current.type);ge[r]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),ge[r]=true);}}var _e=function(e,r,n,a,o,s,i){var c={$$typeof:u,type:e,key:r,ref:n,props:i,_owner:s};return c._store={},Object.defineProperty(c._store,"validated",{configurable:false,enumerable:false,writable:true,value:false}),Object.defineProperty(c,"_self",{configurable:false,enumerable:false,writable:false,value:a}),Object.defineProperty(c,"_source",{configurable:false,enumerable:false,writable:false,value:o}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function nt(e,r,n){var a,o={},s=null,i=null,c=null,p=null;if(r!=null){Qe(r)&&(i=r.ref,tt(r)),Xe(r)&&(X(r.key),s=""+r.key),c=r.__self===void 0?null:r.__self,p=r.__source===void 0?null:r.__source;for(a in r)z.call(r,a)&&!Ke.hasOwnProperty(a)&&(o[a]=r[a]);}var g=arguments.length-2;if(g===1)o.children=n;else if(g>1){for(var E=Array(g),R=0;R<g;R++)E[R]=arguments[R+2];Object.freeze&&Object.freeze(E),o.children=E;}if(e&&e.defaultProps){var w=e.defaultProps;for(a in w)o[a]===void 0&&(o[a]=w[a]);}if(s||i){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&et(o,S),i&&rt(o,S);}return _e(e,s,i,c,p,j.current,o)}function at(e,r){var n=_e(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return n}function ot(e,r,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a,o=x({},e.props),s=e.key,i=e.ref,c=e._self,p=e._source,g=e._owner;if(r!=null){Qe(r)&&(i=r.ref,g=j.current),Xe(r)&&(X(r.key),s=""+r.key);var E;e.type&&e.type.defaultProps&&(E=e.type.defaultProps);for(a in r)z.call(r,a)&&!Ke.hasOwnProperty(a)&&(r[a]===void 0&&E!==void 0?o[a]=E[a]:o[a]=r[a]);}var R=arguments.length-2;if(R===1)o.children=n;else if(R>1){for(var w=Array(R),S=0;S<R;S++)w[S]=arguments[S+2];o.children=w;}return _e(e.type,s,i,c,p,g,o)}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}var Je=".",ut=":";function it(e){var r=/[=:]/g,n={"=":"=0",":":"=2"},a=e.replace(r,function(o){return n[o]});return "$"+a}var Ze=false,st=/\/+/g;function er(e){return e.replace(st,"$&/")}function be(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(X(e.key),it(""+e.key)):r.toString(36)}function J(e,r,n,a,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=false;if(e===null)i=true;else switch(s){case "string":case "number":i=true;break;case "object":switch(e.$$typeof){case u:case d:i=true;}}if(i){var c=e,p=o(c),g=a===""?Je+be(c,0):a;if(Q(p)){var E="";g!=null&&(E=er(g)+"/"),J(p,r,E,"",function(en){return en});}else p!=null&&(N(p)&&(p.key&&(!c||c.key!==p.key)&&X(p.key),p=at(p,n+(p.key&&(!c||c.key!==p.key)?er(""+p.key)+"/":"")+g)),r.push(p));return 1}var R,w,S=0,O=a===""?Je:a+ut;if(Q(e))for(var ue=0;ue<e.length;ue++)R=e[ue],w=O+be(R,ue),S+=J(R,r,n,w,o);else {var Pe=Me(e);if(typeof Pe=="function"){var Sr=e;Pe===Sr.entries&&(Ze||M("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ze=true);for(var Jt=Pe.call(Sr),Or,Zt=0;!(Or=Jt.next()).done;)R=Or.value,w=O+be(R,Zt++),S+=J(R,r,n,w,o);}else if(s==="object"){var Tr=String(e);throw new Error("Objects are not valid as a React child (found: "+(Tr==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Tr)+"). If you meant to render a collection of children, use an array instead.")}}return S}function Z(e,r,n){if(e==null)return e;var a=[],o=0;return J(e,a,"","",function(s){return r.call(n,s,o++)}),a}function ct(e){var r=0;return Z(e,function(){r++;}),r}function ft(e,r,n){Z(e,function(){r.apply(this,arguments);},n);}function lt(e){return Z(e,function(r){return r})||[]}function pt(e){if(!N(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function dt(e){var r={$$typeof:_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:C,_context:r};var n=false,a=false,o=false;{var s={$$typeof:_,_context:r};Object.defineProperties(s,{Provider:{get:function(){return a||(a=true,v("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(i){r.Provider=i;}},_currentValue:{get:function(){return r._currentValue},set:function(i){r._currentValue=i;}},_currentValue2:{get:function(){return r._currentValue2},set:function(i){r._currentValue2=i;}},_threadCount:{get:function(){return r._threadCount},set:function(i){r._threadCount=i;}},Consumer:{get:function(){return n||(n=true,v("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(i){o||(M("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",i),o=true);}}}),r.Consumer=s;}return r._currentRenderer=null,r._currentRenderer2=null,r}var B=-1,Ee=0,rr=1,vt=2;function yt(e){if(e._status===B){var r=e._result,n=r();if(n.then(function(s){if(e._status===Ee||e._status===B){var i=e;i._status=rr,i._result=s;}},function(s){if(e._status===Ee||e._status===B){var i=e;i._status=vt,i._result=s;}}),e._status===B){var a=e;a._status=Ee,a._result=n;}}if(e._status===rr){var o=e._result;return o===void 0&&v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
3
|
-
|
|
4
|
-
Your code should look like:
|
|
5
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
6
|
-
|
|
7
|
-
Did you accidentally put curly braces around the import?`,o),"default"in o||v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
8
|
-
|
|
9
|
-
Your code should look like:
|
|
10
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,o),o.default}else throw e._result}function ht(e){var r={_status:B,_result:e},n={$$typeof:q,_payload:r,_init:yt};{var a,o;Object.defineProperties(n,{defaultProps:{configurable:true,get:function(){return a},set:function(s){v("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),a=s,Object.defineProperty(n,"defaultProps",{enumerable:true});}},propTypes:{configurable:true,get:function(){return o},set:function(s){v("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=s,Object.defineProperty(n,"propTypes",{enumerable:true});}}});}return n}function mt(e){e!=null&&e.$$typeof===D?v("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?v("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&v("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&v("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:m,render:e};{var n;Object.defineProperty(r,"displayName",{enumerable:false,configurable:true,get:function(){return n},set:function(a){n=a,!e.name&&!e.displayName&&(e.displayName=a);}});}return r}var tr;tr=Symbol.for("react.module.reference");function nr(e){return !!(typeof e=="string"||typeof e=="function"||e===y||e===b||Kr||e===h||e===T||e===le||Hr||e===Ur||Yr||zr||Br||typeof e=="object"&&e!==null&&(e.$$typeof===q||e.$$typeof===D||e.$$typeof===C||e.$$typeof===_||e.$$typeof===m||e.$$typeof===tr||e.getModuleId!==void 0))}function gt(e,r){nr(e)||v("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var n={$$typeof:D,type:e,compare:r===void 0?null:r};{var a;Object.defineProperty(n,"displayName",{enumerable:false,configurable:true,get:function(){return a},set:function(o){a=o,!e.name&&!e.displayName&&(e.displayName=o);}});}return n}function P(){var e=Ne.current;return e===null&&v(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
11
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
12
|
-
2. You might be breaking the Rules of Hooks
|
|
13
|
-
3. You might have more than one copy of React in the same app
|
|
14
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function _t(e){var r=P();if(e._context!==void 0){var n=e._context;n.Consumer===e?v("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&v("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");}return r.useContext(e)}function bt(e){var r=P();return r.useState(e)}function Et(e,r,n){var a=P();return a.useReducer(e,r,n)}function Rt(e){var r=P();return r.useRef(e)}function Ct(e,r){var n=P();return n.useEffect(e,r)}function wt(e,r){var n=P();return n.useInsertionEffect(e,r)}function St(e,r){var n=P();return n.useLayoutEffect(e,r)}function Ot(e,r){var n=P();return n.useCallback(e,r)}function Tt(e,r){var n=P();return n.useMemo(e,r)}function kt(e,r,n){var a=P();return a.useImperativeHandle(e,r,n)}function Pt(e,r){{var n=P();return n.useDebugValue(e,r)}}function At(){var e=P();return e.useTransition()}function jt(e){var r=P();return r.useDeferredValue(e)}function xt(){var e=P();return e.useId()}function It(e,r,n){var a=P();return a.useSyncExternalStore(e,r,n)}var H=0,ar,or,ur,ir,sr,cr,fr;function lr(){}lr.__reactDisabledLog=true;function $t(){{if(H===0){ar=console.log,or=console.info,ur=console.warn,ir=console.error,sr=console.group,cr=console.groupCollapsed,fr=console.groupEnd;var e={configurable:true,enumerable:true,value:lr,writable:true};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e});}H++;}}function Dt(){{if(H--,H===0){var e={configurable:true,enumerable:true,writable:true};Object.defineProperties(console,{log:x({},e,{value:ar}),info:x({},e,{value:or}),warn:x({},e,{value:ur}),error:x({},e,{value:ir}),group:x({},e,{value:sr}),groupCollapsed:x({},e,{value:cr}),groupEnd:x({},e,{value:fr})});}H<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");}}var Re=L.ReactCurrentDispatcher,Ce;function ee(e,r,n){{if(Ce===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Ce=a&&a[1]||"";}return `
|
|
15
|
-
`+Ce+e}}var we=false,re;{var Ft=typeof WeakMap=="function"?WeakMap:Map;re=new Ft;}function pr(e,r){if(!e||we)return "";{var n=re.get(e);if(n!==void 0)return n}var a;we=true;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=Re.current,Re.current=null,$t();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[]);}catch(O){a=O;}Reflect.construct(e,[],i);}else {try{i.call();}catch(O){a=O;}e.call(i.prototype);}}else {try{throw Error()}catch(O){a=O;}e();}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var c=O.stack.split(`
|
|
16
|
-
`),p=a.stack.split(`
|
|
17
|
-
`),g=c.length-1,E=p.length-1;g>=1&&E>=0&&c[g]!==p[E];)E--;for(;g>=1&&E>=0;g--,E--)if(c[g]!==p[E]){if(g!==1||E!==1)do if(g--,E--,E<0||c[g]!==p[E]){var R=`
|
|
18
|
-
`+c[g].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,R),R}while(g>=1&&E>=0);break}}}finally{we=false,Re.current=s,Dt(),Error.prepareStackTrace=o;}var w=e?e.displayName||e.name:"",S=w?ee(w):"";return typeof e=="function"&&re.set(e,S),S}function Lt(e,r,n){return pr(e,false)}function Mt(e){var r=e.prototype;return !!(r&&r.isReactComponent)}function te(e,r,n){if(e==null)return "";if(typeof e=="function")return pr(e,Mt(e));if(typeof e=="string")return ee(e);switch(e){case T:return ee("Suspense");case le:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Lt(e.render);case D:return te(e.type,r,n);case q:{var a=e,o=a._payload,s=a._init;try{return te(s(o),r,n)}catch{}}}return ""}var dr={},vr=L.ReactDebugCurrentFrame;function ne(e){if(e){var r=e._owner,n=te(e.type,e._source,r?r.type:null);vr.setExtraStackFrame(n);}else vr.setExtraStackFrame(null);}function Nt(e,r,n,a,o){{var s=Function.call.bind(z);for(var i in e)if(s(e,i)){var c=void 0;try{if(typeof e[i]!="function"){var p=Error((a||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=e[i](r,i,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");}catch(g){c=g;}c&&!(c instanceof Error)&&(ne(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,i,typeof c),ne(null)),c instanceof Error&&!(c.message in dr)&&(dr[c.message]=true,ne(o),v("Failed %s type: %s",n,c.message),ne(null));}}}function V(e){if(e){var r=e._owner,n=te(e.type,e._source,r?r.type:null);Ve(n);}else Ve(null);}var Se;Se=false;function yr(){if(j.current){var e=I(j.current.type);if(e)return `
|
|
19
|
-
|
|
20
|
-
Check the render method of \``+e+"`."}return ""}function Vt(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return `
|
|
21
|
-
|
|
22
|
-
Check your code at `+r+":"+n+"."}return ""}function Ut(e){return e!=null?Vt(e.__source):""}var hr={};function Wt(e){var r=yr();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
|
|
23
|
-
|
|
24
|
-
Check the top-level render call using <`+n+">.");}return r}function mr(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=true;var n=Wt(r);if(!hr[n]){hr[n]=true;var a="";e&&e._owner&&e._owner!==j.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),V(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),V(null);}}}function gr(e,r){if(typeof e=="object"){if(Q(e))for(var n=0;n<e.length;n++){var a=e[n];N(a)&&mr(a,r);}else if(N(e))e._store&&(e._store.validated=true);else if(e){var o=Me(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)N(i.value)&&mr(i.value,r);}}}function _r(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===D))n=r.propTypes;else return;if(n){var a=I(r);Nt(n,e.props,"prop",a,e);}else if(r.PropTypes!==void 0&&!Se){Se=true;var o=I(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown");}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");}}function Yt(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var a=r[n];if(a!=="children"&&a!=="key"){V(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),V(null));}}function br(e,r,n){var a=nr(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s=Ut(r);s?o+=s:o+=yr();var i;e===null?i="null":Q(e)?i="array":e!==void 0&&e.$$typeof===u?(i="<"+(I(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,v("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,o);}var c=nt.apply(this,arguments);if(c==null)return c;if(a)for(var p=2;p<arguments.length;p++)gr(arguments[p],e);return e===y?Yt(c):_r(c),c}var Er=false;function zt(e){var r=br.bind(null,e);return r.type=e,Er||(Er=true,M("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:false,get:function(){return M("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Bt(e,r,n){for(var a=ot.apply(this,arguments),o=2;o<arguments.length;o++)gr(arguments[o],a.type);return _r(a),a}function Ht(e,r){var n=F.transition;F.transition={};var a=F.transition;F.transition._updatedFibers=new Set;try{e();}finally{if(F.transition=n,n===null&&a._updatedFibers){var o=a._updatedFibers.size;o>10&&M("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),a._updatedFibers.clear();}}}var Rr=false,ae=null;function Kt(e){if(ae===null)try{var r=("require"+Math.random()).slice(0,7),n=fe&&fe[r];ae=n.call(fe,"timers").setImmediate;}catch{ae=function(o){Rr===false&&(Rr=true,typeof MessageChannel>"u"&&v("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var s=new MessageChannel;s.port1.onmessage=o,s.port2.postMessage(void 0);};}return ae(e)}var U=0,Cr=false;function wr(e){{var r=U;U++,k.current===null&&(k.current=[]);var n=k.isBatchingLegacy,a;try{if(k.isBatchingLegacy=!0,a=e(),!n&&k.didScheduleLegacyUpdate){var o=k.current;o!==null&&(k.didScheduleLegacyUpdate=!1,ke(o));}}catch(w){throw oe(r),w}finally{k.isBatchingLegacy=n;}if(a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,i=false,c={then:function(w,S){i=true,s.then(function(O){oe(r),U===0?Oe(O,w,S):w(O);},function(O){oe(r),S(O);});}};return !Cr&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){i||(Cr=true,v("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));}),c}else {var p=a;if(oe(r),U===0){var g=k.current;g!==null&&(ke(g),k.current=null);var E={then:function(w,S){k.current===null?(k.current=[],Oe(p,w,S)):w(p);}};return E}else {var R={then:function(w,S){w(p);}};return R}}}}function oe(e){e!==U-1&&v("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),U=e;}function Oe(e,r,n){{var a=k.current;if(a!==null)try{ke(a),Kt(function(){a.length===0?(k.current=null,r(e)):Oe(e,r,n);});}catch(o){n(o);}else r(e);}}var Te=false;function ke(e){if(!Te){Te=true;var r=0;try{for(;r<e.length;r++){var n=e[r];do n=n(!0);while(n!==null)}e.length=0;}catch(a){throw e=e.slice(r+1),a}finally{Te=false;}}}var qt=br,Gt=Bt,Qt=zt,Xt={map:Z,forEach:ft,count:ct,toArray:lt,only:pt};l.Children=Xt,l.Component=$,l.Fragment=y,l.Profiler=b,l.PureComponent=he,l.StrictMode=h,l.Suspense=T,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,l.act=wr,l.cloneElement=Gt,l.createContext=dt,l.createElement=qt,l.createFactory=Qt,l.createRef=Gr,l.forwardRef=mt,l.isValidElement=N,l.lazy=ht,l.memo=gt,l.startTransition=Ht,l.unstable_act=wr,l.useCallback=Ot,l.useContext=_t,l.useDebugValue=Pt,l.useDeferredValue=jt,l.useEffect=Ct,l.useId=xt,l.useImperativeHandle=kt,l.useInsertionEffect=wt,l.useLayoutEffect=St,l.useMemo=Tt,l.useReducer=Et,l.useRef=Rt,l.useState=bt,l.useSyncExternalStore=It,l.useTransition=At,l.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error);})();});var mn=b((_n,Fe)=>{process.env.NODE_ENV==="production"?Fe.exports=Nr():Fe.exports=Vr();});/*! Bundled license information:
|
|
25
|
-
|
|
26
|
-
react/cjs/react.production.min.js:
|
|
27
|
-
(**
|
|
28
|
-
* @license React
|
|
29
|
-
* react.production.min.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*)
|
|
36
|
-
|
|
37
|
-
react/cjs/react.development.js:
|
|
38
|
-
(**
|
|
39
|
-
* @license React
|
|
40
|
-
* react.development.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*)
|
|
47
|
-
*/export{mn as a};
|