/*! * React DevTools `installHook.js` (vendored from facebook/react). * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license: * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (()=>{var e={4659:(e,t,n)=>{"use strict";var r=n(8715),o=n(1147),s=Object.assign,i=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,a=Symbol.for("react.context"),l=Symbol.for("react.memo_cache_sentinel"),u=Object.prototype.hasOwnProperty,c=[],d=null;function getPrimitiveStackCache(){if(null===d){var e=new Map;try{if(v.useContext({_currentValue:null}),v.useState(null),v.useReducer((function(e){return e}),null),v.useRef(null),"function"==typeof v.useCacheRefresh&&v.useCacheRefresh(),v.useLayoutEffect((function(){})),v.useInsertionEffect((function(){})),v.useEffect((function(){})),v.useImperativeHandle(void 0,(function(){return null})),v.useDebugValue(null),v.useCallback((function(){})),v.useTransition(),v.useSyncExternalStore((function(){return function(){}}),(function(){return null}),(function(){return null})),v.useDeferredValue(null),v.useMemo((function(){return null})),v.useOptimistic(null,(function(e){return e})),v.useFormState((function(e){return e}),null),v.useActionState((function(e){return e}),null),v.useHostTransitionStatus(),"function"==typeof v.useMemoCache&&v.useMemoCache(0),"function"==typeof v.use){v.use({$$typeof:a,_currentValue:null}),v.use({then:function(){},status:"fulfilled",value:null});try{v.use({then:function(){}})}catch(e){}}v.useId(),"function"==typeof v.useEffectEvent&&v.useEffectEvent((function(){}))}finally{var t=c;c=[]}for(var n=0;nm;m++)if(-1!==(p=findSharedIndex(f,c,m))){w=m,c=p;break e}c=-1}}e:{if(f=d,void 0!==(p=getPrimitiveStackCache().get(u.primitive)))for(m=0;mc-f?-1===f?[null,null]:[d[f-1],null]:[d[f-1],d.slice(f,c-1)])[0],d=d[1],null===(c=u.displayName)&&null!==f&&(c=parseHookName(f.functionName)||parseHookName(u.dispatcherHookName)),null!==d){if(f=0,null!==o){for(;ff;o--)s=a.pop()}for(o=d.length-f-1;1<=o;o--)f=[],p=d[o],p={id:null,isStateEditable:!1,name:parseHookName(d[o-1].functionName),value:void 0,subHooks:f,debugInfo:null,hookSource:{lineNumber:void 0===p.lineNumber?null:p.lineNumber,columnNumber:void 0===p.columnNumber?null:p.columnNumber,functionName:void 0===p.functionName?null:p.functionName,fileName:void 0===p.fileName?null:p.fileName}},s.push(p),a.push(s),s=f;o=d}f=u.primitive,p=u.debugInfo,u={id:"Context"===f||"Context (use)"===f||"DebugValue"===f||"Promise"===f||"Unresolved"===f||"HostTransitionStatus"===f?null:i++,isStateEditable:"Reducer"===f||"State"===f,name:c||f,value:u.value,subHooks:[],debugInfo:p,hookSource:null},c={lineNumber:null,functionName:null,fileName:null,columnNumber:null},d&&1<=d.length&&(d=d[0],c.lineNumber=void 0===d.lineNumber?null:d.lineNumber,c.functionName=void 0===d.functionName?null:d.functionName,c.fileName=void 0===d.fileName?null:d.fileName,c.columnNumber=void 0===d.columnNumber?null:d.columnNumber),u.hookSource=c,s.push(u)}return processDebugValues(n,null),n}function processDebugValues(e,t){for(var n=[],r=0;r{"use strict";e.exports=n(4659)},5945:(e,t,n)=>{"use strict";var r=n(397),o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.for("react.view_transition"),v=Symbol.iterator;var b=Symbol.for("react.optimistic_key"),w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function Component(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}function ComponentDummy(){}function PureComponent(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}Component.prototype.isReactComponent={},Component.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")},Component.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ComponentDummy.prototype=Component.prototype;var C=PureComponent.prototype=new ComponentDummy;C.constructor=PureComponent,S(C,Component.prototype),C.isPureReactComponent=!0;var E=Array.isArray;function noop(){}var I={H:null,A:null,T:null,S:null,G:null},_=Object.prototype.hasOwnProperty;function ReactElement(e,t,n){var r=n.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:n}}function isValidElement(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function getElementKey(e,t){return"object"==typeof e&&null!==e&&null!=e.key?e.key===b?t.toString(36):(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function mapIntoArray(e,t,n,r,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(a){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case s:c=!0;break;case h:return mapIntoArray((c=e._init)(e._payload),t,n,r,i)}}if(c)return i=i(e),c=""===r?"."+getElementKey(e,0):r,E(i)?(n="",null!=c&&(n=c.replace(T,"$&/")+"/"),mapIntoArray(i,t,n,"",(function(e){return e}))):null!=i&&(isValidElement(i)&&(l=i,u=n+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+c,i=ReactElement(l.type,u,l.props)),t.push(i)),1;c=0;var d,f=""===r?".":r+":";if(E(e))for(var p=0;p{"use strict";e.exports=n(5945)},8715:function(e,t,n){var r,o,s;!function(i,a){"use strict";o=[n(7356)],void 0===(s="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),s=this.extractLocation(r?r[1]:o.pop()),i=o.join(" ")||void 0,a=["eval",""].indexOf(s[0])>-1?void 0:s[0];return new e({functionName:i,fileName:a,lineNumber:s[1],columnNumber:s[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,s=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[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=[],s=2,i=r.length;s/,"$2").replace(/\([^)]*\)/g,"")||void 0;s.match(/\(([^)]*)\)/)&&(n=s.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:i,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=s)}()},3018:(e,t,n)=>{"use strict";const r=n(5986),o=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),naiveLength=()=>1;const get=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(isStale(e,t)){if(del(e,r),!e[a])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},trim=e=>{if(e[s]>e[o])for(let t=e[d].tail;e[s]>e[o]&&null!==t;){const n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class m{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const forEachStep=(e,t,n,r)=>{let o=n.value;isStale(e,o)&&(del(e,n),e[a]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||naiveLength;if(this[i]="function"!=typeof t?naiveLength:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,trim(this)}get max(){return this[o]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[i]&&(this[i]=e,this[s]=0,this[d].forEach((e=>{e.length=this[i](e.value,e.key),this[s]+=e.length}))),trim(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;forEachStep(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;forEachStep(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[f]=new Map,this[d]=new r,this[s]=0}dump(){return this[d].map((e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[i](t,e);if(this[f].has(e)){if(a>this[o])return del(this,this[f].get(e)),!1;const i=this[f].get(e).value;return this[u]&&(this[c]||this[u](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[s]+=a-i.length,i.length=a,this.get(e),trim(this),!0}const p=new m(e,t,a,r,n);return p.length>this[o]?(this[u]&&this[u](e,t),!1):(this[s]+=p.length,this[d].unshift(p),this[f].set(e,this[d].head),trim(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){const e=this[d].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach(((e,t)=>get(this,t,!1)))}}},397:e=>{var t,n,r=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!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:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var o,s=[],i=!1,a=-1;function cleanUpNextTick(){i&&o&&(i=!1,o.length?s=o.concat(s):a=-1,s.length&&drainQueue())}function drainQueue(){if(!i){var e=runTimeout(cleanUpNextTick);i=!0;for(var t=s.length;t;){for(o=s,s=[];++a1)for(var n=1;n{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},5986:(e,t,n)=>{"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n1)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},Yallist.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},Yallist.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},Yallist.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},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},Yallist.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=!1,t=1,n=2,r=3,o=4,s=5,i=7,a=8,l=9,u=10,c=11,d=12,f=13,p=1,m=2,h=4,g=0,y=1,v=2,b=3,w="%s";let S,k,C,E,I,_,T,F,R=0;function disabledLog(){}function describeBuiltInComponentFrame(e){if(void 0===F)try{throw Error()}catch(e){const t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}let t="";return t=" ()","\n"+F+e+t}disabledLog.__reactDisabledLog=!0;let D=!1;function describeNativeComponentFrame(e,t,n){if(!e||D)return"";const r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,D=!0;const o=n.H;n.H=null,function(){if(0===R){S=console.log,k=console.info,C=console.warn,E=console.error,I=console.group,_=console.groupCollapsed,T=console.groupEnd;const e={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}();try{const n={DetermineComponentFrameRoot(){let n;try{if(t){const Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(e){n=e}Reflect.construct(e,[],Fake)}else{try{Fake.call()}catch(e){n=e}e.call(Fake.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]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";const r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});const[o,s]=n.DetermineComponentFrameRoot();if(o&&s){const t=o.split("\n"),n=s.split("\n");let r=0,i=0;for(;r=1&&i>=0&&t[r]!==n[i];)i--;for(;r>=1&&i>=0;r--,i--)if(t[r]!==n[i]){if(1!==r||1!==i)do{if(r--,i--,i<0||t[r]!==n[i]){let n="\n"+t[r].replace(" at new "," at ");return e.displayName&&n.includes("")&&(n=n.replace("",e.displayName)),n}}while(r>=1&&i>=0);break}}}finally{D=!1,Error.prepareStackTrace=r,n.H=o,function(){if(R--,0===R){const e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:{...e,value:S},info:{...e,value:k},warn:{...e,value:C},error:{...e,value:E},group:{...e,value:I},groupCollapsed:{...e,value:_},groupEnd:{...e,value:T}})}R<0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}()}const s=e?e.displayName||e.name:"";return s?describeBuiltInComponentFrame(s):""}function describeFunctionComponentFrame(e,t){return describeNativeComponentFrame(e,!1,t)}function formatOwnerStack(e){const t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e.stack;Error.prepareStackTrace=t,n.startsWith("Error: react-stack-top-frame\n")&&(n=n.slice(29));let r=n.indexOf("\n");return-1!==r&&(n=n.slice(r+1)),r=n.indexOf("react_stack_bottom_frame"),-1===r&&(r=n.indexOf("react-stack-bottom-frame")),-1!==r&&(r=n.lastIndexOf("\n",r)),-1===r?"":(n=n.slice(0,r),n)}const x=new WeakMap,compareVersions=(e,t)=>{const n=validateAndParse(e),r=validateAndParse(t),o=n.pop(),s=r.pop(),i=compareSegments(n,r);return 0!==i?i:o&&s?compareSegments(o.split("."),s.split(".")):o||s?o?-1:1:0},N=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,validateAndParse=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(N);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},isWildcard=e=>"*"===e||"x"===e||"X"===e,tryParse=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},compareStrings=(e,t)=>{if(isWildcard(e)||isWildcard(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(tryParse(e),tryParse(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};Object.keys(O);var P=__webpack_require__(3018),H=__webpack_require__.n(P);const A=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),U=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=(Symbol.for("react.scope"),Symbol.for("react.activity"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker")),Q=(Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.view_transition"));Symbol.iterator;Symbol.asyncIterator,Symbol.for("react.optimistic_key");const X=1,Z=2,J=5,ee=6,te=7,ne=8,re=9,oe=10,se=11,ie=12,ae=13,le=14,ue=15,ce=16,de=17,fe=1,pe=2,me=3,he=4,ge=5,ye=6,ve=1;function sessionStorageGetItem(e){try{return sessionStorage.getItem(e)}catch(e){return null}}const be=Array.isArray,we=Object.prototype.hasOwnProperty,Se=new WeakMap,ke=new(H())({max:1e3}),Ce=Symbol.for("react.provider");function alphaSortKeys(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function getAllEnumerableKeys(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 getWrappedDisplayName(e,t,n,r){const o=e?.displayName;return o||`${n}(${getDisplayName(t,r)})`}function getDisplayName(e,t="Anonymous"){const n=Se.get(e);if(null!=n)return n;let r=t;return"string"==typeof e.displayName?r=e.displayName:"string"==typeof e.name&&""!==e.name&&(r=e.name),Se.set(e,r),r}let Ee=0;function getUID(){return++Ee}function utfDecodeStringWithRanges(e,t,n){let r="";for(let o=t;o<=n;o++)r+=String.fromCodePoint(e[o]);return r}function utfEncodeString(e){const t=ke.get(e);if(void 0!==t)return t;const n=[];let r,o=0;for(;o{if(e){if(we.call(e,t))return e[t];if("function"==typeof e[Symbol.iterator])return Array.from(e)[t]}return null}),e)}function deletePathInObject(e,t){const n=t.length,r=t[n-1];if(null!=e){const o=utils_getInObject(e,t.slice(0,n-1));o&&(be(o)?o.splice(r,1):delete o[r])}}function renamePathInObject(e,t,n){const r=t.length;if(null!=e){const o=utils_getInObject(e,t.slice(0,r-1));if(o){const e=t[r-1];o[n[r-1]]=o[e],be(o)?o.splice(e,1):delete o[e]}}}function utils_setInObject(e,t,n){const r=t.length,o=t[r-1];if(null!=e){const s=utils_getInObject(e,t.slice(0,r-1));s&&(s[o]=n)}}function getDataType(e){if(null===e)return"null";if(void 0===e)return"undefined";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":switch(e.$$typeof){case M:case A:return"react_element";case K:return"react_lazy"}if(be(e))return"array";if(ArrayBuffer.isView(e))return we.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";if("function"==typeof e.then)return"thenable";if(function(e){if("name"in e&&"message"in e)for(;e;){if("[object Error]"===Object.prototype.toString.call(e))return!0;e=Object.getPrototypeOf(e)}return!1}(e))return"error";{const t=Object.prototype.toString.call(e);if("[object Date]"===t)return"date";if("[object HTMLAllCollection]"===t)return"html_all_collection"}}return isPlainObject(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 getDisplayNameForReactElement(e){const t=function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case M:case A:const n=e.type;switch(n){case $:case L:case B:case W:case q:case Q:return n;default:const e=n&&n.$$typeof;switch(e){case U:case V:case K:case Y:case j:return e;default:return t}}case z:return t}}}(e);switch(t){case j:return"ContextConsumer";case Ce:return"ContextProvider";case U:return"Context";case V:return"ForwardRef";case $:return"Fragment";case K:return"Lazy";case Y:return"Memo";case z:return"Portal";case L:return"Profiler";case B:return"StrictMode";case W:return"Suspense";case q:return"SuspenseList";case Q:return"ViewTransition";case G:return"TracingMarker";default:const{type:t}=e;return"string"==typeof t?t:"function"==typeof t?getDisplayName(t,"Anonymous"):null!=t?"NotImplementedInDevtools":"Element"}}const Ie=50;function truncateForDisplay(e,t=Ie){return e.length>t?e.slice(0,t)+"…":e}function formatDataForPreview(e,t){if(null!=e&&we.call(e,_e.type))return t?e[_e.preview_long]:e[_e.preview_short];switch(getDataType(e)){case"html_element":return`<${truncateForDisplay(e.tagName.toLowerCase())} />`;case"function":return"function"==typeof e.name||""===e.name?"() => {}":`${truncateForDisplay(e.name)}() {}`;case"string":return`"${e}"`;case"bigint":return truncateForDisplay(e.toString()+"n");case"regexp":case"symbol":return truncateForDisplay(e.toString());case"react_element":return`<${truncateForDisplay(getDisplayNameForReactElement(e)||"Unknown")} />`;case"react_lazy":const n=e._payload;if(null!==n&&"object"==typeof n){if(0===n._status)return"pending lazy()";if(1===n._status&&null!=n._result){if(t){return`fulfilled lazy() {${truncateForDisplay(formatDataForPreview(n._result.default,!1))}}`}return"fulfilled lazy() {…}"}if(2===n._status){if(t){return`rejected lazy() {${truncateForDisplay(formatDataForPreview(n._result,!1))}}`}return"rejected lazy() {…}"}if("pending"===n.status||"blocked"===n.status)return"pending lazy()";if("fulfilled"===n.status){if(t){return`fulfilled lazy() {${truncateForDisplay(formatDataForPreview(n.value,!1))}}`}return"fulfilled lazy() {…}"}if("rejected"===n.status){if(t){return`rejected lazy() {${truncateForDisplay(formatDataForPreview(n.reason,!1))}}`}return"rejected lazy() {…}"}}return"lazy()";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+=formatDataForPreview(e[n],!1),!(t.length>Ie));n++);return`[${truncateForDisplay(t)}]`}return`Array(${we.call(e,_e.size)?e[_e.size]:e.length})`;case"typed_array":const r=`${e.constructor.name}(${e.length})`;if(t){let t="";for(let n=0;n0&&(t+=", "),t+=e[n],!(t.length>Ie));n++);return`${r} [${truncateForDisplay(t)}]`}return r;case"iterator":const o=e.constructor.name;if(t){const t=Array.from(e);let n="";for(let e=0;e0&&(n+=", "),be(r)){n+=`${formatDataForPreview(r[0],!0)} => ${formatDataForPreview(r[1],!1)}`}else n+=formatDataForPreview(r,!1);if(n.length>Ie)break}return`${o}(${e.size}) {${truncateForDisplay(n)}}`}return`${o}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":try{let t=e.constructor.name;if("string"==typeof t)return t;if(t=Object.getPrototypeOf(e).constructor.name,"string"==typeof t)return t;try{return truncateForDisplay(String(e))}catch(e){return"unserializable"}}catch(e){return"unserializable"}case"thenable":let s;if(isPlainObject(e))s="Thenable";else{let t=e.constructor.name;"string"!=typeof t&&(t=Object.getPrototypeOf(e).constructor.name),s="string"==typeof t?t:"Thenable"}switch(e.status){case"pending":return`pending ${s}`;case"fulfilled":if(t){return`fulfilled ${s} {${truncateForDisplay(formatDataForPreview(e.value,!1))}}`}return`fulfilled ${s} {…}`;case"rejected":if(t){return`rejected ${s} {${truncateForDisplay(formatDataForPreview(e.reason,!1))}}`}return`rejected ${s} {…}`;default:return s}case"object":if(t){const t=Array.from(getAllEnumerableKeys(e)).sort(alphaSortKeys);let n="";for(let r=0;r0&&(n+=", "),n+=`${o.toString()}: ${formatDataForPreview(e[o],!1)}`,n.length>Ie)break}return`{${truncateForDisplay(n)}}`}return"{…}";case"error":return truncateForDisplay(String(e));case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return String(e);default:try{return truncateForDisplay(String(e))}catch(e){return"unserializable"}}}const isPlainObject=e=>{const t=Object.getPrototypeOf(e);if(!t)return!0;return!Object.getPrototypeOf(t)};function noop(){}const _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")},Te=2;function createDehydrated(e,t,n,r,o){r.push(o);const s={inspectable:t,type:e,preview_long:formatDataForPreview(n,!0),preview_short:formatDataForPreview(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?s.size=n.length:"object"===e&&(s.size=Object.keys(n).length),"iterator"!==e&&"typed_array"!==e||(s.readonly=!0),s}function dehydrate(e,t,n,r,o,s=0){const i=getDataType(e);let a;switch(i){case"html_element":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.tagName,type:i};case"function":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"function"!=typeof e.name&&e.name?e.name:"function",type:i};case"string":return a=o(r),a||e.length<=500?e:e.slice(0,500)+"...";case"bigint":case"symbol":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};case"react_element":{if(a=o(r),s>=Te&&!a)return t.push(r),{inspectable:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:getDisplayNameForReactElement(e)||"Unknown",type:i};const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:getDisplayNameForReactElement(e)||"Unknown"};return l.key=dehydrate(e.key,t,n,r.concat(["key"]),o,a?1:s+1),e.$$typeof===A&&(l.ref=dehydrate(e.ref,t,n,r.concat(["ref"]),o,a?1:s+1)),l.props=dehydrate(e.props,t,n,r.concat(["props"]),o,a?1:s+1),n.push(r),l}case"react_lazy":{a=o(r);const l=e._payload;if(s>=Te&&!a){t.push(r);return{inspectable:null!==l&&"object"==typeof l&&(1===l._status||2===l._status||"fulfilled"===l.status||"rejected"===l.status),preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"lazy()",type:i}}const u={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"lazy()"};return u._payload=dehydrate(l,t,n,r.concat(["_payload"]),o,a?1:s+1),n.push(r),u}case"array_buffer":case"data_view":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"data_view"===i?"DataView":"ArrayBuffer",size:e.byteLength,type:i};case"array":if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l=[];for(let i=0;i=Te&&!a)return createDehydrated(i,!0,e,t,r);{const l={unserializable:!0,type:i,readonly:!0,size:"typed_array"===i?e.length:void 0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(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,i)=>l[i]=dehydrate(e,t,n,r.concat([i]),o,a?1:s+1))),n.push(r),l}case"opaque_iterator":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e[Symbol.toStringTag],type:i};case"date":case"regexp":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};case"thenable":if(a=o(r),s>=Te&&!a)return t.push(r),{inspectable:"fulfilled"===e.status||"rejected"===e.status,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};switch("resolved_model"!==e.status&&"resolve_module"!==e.status||e.then(noop),e.status){case"fulfilled":{const l={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"fulfilled Thenable"};return l.value=dehydrate(e.value,t,n,r.concat(["value"]),o,a?1:s+1),n.push(r),l}case"rejected":{const l={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"rejected Thenable"};return l.reason=dehydrate(e.reason,t,n,r.concat(["reason"]),o,a?1:s+1),n.push(r),l}default:return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i}}case"object":if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);{const i={};return getAllEnumerableKeys(e).forEach((l=>{const u=l.toString();i[u]=dehydrateKey(e,l,t,n,r.concat([u]),o,a?1:s+1)})),i}case"class_instance":{if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name?"":e.constructor.name};return getAllEnumerableKeys(e).forEach((i=>{const u=i.toString();l[u]=dehydrate(e[i],t,n,r.concat([u]),o,a?1:s+1)})),n.push(r),l}case"error":{if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.name};return l.message=dehydrate(e.message,t,n,r.concat(["message"]),o,a?1:s+1),l.stack=dehydrate(e.stack,t,n,r.concat(["stack"]),o,a?1:s+1),"cause"in e&&(l.cause=dehydrate(e.cause,t,n,r.concat(["cause"]),o,a?1:s+1)),getAllEnumerableKeys(e).forEach((i=>{const u=i.toString();l[u]=dehydrate(e[i],t,n,r.concat([u]),o,a?1:s+1)})),n.push(r),l}case"infinity":case"nan":case"undefined":return t.push(r),{type:i};default:return e}}function dehydrateKey(e,t,n,r,o,s,i=0){try{return dehydrate(e[t],n,r,o,s,i)}catch(e){let t="";return"object"==typeof e&&null!==e&&"string"==typeof e.stack?t=e.stack:"string"==typeof e&&(t=e),n.push(o),{inspectable:!1,preview_short:"[Exception]",preview_long:t?"[Exception: "+t+"]":"[Exception]",name:t,type:"unknown"}}}const Fe=Array.isArray;const shared_isArray=function(e){return Fe(e)},Re="999.9.9";function cleanForBridge(e,t,n=[]){if(null!==e){const r=[],o=[];return{data:dehydrate(e,r,o,n,t),cleaned:r,unserializable:o}}return null}function copyWithDelete(e,t,n=0){const r=t[n],o=shared_isArray(e)?e.slice():{...e};return n+1===t.length?shared_isArray(o)?o.splice(r,1):delete o[r]:o[r]=copyWithDelete(e[r],t,n+1),o}function copyWithRename(e,t,n,r=0){const o=t[r],s=shared_isArray(e)?e.slice():{...e};if(r+1===t.length){s[n[r]]=s[o],shared_isArray(s)?s.splice(o,1):delete s[o]}else s[o]=copyWithRename(e[o],t,n,r+1);return s}function copyWithSet(e,t,n,r=0){if(r>=t.length)return n;const o=t[r],s=shared_isArray(e)?e.slice():{...e};return s[o]=copyWithSet(e[o],t,n,r+1),s}function serializeToString(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)}function safeToString(e){try{return String(e)}catch(t){if("object"==typeof e)return"[object Object]";throw t}}function formatConsoleArgumentsToSingleString(e,...t){const n=t.slice();let r=safeToString(e);if("string"==typeof e&&n.length){const e=/(%?)(%([jds]))/g;r=r.replace(e,((e,t,r,o)=>{let s=n.shift();switch(o){case"s":s+="";break;case"d":case"i":s=parseInt(s,10).toString();break;case"f":s=parseFloat(s).toString()}return t?(n.unshift(s),e):s}))}if(n.length)for(let e=0;e-1}function formatDurationToMicrosecondsGranularity(e){return Math.round(1e3*e)/1e3}function attach(e,t,n,r){const{getCurrentComponentInfo:o}=n;return{cleanup(){},clearErrorsAndWarnings(){},clearErrorsForElementID(){},clearWarningsForElementID(){},getSerializedElementValueByPath(){},deletePath(){},findHostInstancesForElementID:()=>null,findLastKnownRectsForID:()=>null,flushInitialOperations(){},getBestMatchForTrackedPath:()=>null,getComponentStack:function(e){if(void 0===o)return null;const t=o();if(null===t)return null;if(t.debugTask)return null;const n=null!=t.debugStack;let r="";if(n){const n=formatOwnerStack(e);n&&(r+="\n"+n),r+=function(e){try{let t="";if(!e.owner&&"string"==typeof e.name)return describeBuiltInComponentFrame(e.name);let n=e;for(;n;){const e=n.debugStack;if(null==e)break;n=n.owner,n&&(t+="\n"+formatOwnerStack(e))}return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}(t)}return{enableOwnerStacks:n,componentStack:r}},getDisplayNameForElementID:()=>null,getNearestMountedDOMNode:()=>null,getElementIDForHostInstance:()=>null,getSuspenseNodeIDForHostInstance:()=>null,getInstanceAndStyle:()=>({instance:null,style:null}),getOwnersList:()=>null,getPathForElement:()=>null,getProfilingData(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot(){},handleCommitFiberUnmount(){},handlePostCommitFiberRoot(){},hasElementWithId:()=>!1,inspectElement:(e,t,n)=>({id:t,responseID:e,type:"not-found"}),logElementToConsole(){},getElementAttributeByPath(){},getElementSourceFunctionById(){},onErrorOrWarning:function(e,t){if(void 0===o)return;const n=o();if(null===n)return;if(t.length>3&&"string"==typeof t[0]&&t[0].startsWith("%c%s%c ")&&"string"==typeof t[1]&&"string"==typeof t[2]&&"string"==typeof t[3]){const e=t[0].slice(7),r=t[2].trim();t=t.slice(4),r!==n.env?t.unshift("["+r+"] "+e):t.unshift(e)}const r=formatConsoleArgumentsToSingleString(...t);let s=x.get(n);void 0===s&&(s={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},x.set(n,s));const i="error"===e?s.errors:s.warnings,a=i.get(r)||0;i.set(r,a+1),"error"===e?s.errorsCount++:s.warningsCount++},overrideError(){},overrideSuspense(){},overrideSuspenseMilestone(){},overrideValueAtPath(){},renamePath(){},renderer:n,setTraceUpdatesEnabled(){},setTrackedPath(){},startProfiling(){},stopProfiling(){},storeAsGlobal(){},supportsTogglingSuspense:!1,updateComponentFilters(){},getEnvironmentNames:()=>[]}}const De=/^((?:.*".+")?[^@]*)@(.+):(\d+):(\d+)$/;const xe=/^\s*at .*(\S+:\d+|\(native\))/m;function parseStackTraceFromString(e,t){return e.match(xe)?function(e,t){e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29));let n=e.indexOf("react_stack_bottom_frame");-1===n&&(n=e.indexOf("react-stack-bottom-frame")),-1!==n&&(n=e.lastIndexOf("\n",n)),-1!==n&&(e=e.slice(0,n));const r=e.split("\n"),o=[];for(let e=t;e"===n?n="":n.startsWith("async ")&&(n=n.slice(5),s=!0);let i=t[2]||t[5]||"";""===i&&(i="");const a=+(t[3]||t[6]||0),l=+(t[4]||t[7]||0);o.push([n,i,a,l,0,0,s])}return o}(e,t):function(e,t){let n=e.indexOf("react_stack_bottom_frame");-1===n&&(n=e.indexOf("react-stack-bottom-frame")),-1!==n&&(n=e.lastIndexOf("\n",n)),-1!==n&&(e=e.slice(0,n));const r=e.split("\n"),o=[];for(let e=t;e"),o}function collectStackTrace(e,t){const n=[];for(let e=Ne;e":"";if(o.includes("react_stack_bottom_frame")||o.includes("react-stack-bottom-frame"))break;if("function"==typeof r.isNative&&r.isNative()){const e="function"==typeof r.isAsync&&r.isAsync();n.push([o,"",0,0,0,0,e])}else{"function"==typeof r.isConstructor&&r.isConstructor()?o="new "+o:"function"!=typeof r.isToplevel||r.isToplevel()||(o=getMethodCallName(r)),""===o&&(o="");let e="function"==typeof r.getScriptNameOrSourceURL?r.getScriptNameOrSourceURL()||"":"";if(""===e&&(e="","function"==typeof r.isEval&&r.isEval())){const t="function"==typeof r.getEvalOrigin?r.getEvalOrigin():null;t&&(e=t.toString()+", ")}const t="function"==typeof r.getLineNumber&&r.getLineNumber()||0,s="function"==typeof r.getColumnNumber&&r.getColumnNumber()||0,i="function"==typeof r.getEnclosingLineNumber&&r.getEnclosingLineNumber()||0,a="function"==typeof r.getEnclosingColumnNumber&&r.getEnclosingColumnNumber()||0,l="function"==typeof r.isAsync&&r.isAsync();n.push([o,e,t,s,i,a,l])}}Oe=n;let r=(e.name||"Error")+": "+(e.message||"");for(let e=0;e)\)|(?:async )?(.+):(\d+):(\d+)|\)$/,Ae=new WeakMap;function parseStackTrace(e,t){const n=Ae.get(e);if(void 0!==n)return n;Oe=null,Ne=t;const r=Error.prepareStackTrace;let o;Error.prepareStackTrace=collectStackTrace;try{o=String(e.stack)}finally{Error.prepareStackTrace=r}if(null!==Oe){const t=Oe;return Oe=null,Ae.set(e,t),t}const s=parseStackTraceFromString(o,t);return Ae.set(e,s),s}function extractLocationFromComponentStack(e){const t=parseStackTraceFromString(e,0);for(let e=0;e{null!=e&&(be(e)?crawlData(e,t,n):crawlObjectProperties(e,t,n))})):crawlObjectProperties(e,t,n),n=Object.fromEntries(Object.entries(n).sort()))}function crawlObjectProperties(e,t,n){Object.keys(e).forEach((r=>{const o=e[r];if("string"==typeof o)if(r===o)t.add(r);else{const e=function(e){if(lt.has(e))return lt.get(e);for(let t=0;tperformance.now():()=>Date.now();function createProfilingHooks({getDisplayNameForFiber:e,getIsProfiling:t,getLaneLabelMap:n,workTagMap:r,currentDispatcherRef:o,reactVersion:s}){let i=0,a=null,l=[],u=null,c=new Map,d=!1,f=!1;function getRelativeTime(){const e=yt();return u?(0===u.startTime&&(u.startTime=e-ft),e-u.startTime):0}function getInternalModuleRanges(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges){const e=__REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();if(shared_isArray(e))return e}return null}function laneToLanesArray(e){const t=[];let n=1;for(let r=0;r0){const e=l[l.length-1];n="render-idle"===e.type?e.depth:e.depth+1}const r=laneToLanesArray(t),o={type:e,batchUID:i,depth:n,lanes:r,timestamp:getRelativeTime(),duration:0};if(l.push(o),u){const{batchUIDToMeasuresMap:e,laneToReactMeasureMap:t}=u;let n=e.get(i);null!=n?n.push(o):e.set(i,[o]),r.forEach((e=>{n=t.get(e),n&&n.push(o)}))}}function recordReactMeasureCompleted(e){const t=getRelativeTime();if(0===l.length)return void console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.',e,t);const n=l.pop();n.type!==e&&console.error('Unexpected type "%s" completed at %sms before "%s" completed.',e,t,n.type),n.duration=t-n.timestamp,u&&(u.duration=getRelativeTime()+ft)}const m=new("function"==typeof WeakMap?WeakMap:Map);let h=0;return{getTimelineData:function(){return u},profilingHooks:{markCommitStarted:function(e){d&&(recordReactMeasureStarted("commit",e),f=!0,ht&&(markAndClear(`--commit-start-${e}`),function(){markAndClear(`--react-version-${s}`),markAndClear(`--profiler-version-${dt}`);const e=getInternalModuleRanges();if(e)for(let t=0;t{c&&(c.duration=getRelativeTime()-c.timestamp,c.resolution="resolved"),ht&&markAndClear(`--suspense-resolved-${s}-${i}`)}),(()=>{c&&(c.duration=getRelativeTime()-c.timestamp,c.resolution="rejected"),ht&&markAndClear(`--suspense-rejected-${s}-${i}`)})))},markLayoutEffectsStarted:function(e){d&&(recordReactMeasureStarted("layout-effects",e),ht&&markAndClear(`--layout-effects-start-${e}`))},markLayoutEffectsStopped:function(){d&&(recordReactMeasureCompleted("layout-effects"),ht&&markAndClear("--layout-effects-stop"))},markPassiveEffectsStarted:function(e){d&&(recordReactMeasureStarted("passive-effects",e),ht&&markAndClear(`--passive-effects-start-${e}`))},markPassiveEffectsStopped:function(){d&&(recordReactMeasureCompleted("passive-effects"),ht&&markAndClear("--passive-effects-stop"))},markRenderStarted:function(e){d&&(f&&(f=!1,i++),0!==l.length&&"render-idle"===l[l.length-1].type||recordReactMeasureStarted("render-idle",e),recordReactMeasureStarted("render",e),ht&&markAndClear(`--render-start-${e}`))},markRenderYielded:function(){d&&(recordReactMeasureCompleted("render"),ht&&markAndClear("--render-yield"))},markRenderStopped:function(){d&&(recordReactMeasureCompleted("render"),ht&&markAndClear("--render-stop"))},markRenderScheduled:function(e){d&&(u&&u.schedulingEvents.push({lanes:laneToLanesArray(e),timestamp:getRelativeTime(),type:"schedule-render",warning:null}),ht&&markAndClear(`--schedule-render-${e}`))},markForceUpdateScheduled:function(t,n){if(!d)return;const r=e(t)||"Unknown";u&&u.schedulingEvents.push({componentName:r,lanes:laneToLanesArray(n),timestamp:getRelativeTime(),type:"schedule-force-update",warning:null}),ht&&markAndClear(`--schedule-forced-update-${n}-${r}`)},markStateUpdateScheduled:function(t,n){if(!d)return;const r=e(t)||"Unknown";if(u){const e={componentName:r,lanes:laneToLanesArray(n),timestamp:getRelativeTime(),type:"schedule-state-update",warning:null};c.set(e,function(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n.return;return t}(t)),u.schedulingEvents.push(e)}ht&&markAndClear(`--schedule-state-update-${n}-${r}`)}},toggleProfilingStatus:function(e,t=!1){if(d!==e)if(d=e,d){const e=new Map;if(ht){const e=getInternalModuleRanges();if(e)for(let t=0;t{if("schedule-state-update"===e.type){const t=c.get(e);t&&null!=o&&(e.componentStack=t.reduce(((e,t)=>e+describeFiber(r,t,o)),""))}})),c.clear()}}}const vt=Object.prototype.toString;const bt=0,wt=1,St=2;function createFiberInstance(e){return{kind:bt,id:getUID(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,suspendedBy:null,suspenseNode:null,data:e}}function createVirtualInstance(e){return{kind:wt,id:getUID(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,suspendedBy:null,suspenseNode:null,data:e}}const kt=0,Ct=1,Et=2,It=4;function createSuspenseNode(e){return e.suspenseNode={instance:e,parent:null,firstChild:null,nextSibling:null,rects:null,suspendedBy:new Map,environments:new Map,endTime:0,hasUniqueSuspenders:!1,hasUnknownSuspenders:!1}}function getDispatcherRef(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 _t="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();function getInternalReactConstants(e){let t={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};gt(e,"17.0.2")&&(t={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});let n=0;gte(e,"18.0.0-alpha")?n=24:gte(e,"16.9.0")?n=1:gte(e,"16.3.0")&&(n=2);let r=null;function getTypeSymbol(e){const t="object"==typeof e&&null!==e?e.$$typeof:e;return"symbol"==typeof t?t.toString():t}r=gt(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,ViewTransitionComponent:30,ActivityComponent:31}:gte(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,ViewTransitionComponent:-1,ActivityComponent:-1}:gte(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,ViewTransitionComponent:-1,ActivityComponent:-1}:gte(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,ViewTransitionComponent:-1,ActivityComponent:-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,ViewTransitionComponent:-1,ActivityComponent:-1};const{CacheComponent:o,ClassComponent:s,IncompleteClassComponent:i,IncompleteFunctionComponent:a,FunctionComponent:l,IndeterminateComponent:u,ForwardRef:c,HostRoot:d,HostHoistable:f,HostSingleton:p,HostComponent:m,HostPortal:h,HostText:g,Fragment:y,LazyComponent:v,LegacyHiddenComponent:b,MemoComponent:w,OffscreenComponent:S,Profiler:k,ScopeComponent:C,SimpleMemoComponent:E,SuspenseComponent:I,SuspenseListComponent:_,TracingMarkerComponent:T,Throw:F,ViewTransitionComponent:R,ActivityComponent:D}=r;function resolveFiberType(e){switch(getTypeSymbol(e)){case Ye:case Ke:return resolveFiberType(e.type);case Ve:case We:return e.render;default:return e}}return{getDisplayNameForFiber:function getDisplayNameForFiber(e,t=!1){const{elementType:n,type:r,tag:x}=e;let N=r;"object"==typeof r&&null!==r&&(N=resolveFiberType(r));let O=null;if(!t&&(null!=e.updateQueue?.memoCache||Array.isArray(e.memoizedState?.memoizedState)&&e.memoizedState.memoizedState[0]?.[ot]||e.memoizedState?.memoizedState?.[ot])){const t=getDisplayNameForFiber(e,!0);return null==t?null:`Forget(${t})`}switch(x){case D:return"Activity";case o:return"Cache";case s:case i:case a:case l:case u:return getDisplayName(N);case c:return getWrappedDisplayName(n,N,"ForwardRef","Anonymous");case d:const t=e.stateNode;return null!=t&&null!==t._debugRootType?t._debugRootType:null;case m:case p:case f:return r;case h:case g:return null;case y:return"Fragment";case v:return"Lazy";case w:case E:return getWrappedDisplayName(n,N,"Memo","Anonymous");case I:return"Suspense";case b:return"LegacyHidden";case S:return"Offscreen";case C:return"Scope";case _:return"SuspenseList";case k:return"Profiler";case T:return"TracingMarker";case R:return"ViewTransition";case F:return"Error";default:switch(getTypeSymbol(r)){case ze:case $e:case Ue:return null;case Xe:case Ze:return O=e.type._context||e.type.context,`${O.displayName||"Context"}.Provider`;case Be:case Le:case je:return void 0===e.type._context&&e.type.Provider===e.type?(O=e.type,`${O.displayName||"Context"}.Provider`):(O=e.type._context||e.type,`${O.displayName||"Context"}.Consumer`);case Je:return O=e.type._context,`${O.displayName||"Context"}.Consumer`;case nt:case rt:return null;case Ge:case Qe:return`Profiler(${e.memoizedProps.id})`;case et:case tt:return"Scope";default:return null}}},getTypeSymbol,ReactPriorityLevels:t,ReactTypeOfWork:r,StrictModeBits:n,SuspenseyImagesMode:32}}const Tt=new Set,Ft=new Map,Rt=new Map;let Dt=null,xt=null;const Nt=new Map,Ot=new Map,Pt=new Map;function getPublicInstance(e){if("object"==typeof e&&null!==e){if("object"==typeof e.canonical&&null!==e.canonical&&"object"==typeof e.canonical.publicInstance&&null!==e.canonical.publicInstance)return e.canonical.publicInstance;if("number"==typeof e._nativeTag)return e._nativeTag}return e}function aquireHostInstance(e,t){const n=getPublicInstance(t);Ot.set(n,e)}function releaseHostInstance(e,t){const n=getPublicInstance(t);Ot.get(n)===e&&Ot.delete(n)}function aquireHostResource(e,t){const n=t&&t.instance;if(n){const t=getPublicInstance(n);let r=Pt.get(t);void 0===r&&(r=new Set,Pt.set(t,r),Ot.set(t,e)),r.add(e)}}function releaseHostResource(e,t){const n=t&&t.instance;if(n){const t=getPublicInstance(n),r=Pt.get(t);if(void 0!==r)if(r.delete(e),0===r.size)Pt.delete(t),Ot.delete(t);else if(Ot.get(t)===e)for(const e of r){Ot.set(t,e);break}}}function renderer_attach(w,S,k,C,E,I,_){const T=k.reconcilerVersion||k.version,{getDisplayNameForFiber:F,getTypeSymbol:R,ReactPriorityLevels:D,ReactTypeOfWork:N,StrictModeBits:O,SuspenseyImagesMode:P}=getInternalReactConstants(T),{ActivityComponent:H,ClassComponent:A,ContextConsumer:M,DehydratedSuspenseComponent:z,ForwardRef:$,Fragment:B,FunctionComponent:L,HostRoot:j,HostHoistable:U,HostSingleton:V,HostPortal:W,HostComponent:q,HostText:Y,IncompleteClassComponent:K,IncompleteFunctionComponent:G,IndeterminateComponent:Q,LegacyHiddenComponent:be,MemoComponent:we,OffscreenComponent:Se,SimpleMemoComponent:ke,SuspenseComponent:Ce,SuspenseListComponent:Ee,TracingMarkerComponent:Ie,Throw:_e,ViewTransitionComponent:Te}=N,{ImmediatePriority:Fe,UserBlockingPriority:Re,NormalPriority:De,LowPriority:xe,IdlePriority:Ne,NoPriority:Oe}=D,{getLaneLabelMap:Pe,injectProfilingHooks:He,overrideHookState:Ae,overrideHookStateDeletePath:je,overrideHookStateRenamePath:Ve,overrideProps:We,overridePropsDeletePath:Ye,overridePropsRenamePath:Ke,scheduleRefresh:et,setErrorHandler:tt,setSuspenseHandler:ot,scheduleUpdate:lt,scheduleRetry:ut,getCurrentFiber:ct}=k,dt="function"==typeof tt&&"function"==typeof lt,ft="function"==typeof ot&&"function"==typeof lt,pt=gte(T,"19.2.0");"function"==typeof et&&(k.scheduleRefresh=(...e)=>{try{w.emit("fastRefreshScheduled")}finally{return et(...e)}});let mt=null,ht=null;if("function"==typeof He){const e=createProfilingHooks({getDisplayNameForFiber:F,getIsProfiling:()=>fn,getLaneLabelMap:Pe,currentDispatcherRef:getDispatcherRef(k),workTagMap:N,reactVersion:T});He(e.profilingHooks),mt=e.getTimelineData,ht=e.toggleProfilingStatus}const yt=new WeakMap;let Pt=!1;function clearConsoleLogsHelper(e,t){const n=Rt.get(e);if(void 0!==n){let e;if(n.kind===bt){const t=n.data;e=yt.get(t),void 0===e&&null!==t.alternate&&(e=yt.get(t.alternate))}else{const t=n.data;e=x.get(t)}if(void 0!==e){"error"===t?(e.errors.clear(),e.errorsCount=0):(e.warnings.clear(),e.warningsCount=0);recordConsoleLogs(n,e)&&(flushPendingEvents(null),updateMostRecentlyInspectedElementIfNecessary(n.id))}}}function updateMostRecentlyInspectedElementIfNecessary(e){null!==sn&&sn.id===e&&(an=!0)}function debug(t,n,r,o=""){if(e){const e=n.kind===wt?n.data.name||"null":n.data.tag+":"+(F(n.data)||"null"),s=n.kind===St?"":n.id,i=null===r?"":r.kind===wt?r.data.name||"null":r.data.tag+":"+(F(r.data)||"null"),a=null===r||r.kind===St?"":r.id;console.groupCollapsed(`[renderer] %c${t} %c${e} (${s}) %c${r?`${i} (${a})`:""} %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()}}const Ht=new Set,At=new Set,Mt=new Set,zt=new Set;let $t=!0,Bt=!1;const Lt=new Set;function applyComponentFilters(e,t){Mt.clear(),Ht.clear(),At.clear(),zt.clear();const n=Dt;Dt=null,xt=null,$t=!0,e.forEach((e=>{if(e.isEnabled)switch(e.type){case pe:e.isValid&&""!==e.value&&Ht.add(new RegExp(e.value,"i"));break;case fe:Mt.add(e.value);break;case me:e.isValid&&""!==e.value&&At.add(new RegExp(e.value,"i"));break;case he:Ht.add(new RegExp("\\("));break;case ge:zt.add(e.value);break;case ye:null!==t&&t.tag===H&&(xt=t,$t=!1,e.rendererID!==S&&(Dt=n));break;default:console.warn(`Invalid component filter type "${e.type}"`)}}))}function isFiberHydrated(e){if(-1===Se)throw new Error("not implemented for legacy suspense");switch(e.tag){case j:return!e.memoizedState.isDehydrated;case Ce:const t=e.memoizedState;return null===t||null===t.dehydrated;default:throw new Error("not implemented for work tag "+e.tag)}}function shouldFilterVirtual(e,t){if(!$t)return!0;if(Mt.has(J))return!0;if(Ht.size>0){const t=e.name;if(null!=t)for(const e of Ht)if(e.test(t))return!0}return!(null!=e.env&&!zt.has(e.env)||null!==t&&!zt.has(t))}function shouldFilterFiber(e){const{tag:t,type:n,key:r}=e;if(t!==j&&!$t)return!0;switch(t){case z:case W:case Y:case be:case Se:case _e:return!0;case j:return!1;case B:return null===r;default:switch(R(n)){case ze:case $e:case Ue:case nt:case rt:return!0}}const o=getElementTypeForFiber(e);if(Mt.has(o))return!0;if(Ht.size>0){const t=F(e);if(null!=t)for(const e of Ht)if(e.test(t))return!0}if(zt.has("Client"))switch(t){case A:case K:case G:case L:case Q:case $:case we:case ke:return!0}return!1}function getElementTypeForFiber(e){const{type:t,tag:n}=e;switch(n){case H:return de;case A:case K:return X;case G:case L:case Q:return J;case $:return ee;case j:return se;case q:case U:case V:return te;case W:case Y:case B:return re;case we:case ke:return ne;case Ce:return ie;case Ee:return ae;case Ie:return le;case Te:return ce;default:switch(R(t)){case ze:case $e:case Ue:return re;case Xe:case Ze:case Be:case Le:return Z;case nt:case rt:return re;case Ge:case Qe:return oe;default:return re}}}Array.isArray(_)?applyComponentFilters(_,null):_.then((e=>{applyComponentFilters(e,null)}));let jt=null;function untrackFiber(e,t){yn.size>0&&(yn.delete(t),t.alternate&&yn.delete(t.alternate),0===yn.size&&null!=tt&&tt(shouldErrorFiberAlwaysNull)),vn.size>0&&(vn.delete(t),t.alternate&&vn.delete(t.alternate),0===vn.size&&null!=ot&&ot(shouldSuspendFiberAlwaysFalse)),t.tag===U?releaseHostResource(e,t.memoizedState):t.tag!==q&&t.tag!==Y&&t.tag!==V||releaseHostInstance(e,t.stateNode);for(let n=t.child;null!==n;n=n.sibling)shouldFilterFiber(n)&&untrackFiber(e,n)}function getChangeDescription(e,t){switch(t.tag){case A:if(null===e)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};return{context:getContextChanged(e,t),didHooksChange:!1,isFirstMount:!1,props:getChangedKeys(e.memoizedProps,t.memoizedProps),state:getChangedKeys(e.memoizedState,t.memoizedState)};case G:case L:case Q:case $:case we:case ke:if(null===e)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};{const n=function(e,t){if(null==e||null==t)return null;const n=[];let r=0;function traverse(e,t){for(let o=0;o0&&i.subHooks.length>0?traverse(s.subHooks,i.subHooks):(didStatefulHookChange(s,i)&&n.push(r),r++)}}return traverse(e,t),n}(inspectHooks(e),inspectHooks(t));return{context:getContextChanged(e,t),didHooksChange:null!==n&&n.length>0,isFirstMount:!1,props:getChangedKeys(e.memoizedProps,t.memoizedProps),state:null,hooks:n}}default:return null}}function getContextChanged(e,t){let n=e.dependencies&&e.dependencies.firstContext,r=t.dependencies&&t.dependencies.firstContext;for(;n&&r;){if(n.context!==r.context)return!1;if(!at(n.memoizedValue,r.memoizedValue))return!0;n=n.next,r=r.next}return!1}function didStatefulHookChange(e,t){return!(!0!==e.isStateEditable&&"SyncExternalStore"!==e.name&&"Transition"!==e.name&&"ActionState"!==e.name&&"FormState"!==e.name)&&e.value!==t.value}function getChangedKeys(e,t){if(null==e||null==t)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 didFiberRender(e,t){switch(t.tag){case A:case L:case M:case we:case ke:case $: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 Ut=[],Vt=[],Wt=[],qt=new Set;let Yt=[];const Kt=new Map;let Gt=0;function pushOperation(e){Ut.push(e)}function shouldBailoutWithPendingOperations(){return!(fn&&null!=un&&un.durations.length>0)&&(0===Ut.length&&0===Vt.length&&0===Wt.length&&0===qt.size)}function recordConsoleLogs(e,t){if(void 0===t)return 0!==e.logCount&&(e.logCount=0,pushOperation(s),pushOperation(e.id),pushOperation(0),pushOperation(0),!0);{const n=t.errorsCount+t.warningsCount;return e.logCount!==n&&(e.logCount=n,pushOperation(s),pushOperation(e.id),pushOperation(t.errorsCount),pushOperation(t.warningsCount),!0)}}function flushPendingEvents(e){if(shouldBailoutWithPendingOperations())return;const t=Vt.length,r=Wt.length,o=qt.size,s=new Array(3+Gt+(r>0?2+r:0)+(t>0?2+t:0)+Ut.length+(o>0?2+4*o:0));let i=0;if(s[i++]=S,s[i++]=null===e?-1:e.id,s[i++]=Gt,Kt.forEach(((e,t)=>{const n=e.encodedString,r=n.length;s[i++]=r;for(let e=0;e0){s[i++]=l,s[i++]=r;for(let e=0;e0){s[i++]=n,s[i++]=t;for(let e=0;e0&&(s[i++]=d,s[i++]=o,qt.forEach((e=>{const t=Nt.get(e);if(void 0===t)throw new Error(`Could not send suspender changes for "${e}" since the Fiber no longer exists.`);s[i++]=e,s[i++]=t.hasUniqueSuspenders?1:0,s[i++]=Math.round(1e3*t.endTime);const n=t.instance,r=(n.kind===bt||n.kind===St)&&n.data.tag===Ce&&null!==n.data.memoizedState;s[i++]=r?1:0,s[i++]=t.environments.size,t.environments.forEach(((e,t)=>{s[i++]=getStringID(t)}))}))),function(e){shouldBailoutWithPendingOperations()||(null!==Yt?Yt.push(e):w.emit("operations",e))}(s),Ut.length=0,Vt.length=0,Wt.length=0,qt.clear(),Kt.clear(),Gt=0}function measureHostInstance(e){if("object"!=typeof e||null===e)return null;if("function"==typeof e.getClientRects||3===e.nodeType){const t=e.ownerDocument;if(e===t.documentElement)return[{x:0,y:0,width:e.scrollWidth,height:e.scrollHeight}];const n=[],r=t&&t.defaultView,o=r?r.scrollX:0,s=r?r.scrollY:0;let i;if(3===e.nodeType){if("function"!=typeof t.createRange)return null;const n=t.createRange();if("function"!=typeof n.getClientRects)return null;n.selectNodeContents(e),i=n.getClientRects()}else i=e.getClientRects();for(let e=0;e{getStringID(t)})),qt.add(n.id))}let Xt=null,Zt=null,Jt=null,en=null,tn=null,nn=null;function ioExistsInSuspenseAncestor(e,t){let n=e.parent;for(;null!==n;){if(n.suspendedBy.has(t))return!0;n=n.parent}return!1}function insertSuspendedBy(e){if(null===Jt||null===nn)throw new Error("It should not be possible to have suspended data outside the root. Even suspending at the first position is still a child of the root.");const t=nn;let n=Jt;for(;n.kind===St&&null!==n.parent&&n!==t.instance;)n=n.parent;if(n.kind===bt){if(n.data.tag===Ce&&n!==t.instance){const e=n.parent;if(null===e)throw new Error("Did not find a suitable instance for this async info. This is a bug in React.");n=e}}const r=t.suspendedBy,o=e.awaited;let s=r.get(o);if(void 0===s){s=new Set,r.set(o,s);const e=o.env;if(null!=e){const n=t.environments,r=n.get(e);void 0===r||0===r?(n.set(e,1),recordSuspenseSuspenders(t)):n.set(e,r+1)}}if(!s.has(n)){s.add(n);const e=getVirtualEndTime(o);t.hasUniqueSuspenders||ioExistsInSuspenseAncestor(t,o)?t.endTime{const r=getVirtualEndTime(n);r>t&&(t=r)})),t}(r):r.endTime;(o||i!==r.endTime)&&(r.endTime=i,recordSuspenseSuspenders(r))}}function insertChild(e){const t=Jt;if(null===t)return;e.parent=t,null===Zt?(Zt=e,t.firstChild=e):(Zt.nextSibling=e,Zt=e),e.nextSibling=null;const n=e.suspenseNode;if(null!==n){const e=nn;null!==e&&(n.parent=e,null===tn?(tn=n,e.firstChild=n):(tn.nextSibling=n,tn=n),n.nextSibling=null)}}function moveChild(e,t){removeChild(e,t),insertChild(e)}function removeChild(e,t){if(null===e.parent){if(Xt===e)throw new Error("Remaining children should not have items with no parent");if(null!==e.nextSibling)throw new Error("A deleted instance should not have next siblings");return}const n=Jt;if(null===n)throw new Error("Should not have a parent if we are at the root");if(e.parent!==n)throw new Error("Cannot remove a node from a different parent than is being reconciled.");if(null===t){if(Xt!==e)throw new Error("Expected a placed child to be moved from the remaining set.");Xt=e.nextSibling}else t.nextSibling=e.nextSibling;e.nextSibling=null,e.parent=null;const r=e.suspenseNode;if(null!==r&&null!==r.parent){const e=nn;if(null===e)throw new Error("Should not have a parent if we are at the root");if(r.parent!==e)throw new Error("Cannot remove a Suspense node from a different parent than is being reconciled.");let t=en;if(t===r)en=r.nextSibling;else for(;null!==t;){if(t.nextSibling===r){t.nextSibling=r.nextSibling;break}t=t.nextSibling}r.nextSibling=null,r.parent=null}}function isHiddenOffscreen(e){switch(e.tag){case be:case Se:return null!==e.memoizedState;default:return!1}}function isSuspendedOffscreen(e){switch(e.tag){case be:case Se:return null!==e.memoizedState&&null!==e.return&&e.return.tag===Ce;default:return!1}}function unmountRemainingChildren(){if(null===Jt||Jt.kind!==bt&&Jt.kind!==St||!isSuspendedOffscreen(Jt.data)||Qt){let e=Xt;for(;null!==e;)unmountInstanceRecursively(e),e=Xt}else{Qt=!0;try{let e=Xt;for(;null!==e;)unmountInstanceRecursively(e),e=Xt}finally{Qt=!1}}}function isChildOf(e,t,n){let r=t.parent;for(;null!==r;){if(e===r)return!0;if(r===e.parent||r===n)break;r=r.parent}return!1}function areEqualRects(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.length!==t.length)return!1;for(let n=0;n0&&(f.byteSize=u);const p={awaited:f,owner:null==t._debugOwner?null:t._debugOwner,debugStack:null==t._debugStack?null:t._debugStack,debugTask:null==t._debugTask?null:t._debugTask};rn.set(n,p),insertSuspendedBy(p)}function trackDebugInfoFromHostComponent(e,t){if(t.tag!==q)return;if(0==(t.mode&P))return;const n=t.type,r=t.memoizedProps;if(!("img"===n&&null!=r.src&&""!==r.src&&null==r.onLoad&&"lazy"!==r.loading))return;const o=t.stateNode;if(null==o)return;const s=o.currentSrc;if("string"!=typeof s||""===s)return;let i=-1,a=-1,l=0,u=0;if("function"==typeof performance.getEntriesByType){const e=performance.getEntriesByType("resource");for(let t=0;t0&&o.naturalHeight>0&&(c.naturalWidth=o.naturalWidth,c.naturalHeight=o.naturalHeight),u>0&&(c.fileSize=u);const d=Promise.resolve(c);d.status="fulfilled",d.value=c;const f={name:"img",start:i,end:a,value:d,owner:t};l>0&&(f.byteSize=l);insertSuspendedBy({awaited:f,owner:null==t._debugOwner?null:t._debugOwner,debugStack:null==t._debugStack?null:t._debugStack,debugTask:null==t._debugTask?null:t._debugTask})}function trackThrownPromisesFromRetryCache(e,t){null!=t&&(e.hasUniqueSuspenders||recordSuspenseSuspenders(e),e.hasUniqueSuspenders=!0,e.hasUnknownSuspenders=!0)}function mountVirtualChildrenRecursively(e,t,n,r){let o=e,s=null,i=e;for(;null!==o&&o!==t;){let e=0;if(o._debugInfo)for(let t=0;t{Lt.add(e)}))}}else{const e=updateChildrenRecursively(n.child,r.child,!1);if((e&Ct)!==kt)throw new Error("The children should not have changed if we pass in the same set.");f|=e}if(null!==t&&(removePreviousSuspendedBy(t,h,m?nn:l),t.kind===bt)){let e=yt.get(t.data);if(void 0===e&&t.data.alternate&&(e=yt.get(t.data.alternate)),recordConsoleLogs(t,e),!Qt){n.hasOwnProperty("treeBaseDuration")&&recordProfilingDurations(t,r)}}if((f&Ct)!==kt&&null!==t&&t.kind===bt&&(y||Qt||recordResetChildren(t),f&=~Ct),(f&Et)!==kt&&null!==t&&t.kind===bt){const e=t.suspenseNode;null!==e&&(recordResetSuspenseChildren(e),f&=~Et)}if((f&It)!==kt&&null!==t&&t.kind===bt){null!==t.suspenseNode&&(f&=~It,f|=Et)}return f}finally{if(null!==t){if(unmountRemainingChildren(),Jt=s,Zt=i,Xt=a,p&&!Qt){const e=t.suspenseNode;if(null===e)throw new Error("Attempted to measure a Suspense node that does not exist.");const n=e.rects,r=measureInstance(t);areEqualRects(n,r)||(e.rects=r,recordSuspenseResize(e))}m&&(nn=l,tn=u,en=c),$t=d}}}function disconnectChildrenRecursively(e){for(let t=e;null!==t;t=t.nextSibling)(t.kind!==bt&&t.kind!==St||!isSuspendedOffscreen(t.data))&&disconnectChildrenRecursively(t.firstChild),t.kind===bt?recordDisconnect(t):t.kind===wt&&recordVirtualDisconnect(t)}function reconnectChildrenRecursively(e){for(let t=e.firstChild;null!==t;t=t.nextSibling){if(t.kind===bt)recordReconnect(t,e);else if(t.kind===wt){recordVirtualReconnect(t,e,null)}(t.kind!==bt&&t.kind!==St||!isHiddenOffscreen(t.data))&&reconnectChildrenRecursively(t)}}function rootSupportsProfiling(e){return null!=e.memoizedInteractions||!(null==e.current||!e.current.hasOwnProperty("treeBaseDuration"))}function getResourceInstance(e){if(e.tag===U){const t=e.memoizedState;if("object"==typeof t&&null!==t&&null!=t.instance)return t.instance}return null}function appendHostInstancesByDevToolsInstance(e,t){if(e.kind===wt)for(let n=e.firstChild;null!==n;n=n.nextSibling)appendHostInstancesByDevToolsInstance(n,t);else{!function(e,t){let n=e;for(;;){if(n.tag===q||n.tag===Y||n.tag===V||n.tag===U){const e=n.stateNode||getResourceInstance(n);e&&t.push(e)}else if(n.child){n.child.return=n,n=n.child;continue}if(n===e)return;for(;!n.sibling;){if(!n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e.data,t)}}function findAllCurrentHostInstances(e){const t=[];return appendHostInstancesByDevToolsInstance(e,t),t}function findHostInstancesForElementID(e){try{const t=Rt.get(e);return void 0===t?(console.warn(`Could not find DevToolsInstance with id "${e}"`),null):findAllCurrentHostInstances(t)}catch(e){return null}}function getDisplayNameForElementID(e){const t=Rt.get(e);if(void 0===t)return null;if(t.kind===bt){const e=t.data;if(e.tag===j)return"Initial Paint";if(e.tag===Ce||e.tag===H){const t=e.memoizedProps;if(null!=t.name)return t.name;const n=getUnfilteredOwner(e);if(null!=n)return"number"==typeof n.tag?F(n):n.name||""}return F(e)}return t.data.name||""}function getNearestSuspenseNode(e){for(;null===e.suspenseNode;){if(null===e.parent)throw new Error("There should always be a SuspenseNode parent on a mounted instance.");e=e.parent}return e.suspenseNode}function instanceToSerializedElement(e){if(e.kind===bt){const t=e.data;return{displayName:F(t)||"Anonymous",id:e.id,key:t.key===st?"React.optimisticKey":t.key,env:null,stack:null==t._debugOwner||null==t._debugStack?null:parseStackTrace(t._debugStack,1),type:getElementTypeForFiber(t)}}{const t=e.data;return{displayName:t.name||"Anonymous",id:e.id,key:null==t.key||t.key===st?"React.optimisticKey":t.key,env:null==t.env?null:t.env,stack:null==t.owner||null==t.debugStack?null:parseStackTrace(t.debugStack,1),type:ue}}}function getOwnersListFromInstance(e){let t=getUnfilteredOwner(e.data);if(null===t)return null;const n=[];let r=e.parent;for(;null!==r&&null!==t;){const e=findNearestOwnerInstance(r,t);if(null===e)break;n.push(instanceToSerializedElement(e)),t=getUnfilteredOwner(t),r=e.parent}return n}function getUnfilteredOwner(e){if(null==e)return null;if("number"==typeof e.tag){e=e._debugOwner}else{e=e.owner}for(;e;)if("number"==typeof e.tag){const t=e;if(!shouldFilterFiber(t))return t;e=t._debugOwner}else{const t=e;if(!shouldFilterVirtual(t,null))return t;e=t.owner}return null}function findNearestOwnerInstance(e,t){if(null==t)return null;for(;null!==e;){if(e.data===t||e.data===t.alternate)return e.kind===St?null:e;e=e.parent}return null}function inspectHooks(e){const t={};for(const e in console)try{t[e]=console[e],console[e]=()=>{}}catch(e){}try{return(0,Me.inspectHooksOfFiber)(e,getDispatcherRef(k))}finally{for(const e in t)try{console[e]=t[e]}catch(e){}}}function getSuspendedByOfSuspenseNode(e,t){const n=[];if(!e.hasUniqueSuspenders)return n;let r=null,o=null;const s=new Map;return e.suspendedBy.forEach(((i,a)=>{let l=e.parent;for(;null!==l;){if(l.suspendedBy.has(a))return;l=l.parent}if(0===i.size)return;let u=null;if(null===t)u=i.values().next().value;else for(const n of i.values())if(null===u&&(u=n),n!==t&&!isChildOf(t,n,e.instance))return;if(null!==u&&null!==u.suspendedBy){const e=getAwaitInSuspendedByFromIO(u.suspendedBy,a);if(null!==e){let t=null;if(null==e.stack&&null==e.owner)if(r===u)t=o;else if(u.kind!==wt){const e=u.data;e.dependencies&&e.dependencies._debugThenableState&&(r=u,o=t=inspectHooks(e))}const i=e.awaited;if("RSC stream"!==i.name&&"rsc stream"!==i.name||null==i.value)n.push(serializeAsyncInfo(e,u,t));else{const n=i.value,r=s.get(n);if(void 0===r)s.set(n,{asyncInfo:e,instance:u,hooks:t});else{const n=r.asyncInfo.awaited;i!==n&&(void 0!==i.byteSize&&void 0!==n.byteSize&&i.byteSize>n.byteSize||i.end>n.end)&&(r.asyncInfo=e,r.instance=u,r.hooks=t)}}}}})),s.forEach((({asyncInfo:e,instance:t,hooks:r})=>{n.push(serializeAsyncInfo(e,t,r))})),n}function getSuspendedByOfInstance(e,t){const n=e.suspendedBy;if(null===n)return[];const r=new Set,o=new Map,s=[];for(let i=0;in.byteSize||l.end>n.end)&&o.set(e,a)}}}return o.forEach((n=>{s.push(serializeAsyncInfo(n,e,t))})),s}const on=300;function getSuspendedByRange(e){let t=1/0,n=-1/0;e.suspendedBy.forEach(((e,r)=>{r.end>n&&(n=r.end),r.start{n.end>e&&(e=n.end)}));const o=e+on;o>n&&(n=o);let s=n-on;e>s&&(s=e),s-1/0?[t,n]:null}function getAwaitStackFromHooks(e,t){for(let n=0;n{const t=Ft.get(e);if(void 0===t)throw new Error("Expected a root instance to exist for this Fiber root");const s=inspectFiberInstanceRaw(t);if(null===s)return;s.isErrored&&(n.isErrored=!0);for(let e=0;eo&&(o=i[1]))})),(r!==1/0||o!==-1/0)&&(n.suspendedByRange=[r,o]);return n}(t.id):inspectFiberInstanceRaw(t)}throw new Error("Unsupported instance kind")}function inspectFiberInstanceRaw(e){const t=e.data;if(null==t)return null;const{stateNode:n,key:r,memoizedProps:o,memoizedState:s,dependencies:i,tag:a,type:l}=t,u=getElementTypeForFiber(t),c=!(a!==L&&a!==ke&&a!==$||!s&&!i),d=a===A||a===K,f=R(l);let p=!1,m=null;if(a===A||a===L||a===K||a===G||a===Q||a===we||a===$||a===ke){if(p=!0,n&&null!=n.context){u===X&&!(l.contextTypes||l.contextType)||(m=n.context)}}else if(f!==Be&&f!==Le||void 0===l._context&&l.Provider===l){if(f===Je){const e=l._context;m=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type;if(R(t)===Le){if(t===e){m=n.memoizedProps.value;break}}n=n.return}}}else{const e=l._context||l;m=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type,r=R(t);if(r===Xe||r===Ze){if((t._context||t.context)===e){m=n.memoizedProps.value;break}}n=n.return}}let h=!1;null!==m&&(h=!!l.contextTypes,m={value:m});const w=getOwnersListFromInstance(e);let S=null;c&&(S=inspectHooks(t));let C=null,E=t,I=!1,_=!1;for(;null!==E.return;){const e=E;E=E.return,e.tag===Ce?_=!0:isErrorBoundary(e)&&(I=!0)}const T=E.stateNode;null!=T&&null!==T._debugRootType&&(C=T._debugRootType);let F=!1;if(isErrorBoundary(t)){const e=128;F=0!=(t.flags&e)||!0===yn.get(t)||null!==t.alternate&&!0===yn.get(t.alternate)}const D={stylex:null};it&&null!=o&&o.hasOwnProperty("xstyle")&&(D.stylex=function(e){const t=new Set,n={};return crawlData(e,t,n),{sources:Array.from(t).sort(),resolvedStyles:n}}(o.xstyle));let x=null;p&&(x=function(e){const t=getSourceForInstance(e);if(null!==t)return t;const n=getDispatcherRef(k),r=null==n?null:function(e,t,n){try{const r=describeFiber(e,t,n);if(""!==r)return r.slice(1)}catch(e){console.error(e)}return null}(N,e.data,n);if(null===r)return null;const o=extractLocationFromComponentStack(r);return e.source=o,o}(e));let O=yt.get(t);void 0===O&&null!==t.alternate&&(O=yt.get(t.alternate));let P=null;var M;u===te&&(P="object"!=typeof(M=t.stateNode)||null===M?null:null!=M.canonical&&"number"==typeof M.canonical.nativeTag?M.canonical.nativeTag:"number"==typeof M._nativeTag?M._nativeTag:null);let z=null;a===Ce&&(z=null!==s);const B=null!==e.suspenseNode?getSuspendedByOfSuspenseNode(e.suspenseNode,null):a===H?function(e){let t=e;for(;null===t.suspenseNode;){if(null===t.parent)return[];t=t.parent}return getSuspendedByOfSuspenseNode(t.suspenseNode,e)}(e):getSuspendedByOfInstance(e,S),j=getSuspendedByRange(getNearestSuspenseNode(e));let U=g;return null!==e.suspenseNode&&e.suspenseNode.hasUnknownSuspenders&&!z&&(U=0===k.bundleType?y:"_debugInfo"in t?b:v),{id:e.id,canEditHooks:"function"==typeof Ae,canEditFunctionProps:"function"==typeof We,canEditHooksAndDeletePaths:"function"==typeof je,canEditHooksAndRenamePaths:"function"==typeof Ve,canEditFunctionPropsDeletePaths:"function"==typeof Ye,canEditFunctionPropsRenamePaths:"function"==typeof Ke,canToggleError:dt&&I,isErrored:F,canToggleSuspense:ft&&_&&(!z||vn.has(t)||null!==t.alternate&&vn.has(t.alternate)),isSuspended:z,source:x,stack:null==t._debugOwner||null==t._debugStack?null:parseStackTrace(t._debugStack,1),hasLegacyContext:h,key:null!=r?r===st?"React.optimisticKey":r:null,type:u,context:m,hooks:S,props:o,state:d?s:null,errors:void 0===O?[]:Array.from(O.errors.entries()),warnings:void 0===O?[]:Array.from(O.warnings.entries()),suspendedBy:B,suspendedByRange:j,unknownSuspenders:U,owners:w,env:null,rootType:C,rendererPackageName:k.rendererPackageName,rendererVersion:k.version,plugins:D,nativeTag:P}}let sn=null,an=!1,ln={};function isMostRecentlyInspectedElement(e){if(null===sn)return!1;if(sn.id===e)return!0;if(sn.type===se){const t=Rt.get(e);return void 0!==t&&t.kind===bt&&null===t.parent}return!1}function createIsPathAllowed(e,t){return function(n){switch(t){case"hooks":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;break;case"suspendedBy":if(n.length<5)return!0}let r=null===e?ln:ln[e];if(!r)return!1;for(let e=0;e{const t=Ft.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when starting profiling");const n=t.id;cn.set(n,getDisplayNameForRoot(e.current));const r=[];snapshotTreeBaseDurations(t,r),dn.set(n,r)})),fn=!0,pn=_t(),gn=new Map,null!==ht&&ht(!0,hn))}function getNearestFiber(e){if(e.kind===wt){let t=e;for(;t.kind===wt;){if(null===t.firstChild)return null;t=t.firstChild}return t.data.return}return e.data}function shouldErrorFiberAlwaysNull(){return null}E&&startProfiling(I.recordChangeDescriptions,I.recordTimeline);const yn=new Map;function shouldErrorFiberAccordingToMap(e){if("function"!=typeof tt)throw new Error("Expected overrideError() to not get called for earlier React versions.");let t=yn.get(e);return!1===t?(yn.delete(e),0===yn.size&&tt(shouldErrorFiberAlwaysNull),!1):(void 0===t&&null!==e.alternate&&(t=yn.get(e.alternate),!1===t&&(yn.delete(e.alternate),0===yn.size&&tt(shouldErrorFiberAlwaysNull))),void 0!==t&&t)}function shouldSuspendFiberAlwaysFalse(){return!1}const vn=new Set;function shouldSuspendFiberAccordingToSet(e){return vn.has(e)||null!==e.alternate&&vn.has(e.alternate)}let bn=null,wn=null,Sn=null,kn=-1,Cn=!1;function setTrackedPath(e){null===e&&(wn=null,Sn=null,kn=-1,Cn=!1),bn=e}function updateTrackedPathStateBeforeMount(e,t){if(null===bn||!Cn)return!1;const n=e.return,r=null!==n?n.alternate:null;if(wn===n||wn===r&&null!==r){const n=getPathFrame(e),r=bn[kn+1];if(void 0===r)throw new Error("Expected to see a frame at the next depth.");if(n.index===r.index&&n.key===r.key&&n.displayName===r.displayName)return wn=e,null!==t&&t.kind===bt&&(Sn=t),kn++,Cn=kn!==bn.length-1,!1}return null===wn&&null===t||(Cn=!1),!0}function updateTrackedPathStateAfterMount(e){Cn=e}const En=new Map,In=new Map;function setRootPseudoKey(e,t){const n=getDisplayNameForRoot(t),r=In.get(n)||0;In.set(n,r+1);const o=`${n}:${r}`;En.set(e,o)}function getDisplayNameForRoot(e){let t=null,n=null,r=e.child;for(let e=0;e<3&&null!==r;e++){const e=F(r);if(null!==e&&("function"==typeof r.type?t=e:null===n&&(n=e)),null!==t)break;r=r.child}return t||n||"Anonymous"}function getPathFrame(e){const{key:t}=e;let n=F(e);const r=e.index;switch(e.tag){case j:const t=Ft.get(e.stateNode);if(void 0===t)throw new Error("Expected the root instance to exist when computing a path");const r=En.get(t.id);if(void 0===r)throw new Error("Expected mounted root to have known pseudo key.");n=r;break;case q:n=e.type}return{displayName:n,key:t===st?null:t,index:r}}function getVirtualPathFrame(e){return{displayName:e.data.name||"",key:null==e.data.key||e.data.key===st?null:e.data.key,index:-1}}const formatPriorityLevel=e=>{if(null==e)return"Unknown";switch(e){case Fe:return"Immediate";case Re:return"User-Blocking";case De:return"Normal";case xe:return"Low";case Ne:return"Idle";default:return"Unknown"}};function getSourceForInstance(e){let t=e.source;if(null===t)return null;if(e.kind===wt){const n=e.data.debugLocation;null!=n&&(t=n)}if(n=t,"[object Error]"===vt.call(n))return e.source=function(e){const t=parseStackTrace(e,1),n=e.stack;if(!n.includes("react_stack_bottom_frame")&&!n.includes("react-stack-bottom-frame"))return null;for(let e=t.length-1;e>=0;e--){const[n,r,o,s,i,a]=t[e];if(-1!==r.indexOf(":"))return[n,r,i||o,a||s]}return null}(t);var n;if("string"==typeof t){const n=t.lastIndexOf("\n"),r=-1===n?t:t.slice(n+1);return e.source=extractLocationFromComponentStack(r)}return t}return{cleanup:function(){fn=!1},clearErrorsAndWarnings:function(){for(const e of Rt.values()){if(e.kind===bt){const t=e.data;yt.delete(t),t.alternate&&yt.delete(t.alternate)}else x.delete(e.data);recordConsoleLogs(e,void 0)&&updateMostRecentlyInspectedElementIfNecessary(e.id)}flushPendingEvents(null)},clearErrorsForElementID:function(e){clearConsoleLogsHelper(e,"error")},clearWarningsForElementID:function(e){clearConsoleLogsHelper(e,"warn")},getSerializedElementValueByPath:function(e,t){if(isMostRecentlyInspectedElement(e)){return serializeToString(utils_getInObject(sn,t))}},deletePath:function(e,t,n,r){const o=Rt.get(t);if(void 0===o)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(o.kind!==bt)return;const s=o.data;if(null!==s){const t=s.stateNode;switch(e){case"context":if(r=r.slice(1),s.tag===A)0===r.length||deletePathInObject(t.context,r),t.forceUpdate();break;case"hooks":"function"==typeof je&&je(s,n,r);break;case"props":null===t?"function"==typeof Ye&&Ye(s,r):(s.pendingProps=copyWithDelete(t.props,r),t.forceUpdate());break;case"state":switch(s.tag){case A:case K:deletePathInObject(t.state,r),t.forceUpdate()}}}},findHostInstancesForElementID,findLastKnownRectsForID:function(e){try{const t=Rt.get(e);return void 0===t?(console.warn(`Could not find DevToolsInstance with id "${e}"`),null):null===t.suspenseNode?null:t.suspenseNode.rects}catch(e){return null}},flushInitialOperations:function(){const e=Yt;Yt=null,null!==e&&e.length>0?e.forEach((e=>{w.emit("operations",e)})):(null!==bn&&(Cn=!0),w.getFiberRoots(S).forEach((e=>{const t=createFiberInstance(e.current);Ft.set(e,t),Rt.set(t.id,t),jt=t,setRootPseudoKey(jt.id,e.current),fn&&rootSupportsProfiling(e)&&(un={changeDescriptions:mn?new Map:null,durations:[],commitTime:_t()-pn,maxActualDuration:0,priorityLevel:null,updaters:null,effectDuration:null,passiveEffectDuration:null}),mountFiberRecursively(e.current,!1),flushPendingEvents(jt),jt=null})),Pt=!1)},getBestMatchForTrackedPath:function(){return null===bn||null===Sn?null:{id:Sn.id,isFullMatch:kn===bn.length-1}},getDisplayNameForElementID,getNearestMountedDOMNode:function(e){let t=e;for(;t&&!Ot.has(t);)t=t.parentNode;return t},getElementIDForHostInstance:function(e){const t=Ot.get(e);return void 0!==t?t.kind===St?t.parent.id:t.id:null},getSuspenseNodeIDForHostInstance:function(e){const t=Ot.get(e);if(void 0!==t){let e=t;for(;null===e.suspenseNode||e.kind===St;){if(null===e.parent)return null;e=e.parent}return e.id}return null},getInstanceAndStyle:function(e){let t=null,n=null;const r=Rt.get(e);if(void 0===r)return console.warn(`Could not find DevToolsInstance with id "${e}"`),{instance:t,style:n};if(r.kind!==bt)return{instance:t,style:n};const o=r.data;return null!==o&&(t=o.stateNode,null!==o.memoizedProps&&(n=o.memoizedProps.style)),{instance:t,style:n}},getOwnersList:function(e){const t=Rt.get(e);if(void 0===t)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;const n=instanceToSerializedElement(t),r=getOwnersListFromInstance(t);return null===r?[n]:(r.unshift(n),r.reverse(),r)},getPathForElement:function(e){const t=Rt.get(e);if(void 0===t)return null;const n=[];let r=t;for(;r.kind===wt;){if(n.push(getVirtualPathFrame(r)),null===r.parent)return null;r=r.parent}let o=r.data;for(;null!==o;)n.push(getPathFrame(o)),o=o.return;return n.reverse(),n},getProfilingData:function(){const e=[];if(null===gn)throw Error("getProfilingData() called before any profiling data was recorded");gn.forEach(((t,n)=>{const r=[],o=null!==cn&&cn.get(n)||"Unknown",s=null!==dn&&dn.get(n)||[];t.forEach(((e,t)=>{const{changeDescriptions:n,durations:o,effectDuration:s,maxActualDuration:i,passiveEffectDuration:a,priorityLevel:l,commitTime:u,updaters:c}=e,d=[],f=[];for(let e=0;e1?In.set(n,r-1):In.delete(n);En.delete(e)}(jt.id),Ft.delete(e)):a||i||Ft.delete(e);if(fn&&s&&!shouldBailoutWithPendingOperations()){const e=gn.get(jt.id);null!=e?e.push(un):gn.set(jt.id,[un])}flushPendingEvents(jt),Pt=!1,Bt&&w.emit("traceUpdates",Lt),jt=null},handleCommitFiberUnmount:function(e){},handlePostCommitFiberRoot:function(e){if(fn&&rootSupportsProfiling(e)&&null!==un){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);un.effectDuration=t,un.passiveEffectDuration=n}if(Pt){const t=Ft.get(e);if(void 0===t)throw new Error("Should have a root instance for a committed root. This is a bug in React DevTools.");!function(e){let t=!1;for(const e of Rt.values())if(e.kind===bt){const n=e.data;recordConsoleLogs(e,yt.get(n))&&(t=!0,updateMostRecentlyInspectedElementIfNecessary(e.id))}t&&flushPendingEvents(e)}(t)}},hasElementWithId:function(e){return Rt.has(e)},inspectElement:function(e,t,n,r){if(null!==n&&function(e){let t=ln;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),isMostRecentlyInspectedElement(t)&&!r){if(!an){if(null!==n){let r=null;return"hooks"!==n[0]&&"suspendedBy"!==n[0]||(r=n[0]),{id:t,responseID:e,type:"hydrated-path",path:n,value:cleanForBridge(utils_getInObject(sn,n),createIsPathAllowed(null,r),n)}}return{id:t,responseID:e,type:"no-change"}}}else ln={};an=!1;try{sn=inspectElementRaw(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=getDisplayNameForElementID(t);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!=e?`: "${e}".`:".")+"\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===sn)return{id:t,responseID:e,type:"not-found"};const o=sn;!function(e){const{hooks:t,id:n,props:r}=e,o=Rt.get(n);if(void 0===o)return void console.warn(`Could not find DevToolsInstance with id "${n}"`);if(o.kind!==bt)return;const s=o.data,{elementType:i,stateNode:a,tag:l,type:u}=s;switch(l){case A:case K:case Q:C.$r=a;break;case G:case L:C.$r={hooks:t,props:r,type:u};break;case $:C.$r={hooks:t,props:r,type:u.render};break;case we:case ke:C.$r={hooks:t,props:r,type:null!=i&&null!=i.type?i.type:u};break;default:C.$r=null}}(o);const s={...o};return s.context=cleanForBridge(o.context,createIsPathAllowed("context",null)),s.hooks=cleanForBridge(o.hooks,createIsPathAllowed("hooks","hooks")),s.props=cleanForBridge(o.props,createIsPathAllowed("props",null)),s.state=cleanForBridge(o.state,createIsPathAllowed("state",null)),s.suspendedBy=cleanForBridge(o.suspendedBy,createIsPathAllowed("suspendedBy","suspendedBy")),{id:t,responseID:e,type:"full-data",value:s}},logElementToConsole:function(e){const t=function(e){return isMostRecentlyInspectedElement(e)&&!an}(e)?sn:inspectElementRaw(e);if(null===t)return void console.warn(`Could not find DevToolsInstance with id "${e}"`);const n=getDisplayNameForElementID(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed(`[Click to expand] %c<${n||"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 o=findHostInstancesForElementID(e);null!==o&&console.log("Nodes:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()},getComponentStack:function(e){if(null==ct)return null;const t=ct();if(null===t)return null;if(t._debugTask)return null;const n=getDispatcherRef(k);if(void 0===n)return null;const r=function(e){return void 0!==e._debugStack}(t);let o="";if(r){const n=formatOwnerStack(e);n&&(o+="\n"+n),o+=function(e,t,n){const{HostHoistable:r,HostSingleton:o,HostText:s,HostComponent:i,SuspenseComponent:a,SuspenseListComponent:l,ViewTransitionComponent:u,ActivityComponent:c}=e;try{let e="";switch(t.tag===s&&(t=t.return),t.tag){case r:case o:case i:e+=describeBuiltInComponentFrame(t.type);break;case a:e+=describeBuiltInComponentFrame("Suspense");break;case l:e+=describeBuiltInComponentFrame("SuspenseList");break;case u:e+=describeBuiltInComponentFrame("ViewTransition");break;case c:e+=describeBuiltInComponentFrame("Activity")}let n=t;for(;n;)if("number"==typeof n.tag){const t=n;n=t._debugOwner;let r=t._debugStack;n&&r&&("string"!=typeof r&&(r=formatOwnerStack(r)),""!==r&&(e+="\n"+r))}else{if(null==n.debugStack)break;{const t=n.debugStack;n=n.owner,n&&t&&(e+="\n"+formatOwnerStack(t))}}return e}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}(N,t)}else o=function(e,t,n){try{let o="",s=t;do{o+=describeFiber(e,s,n);const t=s._debugInfo;if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];"string"==typeof n.name&&(o+=describeBuiltInComponentFrame(n.name+((r=n.env)?" ["+r+"]":"")))}s=s.return}while(s);return o}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}var r}(N,t,n);return{enableOwnerStacks:r,componentStack:o}},getElementAttributeByPath:function(e,t){if(isMostRecentlyInspectedElement(e))return utils_getInObject(sn,t)},getElementSourceFunctionById:function(e){const t=Rt.get(e);if(void 0===t)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;if(t.kind!==bt)return null;const n=t.data,{elementType:r,tag:o,type:s}=n;switch(o){case A:case K:case G:case Q:case L:return s;case $:return s.render;case we:case ke:return null!=r&&null!=r.type?r.type:s;default:return null}},onErrorOrWarning:function(e,t){if(null==ct)return;const n=ct();if(null===n)return;if("error"===e&&(!0===yn.get(n)||null!==n.alternate&&!0===yn.get(n.alternate)))return;const r=formatConsoleArgumentsToSingleString(...t);let o=yt.get(n);void 0===o&&null!==n.alternate&&(o=yt.get(n.alternate),void 0!==o&&yt.set(n,o)),void 0===o&&(o={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},yt.set(n,o));const s="error"===e?o.errors:o.warnings,i=s.get(r)||0;s.set(r,i+1),"error"===e?o.errorsCount++:o.warningsCount++,Pt=!0},overrideError:function(e,t){if("function"!=typeof tt||"function"!=typeof lt)throw new Error("Expected overrideError() to not get called for earlier React versions.");const n=Rt.get(e);if(void 0===n)return;const r=getNearestFiber(n);if(null===r)return;let o=r;for(;!isErrorBoundary(o);){if(null===o.return)return;o=o.return}yn.set(o,t),null!==o.alternate&&yn.delete(o.alternate),1===yn.size&&tt(shouldErrorFiberAccordingToMap),t||"function"!=typeof ut?lt(o):ut(o)},overrideSuspense:function(e,t){if("function"!=typeof ot||"function"!=typeof lt)throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");const n=Rt.get(e);if(void 0===n)return;const r=getNearestFiber(n);if(null===r)return;let o=r;for(;o.tag!==Ce;){if(null===o.return)return;o=o.return}null!==o.alternate&&vn.delete(o.alternate),t?(vn.add(o),1===vn.size&&ot(shouldSuspendFiberAccordingToSet)):(vn.delete(o),0===vn.size&&ot(shouldSuspendFiberAlwaysFalse)),t||"function"!=typeof ut?lt(o):ut(o)},overrideSuspenseMilestone:function(e){if("function"!=typeof ot||"function"!=typeof lt)throw new Error("Expected overrideSuspenseMilestone() to not get called for earlier React versions.");const t=new Set(vn);let n=!1;for(let r=0;r{vn.delete(e),n||"function"!=typeof ut?lt(e):ut(e)})),vn.size>0?ot(shouldSuspendFiberAccordingToSet):ot(shouldSuspendFiberAlwaysFalse)},overrideValueAtPath:function(e,t,n,r,o){const s=Rt.get(t);if(void 0===s)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(s.kind!==bt)return;const i=s.data;if(null!==i){const t=i.stateNode;switch(e){case"context":if(r=r.slice(1),i.tag===A)0===r.length?t.context=o:utils_setInObject(t.context,r,o),t.forceUpdate();break;case"hooks":"function"==typeof Ae&&Ae(i,n,r,o);break;case"props":if(i.tag===A)i.pendingProps=copyWithSet(t.props,r,o),t.forceUpdate();else"function"==typeof We&&We(i,r,o);break;case"state":switch(i.tag){case A:case K:utils_setInObject(t.state,r,o),t.forceUpdate()}}}},renamePath:function(e,t,n,r,o){const s=Rt.get(t);if(void 0===s)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(s.kind!==bt)return;const i=s.data;if(null!==i){const t=i.stateNode;switch(e){case"context":if(r=r.slice(1),o=o.slice(1),i.tag===A)0===r.length||renamePathInObject(t.context,r,o),t.forceUpdate();break;case"hooks":"function"==typeof Ve&&Ve(i,n,r,o);break;case"props":if(i.tag===A)i.pendingProps=copyWithRename(t.props,r,o),t.forceUpdate();else"function"==typeof Ke&&Ke(i,r,o);break;case"state":switch(i.tag){case A:case K:renamePathInObject(t.state,r,o),t.forceUpdate()}}}},renderer:k,setTraceUpdatesEnabled:function(e){Bt=e},setTrackedPath,startProfiling,stopProfiling:function(){fn=!1,mn=!1,null!==ht&&ht(!1,hn),hn=!1},storeAsGlobal:function(e,t,n){if(isMostRecentlyInspectedElement(e)){const e=utils_getInObject(sn,t),r=`$reactTemp${n}`;window[r]=e,console.log(r),console.log(e)}},supportsTogglingSuspense:ft,updateComponentFilters:function(e){if(fn)throw Error("Cannot modify filter preferences while profiling");const t=vn.size>0?new Set(vn):null,n=yn.size>0?new Map(yn):null;let r=null,o=null;for(let t=0;t{const t=Ft.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when applying filters");jt=t,unmountInstanceRecursively(t),Ft.delete(e),jt=null})),r===xt||null!==o&&o.rendererID!==S||(pushOperation(f),pushOperation(0)),applyComponentFilters(e,r),In.clear(),"function"==typeof lt){if(null!==t)for(const e of t)"function"==typeof ut?ut(e):lt(e);if(null!==n&&"function"==typeof tt){tt(shouldErrorFiberAccordingToMap);for(const[e,t]of n)yn.set(e,!1),t&&("function"==typeof ut?ut(e):lt(e))}}w.getFiberRoots(S).forEach((e=>{const t=createFiberInstance(e.current);Ft.set(e,t),Rt.set(t.id,t),null!==bn&&(Cn=!0),jt=t,setRootPseudoKey(jt.id,e.current),mountFiberRecursively(e.current,!1),jt=null})),null!==o&&null!==Dt&&(o.activityID=Dt),flushPendingEvents(null),Pt=!1},getEnvironmentNames:function(){return Array.from(Tt)}}}function decorate(e,t,n){const r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function restoreMany(e,t){for(const n in t)e[n]=t[n]}function forceUpdate(e){"function"==typeof e.forceUpdate?e.forceUpdate():null!=e.updater&&"function"==typeof e.updater.enqueueForceUpdate&&e.updater.enqueueForceUpdate(this,(()=>{}),"forceUpdate")}function getData(e){let t=null,n=null;if(null!=e._currentElement){e._currentElement.key&&(n=String(e._currentElement.key));const r=e._currentElement.type;"string"==typeof r?t=r:"function"==typeof r&&(t=getDisplayName(r))}return{displayName:t,key:n}}function getElementType(e){if(null!=e._currentElement){const t=e._currentElement.type;if("function"==typeof t){return null!==e.getPublicInstance()?X:J}if("string"==typeof t)return te}return re}function getChildren(e){const t=[];if("object"!=typeof e);else if(null===e._currentElement||!1===e._currentElement);else if(e._renderedComponent){const n=e._renderedComponent;getElementType(n)!==re&&t.push(n)}else if(e._renderedChildren){const n=e._renderedChildren;for(const e in n){const r=n[e];getElementType(r)!==re&&t.push(r)}}return t}function legacy_renderer_attach(p,m,h,y){const v=new Map,b=new WeakMap,w=new WeakMap;let S,k=null,getNearestMountedDOMNode=e=>null;h.ComponentTree?(k=e=>{const t=h.ComponentTree.getClosestInstanceFromNode(e);return b.get(t)||null},S=e=>{const t=v.get(e);return h.ComponentTree.getNodeFromInstance(t)},getNearestMountedDOMNode=e=>{const t=h.ComponentTree.getClosestInstanceFromNode(e);return null!=t?h.ComponentTree.getNodeFromInstance(t):null}):h.Mount.getID&&h.Mount.getNode&&(k=e=>null,S=e=>null);function getDisplayNameForElementID(e){const t=v.get(e);return t?getData(t).displayName:null}function getID(e){if("object"!=typeof e||null===e)throw new Error("Invalid internal instance: "+e);if(!b.has(e)){const t=getUID();b.set(e,t),v.set(t,e)}return b.get(e)}function areEqualArrays(e,t){if(e.length!==t.length)return!1;for(let n=0;ncrawlAndRecordInitialMounts(getID(e),t,r)))),e&&console.groupEnd()}h.Reconciler&&(E=function(e,t){const n={};for(const r in t)n[r]=decorate(e,r,t[r]);return n}(h.Reconciler,{mountComponent(e,t){const n=t[0],r=t[3];if(getElementType(n)===re)return e.apply(this,t);if(void 0===r._topLevelWrapper)return e.apply(this,t);const o=getID(n);recordMount(n,o,C.length>0?C[C.length-1]:0),C.push(o),w.set(n,getID(r._topLevelWrapper));try{const n=e.apply(this,t);return C.pop(),n}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},performUpdateIfNecessary(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);const o=getChildren(n);try{const s=e.apply(this,t),i=getChildren(n);return areEqualArrays(o,i)||recordReorder(n,r,i),C.pop(),s}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},receiveComponent(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);const o=getChildren(n);try{const s=e.apply(this,t),i=getChildren(n);return areEqualArrays(o,i)||recordReorder(n,r,i),C.pop(),s}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},unmountComponent(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);try{const n=e.apply(this,t);return C.pop(),function(e,t){0===C.length?R=t:T.push(t);v.delete(t)}(0,r),n}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}}}));const I=[],_=new Map;let T=[],F=0,R=null;function flushPendingEvents(h){if(0===I.length&&0===T.length&&null===R)return;const g=T.length+(null===R?0:1),y=new Array(3+F+(g>0?2+g:0)+(null===R?0:3)+I.length);let v=0;if(y[v++]=m,y[v++]=h,y[v++]=F,_.forEach(((e,t)=>{y[v++]=t.length;const n=utfEncodeString(t);for(let e=0;e0){y[v++]=n,y[v++]=g;for(let e=0;e0&&(a+=", "),a+=`(${e[n+0]}, ${e[n+1]}, ${e[n+2]}, ${e[n+3]})`,m+=4}a+="]"}p.push(`Add suspense node ${t} (${String(i)},rects={${a}}) under ${n} suspended ${o}`);break}case l:{const t=e[m+1];m+=2;for(let n=0;n0&&(r+=", "),r+=`(${e[m+0]}, ${e[m+1]}, ${e[m+2]}, ${e[m+3]})`,m+=4;p.push(r+"]")}break}case d:{m++;const t=e[m++];for(let n=0;no&&(o=a[1]))}r===1/0&&o===-1/0||(n.suspendedByRange=[r,o]);return n}(n):inspectInternalInstanceRaw(e,t)}function inspectInternalInstanceRaw(e,t){const{key:n}=getData(t),r=getElementType(t);let o=null,s=null,i=null,a=null;const l=t._currentElement;if(null!==l){i=l.props;let e=l._owner;if(e)for(s=[];null!=e;)s.push({displayName:getData(e).displayName||"Unknown",id:getID(e),key:l.key,env:null,stack:null,type:getElementType(e)}),e._currentElement&&(e=e._currentElement._owner)}const u=t._instance;null!=u&&(o=u.context||null,a=u.state||null);return{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,canToggleSuspense:!1,isSuspended:null,source:null,stack:null,hasLegacyContext:!0,type:r,key:null!=n?n:null,context:o,hooks:null,props:i,state:a,errors:[],warnings:[],suspendedBy:[],suspendedByRange:null,unknownSuspenders:g,owners:s,env:null,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null},nativeTag:null}}return{clearErrorsAndWarnings:function(){},clearErrorsForElementID:function(e){},clearWarningsForElementID:function(e){},cleanup:function(){null!==E&&(h.Component?restoreMany(h.Component.Mixin,E):restoreMany(h.Reconciler,E)),E=null},getSerializedElementValueByPath:function(e,t){const n=inspectElementRaw(e);if(null!==n){return serializeToString(utils_getInObject(n,t))}},deletePath:function(e,t,n,r){const o=v.get(t);if(null!=o){const t=o._instance;if(null!=t)switch(e){case"context":deletePathInObject(t.context,r),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=o._currentElement;o._currentElement={...e,props:copyWithDelete(e.props,r)},forceUpdate(t);break;case"state":deletePathInObject(t.state,r),forceUpdate(t)}}},flushInitialOperations:function(){const e=h.Mount._instancesByReactRootID||h.Mount._instancesByContainerID;for(const t in e){const n=getID(e[t]);crawlAndRecordInitialMounts(n,0,n),flushPendingEvents(n)}},getBestMatchForTrackedPath:function(){return null},getDisplayNameForElementID,getNearestMountedDOMNode,getElementIDForHostInstance:k,getSuspenseNodeIDForHostInstance:e=>null,getInstanceAndStyle:function(e){let t=null,n=null;const r=v.get(e);if(null!=r){t=r._instance||null;const e=r._currentElement;null!=e&&null!=e.props&&(n=e.props.style||null)}return{instance:t,style:n}},findHostInstancesForElementID:e=>{const t=S(e);return null==t?null:[t]},findLastKnownRectsForID:()=>null,getOwnersList:function(e){return null},getPathForElement:function(e){return null},getProfilingData:()=>{throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:()=>{throw new Error("handleCommitFiberRoot not supported by this renderer")},handleCommitFiberUnmount:()=>{throw new Error("handleCommitFiberUnmount not supported by this renderer")},handlePostCommitFiberRoot:()=>{throw new Error("handlePostCommitFiberRoot not supported by this renderer")},hasElementWithId:function(e){return v.has(e)},inspectElement:function(e,t,n,r){(r||D!==t)&&(D=t,x={});const o=inspectElementRaw(t);return null===o?{id:t,responseID:e,type:"not-found"}:(null!==n&&function(e){let t=x;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),function(e){const t=v.get(e);if(null!=t)switch(getElementType(t)){case X:y.$r=t._instance;break;case J:const n=t._currentElement;if(null==n)return void console.warn(`Could not find element with id "${e}"`);y.$r={props:n.props,type:n.type};break;default:y.$r=null}else console.warn(`Could not find instance with id "${e}"`)}(t),o.context=cleanForBridge(o.context,createIsPathAllowed("context")),o.props=cleanForBridge(o.props,createIsPathAllowed("props")),o.state=cleanForBridge(o.state,createIsPathAllowed("state")),o.suspendedBy=cleanForBridge(o.suspendedBy,createIsPathAllowed("suspendedBy")),{id:t,responseID:e,type:"full-data",value:o})},logElementToConsole:function(e){const t=inspectElementRaw(e);if(null===t)return void console.warn(`Could not find element with id "${e}"`);const n=getDisplayNameForElementID(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed(`[Click to expand] %c<${n||"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.context&&console.log("Context:",t.context);const o=S(e);null!==o&&console.log("Node:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()},overrideError:()=>{throw new Error("overrideError not supported by this renderer")},overrideSuspense:()=>{throw new Error("overrideSuspense not supported by this renderer")},overrideSuspenseMilestone:()=>{throw new Error("overrideSuspenseMilestone not supported by this renderer")},overrideValueAtPath:function(e,t,n,r,o){const s=v.get(t);if(null!=s){const t=s._instance;if(null!=t)switch(e){case"context":utils_setInObject(t.context,r,o),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=s._currentElement;s._currentElement={...e,props:copyWithSet(e.props,r,o)},forceUpdate(t);break;case"state":utils_setInObject(t.state,r,o),forceUpdate(t)}}},renamePath:function(e,t,n,r,o){const s=v.get(t);if(null!=s){const t=s._instance;if(null!=t)switch(e){case"context":renamePathInObject(t.context,r,o),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=s._currentElement;s._currentElement={...e,props:copyWithRename(e.props,r,o)},forceUpdate(t);break;case"state":renamePathInObject(t.state,r,o),forceUpdate(t)}}},getElementAttributeByPath:function(e,t){const n=inspectElementRaw(e);if(null!==n)return utils_getInObject(n,t)},getElementSourceFunctionById:function(e){const t=v.get(e);if(null==t)return console.warn(`Could not find instance with id "${e}"`),null;const n=t._currentElement;return null==n?(console.warn(`Could not find element with id "${e}"`),null):n.type},renderer:h,setTraceUpdatesEnabled:function(e){},setTrackedPath:function(e){},startProfiling:()=>{},stopProfiling:()=>{},storeAsGlobal:function(e,t,n){const r=inspectElementRaw(e);if(null!==r){const e=utils_getInObject(r,t),o=`$reactTemp${n}`;window[o]=e,console.log(o),console.log(e)}},supportsTogglingSuspense:!1,updateComponentFilters:function(e){},getEnvironmentNames:function(){return[]}}}function isMatchingRender(e){return!function(e){return null!=e&&""!==e&>e(e,Re)}(e)}function formatConsoleArguments(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\)$|\@unknown\:0\:0$|\(|\)|\[|\]/gm;const zt=console,$t={recordChangeDescriptions:!1,recordTimeline:!1};function postMessage(e){window.postMessage(e)}let Bt,Lt;if(!window.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__")){const e=new Promise((e=>{Bt=e})),t=new Promise((e=>{Lt=e}));window.addEventListener("message",(function messageListener(e){if(e.source===window&&"react-devtools-settings-injector"===e.data.source){const t=e.data.payload;t.handshake?postMessage({source:"react-devtools-hook-installer",payload:{handshake:!0}}):t.hookSettings&&(window.removeEventListener("message",messageListener),Bt(t.hookSettings),Lt(t.componentFilters))}})),postMessage({source:"react-devtools-hook-installer",payload:{handshake:!0}});const n="true"===sessionStorageGetItem("React::DevTools::reloadAndProfile"),r={recordChangeDescriptions:"true"===sessionStorageGetItem("React::DevTools::recordChangeDescriptions"),recordTimeline:"true"===sessionStorageGetItem("React::DevTools::recordTimeline")};!function(e,t,n,r=!1,o=$t){if(e.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__"))return null;const s=r;let i=0,a=!1,l=!1;const u=[],c=[],d=[];function getTopStackFrameString(e){const t=e.stack.split("\n");return t.length>1?t[1]:null}function patchConsoleForErrorsAndWarnings(){if(!y.settings)return;const e=["error","trace","warn"];for(const t of e){const e=zt[t],overrideMethod=(...n)=>{const r=y.settings;if(null==r)return void e(...n);if(l&&r.hideConsoleLogsInStrictMode)return;let o=!1,s=!1;if(r.appendComponentStack){const e=n.length>0?n[n.length-1]:null;s="string"==typeof e&&(i=e,Ht.test(i)||At.test(i))}var i;const a=r.showInlineWarningsAndErrors&&("error"===t||"warn"===t);for(const e of y.rendererInterfaces.values()){const{onErrorOrWarning:i,getComponentStack:l}=e;try{a&&null!=i&&i(t,n.slice())}catch(e){setTimeout((()=>{throw e}),0)}try{if(r.appendComponentStack&&null!=l){const e=l(Error("react-stack-top-frame"));if(null!==e){const{enableOwnerStacks:t,componentStack:r}=e;if(""!==r){const e=new Error("");if(e.name=t?"Error Stack":"Error Component Stack",e.stack=(t?"Error Stack:":"Error Component Stack:")+r,s){if(u=n[n.length-1],c=r,u.replace(Mt,"")===c.replace(Mt,"")){const t=n[0];n.length>1&&"string"==typeof t&&t.endsWith("%s")&&(n[0]=t.slice(0,t.length-2)),n[n.length-1]=e,o=!0}}else n.push(e),o=!0}break}}}catch(e){setTimeout((()=>{throw e}),0)}}var u,c;r.breakOnConsoleErrors,l&&!r.disableSecondConsoleLogDimmingInStrictMode?e(o?"%s %o":w,...formatConsoleArguments(...n)):e(...n)};zt[t]=overrideMethod}}const f={},p=new Map,m={},h=new Map,g=new Map,y={rendererInterfaces:p,listeners:m,backends:g,renderers:h,hasUnsupportedRendererAttached:!1,emit:function(e,t){m[e]&&m[e].map((e=>e(t)))},getFiberRoots:function(e){const t=f;return t[e]||(t[e]=new Set),t[e]},inject:function(n){const r=++i;h.set(r,n);const l=a?"deadcode":function(e){try{if("string"==typeof e.version)return e.bundleType>0?"development":"production";const t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){const n=t.call(e.Mount._renderNewRootComponent);return 0!==n.indexOf("function")?"production":-1!==n.indexOf("storedMeasure")?"development":-1!==n.indexOf("should be a pure function")?-1!==n.indexOf("NODE_ENV")||-1!==n.indexOf("development")||-1!==n.indexOf("true")?"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"outdated"}}catch(e){}return"production"}(n);y.emit("renderer",{id:r,renderer:n,reactBuildType:l});const u=function(e,t,n,r,o,s,i){if(!isMatchingRender(n.reconcilerVersion||n.version))return;let a=e.rendererInterfaces.get(t);return null==a&&("function"==typeof n.getCurrentComponentInfo?a=attach(0,0,n):"function"==typeof n.findFiberByHostInstance||null!=n.currentDispatcherRef?a=renderer_attach(e,t,n,r,o,s,i):n.ComponentTree&&(a=legacy_renderer_attach(e,t,n,r))),a}(y,r,n,e,s,o,t);return null!=u?(y.rendererInterfaces.set(r,u),y.emit("renderer-attached",{id:r,rendererInterface:u})):(y.hasUnsupportedRendererAttached=!0,y.emit("unsupported-renderer-version")),r},on:function(e,t){m[e]||(m[e]=[]),m[e].push(t)},off:function(e,t){if(!m[e])return;const n=m[e].indexOf(t);-1!==n&&m[e].splice(n,1),m[e].length||delete m[e]},sub:function(e,t){return y.on(e,t),()=>y.off(e,t)},supportsFiber:!0,supportsFlight:!0,checkDCE:function(e){try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&(a=!0,setTimeout((function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})))}catch(e){}},onCommitFiberUnmount:function(e,t){const n=p.get(e);null!=n&&n.handleCommitFiberUnmount(t)},onCommitFiberRoot:function(e,t,n){const r=y.getFiberRoots(e),o=t.current,s=r.has(t),i=null==o.memoizedState||null==o.memoizedState.element;s||i?s&&i&&r.delete(t):r.add(t);const a=p.get(e);null!=a&&a.handleCommitFiberRoot(t,n)},onPostCommitFiberRoot:function(e,t){const n=p.get(e);null!=n&&n.handlePostCommitFiberRoot(t)},setStrictMode:function(e,t){l=t,t?function(){if(!y.settings)return;if(u.length>0)return;const e=["group","groupCollapsed","info","log"];for(const t of e){const e=zt[t],overrideMethod=(...t)=>{const n=y.settings;null!=n?n.hideConsoleLogsInStrictMode||(n.disableSecondConsoleLogDimmingInStrictMode?e(...t):e(w,...formatConsoleArguments(...t))):e(...t)};zt[t]=overrideMethod,u.push((()=>{zt[t]=e}))}}():(u.forEach((e=>e())),u.length=0)},getInternalModuleRanges:function(){return d},registerInternalModuleStart:function(e){const t=getTopStackFrameString(e);null!==t&&c.push(t)},registerInternalModuleStop:function(e){if(c.length>0){const t=c.pop(),n=getTopStackFrameString(e);null!==n&&d.push([t,n])}}};null==n?(y.settings={appendComponentStack:!0,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!0,hideConsoleLogsInStrictMode:!1,disableSecondConsoleLogDimmingInStrictMode:!1},patchConsoleForErrorsAndWarnings()):Promise.resolve(n).then((e=>{y.settings=e,y.emit("settingsInitialized",e),patchConsoleForErrorsAndWarnings()})).catch((()=>{zt.error("React DevTools failed to get Console Patching settings. Console won't be patched and some console features will not work.")})),Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:()=>y})}(window,t,e,n,r),window.__REACT_DEVTOOLS_GLOBAL_HOOK__.on("renderer",(function({reactBuildType:e}){window.postMessage({source:"react-devtools-hook",payload:{type:"react-renderer-attached",reactBuildType:e}},"*")}))}})()})(); //# sourceMappingURL=installHook.js.map