From 8d73a15d1078ce689f9eaf028c6843c128132dd2 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Mon, 1 Jul 2024 17:30:46 -0400 Subject: [PATCH 1/2] Update RDT fork for 2024-07 --- .../react-devtools/react_devtools_backend.raw.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/components/SecondaryToolbox/react-devtools/react_devtools_backend.raw.js b/src/ui/components/SecondaryToolbox/react-devtools/react_devtools_backend.raw.js index 49c08b55bb2..53b13144795 100644 --- a/src/ui/components/SecondaryToolbox/react-devtools/react_devtools_backend.raw.js +++ b/src/ui/components/SecondaryToolbox/react-devtools/react_devtools_backend.raw.js @@ -1,9 +1,12 @@ // The content of this function comes from github.com/replayio/react // The react-devtools-extension package in that project has a script (yarn build:chrome) that generates the output // For more info see https://github.com/replayio/react/tree/main/packages/react-devtools-extensions#local-development + +// Updated 2027-04 as of commit 57ff604 : +// Fork: https://github.com/replayio/react/pull/15 + function reactDevToolsWrapper() { -// Includes all changes as of https://github.com/replayio/react/pull/14, -// including React 19 support -(()=>{var e={786:(e,t,n)=>{"use strict";var r=n(206),o=n(189),i=Object.assign,s=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l=Symbol.for("react.context"),a=Symbol.for("react.memo_cache_sentinel"),u=Object.prototype.hasOwnProperty,c=[],f=null;function p(){if(null===f){var e=new Map;try{if(b.useContext({_currentValue:null}),b.useState(null),b.useReducer((function(e){return e}),null),b.useRef(null),"function"==typeof b.useCacheRefresh&&b.useCacheRefresh(),b.useLayoutEffect((function(){})),b.useInsertionEffect((function(){})),b.useEffect((function(){})),b.useImperativeHandle(void 0,(function(){return null})),b.useDebugValue(null),b.useCallback((function(){})),b.useTransition(),b.useSyncExternalStore((function(){return function(){}}),(function(){return null}),(function(){return null})),b.useDeferredValue(null),b.useMemo((function(){return null})),"function"==typeof b.useMemoCache&&b.useMemoCache(0),"function"==typeof b.useOptimistic&&b.useOptimistic(null,(function(e){return e})),"function"==typeof b.useFormState&&b.useFormState((function(e){return e}),null),"function"==typeof b.useActionState&&b.useActionState((function(e){return e}),null),"function"==typeof b.use){b.use({$$typeof:l,_currentValue:null}),b.use({then:function(){},status:"fulfilled",value:null});try{b.use({then:function(){}})}catch(e){}}b.useId(),"function"==typeof b.useHostTransitionStatus&&b.useHostTransitionStatus()}finally{var t=c;c=[]}for(var n=0;nm;m++)if(-1!==(h=S(d,c,m))){_=m,c=h;break e}c=-1}}e:{if(d=f,void 0!==(h=p().get(u.primitive)))for(m=0;mc-d?-1===d?[null,null]:[f[d-1],null]:[f[d-1],f.slice(d,c-1)])[0],f=f[1],null===(c=u.displayName)&&null!==d&&(c=C(d.functionName)||C(u.dispatcherHookName)),null!==f){if(d=0,null!==o){for(;dd;o--)i=l.pop()}for(o=f.length-d-1;1<=o;o--)d=[],h=f[o],h={id:null,isStateEditable:!1,name:C(f[o-1].functionName),value:void 0,subHooks:d,debugInfo:null,hookSource:{lineNumber:h.lineNumber,columnNumber:h.columnNumber,functionName:h.functionName,fileName:h.fileName}},i.push(h),l.push(i),i=d;o=f}d=u.primitive,h=u.debugInfo,u={id:"Context"===d||"Context (use)"===d||"DebugValue"===d||"Promise"===d||"Unresolved"===d||"HostTransitionStatus"===d?null:s++,isStateEditable:"Reducer"===d||"State"===d,name:c||d,value:u.value,subHooks:[],debugInfo:h,hookSource:null},c={lineNumber:null,functionName:null,fileName:null,columnNumber:null},f&&1<=f.length&&(f=f[0],c.lineNumber=f.lineNumber,c.functionName=f.functionName,c.fileName=f.fileName,c.columnNumber=f.columnNumber),u.hookSource=c,i.push(u)}return I(n,null),n}function I(e,t){for(var n=[],r=0;r{"use strict";e.exports=n(786)},890:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.client.reference");t.AI=l,t.HQ=a,t.A4=u,t.HY=o,t.oM=d,t._Y=p,t.h_=r,t.Q1=s,t.nF=i,t.n4=c,t.kK=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.kM=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case u:case d:case p:case l:return e;default:return t}}case r:return t}}}},126:(e,t,n)=>{"use strict";var r=n(169),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.debug_trace_mode"),y=Symbol.for("react.offscreen"),v=Symbol.for("react.postpone"),b=Symbol.iterator,w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var I=k.prototype=new C;I.constructor=k,_(I,E.prototype),I.isPureReactComponent=!0;var O=Array.isArray,D={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function x(e,t,n,r,i,s,l){return n=l.ref,{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:l}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function F(){}function A(e,t,n,r,s){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var a,u,c=!1;if(null===e)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0;break;case m:return A((c=e._init)(e._payload),t,n,r,s)}}if(c)return s=s(e),c=""===r?"."+R(e,0):r,O(s)?(n="",null!=c&&(n=c.replace(T,"$&/")+"/"),A(s,t,n,"",(function(e){return e}))):null!=s&&(N(s)&&(a=s,u=n+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+c,s=x(a.type,u,null,0,0,0,a.props)),t.push(s)),1;c=0;var f,p=""===r?".":r+":";if(O(e))for(var d=0;d{"use strict";e.exports=n(126)},206:function(e,t,n){var r,o,i;!function(s,l){"use strict";o=[n(430)],void 0===(i="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:o.pop()),s=o.join(" ")||void 0,l=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:s,fileName:l,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,s=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var l=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:s,args:l,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=i)}()},730:(e,t,n)=>{"use strict";var r=n(169);e.exports=v;var o,i=n(307),s=n(82),l=n(695),a=(o="function"==typeof Symbol&&"1"!==r.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),u=o("length"),c=o("lengthCalculator"),f=o("allowStale"),p=o("maxAge"),d=o("dispose"),h=o("noDisposeOnSet"),m=o("lruList"),g=o("cache");function y(){return 1}function v(e){if(!(this instanceof v))return new v(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var n=e.length||y;"function"!=typeof n&&(n=y),this[c]=n,this[f]=e.stale||!1,this[p]=e.maxAge||0,this[d]=e.dispose,this[h]=e.noDisposeOnSet||!1,this.reset()}function b(e,t,n,r){var o=n.value;_(e,o)&&(E(e,n),e[f]||(o=void 0)),o&&t.call(r,o.value,o.key,e)}function w(e,t,n){var r=e[g].get(t);if(r){var o=r.value;_(e,o)?(E(e,r),e[f]||(o=void 0)):n&&e[m].unshiftNode(r),o&&(o=o.value)}return o}function _(e,t){if(!t||!t.maxAge&&!e[p])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[p]&&n>e[p]}function S(e){if(e[u]>e[a])for(var t=e[m].tail;e[u]>e[a]&&null!==t;){var n=t.prev;E(e,t),t=n}}function E(e,t){if(t){var n=t.value;e[d]&&e[d](n.key,n.value),e[u]-=n.length,e[g].delete(n.key),e[m].removeNode(t)}}function C(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}Object.defineProperty(v.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,S(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(v.prototype,"allowStale",{set:function(e){this[f]=!!e},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(v.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,S(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(v.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=y),e!==this[c]&&(this[c]=e,this[u]=0,this[m].forEach((function(e){e.length=this[c](e.value,e.key),this[u]+=e.length}),this)),S(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(v.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(v.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),v.prototype.rforEach=function(e,t){t=t||this;for(var n=this[m].tail;null!==n;){var r=n.prev;b(this,e,n,t),n=r}},v.prototype.forEach=function(e,t){t=t||this;for(var n=this[m].head;null!==n;){var r=n.next;b(this,e,n,t),n=r}},v.prototype.keys=function(){return this[m].toArray().map((function(e){return e.key}),this)},v.prototype.values=function(){return this[m].toArray().map((function(e){return e.value}),this)},v.prototype.reset=function(){this[d]&&this[m]&&this[m].length&&this[m].forEach((function(e){this[d](e.key,e.value)}),this),this[g]=new i,this[m]=new l,this[u]=0},v.prototype.dump=function(){return this[m].map((function(e){if(!_(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},v.prototype.dumpLru=function(){return this[m]},v.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[f]&&(n+="\n allowStale: true",r=!0);var o=this[a];o&&o!==1/0&&(r&&(n+=","),n+="\n max: "+s.inspect(o,t),r=!0);var i=this[p];i&&(r&&(n+=","),n+="\n maxAge: "+s.inspect(i,t),r=!0);var l=this[c];l&&l!==y&&(r&&(n+=","),n+="\n length: "+s.inspect(this[u],t),r=!0);var d=!1;return this[m].forEach((function(e){d?n+=",\n ":(r&&(n+=",\n"),d=!0,n+="\n ");var o=s.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==i&&(a.maxAge=e.maxAge),l!==y&&(a.length=e.length),_(this,e)&&(a.stale=!0),a=s.inspect(a,t).split("\n").join("\n "),n+=o+" => "+a})),(d||r)&&(n+="\n"),n+="}"},v.prototype.set=function(e,t,n){var r=(n=n||this[p])?Date.now():0,o=this[c](t,e);if(this[g].has(e)){if(o>this[a])return E(this,this[g].get(e)),!1;var i=this[g].get(e).value;return this[d]&&(this[h]||this[d](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[u]+=o-i.length,i.length=o,this.get(e),S(this),!0}var s=new C(e,t,o,r,n);return s.length>this[a]?(this[d]&&this[d](e,t),!1):(this[u]+=s.length,this[m].unshift(s),this[g].set(e,this[m].head),S(this),!0)},v.prototype.has=function(e){return!!this[g].has(e)&&!_(this,this[g].get(e).value)},v.prototype.get=function(e){return w(this,e,!0)},v.prototype.peek=function(e){return w(this,e,!1)},v.prototype.pop=function(){var e=this[m].tail;return e?(E(this,e),e.value):null},v.prototype.del=function(e){E(this,this[g].get(e))},v.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{var i=o-t;i>0&&this.set(r.k,r.v,i)}}},v.prototype.prune=function(){var e=this;this[g].forEach((function(t,n){w(e,n,!1)}))}},169:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,a=[],u=!1,c=-1;function f(){u&&l&&(u=!1,l.length?a=l.concat(a):c=-1,a.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=a.length;t;){for(l=a,a=[];++c1)for(var n=1;n{var r=n(169);"pseudomap"===r.env.npm_package_name&&"test"===r.env.npm_lifecycle_script&&(r.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||r.env.TEST_PSEUDOMAP?e.exports=n(761):e.exports=Map},761:e=>{var t=Object.prototype.hasOwnProperty;function n(e){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof n||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function r(e,t){return e===t||e!=e&&t!=t}function o(e,t,n){this.key=e,this.value=t,this._index=n}function i(e,n){for(var o=0,i="_"+n,s=i;t.call(e,s);s=i+o++)if(r(e[s].key,n))return e[s]}e.exports=n,n.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)}),this)},n.prototype.has=function(e){return!!i(this._data,e)},n.prototype.get=function(e){var t=i(this._data,e);return t&&t.value},n.prototype.set=function(e,n){!function(e,n,i){for(var s=0,l="_"+n,a=l;t.call(e,a);a=l+s++)if(r(e[a].key,n))return void(e[a].value=i);e.size++,e[a]=new o(n,i,a)}(this._data,e,n)},n.prototype.delete=function(e){var t=i(this._data,e);t&&(delete this._data[t._index],this._data.size--)},n.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},430:function(e,t){var n,r,o;!function(i,s){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],o=["fileName","functionName","source"],i=n.concat(r,o,["args"]);function s(t){if(t)for(var n=0;n{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},715:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},82:(e,t,n)=>{var r=n(169),o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),l=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var a=n.name?": "+n.name:"";return e.stylize("[Function"+a+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return f(n)}var u,w="",C=!1,k=["{","}"];return d(n)&&(C=!0,k=["[","]"]),E(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),S(n)&&(w=" "+f(n)),0!==s.length||C&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=C?function(e,t,n,r,o){for(var i=[],s=0,l=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,w,k)):k[0]+w+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var s,l,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(l=e.stylize("[Setter]","special")),O(r,o)||(s="["+o+"]"),l||(e.seen.indexOf(a.value)<0?(l=m(n)?c(e,a.value,null):c(e,a.value,n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return l;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===C(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===C(e)}function S(e){return w(e)&&("[object Error]"===C(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(715);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(718),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},695:e=>{function t(e){var n=this;if(n instanceof t||(n=new t),n.tail=null,n.head=null,n.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},t.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},t.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},t.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},t.prototype.slice=function(e,n){(n=n||this.length)<0&&(n+=this.length),(e=e||0)<0&&(e+=this.length);var r=new t;if(nthis.length&&(n=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(n=this.length);for(var o=this.length,i=this.tail;null!==i&&o>n;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},t.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";class e{constructor(){var e,t,n;e=this,t="listenersMap",n=new Map,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}addListener(e,t){const n=this.listenersMap.get(e);void 0===n?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}emit(e,...t){const n=this.listenersMap.get(e);if(void 0!==n)if(1===n.length)n[0].apply(null,t);else{let e=!1,r=null;const o=Array.from(n);for(let n=0;n=0&&n.splice(e,1)}}}const t=!1,r=1,o=2,i=3,s=4,l=5,a=6,u=7,c=1,f=2,p=(e,t)=>{const n=h(e),r=h(t),o=n.pop(),i=r.pop(),s=v(n,r);return 0!==s?s:o&&i?v(o.split("."),i.split(".")):o||i?o?-1:1:0},d=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,h=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(d);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},m=e=>"*"===e||"x"===e||"X"===e,g=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},y=(e,t)=>{if(m(e)||m(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(g(e),g(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]});var b=n(730),w=n.n(b),_=n(890);const S=!0,E=Symbol.for("react.element"),C=(Symbol.for("react.transitional.element"),Symbol.for("react.portal")),k=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),x=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),H=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker"));Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.postpone"),Symbol.iterator,Symbol.asyncIterator;const L=1,M=2,$=5,z=6,j=7,U=8,V=9,B=10,W=11,G=12,Y=13,Q=14,q=1,K=2,J=3,X=4,Z=1,ee=Array.isArray;n(169);const te=Object.prototype.hasOwnProperty,ne=new WeakMap,re=new(w())({max:1e3});function oe(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function ie(e){const t=new Set;let n=e;for(;null!=n;){const e=[...Object.keys(n),...Object.getOwnPropertySymbols(n)],r=Object.getOwnPropertyDescriptors(n);e.forEach((e=>{r[e].enumerable&&t.add(e)})),n=Object.getPrototypeOf(n)}return t}function se(e,t,n,r){let o=e.displayName;return o||(o=`${n}(${le(t,r)})`),o}function le(e,t="Anonymous"){const n=ne.get(e);if(null!=n)return n;let r=t;if("string"==typeof e.displayName?r=e.displayName:"string"==typeof e.name&&""!==e.name&&(r=e.name),ne.set(e,r),window.componentFunctionDetailsPerPoint?.has(e))window.componentFunctionDetailsPerPoint.get(e).minifiedDisplayName=r;else{const t={minifiedDisplayName:r,fiberIds:[]};window.componentFunctionDetailsPerPoint?.set(e,t)}return r}function ae(e){if(!0===e||!1===e)return e}function ue(e,t){return t.reduce(((e,t)=>{if(e){if(te.call(e,t))return e[t];if("function"==typeof e[Symbol.iterator])return Array.from(e)[t]}return null}),e)}function ce(e,t){const n=t.length,r=t[n-1];if(null!=e){const o=ue(e,t.slice(0,n-1));o&&(ee(o)?o.splice(r,1):delete o[r])}}function fe(e,t,n){const r=t.length;if(null!=e){const o=ue(e,t.slice(0,r-1));if(o){const e=t[r-1];o[n[r-1]]=o[e],ee(o)?o.splice(e,1):delete o[e]}}}function pe(e,t,n){const r=t.length,o=t[r-1];if(null!=e){const i=ue(e,t.slice(0,r-1));i&&(i[o]=n)}}function de(e){if(null===e)return"null";if(void 0===e)return"undefined";if((0,_.kK)(e))return"react_element";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":if(ee(e))return"array";if(ArrayBuffer.isView(e))return te.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){const t=e[Symbol.iterator]();if(t)return t===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";{const t=Object.prototype.toString.call(e);if("[object Date]"===t)return"date";if("[object HTMLAllCollection]"===t)return"html_all_collection"}}return ve(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}function he(e){const t=(0,_.kM)(e)||function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case E:const n=e.type;switch(n){case k:case O:case I:case T:case R:return n;default:const e=n&&n.$$typeof;switch(e){case x:case N:case A:case F:return e;case P:if(S)return e;case D:if(!S)return e;default:return t}}case C:return t}}}(e);switch(t){case _.AI:return"ContextConsumer";case _.HQ:return"ContextProvider";case _.A4:return"ForwardRef";case _.HY:return"Fragment";case _.oM:return"Lazy";case _._Y:return"Memo";case _.h_:return"Portal";case _.Q1:return"Profiler";case _.nF:return"StrictMode";case _.n4:return"Suspense";case R:return"SuspenseList";case H:return"TracingMarker";default:const{type:t}=e;return"string"==typeof t?t:"function"==typeof t?le(t,"Anonymous"):null!=t?"NotImplementedInDevtools":"Element"}}const me=50;function ge(e,t=me){return e.length>t?e.slice(0,t)+"…":e}function ye(e,t){if(null!=e&&te.call(e,be.type))return t?e[be.preview_long]:e[be.preview_short];switch(de(e)){case"html_element":return`<${ge(e.tagName.toLowerCase())} />`;case"function":return ge(`ƒ ${"function"==typeof e.name?"":e.name}() {}`);case"string":return`"${e}"`;case"bigint":return ge(e.toString()+"n");case"regexp":case"symbol":return ge(e.toString());case"react_element":return`<${ge(he(e)||"Unknown")} />`;case"array_buffer":return`ArrayBuffer(${e.byteLength})`;case"data_view":return`DataView(${e.buffer.byteLength})`;case"array":if(t){let t="";for(let n=0;n0&&(t+=", "),t+=ye(e[n],!1),!(t.length>me));n++);return`[${ge(t)}]`}return`Array(${te.call(e,be.size)?e[be.size]:e.length})`;case"typed_array":const n=`${e.constructor.name}(${e.length})`;if(t){let t="";for(let n=0;n0&&(t+=", "),t+=e[n],!(t.length>me));n++);return`${n} [${ge(t)}]`}return n;case"iterator":const r=e.constructor.name;if(t){const t=Array.from(e);let n="";for(let e=0;e0&&(n+=", "),ee(r)?n+=`${ye(r[0],!0)} => ${ye(r[1],!1)}`:n+=ye(r,!1),n.length>me)break}return`${r}(${e.size}) {${ge(n)}}`}return`${r}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":return e.constructor.name;case"object":if(t){const t=Array.from(ie(e)).sort(oe);let n="";for(let r=0;r0&&(n+=", "),n+=`${o.toString()}: ${ye(e[o],!1)}`,n.length>me)break}return`{${ge(n)}}`}return"{…}";case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return e;default:try{return ge(String(e))}catch(e){return"unserializable"}}}const ve=e=>{const t=Object.getPrototypeOf(e);return!t||!Object.getPrototypeOf(t)},be={inspectable:Symbol("inspectable"),inspected:Symbol("inspected"),name:Symbol("name"),preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),readonly:Symbol("readonly"),size:Symbol("size"),type:Symbol("type"),unserializable:Symbol("unserializable")},we=2;function _e(e,t,n,r,o){r.push(o);const i={inspectable:t,type:e,preview_long:ye(n,!0),preview_short:ye(n,!1),name:n.constructor&&"Object"!==n.constructor.name?n.constructor.name:""};return"array"===e||"typed_array"===e?i.size=n.length:"object"===e&&(i.size=Object.keys(n).length),"iterator"!==e&&"typed_array"!==e||(i.readonly=!0),i}function Se(e,t,n,r,o,i=0){const s=de(e);let l;switch(s){case"html_element":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:e.tagName,type:s};case"function":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:"function"!=typeof e.name&&e.name?e.name:"function",type:s};case"string":return l=o(r),l||e.length<=500?e:e.slice(0,500)+"...";case"bigint":case"symbol":case"date":case"regexp":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:e.toString(),type:s};case"react_element":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:he(e)||"Unknown",type:s};case"array_buffer":case"data_view":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:"data_view"===s?"DataView":"ArrayBuffer",size:e.byteLength,type:s};case"array":return l=o(r),i>=we&&!l?_e(s,!0,e,t,r):e.map(((e,s)=>Se(e,t,n,r.concat([s]),o,l?1:i+1)));case"html_all_collection":case"typed_array":case"iterator":if(l=o(r),i>=we&&!l)return _e(s,!0,e,t,r);{const a={unserializable:!0,type:s,readonly:!0,size:"typed_array"===s?e.length:void 0,preview_short:ye(e,!1),preview_long:ye(e,!0),name:e.constructor&&"Object"!==e.constructor.name?e.constructor.name:""};return Array.from(e).forEach(((e,s)=>a[s]=Se(e,t,n,r.concat([s]),o,l?1:i+1))),n.push(r),a}case"opaque_iterator":return t.push(r),{inspectable:!1,preview_short:ye(e,!1),preview_long:ye(e,!0),name:e[Symbol.toStringTag],type:s};case"object":if(l=o(r),i>=we&&!l)return _e(s,!0,e,t,r);{const s={};return ie(e).forEach((a=>{const u=a.toString();s[u]=Se(e[a],t,n,r.concat([u]),o,l?1:i+1)})),s}case"class_instance":if(l=o(r),i>=we&&!l)return _e(s,!0,e,t,r);const a={unserializable:!0,type:s,readonly:!0,preview_short:ye(e,!1),preview_long:ye(e,!0),name:e.constructor.name};return ie(e).forEach((s=>{const u=s.toString();a[u]=Se(e[s],t,n,r.concat([u]),o,l?1:i+1)})),n.push(r),a;case"infinity":case"nan":case"undefined":return t.push(r),{type:s};default:return e}}const Ee=Array.isArray,Ce=function(e){return Ee(e)},ke="999.9.9";function Ie(e,t,n=[]){if(null!==e){const r=[],o=[];return{data:Se(e,r,o,n,t),cleaned:r,unserializable:o}}return null}function Oe(e,t,n=0){const r=t[n],o=Ce(e)?e.slice():{...e};return n+1===t.length?Ce(o)?o.splice(r,1):delete o[r]:o[r]=Oe(e[r],t,n+1),o}function De(e,t,n,r=0){const o=t[r],i=Ce(e)?e.slice():{...e};return r+1===t.length?(i[n[r]]=i[o],Ce(i)?i.splice(o,1):delete i[o]):i[o]=De(e[o],t,n,r+1),i}function Pe(e,t,n,r=0){if(r>=t.length)return n;const o=t[r],i=Ce(e)?e.slice():{...e};return i[o]=Pe(e[o],t,n,r+1),i}function xe(e,...t){const n=t.slice();let r=String(e);if("string"==typeof e&&n.length){const e=/(%?)(%([jds]))/g;r=r.replace(e,((e,t,r,o)=>{let i=n.shift();switch(o){case"s":i+="";break;case"d":case"i":i=parseInt(i,10).toString();break;case"f":i=parseFloat(i).toString()}return t?(n.unshift(i),e):i}))}if(n.length)for(let e=0;e-1}function Re(e){if(-1===e.indexOf(":"))return null;const t=e.replace(/^\(+/,"").replace(/\)+$/,""),n=/(at )?(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);if(null==n)return null;const[,,r,o,i]=n;return{sourceURL:r,line:o,column:i}}const Fe=/^\s*at .*(\S+:\d+|\(native\))/m;var Ae=n(987);const He=60111,Le="Symbol(react.concurrent_mode)",Me=60110,$e="Symbol(react.context)",ze="Symbol(react.server_context)",je="Symbol(react.async_mode)",Ue=60112,Ve="Symbol(react.forward_ref)",Be=60115,We="Symbol(react.memo)",Ge=60114,Ye="Symbol(react.profiler)",Qe=60109,qe="Symbol(react.provider)",Ke="Symbol(react.consumer)",Je=60119,Xe="Symbol(react.scope)",Ze=60108,et="Symbol(react.strict_mode)",tt=Symbol.for("react.memo_cache_sentinel"),nt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},rt=Object.prototype.hasOwnProperty;let ot,it,st,lt,at,ut,ct,ft,pt=0;function dt(){}function ht(e){if(void 0===ft)try{throw Error()}catch(e){const t=e.stack.trim().match(/\n( *(at )?)/);ft=t&&t[1]||""}return"\n"+ft+e}dt.__reactDisabledLog=!0;let mt,gt=!1;{const e="function"==typeof WeakMap?WeakMap:Map;mt=new e}function yt(e,t,n){if(!e||gt)return"";{const t=mt.get(e);if(void 0!==t)return t}const r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,gt=!0;const o=n.H;n.H=null,function(){if(0===pt){ot=console.log,it=console.info,st=console.warn,lt=console.error,at=console.group,ut=console.groupCollapsed,ct=console.groupEnd;const e={configurable:!0,enumerable:!0,value:dt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pt++}();const i={DetermineComponentFrameRoot(){let n;try{if(t){const t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}const t=e();t&&"function"==typeof t.catch&&t.catch((()=>{}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";const s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});try{const[t,n]=i.DetermineComponentFrameRoot();if(t&&n){const r=t.split("\n"),o=n.split("\n");let i=0,s=0;for(;i=1&&s>=0&&r[i]!==o[s];)s--;for(;i>=1&&s>=0;i--,s--)if(r[i]!==o[s]){if(1!==i||1!==s)do{if(i--,s--,s<0||r[i]!==o[s]){let t="\n"+r[i].replace(" at new "," at ");return e.displayName&&t.includes("")&&(t=t.replace("",e.displayName)),"function"==typeof e&&mt.set(e,t),t}}while(i>=1&&s>=0);break}}}finally{gt=!1,Error.prepareStackTrace=r,n.H=o,function(){if(pt--,0===pt){const e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:{...e,value:ot},info:{...e,value:it},warn:{...e,value:st},error:{...e,value:lt},group:{...e,value:at},groupCollapsed:{...e,value:ut},groupEnd:{...e,value:ct}})}pt<0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}()}const l=e?e.displayName||e.name:"",a=l?ht(l):"";return"function"==typeof e&&mt.set(e,a),a}function vt(e,t){return yt(e,!1,t)}function bt(e,t,n){const{HostComponent:r,LazyComponent:o,SuspenseComponent:i,SuspenseListComponent:s,FunctionComponent:l,IndeterminateComponent:a,SimpleMemoComponent:u,ForwardRef:c,ClassComponent:f}=e;switch(t.tag){case r:return ht(t.type);case o:return ht("Lazy");case i:return ht("Suspense");case s:return ht("SuspenseList");case l:case a:case u:return vt(t.type,n);case c:return vt(t.type.render,n);case f:return function(e,t){return yt(e,!0,t)}(t.type,n);default:return""}}function wt(e,t,n){try{let o="",i=t;do{o+=bt(e,i,n);const t=i._debugInfo;if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];"string"==typeof n.name&&(o+=ht(n.name+((r=n.env)?" ("+r+")":"")))}i=i.return}while(i);return o}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}var r}function _t(e){if(void 0===e.currentDispatcherRef)return;const t=e.currentDispatcherRef;return void 0===t.H&&void 0!==t.current?{get H(){return t.current},set H(e){t.current=e}}:t}const St="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();function Et(e,t){let n={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};Ne(e,"17.0.2")&&(n={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});let r=0;Te(e,"18.0.0-alpha")?r=24:Te(e,"16.9.0")?r=1:Te(e,"16.3.0")&&(r=2);let o=null;function i(e){const t="object"==typeof e&&null!==e?e.$$typeof:e;return"symbol"==typeof t?t.toString():t}o=Ne(e,"17.0.1")?{CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:26,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:25,YieldComponent:-1}:Te(e,"17.0.0-alpha")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1}:Te(e,"16.6.0-beta.0")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1}:Te(e,"16.4.3-alpha")?{CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostHoistable:-1,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:-1}:{CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:9};const{CacheComponent:s,ClassComponent:l,IncompleteClassComponent:a,IncompleteFunctionComponent:u,FunctionComponent:c,IndeterminateComponent:f,ForwardRef:p,HostRoot:d,HostHoistable:h,HostSingleton:m,HostComponent:g,HostPortal:y,HostText:v,Fragment:b,LazyComponent:w,LegacyHiddenComponent:_,MemoComponent:S,OffscreenComponent:E,Profiler:C,ScopeComponent:k,SimpleMemoComponent:I,SuspenseComponent:O,SuspenseListComponent:D,TracingMarkerComponent:P}=o;function x(e){switch(i(e)){case Be:case We:return x(e.type);case Ue:case Ve:return e.render;default:return e}}function N(e,t){if(window.componentFunctionDetailsPerPoint?.has(t)){const n=window.componentFunctionDetailsPerPoint.get(t);n?.fiberIds.includes(e)||n?.fiberIds?.push(e)}else{const n={minifiedDisplayName:null,fiberIds:[e]};window.componentFunctionDetailsPerPoint?.set(t,n)}}return{getDisplayNameForFiber:function e(n,r=!1){const{elementType:o,type:T,tag:R}=n,F=t(n);if(void 0===F)throw new Error("Could not find fiberId for fiber");let A=T;"object"==typeof T&&null!==T&&(A=x(T));let H=null;if(!r&&(null!=n.updateQueue?.memoCache||n.memoizedState?.memoizedState?.[tt])){const t=e(n,!0);return null==t?null:`Forget(${t})`}switch(R){case s:return"Cache";case l:case a:case u:case c:case f:return N(F,A),le(A);case p:return N(F,A),se(o,A,"ForwardRef","Anonymous");case d:const e=n.stateNode;return null!=e&&null!==e._debugRootType?e._debugRootType:null;case g:case m:case h:return T;case y:case v:return null;case b:return"Fragment";case w:return"Lazy";case S:case I:return N(F,A),se(o,A,"Memo","Anonymous");case O:return"Suspense";case _:return"LegacyHidden";case E:return"Offscreen";case k:return"Scope";case D:return"SuspenseList";case C:return"Profiler";case P:return"TracingMarker";default:const t=i(T);if(window.nonComponentFiberTypesPerPoint?.has(T)){const e=window.nonComponentFiberTypesPerPoint.get(T);e?.fiberIds.includes(F)||e?.fiberIds.push(F)}else{const e={fiberIds:[F]};window.nonComponentFiberTypesPerPoint?.set(T,e)}switch(t){case He:case Le:case je:return null;case Qe:case qe:return H=n.type._context||n.type.context,`${H.displayName||"Context"}.Provider`;case Me:case $e:case ze:return void 0===n.type._context&&n.type.Provider===n.type?(H=n.type,`${H.displayName||"Context"}.Provider`):(H=n.type._context||n.type,`${H.displayName||"Context"}.Consumer`);case Ke:return H=n.type._context,`${H.displayName||"Context"}.Consumer`;case Ze:case et:return null;case Ge:case Ye:return`Profiler(${n.memoizedProps.id})`;case Je:case Xe:return"Scope";default:return null}}},getTypeSymbol:i,ReactPriorityLevels:n,ReactTypeOfWork:o,StrictModeBits:r}}const Ct=new Map,kt=new Map,It=new WeakMap;function Ot(e,n,p,d){const h=p.reconcilerVersion||p.version,{getDisplayNameForFiber:m,getTypeSymbol:g,ReactPriorityLevels:y,ReactTypeOfWork:v,StrictModeBits:b}=Et(h,xt),{CacheComponent:w,ClassComponent:_,ContextConsumer:S,DehydratedSuspenseComponent:E,ForwardRef:C,Fragment:k,FunctionComponent:I,HostRoot:O,HostHoistable:D,HostSingleton:P,HostPortal:x,HostComponent:N,HostText:T,IncompleteClassComponent:R,IncompleteFunctionComponent:F,IndeterminateComponent:A,LegacyHiddenComponent:H,MemoComponent:ee,OffscreenComponent:te,SimpleMemoComponent:ne,SuspenseComponent:oe,SuspenseListComponent:ie,TracingMarkerComponent:se}=v,{ImmediatePriority:le,UserBlockingPriority:de,NormalPriority:he,LowPriority:me,IdlePriority:ge,NoPriority:ye}=y,{getLaneLabelMap:ve,injectProfilingHooks:be,overrideHookState:we,overrideHookStateDeletePath:_e,overrideHookStateRenamePath:Se,overrideProps:Ee,overridePropsDeletePath:Ce,overridePropsRenamePath:ke,scheduleRefresh:Ne,setErrorHandler:Te,setSuspenseHandler:ze,scheduleUpdate:Ue}=p,Ve="function"==typeof Te&&"function"==typeof Ue,Be="function"==typeof ze&&"function"==typeof Ue;"function"==typeof Ne&&(p.scheduleRefresh=(...t)=>{try{e.emit("fastRefreshScheduled")}finally{return Ne(...t)}});const We=new Set,Je=new Map,Xe=new Map,tt=new Map,ot=new Map;function it(e,t,n){const r=kt.get(e);null!=r&&(Je.delete(r),n.has(e)?(n.delete(e),We.add(r),cn(),at(e)):We.delete(r))}function st(e){it(e,0,tt)}function lt(e){it(e,0,ot)}function at(e){null!==xn&&xn.id===e&&(Nn=!0)}(function(e,t){const{currentDispatcherRef:n,getCurrentFiber:r,findFiberByHostInstance:o,version:i}=e;if("function"==typeof o&&null!=n&&"function"==typeof r){const{ReactTypeOfWork:o}=Et(i);Ht.set(e,{currentDispatcherRef:n,getCurrentFiber:r,workTagMap:o,onErrorOrWarning:t})}})(p,(function(e,r,o){if("error"===r){const t=Tt(e);if(null!=t&&!0===Wn.get(t))return}const i=xe(...o);t&&ut("onErrorOrWarning",e,null,`${r}: "${i}"`),We.add(e);const s="error"===r?Je:Xe,l=s.get(e);if(null!=l){const e=l.get(i)||0;l.set(i,e+1)}else s.set(e,new Map([[i,1]]));ln(),sn=setTimeout((()=>{if(sn=null,qt.length>0)return;if(un(),rn())return;const e=new Array(3+qt.length);e[0]=n,e[1]=Dt,e[2]=0;for(let t=0;t{if(t){const t=n.tag+":"+(m(n)||"null"),i=Tt(n)||"",s=r?r.tag+":"+(m(r)||"null"):"",l=r?Tt(r)||"":"";console.groupCollapsed(`[renderer] %c${e} %c${t} (${i}) %c${r?`${s} (${l})`:""} %c${o}`,"color: red; font-weight: bold;","color: blue;","color: purple;","color: black;"),console.log((new Error).stack.split("\n").slice(1).join("\n")),console.groupEnd()}},ct=new Set,ft=new Set,pt=new Set;let dt=!1;const ht=new Set;function mt(e){pt.clear(),ct.clear(),ft.clear(),e.forEach((e=>{if(e.isEnabled)switch(e.type){case K:e.isValid&&""!==e.value&&ct.add(new RegExp(e.value,"i"));break;case q:pt.add(e.value);break;case J:e.isValid&&""!==e.value&&ft.add(new RegExp(e.value,"i"));break;case X:ct.add(new RegExp("\\("));break;default:console.warn(`Invalid component filter type "${e.type}"`)}}))}var gt;function yt(e){const{tag:t,type:n,key:r}=e;switch(t){case E:case x:case T:case H:case te:return!0;case O:return!1;case k:return null===r;default:switch(g(n)){case He:case Le:case je:case Ze:case et:return!0}}const o=vt(e);if(pt.has(o))return!0;if(ct.size>0){const t=m(e);if(null!=t)for(const e of ct)if(e.test(t))return!0}return!1}function vt(e){const{type:t,tag:n}=e;switch(n){case _:case R:return L;case F:case I:case A:return $;case C:return z;case O:return W;case N:case D:case P:return j;case x:case T:case k:return V;case ee:case ne:return U;case oe:return G;case ie:return Y;case se:return Q;default:switch(g(t)){case He:case Le:case je:return V;case Qe:case qe:case Me:case $e:return M;case Ze:case et:return V;case Ge:case Ye:return B;default:return V}}}null!=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__?mt((gt=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__,Array.isArray(gt)?gt.filter((e=>e.type!==J)):gt)):mt([{type:q,value:j,isEnabled:!0}]);const bt=new Map,Ot=new Map;let Dt=-1;function Pt(e){const t=__RECORD_REPLAY_ARGUMENTS__.getPersistentId(e);if(null==t)throw new Error("Missing persistent ID for fiber");return t}function xt(e){const t=function(e){const t=Pt(e);let n;if(e.alternate?n=e.alternate:window.unmountedFiberAlternates?.has(e)&&(n=window.unmountedFiberAlternates.get(e)),!n)return t;const r=Pt(n);return Math.min(t,r)}(e),n=t;Ct.has(e)||(Ct.set(e,n),kt.set(n,e));const{alternate:r}=e;return null!==r&&(Ct.has(r)||Ct.set(r,n)),n}function Nt(e){const t=Tt(e);if(null!==t)return t;throw Error(`Could not find ID for Fiber "${m(e)||""}"`)}function Tt(e){if(Ct.has(e))return Ct.get(e);{const{alternate:t}=e;if(null!==t&&Ct.has(t))return Ct.get(t)}return null}const Rt=new Set;let Ft=null;function At(){null!==Ft&&(clearTimeout(Ft),Ft=null),Rt.forEach((e=>{const t=Tt(e);null!==t&&(kt.delete(t),st(t),lt(t)),Ct.delete(e),It.delete(e);const{alternate:n}=e;null!==n&&(Ct.delete(n),It.delete(n)),Wn.has(t)&&(Wn.delete(t),0===Wn.size&&null!=Te&&Te(Bn))})),Rt.clear()}function Lt(e){switch(vt(e)){case L:case z:case $:case U:if(null!==Ln){const t=Nt(e),n=$t(e);null!==n&&Ln.set(t,n)}}}const Mt={};function $t(e){let t=Mt,n=Mt;switch(vt(e)){case L:const r=e.stateNode;return null!=r&&(r.constructor&&null!=r.constructor.contextType?n=r.context:(t=r.context,t&&0===Object.keys(t).length&&(t=Mt))),[t,n];case z:case $:case U:const o=e.dependencies;return o&&o.firstContext&&(n=o.firstContext),[t,n];default:return null}}function zt(e){if(null!==Tt(e)){Lt(e);let t=e.child;for(;null!==t;)zt(t),t=t.sibling}}function jt(e){if(null!==Ln){const t=Nt(e),n=Ln.has(t)?Ln.get(t):null,r=$t(e);if(null==n||null==r)return null;const[o,i]=n,[s,l]=r;switch(vt(e)){case L:if(n&&r){if(s!==Mt)return Yt(o,s);if(l!==Mt)return i!==l}break;case z:case $:case U:if(l!==Mt){let e=i,t=l;for(;e&&t;){if(!nt(e.memoizedValue,t.memoizedValue))return!0;e=e.next,t=t.next}return!1}}}return null}function Vt(e,t){const n=e.memoizedState,r=t.memoizedState;return!!function(e){const t=e.queue;if(!t)return!1;const n=rt.bind(t);return!!n("pending")||n("value")&&n("getSnapshot")&&"function"==typeof t.getSnapshot}(e)&&n!==r}function Gt(e,t){if(null==e||null==t)return null;const n=[];let r=0;if(t.hasOwnProperty("baseState")&&t.hasOwnProperty("memoizedState")&&t.hasOwnProperty("next")&&t.hasOwnProperty("queue"))for(;null!==t;)Vt(e,t)&&n.push(r),t=t.next,e=e.next,r++;return n}function Yt(e,t){if(null==e||null==t)return null;if(t.hasOwnProperty("baseState")&&t.hasOwnProperty("memoizedState")&&t.hasOwnProperty("next")&&t.hasOwnProperty("queue"))return null;const n=new Set([...Object.keys(e),...Object.keys(t)]),r=[];for(const o of n)e[o]!==t[o]&&r.push(o);return r}function Qt(e,t){switch(t.tag){case _:case I:case S:case ee:case ne:case C:const r=1;return((void 0!==(n=t).flags?n.flags:n.effectTag)&r)===r;default:return e.memoizedProps!==t.memoizedProps||e.memoizedState!==t.memoizedState||e.ref!==t.ref}var n}const qt=[],Kt=[],Jt=[];let Xt=[];const Zt=new Map;let en=0,tn=null;function nn(e){Number.isInteger(e)||console.error("pushOperation() was called but the value is not an integer.",e),qt.push(e)}function rn(){return!(zn&&null!=An&&An.durations.length>0)&&0===qt.length&&0===Kt.length&&0===Jt.length&&null===tn}function on(t){rn()||(null!==Xt?Xt.push(t):e.emit("operations",t))}let sn=null;function ln(){null!==sn&&(clearTimeout(sn),sn=null)}function an(e,t,n,r){let o=0,i=r.get(t);const s=n.get(e);if(null!=s)if(null==i)i=s,r.set(t,s);else{const e=i;s.forEach(((t,n)=>{const r=e.get(n)||0;e.set(n,r+t)}))}return yt(e)||null!=i&&i.forEach((e=>{o+=e})),n.delete(e),o}function un(){ln(),We.forEach((e=>{const t=Tt(e);if(null===t);else{const n=an(e,t,Je,tt),r=an(e,t,Xe,ot);nn(l),nn(t),nn(n),nn(r)}Je.delete(e),Xe.delete(e)})),We.clear()}function cn(e){if(un(),rn())return;const t=Kt.length+Jt.length+(null===tn?0:1),r=new Array(3+en+(t>0?2+t:0)+qt.length);let i=0;if(r[i++]=n,r[i++]=Dt,r[i++]=en,Zt.forEach(((e,t)=>{const n=e.encodedString,o=n.length;r[i++]=o;for(let e=0;e0){r[i++]=o,r[i++]=t;for(let e=Kt.length-1;e>=0;e--)r[i++]=Kt[e];for(let e=0;e0,n}default:return null}}(o,e);null!==n&&null!==s.changeDescriptions&&s.changeDescriptions.set(t,n),Lt(e)}}}}function yn(e,t){if(yt(e)){let n=e.child;if(e.tag===oe&&null!==e.memoizedState){const t=e.child,r=t?t.sibling:null,o=r?r.child:null;null!==o&&(n=o)}for(;null!==n;)yn(n,t),n=n.sibling}else t.push(Nt(e))}function vn(e,n,r,o){const s=xt(e);t&&ut("updateFiberRecursively()",e,r);const l=Qt(n,e);if(dt){const t=vt(e);o?t===j&&(ht.add(e.stateNode),o=!1):t!==$&&t!==L&&t!==M&&t!==U&&t!==z||(o=l)}null!==xn&&xn.id===s&&fiberRenderered&&(Nn=!0);const a=!yt(e);l&&a&&window.fiberIdsUpdatedThisCommit?.add(s);const u=e.tag===oe;let c=!1;const f=u&&null!==n.memoizedState,p=u&&null!==e.memoizedState;if(f&&p){const t=e.child,i=t?t.sibling:null,s=n.child,l=s?s.sibling:null;null==l&&null!=i&&(hn(i,a?e:r,!0,o),c=!0),null!=i&&null!=l&&vn(i,l,e,o)&&(c=!0)}else if(f&&!p){const t=e.child;null!==t&&hn(t,a?e:r,!0,o),c=!0}else if(!f&&p){mn(n);const t=e.child,i=t?t.sibling:null;null!=i&&(hn(i,a?e:r,!0,o),c=!0)}else if(e.child!==n.child){let t=e.child,i=n.child;for(;t;){if(t.alternate){const n=t.alternate;vn(t,n,a?e:r,o)&&(c=!0),n!==i&&(c=!0)}else hn(t,a?e:r,!1,o),c=!0;t=t.sibling,c||null===i||(i=i.sibling)}null!==i&&(c=!0)}else dt&&o&&_n(Nt(e)).forEach((e=>{ht.add(e.stateNode)}));if(a&&e.hasOwnProperty("treeBaseDuration")&&gn(e),c){if(a){let n=e.child;if(p){const t=e.child;n=t?t.sibling:null}return null!=n&&function(e,n){t&&ut("recordResetChildren()",n,e);const r=[];let o=n;for(;null!==o;)yn(o,r),o=o.sibling;const s=r.length;if(!(s<2)){nn(i),nn(Nt(e)),nn(s);for(let e=0;enull!==Tt(e))).map(In):null}function _n(e){const t=[],n=kn(e);if(!n)return t;let r=n;for(;;){if(r.tag===N||r.tag===T)t.push(r);else if(r.child){r.child.return=r,r=r.child;continue}if(r===n)return t;for(;!r.sibling;){if(!r.return||r.return===n)return t;r=r.return}r.sibling.return=r.return,r=r.sibling}return t}function Sn(e){try{return null===kn(e)?null:_n(e).map((e=>e.stateNode)).filter(Boolean)}catch(e){return null}}function En(e){if(Cn(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Cn(e){let t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{let e=t;do{t=e;const r=2,o=4096;0!=(t.flags&(r|o))&&(n=t.return),e=t.return}while(e)}return t.tag===O?n:null}function kn(e){const t=kt.get(e);if(null==t)return console.warn(`Could not find Fiber with id "${e}"`),null;const n=t.alternate;if(!n){const e=Cn(t);if(null===e)throw new Error("Unable to find node on an unmounted component.");return e!==t?null:t}let r=t,o=n;for(;;){const e=r.return;if(null===e)break;const i=e.alternate;if(null===i){const t=e.return;if(null!==t){r=o=t;continue}break}if(e.child===i.child){let i=e.child;for(;i;){if(i===r)return En(e),t;if(i===o)return En(e),n;i=i.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=e,o=i;else{let t=!1,n=e.child;for(;n;){if(n===r){t=!0,r=e,o=i;break}if(n===o){t=!0,o=e,r=i;break}n=n.sibling}if(!t){for(n=i.child;n;){if(n===r){t=!0,r=i,o=e;break}if(n===o){t=!0,o=i,r=e;break}n=n.sibling}if(!t)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==O)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?t:n}function In(e){return{displayName:m(e)||"Anonymous",id:Nt(e),key:e.key,type:vt(e)}}function On(e){const{tag:t,type:n}=e;switch(t){case _:case R:const t=e.stateNode;return"function"==typeof n.getDerivedStateFromError||null!==t&&"function"==typeof t.componentDidCatch;default:return!1}}function Dn(e){let t=e.return;for(;null!==t;){if(On(t))return Tt(t);t=t.return}return null}function Pn(e){const t=kn(e);if(null==t)return null;const{_debugOwner:n,stateNode:r,key:o,memoizedProps:i,memoizedState:s,dependencies:l,tag:a,type:u}=t,c=vt(t),f=!(a!==I&&a!==ne&&a!==C||!s&&!l),d=!f&&a!==w,h=g(u);let y=!1,v=null;if(a===_||a===I||a===R||a===F||a===A||a===ee||a===C||a===ne)y=!0,r&&null!=r.context&&(c===L&&!u.contextTypes&&!u.contextType||(v=r.context));else if(h!==Me&&h!==$e||void 0===u._context&&u.Provider===u){if(h===Ke){const e=u._context;v=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type;if(g(t)===$e&&t===e){v=n.memoizedProps.value;break}n=n.return}}}else{const e=u._context||u;v=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type,r=g(t);if((r===Qe||r===qe)&&(t._context||t.context)===e){v=n.memoizedProps.value;break}n=n.return}}let b=!1;null!==v&&(b=!!u.contextTypes,v={value:v});let S=null,E=n;for(;null!=E&&"number"==typeof E.tag;){const e=E;null===S&&(S=[]),S.push(In(e)),E=e._debugOwner}const k=a===oe&&null!==s;let O=null;if(f){const e={};for(const t in console)try{e[t]=console[t],console[t]=()=>{}}catch(e){}try{O=(0,Ae.inspectHooksOfFiber)(t,_t(p))}finally{for(const t in e)try{console[t]=e[t]}catch(e){}}}let D=null,P=t;for(;null!==P.return;)P=P.return;const x=P.stateNode;null!=x&&null!==x._debugRootType&&(D=x._debugRootType);const N=tt.get(e)||new Map,T=ot.get(e)||new Map;let H,M=!1;if(On(t)){const n=128;M=0!=(t.flags&n)||!0===Wn.get(e),H=M?e:Dn(t)}else H=Dn(t);let $=null;return y&&($=cr(t)),{id:e,canEditHooks:"function"==typeof we,canEditFunctionProps:"function"==typeof Ee,canEditHooksAndDeletePaths:"function"==typeof _e,canEditHooksAndRenamePaths:"function"==typeof Se,canEditFunctionPropsDeletePaths:"function"==typeof Ce,canEditFunctionPropsRenamePaths:"function"==typeof ke,canToggleError:Ve&&null!=H,isErrored:M,targetErrorBoundaryID:H,canToggleSuspense:Be&&(!k||Qn.has(e)),canViewSource:y,source:$,hasLegacyContext:b,key:null!=o?o:null,displayName:m(t),type:c,context:v,hooks:O,props:i,state:d?s:null,errors:Array.from(N.entries()),warnings:Array.from(T.entries()),owners:S,rootType:D,rendererPackageName:p.rendererPackageName,rendererVersion:p.version,plugins:{stylex:null}}}let xn=null,Nn=!1,Tn={};function Rn(e){return null!==xn&&xn.id===e}function Fn(e,t){return function(n){if("hooks"===t){if(1===n.length)return!0;if("hookSource"===n[n.length-2]&&"fileName"===n[n.length-1])return!0;if("subHooks"===n[n.length-1]||"subHooks"===n[n.length-2])return!0}let r=null===e?Tn:Tn[e];if(!r)return!1;for(let e=0;e{if(null==e)return"Unknown";switch(e){case le:return"Immediate";case de:return"User-Blocking";case he:return"Normal";case me:return"Low";case ge:return"Idle";default:return"Unknown"}};function ur(e){let t=It.get(e);if(null==t){const n=_t(p);if(null==n)return null;t=wt(v,e,n),It.set(e,t)}return t}function cr(e){const t=ur(e);return null==t?null:function(e){return e.match(Fe)?function(e){const t=e.split("\n");for(const e of t){const t=e.trim(),n=t.match(/ (\(.+\)$)/),r=Re(n?n[1]:t);if(null==r)continue;const{sourceURL:o,line:i="1",column:s="1"}=r;return{sourceURL:o,line:parseInt(i,10),column:parseInt(s,10)}}return null}(e):function(e){const t=e.split("\n");for(const e of t){const t=Re(e.trim().replace(/((.*".+"[^@]*)?[^@]*)(?:@)/,""));if(null==t)continue;const{sourceURL:n,line:r="1",column:o="1"}=t;return{sourceURL:n,line:parseInt(r,10),column:parseInt(o,10)}}return null}(e)}(t)}return{cleanup:function(){},clearErrorsAndWarnings:function(){for(const e of tt.keys()){const t=kt.get(e);null!=t&&(We.add(t),at(e))}for(const e of ot.keys()){const t=kt.get(e);null!=t&&(We.add(t),at(e))}tt.clear(),ot.clear(),cn()},clearErrorsForFiberID:st,clearWarningsForFiberID:lt,getSerializedElementValueByPath:function(e,t){if(Rn(e))return function(e){if(void 0===e)return"undefined";if("function"==typeof e)return e.toString();const t=new Set;return JSON.stringify(e,((e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return;t.add(n)}return"bigint"==typeof n?n.toString()+"n":n}),2)}(ue(xn,t))},deletePath:function(e,t,n,r){const o=kn(t);if(null!==o){const t=o.stateNode;switch(e){case"context":r=r.slice(1),o.tag===_&&(0===r.length||ce(t.context,r),t.forceUpdate());break;case"hooks":"function"==typeof _e&&_e(o,n,r);break;case"props":null===t?"function"==typeof Ce&&Ce(o,r):(o.pendingProps=Oe(t.props,r),t.forceUpdate());break;case"state":ce(t.state,r),t.forceUpdate()}}},findNativeNodesForFiberID:Sn,flushInitialOperations:function(){const t=Xt;Xt=null,null!==t&&t.length>0?t.forEach((t=>{e.emit("operations",t)})):(null!==Kn&&(Zn=!0),e.getFiberRoots(n).forEach((e=>{Dt=xt(e.current),ir(Dt,e.current),zn&&bn(e)&&(An={changeDescriptions:Un?new Map:null,durations:[],commitTime:St()-jn,maxActualDuration:0,priorityLevel:null,updaters:wn(e),effectDuration:null,passiveEffectDuration:null}),hn(e.current,null,!1,!1),cn(),Dt=-1})))},flushPendingEvents:cn,getBestMatchForTrackedPath:function(){if(null===Kn)return null;if(null===Jn)return null;let e=Jn;for(;null!==e&&yt(e);)e=e.return;return null===e?null:{id:Nt(e),isFullMatch:Xn===Kn.length-1}},getDisplayNameForFiber:m,getComponentStackForFiber:ur,getSourceForFiber:cr,getDisplayNameForFiberID:function(e){const t=kt.get(e);return null!=t?m(t):null},getElementTypeForFiber:vt,getFiberForNative:function(e){return p.findFiberByHostInstance(e)},getFiberIDForNative:function(e,t=!1){let n=p.findFiberByHostInstance(e);if(null!=n){if(t)for(;null!==n&&yt(n);)n=n.return;return Nt(n)}return null},getFiberIDUnsafe:Tt,getInstanceAndStyle:function(e){let t=null,n=null;const r=kn(e);return null!==r&&(t=r.stateNode,null!==r.memoizedProps&&(n=r.memoizedProps.style)),{instance:t,style:n}},getOrGenerateFiberID:xt,getOwnersList:function(e){const t=kn(e);if(null==t)return null;const n=[In(t)];let r=t._debugOwner;for(;null!=r&&"number"==typeof r.tag;){const e=r;n.unshift(In(e)),r=e._debugOwner}return n},getPathForElement:function(e){let t=kt.get(e);if(null==t)return null;const n=[];for(;null!==t;)n.push(lr(t)),t=t.return;return n.reverse(),n},getProfilingData:function(){const e=[];if(null===Vn)throw Error("getProfilingData() called before any profiling data was recorded");return Vn.forEach(((t,n)=>{const r=[],o=[],i=null!==Hn&&Hn.get(n)||"Unknown";null!=Mn&&Mn.forEach(((e,t)=>{null!=$n&&$n.get(t)===n&&o.push([t,e])})),t.forEach(((e,t)=>{const{changeDescriptions:n,durations:o,effectDuration:i,maxActualDuration:s,passiveEffectDuration:l,priorityLevel:a,commitTime:u,updaters:c}=e,f=[],p=[];for(let e=0;e1?or.set(n,r-1):or.delete(n),rr.delete(e)}(Dt),dn(r,!1))}else ir(Dt,r),hn(r,null,!1,!1);if(zn&&i&&!rn()){const e=Vn.get(Dt);null!=e?e.push(An):Vn.set(Dt,[An])}cn(),dt&&e.emit("traceUpdates",ht),Dt=-1},handleCommitFiberUnmount:function(e){Rt.has(e)||dn(e,!1)},handlePostCommitFiberRoot:function(e){if(zn&&bn(e)&&null!==An){const{effectDuration:t,passiveEffectDuration:n}=function(e){let t=null,n=null;const r=e.current;if(null!=r){const e=r.stateNode;null!=e&&(t=null!=e.effectDuration?e.effectDuration:null,n=null!=e.passiveEffectDuration?e.passiveEffectDuration:null)}return{effectDuration:t,passiveEffectDuration:n}}(e);An.effectDuration=t,An.passiveEffectDuration=n}},hasFiberWithId:function(e){return kt.has(e)},inspectElement:function(e,t,n,r){if(null!==n&&function(e){let t=Tn;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),Rn(t)&&!r){if(!Nn){if(null!==n){let r=null;return"hooks"===n[0]&&(r="hooks"),{id:t,responseID:e,type:"hydrated-path",path:n,value:Ie(ue(xn,n),Fn(null,r),n)}}return{id:t,responseID:e,type:"no-change"}}}else Tn={};Nn=!1;try{xn=Pn(t)}catch(n){if("ReactDebugToolsRenderError"===n.name){let r,o="Error rendering inspected element.";if(console.error(o+"\n\n",n),null!=n.cause){const e=kn(t),i=null!=e?m(e):null;console.error("React DevTools encountered an error while trying to inspect hooks. This is most likely caused by an error in current inspected component"+(null!=i?`: "${i}".`:".")+"\nThe error thrown in the component is: \n\n",n.cause),n.cause instanceof Error&&(o=n.cause.message||o,r=n.cause.stack)}return{type:"error",errorType:"user",id:t,responseID:e,message:o,stack:r}}return"ReactDebugToolsUnsupportedHookError"===n.name?{type:"error",errorType:"unknown-hook",id:t,responseID:e,message:"Unsupported hook in the react-debug-tools package: "+n.message}:(console.error("Error inspecting element.\n\n",n),{type:"error",errorType:"uncaught",id:t,responseID:e,message:n.message,stack:n.stack})}if(null===xn)return{id:t,responseID:e,type:"not-found"};!function(e){const{hooks:t,id:n,props:r}=e,o=kt.get(n);if(null==o)return void console.warn(`Could not find Fiber with id "${n}"`);const{elementType:i,stateNode:s,tag:l,type:a}=o;switch(l){case _:case R:case A:d.$r=s;break;case F:case I:d.$r={hooks:t,props:r,type:a};break;case C:d.$r={hooks:t,props:r,type:a.render};break;case ee:case ne:d.$r={hooks:t,props:r,type:null!=i&&null!=i.type?i.type:a};break;default:d.$r=null}}(xn);const o={...xn},i=e=>{if(__RECORD_REPLAY_ARGUMENTS__&&__RECORD_REPLAY_ARGUMENTS__.internal&&__RECORD_REPLAY_ARGUMENTS__.internal.registerPlainObject)try{return __RECORD_REPLAY_ARGUMENTS__.internal.registerPlainObject(e)}catch(e){console.error(e)}return null},s=kn(t);if(null==s)throw Error("Unexpected null");o.contextObjectId=o.context?i(o.context):null,o.hooksObjectId=o.hooks?i(o.hooks):null,o.propsObjectId=o.props?i(o.props):null,o.stateObjectId=o.state?i(o.state):null,o.typeObjectId=o.canViewSource?i(s.type):null;const l=e=>{const t=s.alternate;if(null!=t)switch(e){case"context":{const e=jt(s);if(Array.isArray(e))return e;break}case"props":return Yt(t.memoizedProps,s.memoizedProps)??[];case"state":return Yt(t.memoizedState,s.memoizedState)??[]}return[]};return o.changedContextKeys=l("context"),o.changedHooksIds=(()=>{const e=s.alternate;if(null!==e){const t=Gt(e.memoizedState,s.memoizedState);return null==t||0==t.length?[]:t}return[]})(),o.changedPropsKeys=l("props"),o.changedStateKeys=l("state"),o.context=Ie(o.context,Fn("context",null)),o.hooks=Ie(o.hooks,Fn("hooks","hooks")),o.props=Ie(o.props,Fn("props",null)),o.state=Ie(o.state,Fn("state",null)),{id:t,responseID:e,type:"full-data",value:o}},logElementToConsole:function(e){const t=function(e){return Rn(e)&&!Nn}(e)?xn:Pn(e);if(null===t)return void console.warn(`Could not find Fiber with id "${e}"`);const n="function"==typeof console.groupCollapsed;n&&console.groupCollapsed(`[Click to expand] %c<${t.displayName||"Component"} />`,"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.hooks&&console.log("Hooks:",t.hooks);const r=Sn(e);null!==r&&console.log("Nodes:",r),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),n&&console.groupEnd()},patchConsoleForStrictMode:Bt,prepareViewAttributeSource:function(e,t){Rn(e)&&(window.$attribute=ue(xn,t))},prepareViewElementSource:function(e){const t=kt.get(e);if(null==t)return void console.warn(`Could not find Fiber with id "${e}"`);const{elementType:n,tag:r,type:o}=t;switch(r){case _:case R:case F:case A:case I:d.$type=o;break;case C:d.$type=o.render;break;case ee:case ne:d.$type=null!=n&&null!=n.type?n.type:o;break;default:d.$type=null}},overrideError:function(e,t){if("function"!=typeof Te||"function"!=typeof Ue)throw new Error("Expected overrideError() to not get called for earlier React versions.");Wn.set(e,t),1===Wn.size&&Te(Gn);const n=kt.get(e);null!=n&&Ue(n)},overrideSuspense:function(e,t){if("function"!=typeof ze||"function"!=typeof Ue)throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");t?(Qn.add(e),1===Qn.size&&ze(qn)):(Qn.delete(e),0===Qn.size&&ze(Yn));const n=kt.get(e);null!=n&&Ue(n)},overrideValueAtPath:function(e,t,n,r,o){const i=kn(t);if(null!==i){const t=i.stateNode;switch(e){case"context":r=r.slice(1),i.tag===_&&(0===r.length?t.context=o:pe(t.context,r,o),t.forceUpdate());break;case"hooks":"function"==typeof we&&we(i,n,r,o);break;case"props":i.tag===_?(i.pendingProps=Pe(t.props,r,o),t.forceUpdate()):"function"==typeof Ee&&Ee(i,r,o);break;case"state":i.tag===_&&(pe(t.state,r,o),t.forceUpdate())}}},renamePath:function(e,t,n,r,o){const i=kn(t);if(null!==i){const t=i.stateNode;switch(e){case"context":r=r.slice(1),o=o.slice(1),i.tag===_&&(0===r.length||fe(t.context,r,o),t.forceUpdate());break;case"hooks":"function"==typeof Se&&Se(i,n,r,o);break;case"props":null===t?"function"==typeof ke&&ke(i,r,o):(i.pendingProps=De(t.props,r,o),t.forceUpdate());break;case"state":fe(t.state,r,o),t.forceUpdate()}}},renderer:p,setRootPseudoKey:ir,setTraceUpdatesEnabled:function(e){dt=e},setTrackedPath:er,shouldFilterFiber:yt,startProfiling:function(t){zn||(Un=t,Hn=new Map,Mn=new Map(bt),$n=new Map(Ot),Ln=new Map,e.getFiberRoots(n).forEach((e=>{const n=Nt(e.current);Hn.set(n,sr(e.current)),t&&zt(e.current)})),zn=!0,jn=St(),Vn=new Map)},shouldFilterFiber:yt,stopProfiling:function(){zn=!1,Un=!1},storeAsGlobal:function(e,t,n){if(Rn(e)){const e=ue(xn,t),r=`$reactTemp${n}`;window[r]=e,console.log(r),console.log(e)}},unpatchConsoleForStrictMode:Wt,updateComponentFilters:function(t){if(zn)throw Error("Cannot modify filter preferences while profiling");e.getFiberRoots(n).forEach((e=>{Dt=xt(e.current),nn(a),cn(),Dt=-1})),mt(t),or.clear(),e.getFiberRoots(n).forEach((e=>{Dt=xt(e.current),ir(Dt,e.current),hn(e.current,null,!1,!1),cn(),Dt=-1})),We.clear(),tt.forEach(((e,t)=>{const n=kt.get(t);null!=n&&We.add(n)})),ot.forEach(((e,t)=>{const n=kt.get(t);null!=n&&We.add(n)})),un(),cn()}}}const Dt=!0,Pt=["error","trace","warn"],xt="%s",Nt=/\s{4}(in|at)\s{1}/,Tt=/:\d+:\d+(\n|$)/,Rt=/^%c/;function Ft(e,t){return e.length>=2&&Rt.test(e[0])&&e[1]===`color: ${At(t)||""}`}function At(e){switch(e){case"warn":return"light"===jt.browserTheme?"rgba(250, 180, 50, 0.75)":"rgba(250, 180, 50, 0.5)";case"error":return"light"===jt.browserTheme?"rgba(250, 123, 130, 0.75)":"rgba(250, 123, 130, 0.5)";default:return"light"===jt.browserTheme?"rgba(125, 125, 125, 0.75)":"rgba(125, 125, 125, 0.5)"}}const Ht=new Map;let Lt=console,Mt={};for(const e in console)Mt[e]=console[e];let $t=null,zt=!1;try{zt=void 0===global}catch(e){}const jt={appendComponentStack:!1,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!1,hideConsoleLogsInStrictMode:!1,browserTheme:"dark"};function Ut({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o}){if(jt.appendComponentStack=e,jt.breakOnConsoleErrors=t,jt.showInlineWarningsAndErrors=n,jt.hideConsoleLogsInStrictMode=r,jt.browserTheme=o,e||t||n){if(null!==$t)return;const e={};$t=()=>{for(const t in e)try{Lt[t]=e[t]}catch(e){}},Pt.forEach((t=>{try{const n=e[t]=Lt[t].__REACT_DEVTOOLS_ORIGINAL_METHOD__?Lt[t].__REACT_DEVTOOLS_ORIGINAL_METHOD__:Lt[t],r=(...e)=>{let r=!1;if("log"!==t&&jt.appendComponentStack){const t=e.length>0?e[e.length-1]:null;r=!("string"==typeof t&&(o=t,Nt.test(o)||Tt.test(o)))}var o;const i=jt.showInlineWarningsAndErrors&&("error"===t||"warn"===t);for(const n of Ht.values()){const o=_t(n),{getCurrentFiber:s,onErrorOrWarning:l,workTagMap:a}=n,u=s();if(null!=u)try{if(i&&"function"==typeof l&&l(u,t,e.slice()),r&&!u._debugTask){const n=wt(a,u,o);""!==n&&(Ft(e,t)?(e[0]=`${e[0]} %s`,e.push(n)):e.push(n))}}catch(e){setTimeout((()=>{throw e}),0)}finally{break}}jt.breakOnConsoleErrors,n(...e)};r.__REACT_DEVTOOLS_ORIGINAL_METHOD__=n,n.__REACT_DEVTOOLS_OVERRIDE_METHOD__=r,Lt[t]=r}catch(e){}}))}else null!==$t&&($t(),$t=null)}let Vt=null;function Bt(){if(Dt){if(null!==Vt)return;const e={};Vt=()=>{for(const t in e)try{Lt[t]=e[t]}catch(e){}},["error","group","groupCollapsed","info","log","trace","warn"].forEach((t=>{try{const n=e[t]=Lt[t].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__?Lt[t].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__:Lt[t],r=(...e)=>{if(!jt.hideConsoleLogsInStrictMode)if(zt)n(xt,xe(...e));else{const i=At(t);if(!i)throw Error("Console color is not defined");n(...(r=e,o=`color: ${i}`,null==r||0===r.length||"string"==typeof r[0]&&r[0].match(/([^%]|^)(%c)/g)||void 0===o?r:"string"==typeof r[0]&&r[0].match(/([^%]|^)((%%)*)(%([oOdisf]))/g)?[`%c${r[0]}`,o,...r.slice(1)]:[r.reduce(((e,t,n)=>{switch(n>0&&(e+=" "),typeof t){case"string":case"boolean":case"symbol":return e+"%s";case"number":return e+(Number.isInteger(t)?"%i":"%f");default:return e+"%o"}}),"%c"),o,...r]))}var r,o};r.__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__=n,n.__REACT_DEVTOOLS_STRICT_MODE_OVERRIDE_METHOD__=r,Lt[t]=r}catch(e){}}))}}function Wt(){Dt&&null!==Vt&&(Vt(),Vt=null)}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yt=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],Qt=Yt[Yt.length-1],qt=class extends e{constructor(e){super(),Gt(this,"_isShutdown",!1),Gt(this,"_messageQueue",[]),Gt(this,"_timeoutID",null),Gt(this,"_wallUnlisten",null),Gt(this,"_flush",(()=>{if(null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null),this._messageQueue.length){for(let e=0;e{switch(r){case"context":this.send("overrideContext",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"hooks":this.send("overrideHookState",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"props":this.send("overrideProps",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"state":this.send("overrideState",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o})}})),this._wall=e,this._wallUnlisten=e.listen((e=>{e&&e.event&&this.emit(e.event,e.payload)}))||null,this.addListener("overrideValueAtPath",this.overrideValueAtPath)}get wall(){return this._wall}send(e,...t){this._isShutdown?console.warn(`Cannot send message "${e}" through a Bridge that has been shutdown.`):(this._messageQueue.push(e,t),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0)))}shutdown(){if(this._isShutdown)return void console.warn("Bridge was already shutdown.");this.emit("shutdown"),this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();const e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jt=(e,...n)=>{t&&console.log(`%cAgent %c${e}`,"color: purple; font-weight: bold;","font-weight: bold;",...n)};class Xt extends e{constructor(e){super(),Kt(this,"_isProfiling",!1),Kt(this,"_recordChangeDescriptions",!1),Kt(this,"_rendererInterfaces",{}),Kt(this,"_persistedSelection",null),Kt(this,"_persistedSelectionMatch",null),Kt(this,"_traceUpdatesEnabled",!1),Kt(this,"clearErrorsAndWarnings",(({rendererID:e})=>{const t=this._rendererInterfaces[e];null==t?console.warn(`Invalid renderer id "${e}"`):t.clearErrorsAndWarnings()})),Kt(this,"clearErrorsForFiberID",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}"`):n.clearErrorsForFiberID(e)})),Kt(this,"clearWarningsForFiberID",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}"`):n.clearWarningsForFiberID(e)})),Kt(this,"copyElementPath",(({id:e,path:t,rendererID:n})=>{const r=this._rendererInterfaces[n];if(null==r)console.warn(`Invalid renderer id "${n}" for element "${e}"`);else{const n=r.getSerializedElementValueByPath(e,t);null!=n?this._bridge.send("saveToClipboard",n):console.warn(`Unable to obtain serialized value for element "${e}"`)}})),Kt(this,"deletePath",(({hookID:e,id:t,path:n,rendererID:r,type:o})=>{const i=this._rendererInterfaces[r];null==i?console.warn(`Invalid renderer id "${r}" for element "${t}"`):i.deletePath(o,t,e,n)})),Kt(this,"getBackendVersion",(()=>{const e="5.2.0-db731f57b2";e&&this._bridge.send("backendVersion",e)})),Kt(this,"getBridgeProtocol",(()=>{this._bridge.send("bridgeProtocol",Qt)})),Kt(this,"getProfilingData",(({rendererID:e})=>{const t=this._rendererInterfaces[e];null==t&&console.warn(`Invalid renderer id "${e}"`),this._bridge.send("profilingData",t.getProfilingData())})),Kt(this,"getProfilingStatus",(()=>{this._bridge.send("profilingStatus",this._isProfiling)})),Kt(this,"getOwnersList",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];if(null==n)console.warn(`Invalid renderer id "${t}" for element "${e}"`);else{const t=n.getOwnersList(e);this._bridge.send("ownersList",{id:e,owners:t})}})),Kt(this,"inspectElement",(({forceFullData:e,id:t,path:n,rendererID:r,requestID:o})=>{const i=this._rendererInterfaces[r];null==i?console.warn(`Invalid renderer id "${r}" for element "${t}"`):(this._bridge.send("inspectedElement",i.inspectElement(o,t,n,e)),null!==this._persistedSelectionMatch&&this._persistedSelectionMatch.id===t||(this._persistedSelection=null,this._persistedSelectionMatch=null,i.setTrackedPath(null)))})),Kt(this,"logElementToConsole",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}" for element "${e}"`):n.logElementToConsole(e)})),Kt(this,"overrideError",(({id:e,rendererID:t,forceError:n})=>{const r=this._rendererInterfaces[t];null==r?console.warn(`Invalid renderer id "${t}" for element "${e}"`):r.overrideError(e,n)})),Kt(this,"overrideSuspense",(({id:e,rendererID:t,forceFallback:n})=>{const r=this._rendererInterfaces[t];null==r?console.warn(`Invalid renderer id "${t}" for element "${e}"`):r.overrideSuspense(e,n)})),Kt(this,"overrideValueAtPath",(({hookID:e,id:t,path:n,rendererID:r,type:o,value:i})=>{const s=this._rendererInterfaces[r];null==s?console.warn(`Invalid renderer id "${r}" for element "${t}"`):s.overrideValueAtPath(o,t,e,n,i)})),Kt(this,"overrideContext",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"context",value:o})})),Kt(this,"overrideHookState",(({id:e,hookID:t,path:n,rendererID:r,wasForwarded:o,value:i})=>{o||this.overrideValueAtPath({id:e,path:n,rendererID:r,type:"hooks",value:i})})),Kt(this,"overrideProps",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"props",value:o})})),Kt(this,"overrideState",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"state",value:o})})),Kt(this,"reloadAndProfile",(e=>{this._bridge.send("reloadAppForProfiling")})),Kt(this,"renamePath",(({hookID:e,id:t,newPath:n,oldPath:r,rendererID:o,type:i})=>{const s=this._rendererInterfaces[o];null==s?console.warn(`Invalid renderer id "${o}" for element "${t}"`):s.renamePath(i,t,e,r,n)})),Kt(this,"setTraceUpdatesEnabled",(e=>{this._traceUpdatesEnabled=!1;for(const e in this._rendererInterfaces)this._rendererInterfaces[e].setTraceUpdatesEnabled(!1)})),Kt(this,"syncSelectionFromNativeElementsPanel",(()=>{const e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;null!=e&&this.selectNode(e)})),Kt(this,"shutdown",(()=>{this.emit("shutdown")})),Kt(this,"startProfiling",(e=>{this._recordChangeDescriptions=e,this._isProfiling=!0;for(const t in this._rendererInterfaces)this._rendererInterfaces[t].startProfiling(e);this._bridge.send("profilingStatus",this._isProfiling)})),Kt(this,"stopProfiling",(()=>{this._isProfiling=!1,this._recordChangeDescriptions=!1;for(const e in this._rendererInterfaces)this._rendererInterfaces[e].stopProfiling();this._bridge.send("profilingStatus",this._isProfiling)})),Kt(this,"stopInspectingNative",(e=>{this._bridge.send("stopInspectingNative",e)})),Kt(this,"storeAsGlobal",(({count:e,id:t,path:n,rendererID:r})=>{const o=this._rendererInterfaces[r];null==o?console.warn(`Invalid renderer id "${r}" for element "${t}"`):o.storeAsGlobal(t,n,e)})),Kt(this,"updateConsolePatchSettings",(({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o})=>{Ut({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o})})),Kt(this,"updateComponentFilters",(e=>{for(const t in this._rendererInterfaces)this._rendererInterfaces[t].updateComponentFilters(e)})),Kt(this,"viewAttributeSource",(({id:e,path:t,rendererID:n})=>{const r=this._rendererInterfaces[n];null==r?console.warn(`Invalid renderer id "${n}" for element "${e}"`):r.prepareViewAttributeSource(e,t)})),Kt(this,"viewElementSource",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}" for element "${e}"`):n.prepareViewElementSource(e)})),Kt(this,"onTraceUpdates",(e=>{this.emit("traceUpdates",e)})),Kt(this,"onFastRefreshScheduled",(()=>{t&&Jt("onFastRefreshScheduled"),this._bridge.send("fastRefreshScheduled")})),Kt(this,"onHookOperations",(e=>{if(t&&Jt("onHookOperations",`(${e.length}) [${e.join(", ")}]`),this._bridge.send("operations",e),null!==this._persistedSelection){const t=e[0];if(this._persistedSelection.rendererID===t){const e=this._rendererInterfaces[t];if(null==e)console.warn(`Invalid renderer id "${t}"`);else{const t=this._persistedSelectionMatch,n=e.getBestMatchForTrackedPath();this._persistedSelectionMatch=n;const r=null!==t?t.id:null,o=null!==n?n.id:null;r!==o&&null!==o&&this._bridge.send("selectFiber",o),null!==n&&n.isFullMatch&&(this._persistedSelection=null,this._persistedSelectionMatch=null,e.setTrackedPath(null))}}}})),this._bridge=e,e.addListener("clearErrorsAndWarnings",this.clearErrorsAndWarnings),e.addListener("clearErrorsForFiberID",this.clearErrorsForFiberID),e.addListener("clearWarningsForFiberID",this.clearWarningsForFiberID),e.addListener("copyElementPath",this.copyElementPath),e.addListener("deletePath",this.deletePath),e.addListener("getBackendVersion",this.getBackendVersion),e.addListener("getBridgeProtocol",this.getBridgeProtocol),e.addListener("getProfilingData",this.getProfilingData),e.addListener("getProfilingStatus",this.getProfilingStatus),e.addListener("getOwnersList",this.getOwnersList),e.addListener("inspectElement",this.inspectElement),e.addListener("logElementToConsole",this.logElementToConsole),e.addListener("overrideError",this.overrideError),e.addListener("overrideSuspense",this.overrideSuspense),e.addListener("overrideValueAtPath",this.overrideValueAtPath),e.addListener("renamePath",this.renamePath),e.addListener("setTraceUpdatesEnabled",this.setTraceUpdatesEnabled),e.addListener("startProfiling",this.startProfiling),e.addListener("stopProfiling",this.stopProfiling),e.addListener("storeAsGlobal",this.storeAsGlobal),e.addListener("syncSelectionFromNativeElementsPanel",this.syncSelectionFromNativeElementsPanel),e.addListener("shutdown",this.shutdown),e.addListener("updateConsolePatchSettings",this.updateConsolePatchSettings),e.addListener("updateComponentFilters",this.updateComponentFilters),e.addListener("viewAttributeSource",this.viewAttributeSource),e.addListener("viewElementSource",this.viewElementSource),e.addListener("overrideContext",this.overrideContext),e.addListener("overrideHookState",this.overrideHookState),e.addListener("overrideProps",this.overrideProps),e.addListener("overrideState",this.overrideState),this._isProfiling&&e.send("profilingStatus",!0);const n="5.2.0-db731f57b2";n&&this._bridge.send("backendVersion",n),this._bridge.send("bridgeProtocol",Qt),e.send("isBackendStorageAPISupported",!1),e.send("isSynchronousXHRSupported",!!(window.document&&window.document.featurePolicy&&window.document.featurePolicy.allowsFeature("sync-xhr"))),window.__RECORD_REPLAY_REACT_DEVTOOLS_SEND_MESSAGE__=(e,t)=>{let n;this._bridge={send(e,t){n={event:e,data:t}}};try{this[e](t)}catch(t){window.logMessage(`Error executing bridge message '${e}': ${t}, ${t.stack}`)}return n}}get rendererInterfaces(){return this._rendererInterfaces}getInstanceAndStyle({id:e,rendererID:t}){const n=this._rendererInterfaces[t];return null==n?(console.warn(`Invalid renderer id "${t}"`),null):n.getInstanceAndStyle(e)}getBestMatchingRendererInterface(e){let t=null;for(const n in this._rendererInterfaces){const r=this._rendererInterfaces[n],o=r.getFiberForNative(e);if(null!==o){if(o.stateNode===e)return r;null===t&&(t=r)}}return t}getIDForNode(e){const t=this.getBestMatchingRendererInterface(e);if(null!=t)try{return t.getFiberIDForNative(e,!0)}catch(e){}return null}selectNode(e){const t=this.getIDForNode(e);null!==t&&this._bridge.send("selectFiber",t)}setRendererInterface(e,t){this._rendererInterfaces[e]=t,this._isProfiling&&t.startProfiling(this._recordChangeDescriptions),t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);const n=this._persistedSelection;null!==n&&n.rendererID===e&&t.setTrackedPath(n.path)}onUnsupportedRenderer(e){this._bridge.send("unsupportedRendererVersion",e)}}function Zt(e,t,n){if(null==e)return()=>{};const r=[e.sub("renderer-attached",(({id:e,renderer:n,rendererInterface:r})=>{t.setRendererInterface(e,r),r.flushInitialOperations()})),e.sub("unsupported-renderer-version",(e=>{t.onUnsupportedRenderer(e)})),e.sub("fastRefreshScheduled",t.onFastRefreshScheduled),e.sub("operations",t.onHookOperations),e.sub("traceUpdates",t.onTraceUpdates)],o=(t,r)=>{if(function(e){return null!=e&&""!==e&&Te(e,ke)}(r.reconcilerVersion||r.version))return;let o=e.rendererInterfaces.get(t);null==o&&("function"==typeof r.findFiberByHostInstance?o=Ot(e,t,r,n):r.ComponentTree,null!=o&&e.rendererInterfaces.set(t,o)),null!=o?e.emit("renderer-attached",{id:t,renderer:r,rendererInterface:o}):e.emit("unsupported-renderer-version",t)};e.renderers.forEach(((e,t)=>{o(t,e)})),r.push(e.sub("renderer",(({id:e,renderer:t})=>{o(e,t)}))),e.emit("react-devtools",t),e.reactDevtoolsAgent=t;const i=()=>{r.forEach((e=>e())),e.rendererInterfaces.forEach((e=>{e.cleanup()})),e.reactDevtoolsAgent=null};return t.addListener("shutdown",i),r.push((()=>{t.removeListener("shutdown",i)})),()=>{r.forEach((e=>e()))}}const en="compact";window.logMessage("RDT initializing"),function(e){if(null==e)return;const t=new qt({listen(e){const t=t=>{t.source===window&&t.data&&"react-devtools-content-script"===t.data.source&&t.data.payload&&e(t.data.payload)};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},send(e,t,n){window.postMessage({source:"react-devtools-bridge",payload:{event:e,payload:t}},"*",n)}});Zt(e,new Xt(t),window),e.backends.set(en,{Agent:Xt,Bridge:qt,initBackend:Zt,setupNativeStyleEditor:()=>{}}),e.emit("devtools-backend-installed",en)}(window.__REACT_DEVTOOLS_GLOBAL_HOOK__),window.logMessage("RDT setup complete")})()})(); +(()=>{var e={786:(e,t,n)=>{"use strict";var r=n(206),o=n(189),i=Object.assign,s=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l=Symbol.for("react.context"),a=Symbol.for("react.memo_cache_sentinel"),u=Object.prototype.hasOwnProperty,c=[],f=null;function p(){if(null===f){var e=new Map;try{if(b.useContext({_currentValue:null}),b.useState(null),b.useReducer((function(e){return e}),null),b.useRef(null),"function"==typeof b.useCacheRefresh&&b.useCacheRefresh(),b.useLayoutEffect((function(){})),b.useInsertionEffect((function(){})),b.useEffect((function(){})),b.useImperativeHandle(void 0,(function(){return null})),b.useDebugValue(null),b.useCallback((function(){})),b.useTransition(),b.useSyncExternalStore((function(){return function(){}}),(function(){return null}),(function(){return null})),b.useDeferredValue(null),b.useMemo((function(){return null})),"function"==typeof b.useMemoCache&&b.useMemoCache(0),"function"==typeof b.useOptimistic&&b.useOptimistic(null,(function(e){return e})),"function"==typeof b.useFormState&&b.useFormState((function(e){return e}),null),"function"==typeof b.useActionState&&b.useActionState((function(e){return e}),null),"function"==typeof b.use){b.use({$$typeof:l,_currentValue:null}),b.use({then:function(){},status:"fulfilled",value:null});try{b.use({then:function(){}})}catch(e){}}b.useId(),"function"==typeof b.useHostTransitionStatus&&b.useHostTransitionStatus()}finally{var t=c;c=[]}for(var n=0;nm;m++)if(-1!==(h=S(d,c,m))){_=m,c=h;break e}c=-1}}e:{if(d=f,void 0!==(h=p().get(u.primitive)))for(m=0;mc-d?-1===d?[null,null]:[f[d-1],null]:[f[d-1],f.slice(d,c-1)])[0],f=f[1],null===(c=u.displayName)&&null!==d&&(c=C(d.functionName)||C(u.dispatcherHookName)),null!==f){if(d=0,null!==o){for(;dd;o--)i=l.pop()}for(o=f.length-d-1;1<=o;o--)d=[],h=f[o],h={id:null,isStateEditable:!1,name:C(f[o-1].functionName),value:void 0,subHooks:d,debugInfo:null,hookSource:{lineNumber:h.lineNumber,columnNumber:h.columnNumber,functionName:h.functionName,fileName:h.fileName}},i.push(h),l.push(i),i=d;o=f}d=u.primitive,h=u.debugInfo,u={id:"Context"===d||"Context (use)"===d||"DebugValue"===d||"Promise"===d||"Unresolved"===d||"HostTransitionStatus"===d?null:s++,isStateEditable:"Reducer"===d||"State"===d,name:c||d,value:u.value,subHooks:[],debugInfo:h,hookSource:null},c={lineNumber:null,functionName:null,fileName:null,columnNumber:null},f&&1<=f.length&&(f=f[0],c.lineNumber=f.lineNumber,c.functionName=f.functionName,c.fileName=f.fileName,c.columnNumber=f.columnNumber),u.hookSource=c,i.push(u)}return I(n,null),n}function I(e,t){for(var n=[],r=0;r{"use strict";e.exports=n(786)},890:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.client.reference");t.AI=l,t.HQ=a,t.A4=u,t.HY=o,t.oM=d,t._Y=p,t.h_=r,t.Q1=s,t.nF=i,t.n4=c,t.kK=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.kM=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case u:case d:case p:case l:return e;default:return t}}case r:return t}}}},126:(e,t,n)=>{"use strict";var r=n(169),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.debug_trace_mode"),y=Symbol.for("react.offscreen"),v=Symbol.for("react.postpone"),b=Symbol.iterator,w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var I=k.prototype=new C;I.constructor=k,_(I,E.prototype),I.isPureReactComponent=!0;var O=Array.isArray,D={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function x(e,t,n,r,i,s,l){return n=l.ref,{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:l}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function A(){}function F(e,t,n,r,s){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var a,u,c=!1;if(null===e)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0;break;case m:return F((c=e._init)(e._payload),t,n,r,s)}}if(c)return s=s(e),c=""===r?"."+R(e,0):r,O(s)?(n="",null!=c&&(n=c.replace(T,"$&/")+"/"),F(s,t,n,"",(function(e){return e}))):null!=s&&(N(s)&&(a=s,u=n+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+c,s=x(a.type,u,null,0,0,0,a.props)),t.push(s)),1;c=0;var f,p=""===r?".":r+":";if(O(e))for(var d=0;d{"use strict";e.exports=n(126)},206:function(e,t,n){var r,o,i;!function(s,l){"use strict";o=[n(430)],void 0===(i="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:o.pop()),s=o.join(" ")||void 0,l=["eval",""].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:s,fileName:l,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,s=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var l=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:s,args:l,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=i)}()},730:(e,t,n)=>{"use strict";var r=n(169);e.exports=v;var o,i=n(307),s=n(82),l=n(695),a=(o="function"==typeof Symbol&&"1"!==r.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),u=o("length"),c=o("lengthCalculator"),f=o("allowStale"),p=o("maxAge"),d=o("dispose"),h=o("noDisposeOnSet"),m=o("lruList"),g=o("cache");function y(){return 1}function v(e){if(!(this instanceof v))return new v(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var n=e.length||y;"function"!=typeof n&&(n=y),this[c]=n,this[f]=e.stale||!1,this[p]=e.maxAge||0,this[d]=e.dispose,this[h]=e.noDisposeOnSet||!1,this.reset()}function b(e,t,n,r){var o=n.value;_(e,o)&&(E(e,n),e[f]||(o=void 0)),o&&t.call(r,o.value,o.key,e)}function w(e,t,n){var r=e[g].get(t);if(r){var o=r.value;_(e,o)?(E(e,r),e[f]||(o=void 0)):n&&e[m].unshiftNode(r),o&&(o=o.value)}return o}function _(e,t){if(!t||!t.maxAge&&!e[p])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[p]&&n>e[p]}function S(e){if(e[u]>e[a])for(var t=e[m].tail;e[u]>e[a]&&null!==t;){var n=t.prev;E(e,t),t=n}}function E(e,t){if(t){var n=t.value;e[d]&&e[d](n.key,n.value),e[u]-=n.length,e[g].delete(n.key),e[m].removeNode(t)}}function C(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}Object.defineProperty(v.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,S(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(v.prototype,"allowStale",{set:function(e){this[f]=!!e},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(v.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,S(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(v.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=y),e!==this[c]&&(this[c]=e,this[u]=0,this[m].forEach((function(e){e.length=this[c](e.value,e.key),this[u]+=e.length}),this)),S(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(v.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(v.prototype,"itemCount",{get:function(){return this[m].length},enumerable:!0}),v.prototype.rforEach=function(e,t){t=t||this;for(var n=this[m].tail;null!==n;){var r=n.prev;b(this,e,n,t),n=r}},v.prototype.forEach=function(e,t){t=t||this;for(var n=this[m].head;null!==n;){var r=n.next;b(this,e,n,t),n=r}},v.prototype.keys=function(){return this[m].toArray().map((function(e){return e.key}),this)},v.prototype.values=function(){return this[m].toArray().map((function(e){return e.value}),this)},v.prototype.reset=function(){this[d]&&this[m]&&this[m].length&&this[m].forEach((function(e){this[d](e.key,e.value)}),this),this[g]=new i,this[m]=new l,this[u]=0},v.prototype.dump=function(){return this[m].map((function(e){if(!_(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},v.prototype.dumpLru=function(){return this[m]},v.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[f]&&(n+="\n allowStale: true",r=!0);var o=this[a];o&&o!==1/0&&(r&&(n+=","),n+="\n max: "+s.inspect(o,t),r=!0);var i=this[p];i&&(r&&(n+=","),n+="\n maxAge: "+s.inspect(i,t),r=!0);var l=this[c];l&&l!==y&&(r&&(n+=","),n+="\n length: "+s.inspect(this[u],t),r=!0);var d=!1;return this[m].forEach((function(e){d?n+=",\n ":(r&&(n+=",\n"),d=!0,n+="\n ");var o=s.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==i&&(a.maxAge=e.maxAge),l!==y&&(a.length=e.length),_(this,e)&&(a.stale=!0),a=s.inspect(a,t).split("\n").join("\n "),n+=o+" => "+a})),(d||r)&&(n+="\n"),n+="}"},v.prototype.set=function(e,t,n){var r=(n=n||this[p])?Date.now():0,o=this[c](t,e);if(this[g].has(e)){if(o>this[a])return E(this,this[g].get(e)),!1;var i=this[g].get(e).value;return this[d]&&(this[h]||this[d](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[u]+=o-i.length,i.length=o,this.get(e),S(this),!0}var s=new C(e,t,o,r,n);return s.length>this[a]?(this[d]&&this[d](e,t),!1):(this[u]+=s.length,this[m].unshift(s),this[g].set(e,this[m].head),S(this),!0)},v.prototype.has=function(e){return!!this[g].has(e)&&!_(this,this[g].get(e).value)},v.prototype.get=function(e){return w(this,e,!0)},v.prototype.peek=function(e){return w(this,e,!1)},v.prototype.pop=function(){var e=this[m].tail;return e?(E(this,e),e.value):null},v.prototype.del=function(e){E(this,this[g].get(e))},v.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{var i=o-t;i>0&&this.set(r.k,r.v,i)}}},v.prototype.prune=function(){var e=this;this[g].forEach((function(t,n){w(e,n,!1)}))}},169:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,a=[],u=!1,c=-1;function f(){u&&l&&(u=!1,l.length?a=l.concat(a):c=-1,a.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=a.length;t;){for(l=a,a=[];++c1)for(var n=1;n{var r=n(169);"pseudomap"===r.env.npm_package_name&&"test"===r.env.npm_lifecycle_script&&(r.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||r.env.TEST_PSEUDOMAP?e.exports=n(761):e.exports=Map},761:e=>{var t=Object.prototype.hasOwnProperty;function n(e){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof n||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function r(e,t){return e===t||e!=e&&t!=t}function o(e,t,n){this.key=e,this.value=t,this._index=n}function i(e,n){for(var o=0,i="_"+n,s=i;t.call(e,s);s=i+o++)if(r(e[s].key,n))return e[s]}e.exports=n,n.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)}),this)},n.prototype.has=function(e){return!!i(this._data,e)},n.prototype.get=function(e){var t=i(this._data,e);return t&&t.value},n.prototype.set=function(e,n){!function(e,n,i){for(var s=0,l="_"+n,a=l;t.call(e,a);a=l+s++)if(r(e[a].key,n))return void(e[a].value=i);e.size++,e[a]=new o(n,i,a)}(this._data,e,n)},n.prototype.delete=function(e){var t=i(this._data,e);t&&(delete this._data[t._index],this._data.size--)},n.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},430:function(e,t){var n,r,o;!function(i,s){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],o=["fileName","functionName","source"],i=n.concat(r,o,["args"]);function s(t){if(t)for(var n=0;n{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},715:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},82:(e,t,n)=>{var r=n(169),o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),l=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var a=n.name?": "+n.name:"";return e.stylize("[Function"+a+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return f(n)}var u,w="",C=!1,k=["{","}"];return d(n)&&(C=!0,k=["[","]"]),E(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),S(n)&&(w=" "+f(n)),0!==s.length||C&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=C?function(e,t,n,r,o){for(var i=[],s=0,l=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,w,k)):k[0]+w+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var s,l,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(l=e.stylize("[Setter]","special")),O(r,o)||(s="["+o+"]"),l||(e.seen.indexOf(a.value)<0?(l=m(n)?c(e,a.value,null):c(e,a.value,n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return l;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===C(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===C(e)}function S(e){return w(e)&&("[object Error]"===C(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=_,t.isError=S,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(715);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(718),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},695:e=>{function t(e){var n=this;if(n instanceof t||(n=new t),n.tail=null,n.head=null,n.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},t.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},t.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},t.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},t.prototype.slice=function(e,n){(n=n||this.length)<0&&(n+=this.length),(e=e||0)<0&&(e+=this.length);var r=new t;if(nthis.length&&(n=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(n=this.length);for(var o=this.length,i=this.tail;null!==i&&o>n;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},t.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";class e{constructor(){var e,t,n;e=this,t="listenersMap",n=new Map,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}addListener(e,t){const n=this.listenersMap.get(e);void 0===n?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}emit(e,...t){const n=this.listenersMap.get(e);if(void 0!==n)if(1===n.length)n[0].apply(null,t);else{let e=!1,r=null;const o=Array.from(n);for(let n=0;n=0&&n.splice(e,1)}}}const t=!1,r=1,o=2,i=3,s=4,l=5,a=6,u=7,c=1,f=2,p="%s",d="%s %s",h=(e,t)=>{const n=g(e),r=g(t),o=n.pop(),i=r.pop(),s=w(n,r);return 0!==s?s:o&&i?w(o.split("."),i.split(".")):o||i?o?-1:1:0},m=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,g=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(m);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},y=e=>"*"===e||"x"===e||"X"===e,v=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},b=(e,t)=>{if(y(e)||y(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(v(e),v(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]});var _=n(730),S=n.n(_),E=n(890);const C=!0,k=Symbol.for("react.element"),I=(Symbol.for("react.transitional.element"),Symbol.for("react.portal")),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),M=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker"));Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.postpone"),Symbol.iterator,Symbol.asyncIterator;const $=1,z=2,j=5,U=6,V=7,B=8,W=9,G=10,Y=11,Q=12,q=13,K=14,J=1,X=2,Z=3,ee=4,te=1,ne=Array.isArray;n(169);const re=Object.prototype.hasOwnProperty,oe=new WeakMap,ie=new(S())({max:1e3});function se(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function le(e){const t=new Set;let n=e;for(;null!=n;){const e=[...Object.keys(n),...Object.getOwnPropertySymbols(n)],r=Object.getOwnPropertyDescriptors(n);e.forEach((e=>{r[e].enumerable&&t.add(e)})),n=Object.getPrototypeOf(n)}return t}function ae(e,t,n,r){let o=e.displayName;return o||(o=`${n}(${ue(t,r)})`),o}function ue(e,t="Anonymous"){const n=oe.get(e);if(null!=n)return n;let r=t;if("string"==typeof e.displayName?r=e.displayName:"string"==typeof e.name&&""!==e.name&&(r=e.name),oe.set(e,r),window.componentFunctionDetailsPerPoint?.has(e))window.componentFunctionDetailsPerPoint.get(e).minifiedDisplayName=r;else{const t={minifiedDisplayName:r,fiberIds:[]};window.componentFunctionDetailsPerPoint?.set(e,t)}return r}function ce(e){if(!0===e||!1===e)return e}function fe(e,t){return t.reduce(((e,t)=>{if(e){if(re.call(e,t))return e[t];if("function"==typeof e[Symbol.iterator])return Array.from(e)[t]}return null}),e)}function pe(e,t){const n=t.length,r=t[n-1];if(null!=e){const o=fe(e,t.slice(0,n-1));o&&(ne(o)?o.splice(r,1):delete o[r])}}function de(e,t,n){const r=t.length;if(null!=e){const o=fe(e,t.slice(0,r-1));if(o){const e=t[r-1];o[n[r-1]]=o[e],ne(o)?o.splice(e,1):delete o[e]}}}function he(e,t,n){const r=t.length,o=t[r-1];if(null!=e){const i=fe(e,t.slice(0,r-1));i&&(i[o]=n)}}function me(e){if(null===e)return"null";if(void 0===e)return"undefined";if((0,E.kK)(e))return"react_element";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":if(ne(e))return"array";if(ArrayBuffer.isView(e))return re.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){const t=e[Symbol.iterator]();if(t)return t===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";{const t=Object.prototype.toString.call(e);if("[object Date]"===t)return"date";if("[object HTMLAllCollection]"===t)return"html_all_collection"}}return we(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}function ge(e){const t=(0,E.kM)(e)||function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case k:const n=e.type;switch(n){case O:case P:case D:case A:case F:return n;default:const e=n&&n.$$typeof;switch(e){case T:case R:case L:case H:return e;case N:if(C)return e;case x:if(!C)return e;default:return t}}case I:return t}}}(e);switch(t){case E.AI:return"ContextConsumer";case E.HQ:return"ContextProvider";case E.A4:return"ForwardRef";case E.HY:return"Fragment";case E.oM:return"Lazy";case E._Y:return"Memo";case E.h_:return"Portal";case E.Q1:return"Profiler";case E.nF:return"StrictMode";case E.n4:return"Suspense";case F:return"SuspenseList";case M:return"TracingMarker";default:const{type:t}=e;return"string"==typeof t?t:"function"==typeof t?ue(t,"Anonymous"):null!=t?"NotImplementedInDevtools":"Element"}}const ye=50;function ve(e,t=ye){return e.length>t?e.slice(0,t)+"…":e}function be(e,t){if(null!=e&&re.call(e,_e.type))return t?e[_e.preview_long]:e[_e.preview_short];switch(me(e)){case"html_element":return`<${ve(e.tagName.toLowerCase())} />`;case"function":return ve(`ƒ ${"function"==typeof e.name?"":e.name}() {}`);case"string":return`"${e}"`;case"bigint":return ve(e.toString()+"n");case"regexp":case"symbol":return ve(e.toString());case"react_element":return`<${ve(ge(e)||"Unknown")} />`;case"array_buffer":return`ArrayBuffer(${e.byteLength})`;case"data_view":return`DataView(${e.buffer.byteLength})`;case"array":if(t){let t="";for(let n=0;n0&&(t+=", "),t+=be(e[n],!1),!(t.length>ye));n++);return`[${ve(t)}]`}return`Array(${re.call(e,_e.size)?e[_e.size]:e.length})`;case"typed_array":const n=`${e.constructor.name}(${e.length})`;if(t){let t="";for(let n=0;n0&&(t+=", "),t+=e[n],!(t.length>ye));n++);return`${n} [${ve(t)}]`}return n;case"iterator":const r=e.constructor.name;if(t){const t=Array.from(e);let n="";for(let e=0;e0&&(n+=", "),ne(r)?n+=`${be(r[0],!0)} => ${be(r[1],!1)}`:n+=be(r,!1),n.length>ye)break}return`${r}(${e.size}) {${ve(n)}}`}return`${r}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":return e.constructor.name;case"object":if(t){const t=Array.from(le(e)).sort(se);let n="";for(let r=0;r0&&(n+=", "),n+=`${o.toString()}: ${be(e[o],!1)}`,n.length>ye)break}return`{${ve(n)}}`}return"{…}";case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return e;default:try{return ve(String(e))}catch(e){return"unserializable"}}}const we=e=>{const t=Object.getPrototypeOf(e);return!t||!Object.getPrototypeOf(t)},_e={inspectable:Symbol("inspectable"),inspected:Symbol("inspected"),name:Symbol("name"),preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),readonly:Symbol("readonly"),size:Symbol("size"),type:Symbol("type"),unserializable:Symbol("unserializable")},Se=2;function Ee(e,t,n,r,o){r.push(o);const i={inspectable:t,type:e,preview_long:be(n,!0),preview_short:be(n,!1),name:"function"!=typeof n.constructor||"string"!=typeof n.constructor.name||"Object"===n.constructor.name?"":n.constructor.name};return"array"===e||"typed_array"===e?i.size=n.length:"object"===e&&(i.size=Object.keys(n).length),"iterator"!==e&&"typed_array"!==e||(i.readonly=!0),i}function Ce(e,t,n,r,o,i=0){const s=me(e);let l;switch(s){case"html_element":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:e.tagName,type:s};case"function":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:"function"!=typeof e.name&&e.name?e.name:"function",type:s};case"string":return l=o(r),l||e.length<=500?e:e.slice(0,500)+"...";case"bigint":case"symbol":case"date":case"regexp":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:e.toString(),type:s};case"react_element":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:ge(e)||"Unknown",type:s};case"array_buffer":case"data_view":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:"data_view"===s?"DataView":"ArrayBuffer",size:e.byteLength,type:s};case"array":return l=o(r),i>=Se&&!l?Ee(s,!0,e,t,r):e.map(((e,s)=>Ce(e,t,n,r.concat([s]),o,l?1:i+1)));case"html_all_collection":case"typed_array":case"iterator":if(l=o(r),i>=Se&&!l)return Ee(s,!0,e,t,r);{const a={unserializable:!0,type:s,readonly:!0,size:"typed_array"===s?e.length:void 0,preview_short:be(e,!1),preview_long:be(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name||"Object"===e.constructor.name?"":e.constructor.name};return Array.from(e).forEach(((e,s)=>a[s]=Ce(e,t,n,r.concat([s]),o,l?1:i+1))),n.push(r),a}case"opaque_iterator":return t.push(r),{inspectable:!1,preview_short:be(e,!1),preview_long:be(e,!0),name:e[Symbol.toStringTag],type:s};case"object":if(l=o(r),i>=Se&&!l)return Ee(s,!0,e,t,r);{const s={};return le(e).forEach((a=>{const u=a.toString();s[u]=Ce(e[a],t,n,r.concat([u]),o,l?1:i+1)})),s}case"class_instance":if(l=o(r),i>=Se&&!l)return Ee(s,!0,e,t,r);const a={unserializable:!0,type:s,readonly:!0,preview_short:be(e,!1),preview_long:be(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name?"":e.constructor.name};return le(e).forEach((s=>{const u=s.toString();a[u]=Ce(e[s],t,n,r.concat([u]),o,l?1:i+1)})),n.push(r),a;case"infinity":case"nan":case"undefined":return t.push(r),{type:s};default:return e}}const ke=Array.isArray,Ie=function(e){return ke(e)},Oe="999.9.9";function De(e,t,n=[]){if(null!==e){const r=[],o=[];return{data:Ce(e,r,o,n,t),cleaned:r,unserializable:o}}return null}function Pe(e,t,n=0){const r=t[n],o=Ie(e)?e.slice():{...e};return n+1===t.length?Ie(o)?o.splice(r,1):delete o[r]:o[r]=Pe(e[r],t,n+1),o}function xe(e,t,n,r=0){const o=t[r],i=Ie(e)?e.slice():{...e};return r+1===t.length?(i[n[r]]=i[o],Ie(i)?i.splice(o,1):delete i[o]):i[o]=xe(e[o],t,n,r+1),i}function Ne(e,t,n,r=0){if(r>=t.length)return n;const o=t[r],i=Ie(e)?e.slice():{...e};return i[o]=Ne(e[o],t,n,r+1),i}function Te(e="",t=""){return 1===h(e,t)}function Re(e="",t=""){return h(e,t)>-1}function Ae(e){if(-1===e.indexOf(":"))return null;const t=e.replace(/^\(+/,"").replace(/\)+$/,""),n=/(at )?(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);if(null==n)return null;const[,,r,o,i]=n;return{sourceURL:r,line:o,column:i}}const Fe=/^\s*at .*(\S+:\d+|\(native\))/m;var He=n(987);const Le=60111,Me="Symbol(react.concurrent_mode)",$e=60110,ze="Symbol(react.context)",je="Symbol(react.server_context)",Ue="Symbol(react.async_mode)",Ve=60112,Be="Symbol(react.forward_ref)",We=60115,Ge="Symbol(react.memo)",Ye=60114,Qe="Symbol(react.profiler)",qe=60109,Ke="Symbol(react.provider)",Je="Symbol(react.consumer)",Xe=60119,Ze="Symbol(react.scope)",et=60108,tt="Symbol(react.strict_mode)",nt=Symbol.for("react.memo_cache_sentinel"),rt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ot=Object.prototype.hasOwnProperty;let it,st,lt,at,ut,ct,ft,pt,dt=0;function ht(){}function mt(e){if(void 0===pt)try{throw Error()}catch(e){const t=e.stack.trim().match(/\n( *(at )?)/);pt=t&&t[1]||""}return"\n"+pt+e}ht.__reactDisabledLog=!0;let gt,yt=!1;{const e="function"==typeof WeakMap?WeakMap:Map;gt=new e}function vt(e,t,n){if(!e||yt)return"";{const t=gt.get(e);if(void 0!==t)return t}const r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,yt=!0;const o=n.H;n.H=null,function(){if(0===dt){it=console.log,st=console.info,lt=console.warn,at=console.error,ut=console.group,ct=console.groupCollapsed,ft=console.groupEnd;const e={configurable:!0,enumerable:!0,value:ht,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}dt++}();const i={DetermineComponentFrameRoot(){let n;try{if(t){const t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}const t=e();t&&"function"==typeof t.catch&&t.catch((()=>{}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";const s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});try{const[t,n]=i.DetermineComponentFrameRoot();if(t&&n){const r=t.split("\n"),o=n.split("\n");let i=0,s=0;for(;i=1&&s>=0&&r[i]!==o[s];)s--;for(;i>=1&&s>=0;i--,s--)if(r[i]!==o[s]){if(1!==i||1!==s)do{if(i--,s--,s<0||r[i]!==o[s]){let t="\n"+r[i].replace(" at new "," at ");return e.displayName&&t.includes("")&&(t=t.replace("",e.displayName)),"function"==typeof e&>.set(e,t),t}}while(i>=1&&s>=0);break}}}finally{yt=!1,Error.prepareStackTrace=r,n.H=o,function(){if(dt--,0===dt){const e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:{...e,value:it},info:{...e,value:st},warn:{...e,value:lt},error:{...e,value:at},group:{...e,value:ut},groupCollapsed:{...e,value:ct},groupEnd:{...e,value:ft}})}dt<0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}()}const l=e?e.displayName||e.name:"",a=l?mt(l):"";return"function"==typeof e&>.set(e,a),a}function bt(e,t){return vt(e,!1,t)}function wt(e,t,n){const{HostComponent:r,LazyComponent:o,SuspenseComponent:i,SuspenseListComponent:s,FunctionComponent:l,IndeterminateComponent:a,SimpleMemoComponent:u,ForwardRef:c,ClassComponent:f}=e;switch(t.tag){case r:return mt(t.type);case o:return mt("Lazy");case i:return mt("Suspense");case s:return mt("SuspenseList");case l:case a:case u:return bt(t.type,n);case c:return bt(t.type.render,n);case f:return function(e,t){return vt(e,!0,t)}(t.type,n);default:return""}}function _t(e,t,n){try{let o="",i=t;do{o+=wt(e,i,n);const t=i._debugInfo;if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];"string"==typeof n.name&&(o+=mt(n.name+((r=n.env)?" ("+r+")":"")))}i=i.return}while(i);return o}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}var r}function St(e){if(void 0===e.currentDispatcherRef)return;const t=e.currentDispatcherRef;return void 0===t.H&&void 0!==t.current?{get H(){return t.current},set H(e){t.current=e}}:t}const Et="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();function Ct(e,t){let n={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};Te(e,"17.0.2")&&(n={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});let r=0;Re(e,"18.0.0-alpha")?r=24:Re(e,"16.9.0")?r=1:Re(e,"16.3.0")&&(r=2);let o=null;function i(e){const t="object"==typeof e&&null!==e?e.$$typeof:e;return"symbol"==typeof t?t.toString():t}o=Te(e,"17.0.1")?{CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:26,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:25,YieldComponent:-1,Throw:29}:Re(e,"17.0.0-alpha")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1}:Re(e,"16.6.0-beta.0")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1}:Re(e,"16.4.3-alpha")?{CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostHoistable:-1,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1}:{CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:9,Throw:-1};const{CacheComponent:s,ClassComponent:l,IncompleteClassComponent:a,IncompleteFunctionComponent:u,FunctionComponent:c,IndeterminateComponent:f,ForwardRef:p,HostRoot:d,HostHoistable:h,HostSingleton:m,HostComponent:g,HostPortal:y,HostText:v,Fragment:b,LazyComponent:w,LegacyHiddenComponent:_,MemoComponent:S,OffscreenComponent:E,Profiler:C,ScopeComponent:k,SimpleMemoComponent:I,SuspenseComponent:O,SuspenseListComponent:D,TracingMarkerComponent:P,Throw:x}=o;function N(e){switch(i(e)){case We:case Ge:return N(e.type);case Ve:case Be:return e.render;default:return e}}function T(e,t){if(window.componentFunctionDetailsPerPoint?.has(t)){const n=window.componentFunctionDetailsPerPoint.get(t);n?.fiberIds.includes(e)||n?.fiberIds?.push(e)}else{const n={minifiedDisplayName:null,fiberIds:[e]};window.componentFunctionDetailsPerPoint?.set(t,n)}}return{getDisplayNameForFiber:function e(n,r=!1){const{elementType:o,type:R,tag:A}=n,F=t(n);if(void 0===F)throw new Error("Could not find fiberId for fiber");let H=R;"object"==typeof R&&null!==R&&(H=N(R));let L=null;if(!r&&(null!=n.updateQueue?.memoCache||n.memoizedState?.memoizedState?.[nt])){const t=e(n,!0);return null==t?null:`Forget(${t})`}switch(A){case s:return"Cache";case l:case a:case u:case c:case f:return T(F,H),ue(H);case p:return T(F,H),ae(o,H,"ForwardRef","Anonymous");case d:const e=n.stateNode;return null!=e&&null!==e._debugRootType?e._debugRootType:null;case g:case m:case h:return R;case y:case v:return null;case b:return"Fragment";case w:return"Lazy";case S:case I:return T(F,H),ae(o,H,"Memo","Anonymous");case O:return"Suspense";case _:return"LegacyHidden";case E:return"Offscreen";case k:return"Scope";case D:return"SuspenseList";case C:return"Profiler";case P:return"TracingMarker";case x:return"Error";default:const t=i(R);if(window.nonComponentFiberTypesPerPoint?.has(R)){const e=window.nonComponentFiberTypesPerPoint.get(R);e?.fiberIds.includes(F)||e?.fiberIds.push(F)}else{const e={fiberIds:[F]};window.nonComponentFiberTypesPerPoint?.set(R,e)}switch(t){case Le:case Me:case Ue:return null;case qe:case Ke:return L=n.type._context||n.type.context,`${L.displayName||"Context"}.Provider`;case $e:case ze:case je:return void 0===n.type._context&&n.type.Provider===n.type?(L=n.type,`${L.displayName||"Context"}.Provider`):(L=n.type._context||n.type,`${L.displayName||"Context"}.Consumer`);case Je:return L=n.type._context,`${L.displayName||"Context"}.Consumer`;case et:case tt:return null;case Ye:case Qe:return`Profiler(${n.memoizedProps.id})`;case Xe:case Ze:return"Scope";default:return null}}},getTypeSymbol:i,ReactPriorityLevels:n,ReactTypeOfWork:o,StrictModeBits:r}}const kt=new Map,It=new Map,Ot=new WeakMap;function Dt(e,n,p,d){const h=p.reconcilerVersion||p.version,{getDisplayNameForFiber:m,getTypeSymbol:g,ReactPriorityLevels:y,ReactTypeOfWork:v,StrictModeBits:b}=Ct(h,Pt),{CacheComponent:w,ClassComponent:_,ContextConsumer:S,DehydratedSuspenseComponent:E,ForwardRef:C,Fragment:k,FunctionComponent:I,HostRoot:O,HostHoistable:D,HostSingleton:P,HostPortal:x,HostComponent:N,HostText:T,IncompleteClassComponent:R,IncompleteFunctionComponent:A,IndeterminateComponent:F,LegacyHiddenComponent:H,MemoComponent:L,OffscreenComponent:M,SimpleMemoComponent:ne,SuspenseComponent:re,SuspenseListComponent:oe,TracingMarkerComponent:se,Throw:le}=v,{ImmediatePriority:ae,UserBlockingPriority:ue,NormalPriority:me,LowPriority:ge,IdlePriority:ye,NoPriority:ve}=y,{injectProfilingHooks:be,overrideHookState:we,overrideHookStateDeletePath:_e,overrideHookStateRenamePath:Se,overrideProps:Ee,overridePropsDeletePath:Ce,overridePropsRenamePath:ke,scheduleRefresh:Ie,setErrorHandler:Oe,setSuspenseHandler:Te,scheduleUpdate:Re}=p,je="function"==typeof Oe&&"function"==typeof Re,Ve="function"==typeof Te&&"function"==typeof Re;"function"==typeof Ie&&(p.scheduleRefresh=(...t)=>{try{e.emit("fastRefreshScheduled")}finally{return Ie(...t)}});const Be=new Set,We=new Map,Ge=new Map,Xe=new Map,Ze=new Map;function nt(e,t,n){const r=It.get(e);null!=r&&(We.delete(r),n.has(e)?(n.delete(e),Be.add(r),un(),lt(e)):Be.delete(r))}function it(e){nt(e,0,Xe)}function st(e){nt(e,0,Ze)}function lt(e){null!==Pn&&Pn.id===e&&(xn=!0)}(function(e,t){const{currentDispatcherRef:n,getCurrentFiber:r,findFiberByHostInstance:o,version:i}=e;if("function"==typeof o&&null!=n&&"function"==typeof r){const{ReactTypeOfWork:o}=Ct(i,(()=>0));At.set(e,{currentDispatcherRef:n,getCurrentFiber:r,workTagMap:o,onErrorOrWarning:t})}})(p,(function(e,r,o){if("error"===r){const t=Nt(e);if(null!=t&&!0===Bn.get(t))return}const i=function(e,...t){const n=t.slice();let r=String(e);if("string"==typeof e&&n.length){const e=/(%?)(%([jds]))/g;r=r.replace(e,((e,t,r,o)=>{let i=n.shift();switch(o){case"s":i+="";break;case"d":case"i":i=parseInt(i,10).toString();break;case"f":i=parseFloat(i).toString()}return t?(n.unshift(i),e):i}))}if(n.length)for(let e=0;e{if(on=null,Qt.length>0)return;if(an(),nn())return;const e=new Array(3+Qt.length);e[0]=n,e[1]=wt,e[2]=0;for(let t=0;t{if(t){const t=n.tag+":"+(m(n)||"null"),i=Nt(n)||"",s=r?r.tag+":"+(m(r)||"null"):"",l=r?Nt(r)||"":"";console.groupCollapsed(`[renderer] %c${e} %c${t} (${i}) %c${r?`${s} (${l})`:""} %c${o}`,"color: red; font-weight: bold;","color: blue;","color: purple;","color: black;"),console.log((new Error).stack.split("\n").slice(1).join("\n")),console.groupEnd()}},ut=new Set,ct=new Set,ft=new Set;let pt=!1;const dt=new Set;function ht(e){ft.clear(),ut.clear(),ct.clear(),e.forEach((e=>{if(e.isEnabled)switch(e.type){case X:e.isValid&&""!==e.value&&ut.add(new RegExp(e.value,"i"));break;case J:ft.add(e.value);break;case Z:e.isValid&&""!==e.value&&ct.add(new RegExp(e.value,"i"));break;case ee:ut.add(new RegExp("\\("));break;default:console.warn(`Invalid component filter type "${e.type}"`)}}))}var mt;function gt(e){const{tag:t,type:n,key:r}=e;switch(t){case E:case x:case T:case H:case M:case le:return!0;case O:return!1;case k:return null===r;default:switch(g(n)){case Le:case Me:case Ue:case et:case tt:return!0}}const o=yt(e);if(ft.has(o))return!0;if(ut.size>0){const t=m(e);if(null!=t)for(const e of ut)if(e.test(t))return!0}return!1}function yt(e){const{type:t,tag:n}=e;switch(n){case _:case R:return $;case A:case I:case F:return j;case C:return U;case O:return Y;case N:case D:case P:return V;case x:case T:case k:return W;case L:case ne:return B;case re:return Q;case oe:return q;case se:return K;default:switch(g(t)){case Le:case Me:case Ue:return W;case qe:case Ke:case $e:case ze:return z;case et:case tt:return W;case Ye:case Qe:return G;default:return W}}}null!=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__?ht((mt=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__,Array.isArray(mt)?mt.filter((e=>e.type!==Z)):mt)):ht([{type:J,value:V,isEnabled:!0}]);const vt=new Map,bt=new Map;let wt=-1;function Dt(e){const t=__RECORD_REPLAY_ARGUMENTS__.getPersistentId(e);if(null==t)throw new Error("Missing persistent ID for fiber");return t}function Pt(e){const t=function(e){const t=Dt(e);let n;if(e.alternate?n=e.alternate:window.unmountedFiberAlternates?.has(e)&&(n=window.unmountedFiberAlternates.get(e)),!n)return t;const r=Dt(n);return Math.min(t,r)}(e),n=t;kt.has(e)||(kt.set(e,n),It.set(n,e));const{alternate:r}=e;return null!==r&&(kt.has(r)||kt.set(r,n)),n}function xt(e){const t=Nt(e);if(null!==t)return t;throw Error(`Could not find ID for Fiber "${m(e)||""}"`)}function Nt(e){if(kt.has(e))return kt.get(e);{const{alternate:t}=e;if(null!==t&&kt.has(t))return kt.get(t)}return null}const Tt=new Set;let Rt=null;function Ft(){null!==Rt&&(clearTimeout(Rt),Rt=null),Tt.forEach((e=>{const t=Nt(e);null!==t&&(It.delete(t),it(t),st(t)),kt.delete(e),Ot.delete(e);const{alternate:n}=e;null!==n&&(kt.delete(n),Ot.delete(n)),Bn.has(t)&&(Bn.delete(t),0===Bn.size&&null!=Oe&&Oe(Vn))})),Tt.clear()}function Ht(e){switch(yt(e)){case $:case U:case j:case B:if(null!==Hn){const t=xt(e),n=Mt(e);null!==n&&Hn.set(t,n)}}}const Lt={};function Mt(e){let t=Lt,n=Lt;switch(yt(e)){case $:const r=e.stateNode;return null!=r&&(r.constructor&&null!=r.constructor.contextType?n=r.context:(t=r.context,t&&0===Object.keys(t).length&&(t=Lt))),[t,n];case U:case j:case B:const o=e.dependencies;return o&&o.firstContext&&(n=o.firstContext),[t,n];default:return null}}function zt(e){if(null!==Nt(e)){Ht(e);let t=e.child;for(;null!==t;)zt(t),t=t.sibling}}function Vt(e){if(null!==Hn){const t=xt(e),n=Hn.has(t)?Hn.get(t):null,r=Mt(e);if(null==n||null==r)return null;const[o,i]=n,[s,l]=r;switch(yt(e)){case $:if(n&&r){if(s!==Lt)return Gt(o,s);if(l!==Lt)return i!==l}break;case U:case j:case B:if(l!==Lt){let e=i,t=l;for(;e&&t;){if(!rt(e.memoizedValue,t.memoizedValue))return!0;e=e.next,t=t.next}return!1}}}return null}function Bt(e,t){const n=e.memoizedState,r=t.memoizedState;return!!function(e){const t=e.queue;if(!t)return!1;const n=ot.bind(t);return!!n("pending")||n("value")&&n("getSnapshot")&&"function"==typeof t.getSnapshot}(e)&&n!==r}function Wt(e,t){if(null==e||null==t)return null;const n=[];let r=0;if(t.hasOwnProperty("baseState")&&t.hasOwnProperty("memoizedState")&&t.hasOwnProperty("next")&&t.hasOwnProperty("queue"))for(;null!==t;)Bt(e,t)&&n.push(r),t=t.next,e=e.next,r++;return n}function Gt(e,t){if(null==e||null==t)return null;if(t.hasOwnProperty("baseState")&&t.hasOwnProperty("memoizedState")&&t.hasOwnProperty("next")&&t.hasOwnProperty("queue"))return null;const n=new Set([...Object.keys(e),...Object.keys(t)]),r=[];for(const o of n)e[o]!==t[o]&&r.push(o);return r}function Yt(e,t){switch(t.tag){case _:case I:case S:case L:case ne:case C:const r=1;return((void 0!==(n=t).flags?n.flags:n.effectTag)&r)===r;default:return e.memoizedProps!==t.memoizedProps||e.memoizedState!==t.memoizedState||e.ref!==t.ref}var n}const Qt=[],qt=[],Kt=[];let Jt=[];const Xt=new Map;let Zt=0,en=null;function tn(e){Number.isInteger(e)||console.error("pushOperation() was called but the value is not an integer.",e),Qt.push(e)}function nn(){return!($n&&null!=An&&An.durations.length>0)&&0===Qt.length&&0===qt.length&&0===Kt.length&&null===en}function rn(t){nn()||(null!==Jt?Jt.push(t):e.emit("operations",t))}let on=null;function sn(){null!==on&&(clearTimeout(on),on=null)}function ln(e,t,n,r){let o=0,i=r.get(t);const s=n.get(e);if(null!=s)if(null==i)i=s,r.set(t,s);else{const e=i;s.forEach(((t,n)=>{const r=e.get(n)||0;e.set(n,r+t)}))}return gt(e)||null!=i&&i.forEach((e=>{o+=e})),n.delete(e),o}function an(){sn(),Be.forEach((e=>{const t=Nt(e);if(null===t);else{const n=ln(e,t,We,Xe),r=ln(e,t,Ge,Ze);tn(l),tn(t),tn(n),tn(r)}We.delete(e),Ge.delete(e)})),Be.clear()}function un(e){if(an(),nn())return;const t=qt.length+Kt.length+(null===en?0:1),r=new Array(3+Zt+(t>0?2+t:0)+Qt.length);let i=0;if(r[i++]=n,r[i++]=wt,r[i++]=Zt,Xt.forEach(((e,t)=>{const n=e.encodedString,o=n.length;r[i++]=o;for(let e=0;e0){r[i++]=o,r[i++]=t;for(let e=qt.length-1;e>=0;e--)r[i++]=qt[e];for(let e=0;e0,n}default:return null}}(o,e);null!==n&&null!==s.changeDescriptions&&s.changeDescriptions.set(t,n),Ht(e)}}}}function gn(e,t){if(gt(e)){let n=e.child;if(e.tag===re&&null!==e.memoizedState){const t=e.child,r=t?t.sibling:null,o=r?r.child:null;null!==o&&(n=o)}for(;null!==n;)gn(n,t),n=n.sibling}else t.push(xt(e))}function yn(e,n,r,o){const s=Pt(e);t&&at("updateFiberRecursively()",e,r);const l=Yt(n,e);if(pt){const t=yt(e);o?t===V&&(dt.add(e.stateNode),o=!1):t!==j&&t!==$&&t!==z&&t!==B&&t!==U||(o=l)}null!==Pn&&Pn.id===s&&l&&(xn=!0);const a=!gt(e);l&&a&&window.fiberIdsUpdatedThisCommit?.add(s);const u=e.tag===re;let c=!1;const f=u&&null!==n.memoizedState,p=u&&null!==e.memoizedState;if(f&&p){const t=e.child,i=t?t.sibling:null,s=n.child,l=s?s.sibling:null;null==l&&null!=i&&(dn(i,a?e:r,!0,o),c=!0),null!=i&&null!=l&&yn(i,l,e,o)&&(c=!0)}else if(f&&!p){const t=e.child;null!==t&&dn(t,a?e:r,!0,o),c=!0}else if(!f&&p){hn(n);const t=e.child,i=t?t.sibling:null;null!=i&&(dn(i,a?e:r,!0,o),c=!0)}else if(e.child!==n.child){let t=e.child,i=n.child;for(;t;){if(t.alternate){const n=t.alternate;yn(t,n,a?e:r,o)&&(c=!0),n!==i&&(c=!0)}else dn(t,a?e:r,!1,o),c=!0;t=t.sibling,c||null===i||(i=i.sibling)}null!==i&&(c=!0)}else pt&&o&&wn(xt(e)).forEach((e=>{dt.add(e.stateNode)}));if(a&&e.hasOwnProperty("treeBaseDuration")&&mn(e),c){if(a){let n=e.child;if(p){const t=e.child;n=t?t.sibling:null}return null!=n&&function(e,n){t&&at("recordResetChildren()",n,e);const r=[];let o=n;for(;null!==o;)gn(o,r),o=o.sibling;const s=r.length;if(!(s<2)){tn(i),tn(xt(e)),tn(s);for(let e=0;enull!==Nt(e))).map(kn):null}function wn(e){const t=[],n=Cn(e);if(!n)return t;let r=n;for(;;){if(r.tag===N||r.tag===T)t.push(r);else if(r.child){r.child.return=r,r=r.child;continue}if(r===n)return t;for(;!r.sibling;){if(!r.return||r.return===n)return t;r=r.return}r.sibling.return=r.return,r=r.sibling}return t}function _n(e){try{return null===Cn(e)?null:wn(e).map((e=>e.stateNode)).filter(Boolean)}catch(e){return null}}function Sn(e){if(En(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function En(e){let t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{let e=t;do{t=e;const r=2,o=4096;0!=(t.flags&(r|o))&&(n=t.return),e=t.return}while(e)}return t.tag===O?n:null}function Cn(e){const t=It.get(e);if(null==t)return console.warn(`Could not find Fiber with id "${e}"`),null;const n=t.alternate;if(!n){const e=En(t);if(null===e)throw new Error("Unable to find node on an unmounted component.");return e!==t?null:t}let r=t,o=n;for(;;){const e=r.return;if(null===e)break;const i=e.alternate;if(null===i){const t=e.return;if(null!==t){r=o=t;continue}break}if(e.child===i.child){let i=e.child;for(;i;){if(i===r)return Sn(e),t;if(i===o)return Sn(e),n;i=i.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=e,o=i;else{let t=!1,n=e.child;for(;n;){if(n===r){t=!0,r=e,o=i;break}if(n===o){t=!0,o=e,r=i;break}n=n.sibling}if(!t){for(n=i.child;n;){if(n===r){t=!0,r=i,o=e;break}if(n===o){t=!0,o=i,r=e;break}n=n.sibling}if(!t)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==O)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?t:n}function kn(e){return{displayName:m(e)||"Anonymous",id:xt(e),key:e.key,type:yt(e)}}function In(e){const{tag:t,type:n}=e;switch(t){case _:case R:const t=e.stateNode;return"function"==typeof n.getDerivedStateFromError||null!==t&&"function"==typeof t.componentDidCatch;default:return!1}}function On(e){let t=e.return;for(;null!==t;){if(In(t))return Nt(t);t=t.return}return null}function Dn(e){const t=Cn(e);if(null==t)return null;const{_debugOwner:n,stateNode:r,key:o,memoizedProps:i,memoizedState:s,dependencies:l,tag:a,type:u}=t,c=yt(t),f=!(a!==I&&a!==ne&&a!==C||!s&&!l),d=!f&&a!==w,h=g(u);let y=!1,v=null;if(a===_||a===I||a===R||a===A||a===F||a===L||a===C||a===ne)y=!0,r&&null!=r.context&&(c===$&&!u.contextTypes&&!u.contextType||(v=r.context));else if(h!==$e&&h!==ze||void 0===u._context&&u.Provider===u){if(h===Je){const e=u._context;v=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type;if(g(t)===ze&&t===e){v=n.memoizedProps.value;break}n=n.return}}}else{const e=u._context||u;v=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type,r=g(t);if((r===qe||r===Ke)&&(t._context||t.context)===e){v=n.memoizedProps.value;break}n=n.return}}let b=!1;null!==v&&(b=!!u.contextTypes,v={value:v});let S=null,E=n;for(;null!=E&&"number"==typeof E.tag;){const e=E;null===S&&(S=[]),S.push(kn(e)),E=e._debugOwner}const k=a===re&&null!==s;let O=null;if(f){const e={};for(const t in console)try{e[t]=console[t],console[t]=()=>{}}catch(e){}try{O=(0,He.inspectHooksOfFiber)(t,St(p))}finally{for(const t in e)try{console[t]=e[t]}catch(e){}}}let D=null,P=t;for(;null!==P.return;)P=P.return;const x=P.stateNode;null!=x&&null!==x._debugRootType&&(D=x._debugRootType);const N=Xe.get(e)||new Map,T=Ze.get(e)||new Map;let H,M=!1;if(In(t)){const n=128;M=0!=(t.flags&n)||!0===Bn.get(e),H=M?e:On(t)}else H=On(t);let z=null;return y&&(z=ur(t)),{id:e,canEditHooks:"function"==typeof we,canEditFunctionProps:"function"==typeof Ee,canEditHooksAndDeletePaths:"function"==typeof _e,canEditHooksAndRenamePaths:"function"==typeof Se,canEditFunctionPropsDeletePaths:"function"==typeof Ce,canEditFunctionPropsRenamePaths:"function"==typeof ke,canToggleError:je&&null!=H,isErrored:M,targetErrorBoundaryID:H,canToggleSuspense:Ve&&(!k||Yn.has(e)),canViewSource:y,source:z,hasLegacyContext:b,key:null!=o?o:null,displayName:m(t),type:c,context:v,hooks:O,props:i,state:d?s:null,errors:Array.from(N.entries()),warnings:Array.from(T.entries()),owners:S,rootType:D,rendererPackageName:p.rendererPackageName,rendererVersion:p.version,plugins:{stylex:null}}}let Pn=null,xn=!1,Nn={};function Tn(e){return null!==Pn&&Pn.id===e}function Rn(e,t){return function(n){if("hooks"===t){if(1===n.length)return!0;if("hookSource"===n[n.length-2]&&"fileName"===n[n.length-1])return!0;if("subHooks"===n[n.length-1]||"subHooks"===n[n.length-2])return!0}let r=null===e?Nn:Nn[e];if(!r)return!1;for(let e=0;e{if(null==e)return"Unknown";switch(e){case ae:return"Immediate";case ue:return"User-Blocking";case me:return"Normal";case ge:return"Low";case ye:return"Idle";default:return"Unknown"}};function ar(e){let t=Ot.get(e);if(null==t){const n=St(p);if(null==n)return null;t=_t(v,e,n),Ot.set(e,t)}return t}function ur(e){const t=ar(e);return null==t?null:function(e){return e.match(Fe)?function(e){const t=e.split("\n");for(const e of t){const t=e.trim(),n=t.match(/ (\(.+\)$)/),r=Ae(n?n[1]:t);if(null==r)continue;const{sourceURL:o,line:i="1",column:s="1"}=r;return{sourceURL:o,line:parseInt(i,10),column:parseInt(s,10)}}return null}(e):function(e){const t=e.split("\n");for(const e of t){const t=Ae(e.trim().replace(/((.*".+"[^@]*)?[^@]*)(?:@)/,""));if(null==t)continue;const{sourceURL:n,line:r="1",column:o="1"}=t;return{sourceURL:n,line:parseInt(r,10),column:parseInt(o,10)}}return null}(e)}(t)}return{cleanup:function(){},clearErrorsAndWarnings:function(){for(const e of Xe.keys()){const t=It.get(e);null!=t&&(Be.add(t),lt(e))}for(const e of Ze.keys()){const t=It.get(e);null!=t&&(Be.add(t),lt(e))}Xe.clear(),Ze.clear(),un()},clearErrorsForFiberID:it,clearWarningsForFiberID:st,getSerializedElementValueByPath:function(e,t){if(Tn(e))return function(e){if(void 0===e)return"undefined";if("function"==typeof e)return e.toString();const t=new Set;return JSON.stringify(e,((e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return;t.add(n)}return"bigint"==typeof n?n.toString()+"n":n}),2)}(fe(Pn,t))},deletePath:function(e,t,n,r){const o=Cn(t);if(null!==o){const t=o.stateNode;switch(e){case"context":r=r.slice(1),o.tag===_&&(0===r.length||pe(t.context,r),t.forceUpdate());break;case"hooks":"function"==typeof _e&&_e(o,n,r);break;case"props":null===t?"function"==typeof Ce&&Ce(o,r):(o.pendingProps=Pe(t.props,r),t.forceUpdate());break;case"state":pe(t.state,r),t.forceUpdate()}}},findNativeNodesForFiberID:_n,flushInitialOperations:function(){const t=Jt;Jt=null,null!==t&&t.length>0?t.forEach((t=>{e.emit("operations",t)})):(null!==qn&&(Xn=!0),e.getFiberRoots(n).forEach((e=>{wt=Pt(e.current),or(wt,e.current),$n&&vn(e)&&(An={changeDescriptions:jn?new Map:null,durations:[],commitTime:Et()-zn,maxActualDuration:0,priorityLevel:null,updaters:bn(e),effectDuration:null,passiveEffectDuration:null}),dn(e.current,null,!1,!1),un(),wt=-1})))},flushPendingEvents:un,getBestMatchForTrackedPath:function(){if(null===qn)return null;if(null===Kn)return null;let e=Kn;for(;null!==e&>(e);)e=e.return;return null===e?null:{id:xt(e),isFullMatch:Jn===qn.length-1}},getDisplayNameForFiber:m,getComponentStackForFiber:ar,getSourceForFiber:ur,getDisplayNameForFiberID:function(e){const t=It.get(e);return null!=t?m(t):null},getElementTypeForFiber:yt,getFiberForNative:function(e){return p.findFiberByHostInstance(e)},getFiberIDForNative:function(e,t=!1){let n=p.findFiberByHostInstance(e);if(null!=n){if(t)for(;null!==n&>(n);)n=n.return;return xt(n)}return null},getFiberIDUnsafe:Nt,getInstanceAndStyle:function(e){let t=null,n=null;const r=Cn(e);return null!==r&&(t=r.stateNode,null!==r.memoizedProps&&(n=r.memoizedProps.style)),{instance:t,style:n}},getOrGenerateFiberID:Pt,getOwnersList:function(e){const t=Cn(e);if(null==t)return null;const n=[kn(t)];let r=t._debugOwner;for(;null!=r&&"number"==typeof r.tag;){const e=r;n.unshift(kn(e)),r=e._debugOwner}return n},getPathForElement:function(e){let t=It.get(e);if(null==t)return null;const n=[];for(;null!==t;)n.push(sr(t)),t=t.return;return n.reverse(),n},getProfilingData:function(){const e=[];if(null===Un)throw Error("getProfilingData() called before any profiling data was recorded");return Un.forEach(((t,n)=>{const r=[],o=[],i=null!==Fn&&Fn.get(n)||"Unknown";null!=Ln&&Ln.forEach(((e,t)=>{null!=Mn&&Mn.get(t)===n&&o.push([t,e])})),t.forEach(((e,t)=>{const{changeDescriptions:n,durations:o,effectDuration:i,maxActualDuration:s,passiveEffectDuration:l,priorityLevel:a,commitTime:u,updaters:c}=e,f=[],p=[];for(let e=0;e1?rr.set(n,r-1):rr.delete(n),nr.delete(e)}(wt),pn(r,!1))}else or(wt,r),dn(r,null,!1,!1);if($n&&i&&!nn()){const e=Un.get(wt);null!=e?e.push(An):Un.set(wt,[An])}un(),pt&&e.emit("traceUpdates",dt),wt=-1},handleCommitFiberUnmount:function(e){Tt.has(e)||pn(e,!1)},handlePostCommitFiberRoot:function(e){if($n&&vn(e)&&null!==An){const{effectDuration:t,passiveEffectDuration:n}=function(e){let t=null,n=null;const r=e.current;if(null!=r){const e=r.stateNode;null!=e&&(t=null!=e.effectDuration?e.effectDuration:null,n=null!=e.passiveEffectDuration?e.passiveEffectDuration:null)}return{effectDuration:t,passiveEffectDuration:n}}(e);An.effectDuration=t,An.passiveEffectDuration=n}},hasFiberWithId:function(e){return It.has(e)},inspectElement:function(e,t,n,r){if(null!==n&&function(e){let t=Nn;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),Tn(t)&&!r){if(!xn){if(null!==n){let r=null;return"hooks"===n[0]&&(r="hooks"),{id:t,responseID:e,type:"hydrated-path",path:n,value:De(fe(Pn,n),Rn(null,r),n)}}return{id:t,responseID:e,type:"no-change"}}}else Nn={};xn=!1;try{Pn=Dn(t)}catch(n){if("ReactDebugToolsRenderError"===n.name){let r,o="Error rendering inspected element.";if(console.error(o+"\n\n",n),null!=n.cause){const e=Cn(t),i=null!=e?m(e):null;console.error("React DevTools encountered an error while trying to inspect hooks. This is most likely caused by an error in current inspected component"+(null!=i?`: "${i}".`:".")+"\nThe error thrown in the component is: \n\n",n.cause),n.cause instanceof Error&&(o=n.cause.message||o,r=n.cause.stack)}return{type:"error",errorType:"user",id:t,responseID:e,message:o,stack:r}}return"ReactDebugToolsUnsupportedHookError"===n.name?{type:"error",errorType:"unknown-hook",id:t,responseID:e,message:"Unsupported hook in the react-debug-tools package: "+n.message}:(console.error("Error inspecting element.\n\n",n),{type:"error",errorType:"uncaught",id:t,responseID:e,message:n.message,stack:n.stack})}if(null===Pn)return{id:t,responseID:e,type:"not-found"};!function(e){const{hooks:t,id:n,props:r}=e,o=It.get(n);if(null==o)return void console.warn(`Could not find Fiber with id "${n}"`);const{elementType:i,stateNode:s,tag:l,type:a}=o;switch(l){case _:case R:case F:d.$r=s;break;case A:case I:d.$r={hooks:t,props:r,type:a};break;case C:d.$r={hooks:t,props:r,type:a.render};break;case L:case ne:d.$r={hooks:t,props:r,type:null!=i&&null!=i.type?i.type:a};break;default:d.$r=null}}(Pn);const o={...Pn},i=e=>{if(__RECORD_REPLAY_ARGUMENTS__&&__RECORD_REPLAY_ARGUMENTS__.internal&&__RECORD_REPLAY_ARGUMENTS__.internal.registerPlainObject)try{return __RECORD_REPLAY_ARGUMENTS__.internal.registerPlainObject(e)}catch(e){console.error(e)}return null},s=Cn(t);if(null==s)throw Error("Unexpected null");o.contextObjectId=o.context?i(o.context):null,o.hooksObjectId=o.hooks?i(o.hooks):null,o.propsObjectId=o.props?i(o.props):null,o.stateObjectId=o.state?i(o.state):null,o.typeObjectId=o.canViewSource?i(s.type):null;const l=e=>{const t=s.alternate;if(null!=t)switch(e){case"context":{const e=Vt(s);if(Array.isArray(e))return e;break}case"props":return Gt(t.memoizedProps,s.memoizedProps)??[];case"state":return Gt(t.memoizedState,s.memoizedState)??[]}return[]};return o.changedContextKeys=l("context"),o.changedHooksIds=(()=>{const e=s.alternate;if(null!==e){const t=Wt(e.memoizedState,s.memoizedState);return null==t||0==t.length?[]:t}return[]})(),o.changedPropsKeys=l("props"),o.changedStateKeys=l("state"),o.context=De(o.context,Rn("context",null)),o.hooks=De(o.hooks,Rn("hooks","hooks")),o.props=De(o.props,Rn("props",null)),o.state=De(o.state,Rn("state",null)),{id:t,responseID:e,type:"full-data",value:o}},logElementToConsole:function(e){const t=function(e){return Tn(e)&&!xn}(e)?Pn:Dn(e);if(null===t)return void console.warn(`Could not find Fiber with id "${e}"`);const n="function"==typeof console.groupCollapsed;n&&console.groupCollapsed(`[Click to expand] %c<${t.displayName||"Component"} />`,"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.hooks&&console.log("Hooks:",t.hooks);const r=_n(e);null!==r&&console.log("Nodes:",r),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),n&&console.groupEnd()},patchConsoleForStrictMode:jt,prepareViewAttributeSource:function(e,t){Tn(e)&&(window.$attribute=fe(Pn,t))},prepareViewElementSource:function(e){const t=It.get(e);if(null==t)return void console.warn(`Could not find Fiber with id "${e}"`);const{elementType:n,tag:r,type:o}=t;switch(r){case _:case R:case A:case F:case I:d.$type=o;break;case C:d.$type=o.render;break;case L:case ne:d.$type=null!=n&&null!=n.type?n.type:o;break;default:d.$type=null}},overrideError:function(e,t){if("function"!=typeof Oe||"function"!=typeof Re)throw new Error("Expected overrideError() to not get called for earlier React versions.");Bn.set(e,t),1===Bn.size&&Oe(Wn);const n=It.get(e);null!=n&&Re(n)},overrideSuspense:function(e,t){if("function"!=typeof Te||"function"!=typeof Re)throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");t?(Yn.add(e),1===Yn.size&&Te(Qn)):(Yn.delete(e),0===Yn.size&&Te(Gn));const n=It.get(e);null!=n&&Re(n)},overrideValueAtPath:function(e,t,n,r,o){const i=Cn(t);if(null!==i){const t=i.stateNode;switch(e){case"context":r=r.slice(1),i.tag===_&&(0===r.length?t.context=o:he(t.context,r,o),t.forceUpdate());break;case"hooks":"function"==typeof we&&we(i,n,r,o);break;case"props":i.tag===_?(i.pendingProps=Ne(t.props,r,o),t.forceUpdate()):"function"==typeof Ee&&Ee(i,r,o);break;case"state":i.tag===_&&(he(t.state,r,o),t.forceUpdate())}}},renamePath:function(e,t,n,r,o){const i=Cn(t);if(null!==i){const t=i.stateNode;switch(e){case"context":r=r.slice(1),o=o.slice(1),i.tag===_&&(0===r.length||de(t.context,r,o),t.forceUpdate());break;case"hooks":"function"==typeof Se&&Se(i,n,r,o);break;case"props":null===t?"function"==typeof ke&&ke(i,r,o):(i.pendingProps=xe(t.props,r,o),t.forceUpdate());break;case"state":de(t.state,r,o),t.forceUpdate()}}},renderer:p,setRootPseudoKey:or,setTraceUpdatesEnabled:function(e){pt=e},setTrackedPath:Zn,shouldFilterFiber:gt,startProfiling:function(t){$n||(jn=t,Fn=new Map,Ln=new Map(vt),Mn=new Map(bt),Hn=new Map,e.getFiberRoots(n).forEach((e=>{const n=xt(e.current);Fn.set(n,ir(e.current)),t&&zt(e.current)})),$n=!0,zn=Et(),Un=new Map)},stopProfiling:function(){$n=!1,jn=!1},storeAsGlobal:function(e,t,n){if(Tn(e)){const e=fe(Pn,t),r=`$reactTemp${n}`;window[r]=e,console.log(r),console.log(e)}},unpatchConsoleForStrictMode:Ut,updateComponentFilters:function(t){if($n)throw Error("Cannot modify filter preferences while profiling");e.getFiberRoots(n).forEach((e=>{wt=Pt(e.current),tn(a),un(),wt=-1})),ht(t),rr.clear(),e.getFiberRoots(n).forEach((e=>{wt=Pt(e.current),or(wt,e.current),dn(e.current,null,!1,!1),un(),wt=-1})),Be.clear(),Xe.forEach(((e,t)=>{const n=It.get(t);null!=n&&Be.add(n)})),Ze.forEach(((e,t)=>{const n=It.get(t);null!=n&&Be.add(n)})),an(),un()}}}const Pt=["error","trace","warn"],xt=/\s{4}(in|at)\s{1}/,Nt=/:\d+:\d+(\n|$)/;function Tt(e){return e.length>=2&&e[0]===p}function Rt(e){return Tt(e)?e.slice(1):e.slice()}const At=new Map;let Ft=console,Ht={};for(const e in console)Ht[e]=console[e];let Lt=null;const Mt={appendComponentStack:!1,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!1,hideConsoleLogsInStrictMode:!1,browserTheme:"dark"};function $t({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o}){if(Mt.appendComponentStack=e,Mt.breakOnConsoleErrors=t,Mt.showInlineWarningsAndErrors=n,Mt.hideConsoleLogsInStrictMode=r,Mt.browserTheme=o,e||t||n){if(null!==Lt)return;const e={};Lt=()=>{for(const t in e)try{Ft[t]=e[t]}catch(e){}},Pt.forEach((t=>{try{const n=e[t]=Ft[t].__REACT_DEVTOOLS_ORIGINAL_METHOD__?Ft[t].__REACT_DEVTOOLS_ORIGINAL_METHOD__:Ft[t],r=(...e)=>{let r=!1;if("log"!==t&&Mt.appendComponentStack){const t=e.length>0?e[e.length-1]:null;r=!("string"==typeof t&&(o=t,xt.test(o)||Nt.test(o)))}var o;const i=Mt.showInlineWarningsAndErrors&&("error"===t||"warn"===t);for(const n of At.values()){const o=St(n),{getCurrentFiber:s,onErrorOrWarning:l,workTagMap:a}=n,u=s();if(null!=u)try{if(i&&"function"==typeof l&&l(u,t,Rt(e)),r&&!u._debugTask){const t=_t(a,u,o);""!==t&&(Tt(e)?(e[0]=d,e.push(t)):e.push(t))}}catch(e){setTimeout((()=>{throw e}),0)}finally{break}}Mt.breakOnConsoleErrors,n(...e)};r.__REACT_DEVTOOLS_ORIGINAL_METHOD__=n,n.__REACT_DEVTOOLS_OVERRIDE_METHOD__=r,Ft[t]=r}catch(e){}}))}else null!==Lt&&(Lt(),Lt=null)}let zt=null;function jt(){if(null!==zt)return;const e={};zt=()=>{for(const t in e)try{Ft[t]=e[t]}catch(e){}},["error","group","groupCollapsed","info","log","trace","warn"].forEach((t=>{try{const n=e[t]=Ft[t].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__?Ft[t].__REACT_DEVTOOLS_STRICT_MODE_ORIGINAL_METHOD__:Ft[t],r=(...e)=>{Mt.hideConsoleLogsInStrictMode||n(p,...function(e,...t){if(0===t.length||"string"!=typeof e)return[e,...t];const n=t.slice();let r="",o=0;for(let t=0;t{if(null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null),this._messageQueue.length){for(let e=0;e{switch(r){case"context":this.send("overrideContext",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"hooks":this.send("overrideHookState",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"props":this.send("overrideProps",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o});break;case"state":this.send("overrideState",{id:e,path:t,rendererID:n,wasForwarded:!0,value:o})}})),this._wall=e,this._wallUnlisten=e.listen((e=>{e&&e.event&&this.emit(e.event,e.payload)}))||null,this.addListener("overrideValueAtPath",this.overrideValueAtPath)}get wall(){return this._wall}send(e,...t){this._isShutdown?console.warn(`Cannot send message "${e}" through a Bridge that has been shutdown.`):(this._messageQueue.push(e,t),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0)))}shutdown(){if(this._isShutdown)return void console.warn("Bridge was already shutdown.");this.emit("shutdown"),this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();const e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length);null!==this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=(e,...n)=>{t&&console.log(`%cAgent %c${e}`,"color: purple; font-weight: bold;","font-weight: bold;",...n)};class qt extends e{constructor(e){super(),Yt(this,"_isProfiling",!1),Yt(this,"_recordChangeDescriptions",!1),Yt(this,"_rendererInterfaces",{}),Yt(this,"_persistedSelection",null),Yt(this,"_persistedSelectionMatch",null),Yt(this,"_traceUpdatesEnabled",!1),Yt(this,"clearErrorsAndWarnings",(({rendererID:e})=>{const t=this._rendererInterfaces[e];null==t?console.warn(`Invalid renderer id "${e}"`):t.clearErrorsAndWarnings()})),Yt(this,"clearErrorsForFiberID",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}"`):n.clearErrorsForFiberID(e)})),Yt(this,"clearWarningsForFiberID",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}"`):n.clearWarningsForFiberID(e)})),Yt(this,"copyElementPath",(({id:e,path:t,rendererID:n})=>{const r=this._rendererInterfaces[n];if(null==r)console.warn(`Invalid renderer id "${n}" for element "${e}"`);else{const n=r.getSerializedElementValueByPath(e,t);null!=n?this._bridge.send("saveToClipboard",n):console.warn(`Unable to obtain serialized value for element "${e}"`)}})),Yt(this,"deletePath",(({hookID:e,id:t,path:n,rendererID:r,type:o})=>{const i=this._rendererInterfaces[r];null==i?console.warn(`Invalid renderer id "${r}" for element "${t}"`):i.deletePath(o,t,e,n)})),Yt(this,"getBackendVersion",(()=>{const e="5.3.0-57ff604211";e&&this._bridge.send("backendVersion",e)})),Yt(this,"getBridgeProtocol",(()=>{this._bridge.send("bridgeProtocol",Wt)})),Yt(this,"getProfilingData",(({rendererID:e})=>{const t=this._rendererInterfaces[e];null==t&&console.warn(`Invalid renderer id "${e}"`),this._bridge.send("profilingData",t.getProfilingData())})),Yt(this,"getProfilingStatus",(()=>{this._bridge.send("profilingStatus",this._isProfiling)})),Yt(this,"getOwnersList",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];if(null==n)console.warn(`Invalid renderer id "${t}" for element "${e}"`);else{const t=n.getOwnersList(e);this._bridge.send("ownersList",{id:e,owners:t})}})),Yt(this,"inspectElement",(({forceFullData:e,id:t,path:n,rendererID:r,requestID:o})=>{const i=this._rendererInterfaces[r];null==i?console.warn(`Invalid renderer id "${r}" for element "${t}"`):(this._bridge.send("inspectedElement",i.inspectElement(o,t,n,e)),null!==this._persistedSelectionMatch&&this._persistedSelectionMatch.id===t||(this._persistedSelection=null,this._persistedSelectionMatch=null,i.setTrackedPath(null)))})),Yt(this,"logElementToConsole",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}" for element "${e}"`):n.logElementToConsole(e)})),Yt(this,"overrideError",(({id:e,rendererID:t,forceError:n})=>{const r=this._rendererInterfaces[t];null==r?console.warn(`Invalid renderer id "${t}" for element "${e}"`):r.overrideError(e,n)})),Yt(this,"overrideSuspense",(({id:e,rendererID:t,forceFallback:n})=>{const r=this._rendererInterfaces[t];null==r?console.warn(`Invalid renderer id "${t}" for element "${e}"`):r.overrideSuspense(e,n)})),Yt(this,"overrideValueAtPath",(({hookID:e,id:t,path:n,rendererID:r,type:o,value:i})=>{const s=this._rendererInterfaces[r];null==s?console.warn(`Invalid renderer id "${r}" for element "${t}"`):s.overrideValueAtPath(o,t,e,n,i)})),Yt(this,"overrideContext",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"context",value:o})})),Yt(this,"overrideHookState",(({id:e,hookID:t,path:n,rendererID:r,wasForwarded:o,value:i})=>{o||this.overrideValueAtPath({id:e,path:n,rendererID:r,type:"hooks",value:i})})),Yt(this,"overrideProps",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"props",value:o})})),Yt(this,"overrideState",(({id:e,path:t,rendererID:n,wasForwarded:r,value:o})=>{r||this.overrideValueAtPath({id:e,path:t,rendererID:n,type:"state",value:o})})),Yt(this,"reloadAndProfile",(e=>{this._bridge.send("reloadAppForProfiling")})),Yt(this,"renamePath",(({hookID:e,id:t,newPath:n,oldPath:r,rendererID:o,type:i})=>{const s=this._rendererInterfaces[o];null==s?console.warn(`Invalid renderer id "${o}" for element "${t}"`):s.renamePath(i,t,e,r,n)})),Yt(this,"setTraceUpdatesEnabled",(e=>{this._traceUpdatesEnabled=!1;for(const e in this._rendererInterfaces)this._rendererInterfaces[e].setTraceUpdatesEnabled(!1)})),Yt(this,"syncSelectionFromNativeElementsPanel",(()=>{const e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;null!=e&&this.selectNode(e)})),Yt(this,"shutdown",(()=>{this.emit("shutdown")})),Yt(this,"startProfiling",(e=>{this._recordChangeDescriptions=e,this._isProfiling=!0;for(const t in this._rendererInterfaces)this._rendererInterfaces[t].startProfiling(e);this._bridge.send("profilingStatus",this._isProfiling)})),Yt(this,"stopProfiling",(()=>{this._isProfiling=!1,this._recordChangeDescriptions=!1;for(const e in this._rendererInterfaces)this._rendererInterfaces[e].stopProfiling();this._bridge.send("profilingStatus",this._isProfiling)})),Yt(this,"stopInspectingNative",(e=>{this._bridge.send("stopInspectingNative",e)})),Yt(this,"storeAsGlobal",(({count:e,id:t,path:n,rendererID:r})=>{const o=this._rendererInterfaces[r];null==o?console.warn(`Invalid renderer id "${r}" for element "${t}"`):o.storeAsGlobal(t,n,e)})),Yt(this,"updateConsolePatchSettings",(({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o})=>{$t({appendComponentStack:e,breakOnConsoleErrors:t,showInlineWarningsAndErrors:n,hideConsoleLogsInStrictMode:r,browserTheme:o})})),Yt(this,"updateComponentFilters",(e=>{for(const t in this._rendererInterfaces)this._rendererInterfaces[t].updateComponentFilters(e)})),Yt(this,"viewAttributeSource",(({id:e,path:t,rendererID:n})=>{const r=this._rendererInterfaces[n];null==r?console.warn(`Invalid renderer id "${n}" for element "${e}"`):r.prepareViewAttributeSource(e,t)})),Yt(this,"viewElementSource",(({id:e,rendererID:t})=>{const n=this._rendererInterfaces[t];null==n?console.warn(`Invalid renderer id "${t}" for element "${e}"`):n.prepareViewElementSource(e)})),Yt(this,"onTraceUpdates",(e=>{this.emit("traceUpdates",e)})),Yt(this,"onFastRefreshScheduled",(()=>{t&&Qt("onFastRefreshScheduled"),this._bridge.send("fastRefreshScheduled")})),Yt(this,"onHookOperations",(e=>{if(t&&Qt("onHookOperations",`(${e.length}) [${e.join(", ")}]`),this._bridge.send("operations",e),null!==this._persistedSelection){const t=e[0];if(this._persistedSelection.rendererID===t){const e=this._rendererInterfaces[t];if(null==e)console.warn(`Invalid renderer id "${t}"`);else{const t=this._persistedSelectionMatch,n=e.getBestMatchForTrackedPath();this._persistedSelectionMatch=n;const r=null!==t?t.id:null,o=null!==n?n.id:null;r!==o&&null!==o&&this._bridge.send("selectFiber",o),null!==n&&n.isFullMatch&&(this._persistedSelection=null,this._persistedSelectionMatch=null,e.setTrackedPath(null))}}}})),this._bridge=e,e.addListener("clearErrorsAndWarnings",this.clearErrorsAndWarnings),e.addListener("clearErrorsForFiberID",this.clearErrorsForFiberID),e.addListener("clearWarningsForFiberID",this.clearWarningsForFiberID),e.addListener("copyElementPath",this.copyElementPath),e.addListener("deletePath",this.deletePath),e.addListener("getBackendVersion",this.getBackendVersion),e.addListener("getBridgeProtocol",this.getBridgeProtocol),e.addListener("getProfilingData",this.getProfilingData),e.addListener("getProfilingStatus",this.getProfilingStatus),e.addListener("getOwnersList",this.getOwnersList),e.addListener("inspectElement",this.inspectElement),e.addListener("logElementToConsole",this.logElementToConsole),e.addListener("overrideError",this.overrideError),e.addListener("overrideSuspense",this.overrideSuspense),e.addListener("overrideValueAtPath",this.overrideValueAtPath),e.addListener("renamePath",this.renamePath),e.addListener("setTraceUpdatesEnabled",this.setTraceUpdatesEnabled),e.addListener("startProfiling",this.startProfiling),e.addListener("stopProfiling",this.stopProfiling),e.addListener("storeAsGlobal",this.storeAsGlobal),e.addListener("syncSelectionFromNativeElementsPanel",this.syncSelectionFromNativeElementsPanel),e.addListener("shutdown",this.shutdown),e.addListener("updateConsolePatchSettings",this.updateConsolePatchSettings),e.addListener("updateComponentFilters",this.updateComponentFilters),e.addListener("viewAttributeSource",this.viewAttributeSource),e.addListener("viewElementSource",this.viewElementSource),e.addListener("overrideContext",this.overrideContext),e.addListener("overrideHookState",this.overrideHookState),e.addListener("overrideProps",this.overrideProps),e.addListener("overrideState",this.overrideState),this._isProfiling&&e.send("profilingStatus",!0);const n="5.3.0-57ff604211";n&&this._bridge.send("backendVersion",n),this._bridge.send("bridgeProtocol",Wt),e.send("isBackendStorageAPISupported",!1),e.send("isSynchronousXHRSupported",!!(window.document&&window.document.featurePolicy&&window.document.featurePolicy.allowsFeature("sync-xhr"))),window.__RECORD_REPLAY_REACT_DEVTOOLS_SEND_MESSAGE__=(e,t)=>{let n;this._bridge={send(e,t){n={event:e,data:t}}};try{this[e](t)}catch(t){window.logMessage(`Error executing bridge message '${e}': ${t}, ${t.stack}`)}return n}}get rendererInterfaces(){return this._rendererInterfaces}getInstanceAndStyle({id:e,rendererID:t}){const n=this._rendererInterfaces[t];return null==n?(console.warn(`Invalid renderer id "${t}"`),null):n.getInstanceAndStyle(e)}getBestMatchingRendererInterface(e){let t=null;for(const n in this._rendererInterfaces){const r=this._rendererInterfaces[n],o=r.getFiberForNative(e);if(null!==o){if(o.stateNode===e)return r;null===t&&(t=r)}}return t}getIDForNode(e){const t=this.getBestMatchingRendererInterface(e);if(null!=t)try{return t.getFiberIDForNative(e,!0)}catch(e){}return null}selectNode(e){const t=this.getIDForNode(e);null!==t&&this._bridge.send("selectFiber",t)}setRendererInterface(e,t){this._rendererInterfaces[e]=t,this._isProfiling&&t.startProfiling(this._recordChangeDescriptions),t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);const n=this._persistedSelection;null!==n&&n.rendererID===e&&t.setTrackedPath(n.path)}onUnsupportedRenderer(e){this._bridge.send("unsupportedRendererVersion",e)}}function Kt(e,t,n){if(null==e)return()=>{};const r=[e.sub("renderer-attached",(({id:e,renderer:n,rendererInterface:r})=>{t.setRendererInterface(e,r),r.flushInitialOperations()})),e.sub("unsupported-renderer-version",(e=>{t.onUnsupportedRenderer(e)})),e.sub("fastRefreshScheduled",t.onFastRefreshScheduled),e.sub("operations",t.onHookOperations),e.sub("traceUpdates",t.onTraceUpdates)],o=(t,r)=>{if(function(e){return null!=e&&""!==e&&Re(e,Oe)}(r.reconcilerVersion||r.version))return;let o=e.rendererInterfaces.get(t);null==o&&("function"==typeof r.findFiberByHostInstance?o=Dt(e,t,r,n):r.ComponentTree,null!=o&&e.rendererInterfaces.set(t,o)),null!=o?e.emit("renderer-attached",{id:t,renderer:r,rendererInterface:o}):e.emit("unsupported-renderer-version",t)};e.renderers.forEach(((e,t)=>{o(t,e)})),r.push(e.sub("renderer",(({id:e,renderer:t})=>{o(e,t)}))),e.emit("react-devtools",t),e.reactDevtoolsAgent=t;const i=()=>{r.forEach((e=>e())),e.rendererInterfaces.forEach((e=>{e.cleanup()})),e.reactDevtoolsAgent=null};return t.addListener("shutdown",i),r.push((()=>{t.removeListener("shutdown",i)})),()=>{r.forEach((e=>e()))}}const Jt="compact";window.logMessage("RDT initializing"),function(e){if(null==e)return;const t=new Gt({listen(e){const t=t=>{t.source===window&&t.data&&"react-devtools-content-script"===t.data.source&&t.data.payload&&e(t.data.payload)};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},send(e,t,n){window.postMessage({source:"react-devtools-bridge",payload:{event:e,payload:t}},"*",n)}});Kt(e,new qt(t),window),e.backends.set(Jt,{Agent:qt,Bridge:Gt,initBackend:Kt,setupNativeStyleEditor:()=>{}}),e.emit("devtools-backend-installed",Jt)}(window.__REACT_DEVTOOLS_GLOBAL_HOOK__),window.logMessage("RDT setup complete")})()})(); +//# sourceMappingURL=react_devtools_backend_compact.js.map } From 07ba7596d5c1341654de8dc4b9209325c7329a29 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Tue, 2 Jul 2024 17:50:45 -0400 Subject: [PATCH 2/2] Fix broken string replacement for RDT injection --- .../react-devtools/injectReactDevtoolsBackend.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/components/SecondaryToolbox/react-devtools/injectReactDevtoolsBackend.ts b/src/ui/components/SecondaryToolbox/react-devtools/injectReactDevtoolsBackend.ts index eb41b0a78e1..e37bd21566d 100644 --- a/src/ui/components/SecondaryToolbox/react-devtools/injectReactDevtoolsBackend.ts +++ b/src/ui/components/SecondaryToolbox/react-devtools/injectReactDevtoolsBackend.ts @@ -125,9 +125,13 @@ function installReactDevToolsIntoPause() { const injectGlobalHookSource = require("./installHook.raw.js").default; const reactDevtoolsBackendSource = require("./react_devtools_backend.raw.js").default; +// Use function replacer syntax to avoid accidentally replacing special +// characters like `$&`, which could show up in the bundle source +// if the minifier renames things in an annoyingly specific way +// (such as `c === $ && x` becoming `c===$&&x`) const rdtInjectionExpression = `(${installReactDevToolsIntoPause})()` - .replace("INSTALL_HOOK_PLACEHOLDER", `(${injectGlobalHookSource})`) - .replace("DEVTOOLS_PLACEHOLDER", `(${reactDevtoolsBackendSource})`); + .replace("INSTALL_HOOK_PLACEHOLDER", () => `(${injectGlobalHookSource})`) + .replace("DEVTOOLS_PLACEHOLDER", () => `(${reactDevtoolsBackendSource})`); export const reactDevToolsInjectionCache: Cache< [replayClient: ReplayClientInterface, pauseId: PauseId],