@atlas-viewer/atlas 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,176 +0,0 @@
1
- "use strict";var AtlasViewer=(()=>{var xA=Object.create;var Oo=Object.defineProperty;var TA=Object.getOwnPropertyDescriptor;var zA=Object.getOwnPropertyNames;var _A=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty;var OA=(t,e,i)=>e in t?Oo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var be=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),MA=(t,e)=>{for(var i in e)Oo(t,i,{get:e[i],enumerable:!0})},fS=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of zA(e))!AA.call(t,u)&&u!==i&&Oo(t,u,{get:()=>e[u],enumerable:!(n=TA(e,u))||n.enumerable});return t};var F=(t,e,i)=>(i=t!=null?xA(_A(t)):{},fS(e||!t||!t.__esModule?Oo(i,"default",{value:t,enumerable:!0}):i,t)),CA=t=>fS(Oo({},"__esModule",{value:!0}),t);var b=(t,e,i)=>(OA(t,typeof e!="symbol"?e+"":e,i),i);var HS=be((a6,DS)=>{"use strict";var OS=!1,Za,tg,eg,cf,rf,MS,ff,ig,ng,lg,CS,ag,ug,RS,NS;function si(){if(!OS){OS=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),i=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(ag=/\b(iPhone|iP[ao]d)/.exec(t),ug=/\b(iP[ao]d)/.exec(t),lg=/Android/i.exec(t),RS=/FBAN\/\w+;/i.exec(t),NS=/Mobile/i.exec(t),CS=!!/Win64/.exec(t),e){Za=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Za&&document&&document.documentMode&&(Za=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(t);MS=n?parseFloat(n[1])+4:Za,tg=e[2]?parseFloat(e[2]):NaN,eg=e[3]?parseFloat(e[3]):NaN,cf=e[4]?parseFloat(e[4]):NaN,cf?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),rf=e&&e[1]?parseFloat(e[1]):NaN):rf=NaN}else Za=tg=eg=rf=cf=NaN;if(i){if(i[1]){var u=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);ff=u?parseFloat(u[1].replace("_",".")):!0}else ff=!1;ig=!!i[2],ng=!!i[3]}else ff=ig=ng=!1}}var sg={ie:function(){return si()||Za},ieCompatibilityMode:function(){return si()||MS>Za},ie64:function(){return sg.ie()&&CS},firefox:function(){return si()||tg},opera:function(){return si()||eg},webkit:function(){return si()||cf},safari:function(){return sg.webkit()},chrome:function(){return si()||rf},windows:function(){return si()||ig},osx:function(){return si()||ff},linux:function(){return si()||ng},iphone:function(){return si()||ag},mobile:function(){return si()||ag||ug||lg||NS},nativeApp:function(){return si()||RS},android:function(){return si()||lg},ipad:function(){return si()||ug}};DS.exports=sg});var BS=be((u6,US)=>{"use strict";var hf=!!(typeof window<"u"&&window.document&&window.document.createElement),qA={canUseDOM:hf,canUseWorkers:typeof Worker<"u",canUseEventListeners:hf&&!!(window.addEventListener||window.attachEvent),canUseViewport:hf&&!!window.screen,isInWorker:!hf};US.exports=qA});var qS=be((s6,LS)=>{"use strict";var wS=BS(),jS;wS.canUseDOM&&(jS=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function GA(t,e){if(!wS.canUseDOM||e&&!("addEventListener"in document))return!1;var i="on"+t,n=i in document;if(!n){var u=document.createElement("div");u.setAttribute(i,"return;"),n=typeof u[i]=="function"}return!n&&jS&&t==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}LS.exports=GA});var ZS=be((o6,VS)=>{"use strict";var YA=HS(),QA=qS(),GS=10,YS=40,QS=800;function XS(t){var e=0,i=0,n=0,u=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=e*GS,u=i*GS,"deltaY"in t&&(u=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||u)&&t.deltaMode&&(t.deltaMode==1?(n*=YS,u*=YS):(n*=QS,u*=QS)),n&&!e&&(e=n<1?-1:1),u&&!i&&(i=u<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:u}}XS.getEventType=function(){return YA.firefox()?"DOMMouseScroll":QA("wheel")?"wheel":"mousewheel"};VS.exports=XS});var JS=be((c6,KS)=>{"use strict";KS.exports=ZS()});var cb=be(nt=>{"use strict";var rg=Symbol.for("react.transitional.element"),VA=Symbol.for("react.portal"),ZA=Symbol.for("react.fragment"),KA=Symbol.for("react.strict_mode"),JA=Symbol.for("react.profiler"),FA=Symbol.for("react.consumer"),WA=Symbol.for("react.context"),PA=Symbol.for("react.forward_ref"),IA=Symbol.for("react.suspense"),kA=Symbol.for("react.memo"),nb=Symbol.for("react.lazy"),$A=Symbol.for("react.activity"),$S=Symbol.iterator;function t4(t){return t===null||typeof t!="object"?null:(t=$S&&t[$S]||t["@@iterator"],typeof t=="function"?t:null)}var lb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ab=Object.assign,ub={};function ku(t,e,i){this.props=t,this.context=e,this.refs=ub,this.updater=i||lb}ku.prototype.isReactComponent={};ku.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ku.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sb(){}sb.prototype=ku.prototype;function fg(t,e,i){this.props=t,this.context=e,this.refs=ub,this.updater=i||lb}var hg=fg.prototype=new sb;hg.constructor=fg;ab(hg,ku.prototype);hg.isPureReactComponent=!0;var tb=Array.isArray;function cg(){}var wt={H:null,A:null,T:null,S:null},ob=Object.prototype.hasOwnProperty;function dg(t,e,i){var n=i.ref;return{$$typeof:rg,type:t,key:e,ref:n!==void 0?n:null,props:i}}function e4(t,e){return dg(t.type,e,t.props)}function mg(t){return typeof t=="object"&&t!==null&&t.$$typeof===rg}function i4(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(i){return e[i]})}var eb=/\/+/g;function og(t,e){return typeof t=="object"&&t!==null&&t.key!=null?i4(""+t.key):e.toString(36)}function n4(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(cg,cg):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Iu(t,e,i,n,u){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(s){case"bigint":case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case rg:case VA:r=!0;break;case nb:return r=t._init,Iu(r(t._payload),e,i,n,u)}}if(r)return u=u(t),r=n===""?"."+og(t,0):n,tb(u)?(i="",r!=null&&(i=r.replace(eb,"$&/")+"/"),Iu(u,e,i,"",function(y){return y})):u!=null&&(mg(u)&&(u=e4(u,i+(u.key==null||t&&t.key===u.key?"":(""+u.key).replace(eb,"$&/")+"/")+r)),e.push(u)),1;r=0;var f=n===""?".":n+":";if(tb(t))for(var m=0;m<t.length;m++)n=t[m],s=f+og(n,m),r+=Iu(n,e,i,s,u);else if(m=t4(t),typeof m=="function")for(t=m.call(t),m=0;!(n=t.next()).done;)n=n.value,s=f+og(n,m++),r+=Iu(n,e,i,s,u);else if(s==="object"){if(typeof t.then=="function")return Iu(n4(t),e,i,n,u);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return r}function df(t,e,i){if(t==null)return t;var n=[],u=0;return Iu(t,n,"","",function(s){return e.call(i,s,u++)}),n}function l4(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(i){(t._status===0||t._status===-1)&&(t._status=1,t._result=i)},function(i){(t._status===0||t._status===-1)&&(t._status=2,t._result=i)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var ib=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},a4={map:df,forEach:function(t,e,i){df(t,function(){e.apply(this,arguments)},i)},count:function(t){var e=0;return df(t,function(){e++}),e},toArray:function(t){return df(t,function(e){return e})||[]},only:function(t){if(!mg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};nt.Activity=$A;nt.Children=a4;nt.Component=ku;nt.Fragment=ZA;nt.Profiler=JA;nt.PureComponent=fg;nt.StrictMode=KA;nt.Suspense=IA;nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wt;nt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return wt.H.useMemoCache(t)}};nt.cache=function(t){return function(){return t.apply(null,arguments)}};nt.cacheSignal=function(){return null};nt.cloneElement=function(t,e,i){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=ab({},t.props),u=t.key;if(e!=null)for(s in e.key!==void 0&&(u=""+e.key),e)!ob.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(n[s]=e[s]);var s=arguments.length-2;if(s===1)n.children=i;else if(1<s){for(var r=Array(s),f=0;f<s;f++)r[f]=arguments[f+2];n.children=r}return dg(t.type,u,n)};nt.createContext=function(t){return t={$$typeof:WA,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:FA,_context:t},t};nt.createElement=function(t,e,i){var n,u={},s=null;if(e!=null)for(n in e.key!==void 0&&(s=""+e.key),e)ob.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(u[n]=e[n]);var r=arguments.length-2;if(r===1)u.children=i;else if(1<r){for(var f=Array(r),m=0;m<r;m++)f[m]=arguments[m+2];u.children=f}if(t&&t.defaultProps)for(n in r=t.defaultProps,r)u[n]===void 0&&(u[n]=r[n]);return dg(t,s,u)};nt.createRef=function(){return{current:null}};nt.forwardRef=function(t){return{$$typeof:PA,render:t}};nt.isValidElement=mg;nt.lazy=function(t){return{$$typeof:nb,_payload:{_status:-1,_result:t},_init:l4}};nt.memo=function(t,e){return{$$typeof:kA,type:t,compare:e===void 0?null:e}};nt.startTransition=function(t){var e=wt.T,i={};wt.T=i;try{var n=t(),u=wt.S;u!==null&&u(i,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(cg,ib)}catch(s){ib(s)}finally{e!==null&&i.types!==null&&(e.types=i.types),wt.T=e}};nt.unstable_useCacheRefresh=function(){return wt.H.useCacheRefresh()};nt.use=function(t){return wt.H.use(t)};nt.useActionState=function(t,e,i){return wt.H.useActionState(t,e,i)};nt.useCallback=function(t,e){return wt.H.useCallback(t,e)};nt.useContext=function(t){return wt.H.useContext(t)};nt.useDebugValue=function(){};nt.useDeferredValue=function(t,e){return wt.H.useDeferredValue(t,e)};nt.useEffect=function(t,e){return wt.H.useEffect(t,e)};nt.useEffectEvent=function(t){return wt.H.useEffectEvent(t)};nt.useId=function(){return wt.H.useId()};nt.useImperativeHandle=function(t,e,i){return wt.H.useImperativeHandle(t,e,i)};nt.useInsertionEffect=function(t,e){return wt.H.useInsertionEffect(t,e)};nt.useLayoutEffect=function(t,e){return wt.H.useLayoutEffect(t,e)};nt.useMemo=function(t,e){return wt.H.useMemo(t,e)};nt.useOptimistic=function(t,e){return wt.H.useOptimistic(t,e)};nt.useReducer=function(t,e,i){return wt.H.useReducer(t,e,i)};nt.useRef=function(t){return wt.H.useRef(t)};nt.useState=function(t){return wt.H.useState(t)};nt.useSyncExternalStore=function(t,e,i){return wt.H.useSyncExternalStore(t,e,i)};nt.useTransition=function(){return wt.H.useTransition()};nt.version="19.2.0"});var vt=be((p6,rb)=>{"use strict";rb.exports=cb()});var hb=be(mf=>{"use strict";var u4=Symbol.for("react.transitional.element"),s4=Symbol.for("react.fragment");function fb(t,e,i){var n=null;if(i!==void 0&&(n=""+i),e.key!==void 0&&(n=""+e.key),"key"in e){i={};for(var u in e)u!=="key"&&(i[u]=e[u])}else i=e;return e=i.ref,{$$typeof:u4,type:t,key:n,ref:e!==void 0?e:null,props:i}}mf.Fragment=s4;mf.jsx=fb;mf.jsxs=fb});var Ft=be((b6,db)=>{"use strict";db.exports=hb()});var Ab=be(Yt=>{"use strict";function Sg(t,e){var i=t.length;t.push(e);t:for(;0<i;){var n=i-1>>>1,u=t[n];if(0<vf(u,e))t[n]=e,t[i]=u,i=n;else break t}}function Mn(t){return t.length===0?null:t[0]}function Sf(t){if(t.length===0)return null;var e=t[0],i=t.pop();if(i!==e){t[0]=i;t:for(var n=0,u=t.length,s=u>>>1;n<s;){var r=2*(n+1)-1,f=t[r],m=r+1,y=t[m];if(0>vf(f,i))m<u&&0>vf(y,f)?(t[n]=y,t[m]=i,n=m):(t[n]=f,t[r]=i,n=r);else if(m<u&&0>vf(y,i))t[n]=y,t[m]=i,n=m;else break t}}return e}function vf(t,e){var i=t.sortIndex-e.sortIndex;return i!==0?i:t.id-e.id}Yt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(vb=performance,Yt.unstable_now=function(){return vb.now()}):(yg=Date,pb=yg.now(),Yt.unstable_now=function(){return yg.now()-pb});var vb,yg,pb,nl=[],Kl=[],d4=1,Fi=null,Ke=3,bg=!1,jo=!1,Lo=!1,Eg=!1,Eb=typeof setTimeout=="function"?setTimeout:null,xb=typeof clearTimeout=="function"?clearTimeout:null,Sb=typeof setImmediate<"u"?setImmediate:null;function pf(t){for(var e=Mn(Kl);e!==null;){if(e.callback===null)Sf(Kl);else if(e.startTime<=t)Sf(Kl),e.sortIndex=e.expirationTime,Sg(nl,e);else break;e=Mn(Kl)}}function xg(t){if(Lo=!1,pf(t),!jo)if(Mn(nl)!==null)jo=!0,ts||(ts=!0,$u());else{var e=Mn(Kl);e!==null&&Tg(xg,e.startTime-t)}}var ts=!1,qo=-1,Tb=5,zb=-1;function _b(){return Eg?!0:!(Yt.unstable_now()-zb<Tb)}function vg(){if(Eg=!1,ts){var t=Yt.unstable_now();zb=t;var e=!0;try{t:{jo=!1,Lo&&(Lo=!1,xb(qo),qo=-1),bg=!0;var i=Ke;try{e:{for(pf(t),Fi=Mn(nl);Fi!==null&&!(Fi.expirationTime>t&&_b());){var n=Fi.callback;if(typeof n=="function"){Fi.callback=null,Ke=Fi.priorityLevel;var u=n(Fi.expirationTime<=t);if(t=Yt.unstable_now(),typeof u=="function"){Fi.callback=u,pf(t),e=!0;break e}Fi===Mn(nl)&&Sf(nl),pf(t)}else Sf(nl);Fi=Mn(nl)}if(Fi!==null)e=!0;else{var s=Mn(Kl);s!==null&&Tg(xg,s.startTime-t),e=!1}}break t}finally{Fi=null,Ke=i,bg=!1}e=void 0}}finally{e?$u():ts=!1}}}var $u;typeof Sb=="function"?$u=function(){Sb(vg)}:typeof MessageChannel<"u"?(pg=new MessageChannel,bb=pg.port2,pg.port1.onmessage=vg,$u=function(){bb.postMessage(null)}):$u=function(){Eb(vg,0)};var pg,bb;function Tg(t,e){qo=Eb(function(){t(Yt.unstable_now())},e)}Yt.unstable_IdlePriority=5;Yt.unstable_ImmediatePriority=1;Yt.unstable_LowPriority=4;Yt.unstable_NormalPriority=3;Yt.unstable_Profiling=null;Yt.unstable_UserBlockingPriority=2;Yt.unstable_cancelCallback=function(t){t.callback=null};Yt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Tb=0<t?Math.floor(1e3/t):5};Yt.unstable_getCurrentPriorityLevel=function(){return Ke};Yt.unstable_next=function(t){switch(Ke){case 1:case 2:case 3:var e=3;break;default:e=Ke}var i=Ke;Ke=e;try{return t()}finally{Ke=i}};Yt.unstable_requestPaint=function(){Eg=!0};Yt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var i=Ke;Ke=t;try{return e()}finally{Ke=i}};Yt.unstable_scheduleCallback=function(t,e,i){var n=Yt.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?n+i:n):i=n,t){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=i+u,t={id:d4++,callback:e,priorityLevel:t,startTime:i,expirationTime:u,sortIndex:-1},i>n?(t.sortIndex=i,Sg(Kl,t),Mn(nl)===null&&t===Mn(Kl)&&(Lo?(xb(qo),qo=-1):Lo=!0,Tg(xg,i-n))):(t.sortIndex=u,Sg(nl,t),jo||bg||(jo=!0,ts||(ts=!0,$u()))),t};Yt.unstable_shouldYield=_b;Yt.unstable_wrapCallback=function(t){var e=Ke;return function(){var i=Ke;Ke=e;try{return t.apply(this,arguments)}finally{Ke=i}}}});var zg=be((A6,Ob)=>{"use strict";Ob.exports=Ab()});var Mb=be((O6,Go)=>{"use strict";Go.exports=function(t){function e(l,a,o,c){return new O_(l,a,o,c)}function i(){}function n(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(l){var a=l,o=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,a.flags&4098&&(o=a.return),l=a.return;while(l)}return a.tag===3?o:null}function s(l){if(u(l)!==l)throw Error(n(188))}function r(l){var a=l.alternate;if(!a){if(a=u(l),a===null)throw Error(n(188));return a!==l?null:l}for(var o=l,c=a;;){var h=o.return;if(h===null)break;var d=h.alternate;if(d===null){if(c=h.return,c!==null){o=c;continue}break}if(h.child===d.child){for(d=h.child;d;){if(d===o)return s(h),l;if(d===c)return s(h),a;d=d.sibling}throw Error(n(188))}if(o.return!==c.return)o=h,c=d;else{for(var v=!1,_=h.child;_;){if(_===o){v=!0,o=h,c=d;break}if(_===c){v=!0,c=h,o=d;break}_=_.sibling}if(!v){for(_=d.child;_;){if(_===o){v=!0,o=d,c=h;break}if(_===c){v=!0,c=d,o=h;break}_=_.sibling}if(!v)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?l:a}function f(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=f(l),a!==null)return a;l=l.sibling}return null}function m(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(l.tag!==4&&(a=m(l),a!==null))return a;l=l.sibling}return null}function y(l){return l===null||typeof l!="object"?null:(l=R1&&l[R1]||l["@@iterator"],typeof l=="function"?l:null)}function g(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===D_?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Mu:return"Fragment";case fm:return"Profiler";case M1:return"StrictMode";case dm:return"Suspense";case mm:return"SuspenseList";case ym:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Ou:return"Portal";case Nl:return l.displayName||"Context";case C1:return(l._context.displayName||"Context")+".Consumer";case hm:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case gm:return a=l.displayName||null,a!==null?a:g(l.type)||"Memo";case Dl:a=l._payload,l=l._init;try{return g(l(a))}catch{}}return null}function S(l){return{current:l}}function p(l){0>Nu||(l.current=xm[Nu],xm[Nu]=null,Nu--)}function x(l,a){Nu++,xm[Nu]=l.current,l.current=a}function A(l){return l>>>=0,l===0?32:31-(uA(l)/sA|0)|0}function R(l){var a=l&42;if(a!==0)return a;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function w(l,a,o){var c=l.pendingLanes;if(c===0)return 0;var h=0,d=l.suspendedLanes,v=l.pingedLanes;l=l.warmLanes;var _=c&134217727;return _!==0?(c=_&~d,c!==0?h=R(c):(v&=_,v!==0?h=R(v):o||(o=_&~l,o!==0&&(h=R(o))))):(_=c&~d,_!==0?h=R(_):v!==0?h=R(v):o||(o=c&~l,o!==0&&(h=R(o)))),h===0?0:a!==0&&a!==h&&!(a&d)&&(d=h&-h,o=a&-a,d>=o||d===32&&(o&4194048)!==0)?a:h}function T(l,a){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&a)===0}function E(l,a){switch(l){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function z(){var l=Cr;return Cr<<=1,!(Cr&62914560)&&(Cr=4194304),l}function O(l){for(var a=[],o=0;31>o;o++)a.push(l);return a}function H(l,a){l.pendingLanes|=a,a!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function q(l,a,o,c,h,d){var v=l.pendingLanes;l.pendingLanes=o,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=o,l.entangledLanes&=o,l.errorRecoveryDisabledLanes&=o,l.shellSuspendCounter=0;var _=l.entanglements,D=l.expirationTimes,j=l.hiddenUpdates;for(o=v&~o;0<o;){var V=31-Si(o),Y=1<<V;_[V]=0,D[V]=-1;var K=j[V];if(K!==null)for(j[V]=null,V=0;V<K.length;V++){var it=K[V];it!==null&&(it.lane&=-536870913)}o&=~Y}c!==0&&L(l,c,0),d!==0&&h===0&&l.tag!==0&&(l.suspendedLanes|=d&~(v&~a))}function L(l,a,o){l.pendingLanes|=a,l.suspendedLanes&=~a;var c=31-Si(a);l.entangledLanes|=a,l.entanglements[c]=l.entanglements[c]|1073741824|o&261930}function G(l,a){var o=l.entangledLanes|=a;for(l=l.entanglements;o;){var c=31-Si(o),h=1<<c;h&a|l[c]&a&&(l[c]|=a),o&=~h}}function J(l,a){var o=a&-a;return o=o&42?1:B(o),o&(l.suspendedLanes|a)?0:o}function B(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function I(l){return l&=-l,2<l?8<l?l&134217727?32:268435456:8:2}function ht(l){if(typeof hA=="function"&&dA(l),bi&&typeof bi.setStrictMode=="function")try{bi.setStrictMode(go,l)}catch{}}function qn(l,a){return l===a&&(l!==0||1/l===1/a)||l!==l&&a!==a}function At(l){if(_m===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);_m=a&&a[1]||"",iS=-1<o.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+_m+l+iS}function ei(l,a){if(!l||Am)return"";Am=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(it){var K=it}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(it){K=it}l.call(Y.prototype)}}else{try{throw Error()}catch(it){K=it}(Y=l())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(it){if(it&&K&&typeof it.stack=="string")return[it.stack,K.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=c.DetermineComponentFrameRoot(),v=d[0],_=d[1];if(v&&_){var D=v.split(`
4
- `),j=_.split(`
5
- `);for(h=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;h<j.length&&!j[h].includes("DetermineComponentFrameRoot");)h++;if(c===D.length||h===j.length)for(c=D.length-1,h=j.length-1;1<=c&&0<=h&&D[c]!==j[h];)h--;for(;1<=c&&0<=h;c--,h--)if(D[c]!==j[h]){if(c!==1||h!==1)do if(c--,h--,0>h||D[c]!==j[h]){var V=`
6
- `+D[c].replace(" at new "," at ");return l.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",l.displayName)),V}while(1<=c&&0<=h);break}}}finally{Am=!1,Error.prepareStackTrace=o}return(o=l?l.displayName||l.name:"")?At(o):""}function Qe(l,a){switch(l.tag){case 26:case 27:case 5:return At(l.type);case 16:return At("Lazy");case 13:return l.child!==a&&a!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return ei(l.type,!1);case 11:return ei(l.type.render,!1);case 1:return ei(l.type,!0);case 31:return At("Activity");default:return""}}function Gn(l){try{var a="",o=null;do a+=Qe(l,o),o=l,l=l.return;while(l);return a}catch(c){return`
7
- Error generating stack: `+c.message+`
8
- `+c.stack}}function ue(l,a){if(typeof l=="object"&&l!==null){var o=nS.get(l);return o!==void 0?o:(a={value:l,source:a,stack:Gn(a)},nS.set(l,a),a)}return{value:l,source:a,stack:Gn(a)}}function ye(l,a){Hu[Uu++]=yo,Hu[Uu++]=Nr,Nr=l,yo=a}function Ps(l,a,o){Yi[Qi++]=En,Yi[Qi++]=xn,Yi[Qi++]=Hl,Hl=l;var c=En;l=xn;var h=32-Si(c)-1;c&=~(1<<h),o+=1;var d=32-Si(a)+h;if(30<d){var v=h-h%5;d=(c&(1<<v)-1).toString(32),c>>=v,h-=v,En=1<<32-Si(a)+h|o<<h|c,xn=d+l}else En=1<<d|o<<h|c,xn=l}function X(l){l.return!==null&&(ye(l,1),Ps(l,1,0))}function Ut(l){for(;l===Nr;)Nr=Hu[--Uu],Hu[Uu]=null,yo=Hu[--Uu],Hu[Uu]=null;for(;l===Hl;)Hl=Yi[--Qi],Yi[Qi]=null,xn=Yi[--Qi],Yi[Qi]=null,En=Yi[--Qi],Yi[Qi]=null}function xa(l,a){Yi[Qi++]=En,Yi[Qi++]=xn,Yi[Qi++]=Hl,En=a.id,xn=a.overflow,Hl=l}function bu(l,a){x(Ul,a),x(vo,l),x(He,null),l=B_(a),p(He),x(He,l)}function Yn(){p(He),p(vo),p(Ul)}function Eu(l){l.memoizedState!==null&&x(Dr,l);var a=He.current,o=w_(a,l.type);a!==o&&(x(vo,l),x(He,o))}function Ta(l){vo.current===l&&(p(He),p(vo)),Dr.current===l&&(p(Dr),Fn?Ha._currentValue=Cu:Ha._currentValue2=Cu)}function qi(l){var a=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(ue(a,l)),Om}function Wc(l,a){if(!Ze)throw Error(n(175));w3(l.stateNode,l.type,l.memoizedProps,a,l)||qi(l,!0)}function cd(l){for(Ue=l.return;Ue;)switch(Ue.tag){case 5:case 31:case 13:Xi=!1;return;case 27:case 3:Xi=!0;return;default:Ue=Ue.return}}function za(l){if(!Ze||l!==Ue)return!1;if(!gt)return cd(l),gt=!0,!1;var a=l.tag;if(pe?a!==3&&a!==27&&(a!==5||X1(l.type)&&!Ar(l.type,l.memoizedProps))&&Xt&&qi(l):a!==3&&(a!==5||X1(l.type)&&!Ar(l.type,l.memoizedProps))&&Xt&&qi(l),cd(l),a===13){if(!Ze)throw Error(n(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=Y3(l)}else if(a===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));Xt=G3(l)}else Xt=pe&&a===27?A3(l.type,Xt):Ue?Q1(l.stateNode):null;return!0}function Qn(){Ze&&(Xt=Ue=null,gt=!1)}function _a(){var l=Bl;return l!==null&&(ai===null?ai=l:ai.push.apply(ai,l),Bl=null),l}function zl(l){Bl===null?Bl=[l]:Bl.push(l)}function k(l,a,o){Fn?(x(Hr,a._currentValue),a._currentValue=o):(x(Hr,a._currentValue2),a._currentValue2=o)}function lt(l){var a=Hr.current;Fn?l._currentValue=a:l._currentValue2=a,p(Hr)}function Rt(l,a,o){for(;l!==null;){var c=l.alternate;if((l.childLanes&a)!==a?(l.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),l===o)break;l=l.return}}function ve(l,a,o,c){var h=l.child;for(h!==null&&(h.return=l);h!==null;){var d=h.dependencies;if(d!==null){var v=h.child;d=d.firstContext;t:for(;d!==null;){var _=d;d=h;for(var D=0;D<a.length;D++)if(_.context===a[D]){d.lanes|=o,_=d.alternate,_!==null&&(_.lanes|=o),Rt(d.return,o,l),c||(v=null);break t}d=_.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(n(341));v.lanes|=o,d=v.alternate,d!==null&&(d.lanes|=o),Rt(v,o,l),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===l){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function Gi(l,a,o,c){l=null;for(var h=a,d=!1;h!==null;){if(!d){if(h.flags&524288)d=!0;else if(h.flags&262144)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(n(387));if(v=v.memoizedProps,v!==null){var _=h.type;Ei(h.pendingProps.value,v.value)||(l!==null?l.push(_):l=[_])}}else if(h===Dr.current){if(v=h.alternate,v===null)throw Error(n(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(l!==null?l.push(Ha):l=[Ha])}h=h.return}l!==null&&ve(a,l,o,c),a.flags|=262144}function gi(l){for(l=l.firstContext;l!==null;){var a=l.context;if(!Ei(Fn?a._currentValue:a._currentValue2,l.memoizedValue))return!0;l=l.next}return!1}function Je(l){Ua=l,Pn=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function ee(l){return yp(Ua,l)}function Pc(l,a){return Ua===null&&Je(l),yp(l,a)}function yp(l,a){var o=Fn?a._currentValue:a._currentValue2;if(a={context:a,memoizedValue:o,next:null},Pn===null){if(l===null)throw Error(n(308));Pn=a,l.dependencies={lanes:0,firstContext:a},l.flags|=524288}else Pn=Pn.next=a;return o}function rd(){return{controller:new gA,data:new Map,refCount:0}}function Is(l){l.refCount--,l.refCount===0&&yA(vA,function(){l.controller.abort()})}function Ic(){}function pn(l){l!==Bu&&l.next===null&&(Bu===null?Ur=Bu=l:Bu=Bu.next=l),Br=!0,Mm||(Mm=!0,n_())}function xu(l,a){if(!Cm&&Br){Cm=!0;do for(var o=!1,c=Ur;c!==null;){if(!a)if(l!==0){var h=c.pendingLanes;if(h===0)var d=0;else{var v=c.suspendedLanes,_=c.pingedLanes;d=(1<<31-Si(42|l)+1)-1,d&=h&~(v&~_),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,Ep(c,d))}else d=dt,d=w(c,c===Nt?d:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Da),!(d&3)||T(c,d)||(o=!0,Ep(c,d));c=c.next}while(o);Cm=!1}}function vp(){pp()}function pp(){Br=Mm=!1;var l=0;Ba!==0&&Z_()&&(l=Ba);for(var a=ni(),o=null,c=Ur;c!==null;){var h=c.next,d=Sp(c,a);d===0?(c.next=null,o===null?Ur=h:o.next=h,h===null&&(Bu=o)):(o=c,(l!==0||d&3)&&(Br=!0)),c=h}Se!==0&&Se!==5||xu(l,!1),Ba!==0&&(Ba=0)}function Sp(l,a){for(var o=l.suspendedLanes,c=l.pingedLanes,h=l.expirationTimes,d=l.pendingLanes&-62914561;0<d;){var v=31-Si(d),_=1<<v,D=h[v];D===-1?(!(_&o)||_&c)&&(h[v]=E(_,a)):D<=a&&(l.expiredLanes|=_),d&=~_}if(a=Nt,o=dt,o=w(l,l===a?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Da),c=l.callbackNode,o===0||l===a&&(Tt===2||Tt===9)||l.cancelPendingCommit!==null)return c!==null&&c!==null&&Tm(c),l.callbackNode=null,l.callbackPriority=0;if(!(o&3)||T(l,o)){if(a=o&-o,a===l.callbackPriority)return a;switch(c!==null&&Tm(c),I(o)){case 2:case 8:o=rA;break;case 32:o=zm;break;case 268435456:o=fA;break;default:o=zm}return c=bp.bind(null,l),o=Rr(o,c),l.callbackPriority=a,l.callbackNode=o,a}return c!==null&&c!==null&&Tm(c),l.callbackPriority=2,l.callbackNode=null,2}function bp(l,a){if(Se!==0&&Se!==5)return l.callbackNode=null,l.callbackPriority=0,null;var o=l.callbackNode;if(ro()&&l.callbackNode!==o)return null;var c=dt;return c=w(l,l===Nt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==Da),c===0?null:(n1(l,c,a),Sp(l,ni()),l.callbackNode!=null&&l.callbackNode===o?bp.bind(null,l):null)}function Ep(l,a){if(ro())return null;n1(l,a,!0)}function n_(){k_?$_(function(){ot&6?Rr(tS,vp):pp()}):Rr(tS,vp)}function fd(){if(Ba===0){var l=wu;l===0&&(l=Or,Or<<=1,!(Or&261888)&&(Or=256)),Ba=l}return Ba}function l_(l,a){if(po===null){var o=po=[];Rm=0,wu=fd(),ju={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Rm++,a.then(xp,xp),a}function xp(){if(--Rm===0&&po!==null){ju!==null&&(ju.status="fulfilled");var l=po;po=null,wu=0,ju=null;for(var a=0;a<l.length;a++)(0,l[a])()}}function a_(l,a){var o=[],c={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return l.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<o.length;h++)(0,o[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),c}function hd(){var l=wa.current;return l!==null?l:Nt.pooledCache}function kc(l,a){a===null?x(wa,wa.current):x(wa,a.pool)}function Tp(){var l=hd();return l===null?null:{parent:Fn?Vt._currentValue:Vt._currentValue2,pool:l}}function $c(l,a){if(Ei(l,a))return!0;if(typeof l!="object"||l===null||typeof a!="object"||a===null)return!1;var o=Object.keys(l),c=Object.keys(a);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var h=o[c];if(!mA.call(a,h)||!Ei(l[h],a[h]))return!1}return!0}function zp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function _p(l,a,o){switch(o=l[o],o===void 0?l.push(a):o!==a&&(a.then(Ic,Ic),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Op(l),l;default:if(typeof a.status=="string")a.then(Ic,Ic);else{if(l=Nt,l!==null&&100<l.shellSuspendCounter)throw Error(n(482));l=a,l.status="pending",l.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Op(l),l}throw ja=a,Lu}}function Aa(l){try{var a=l._init;return a(l._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ja=o,Lu):o}}function Ap(){if(ja===null)throw Error(n(459));var l=ja;return ja=null,l}function Op(l){if(l===Lu||l===wr)throw Error(n(483))}function tr(l){var a=So;return So+=1,qu===null&&(qu=[]),_p(qu,l,a)}function ks(l,a){a=a.props.ref,l.ref=a!==void 0?a:null}function er(l,a){throw a.$$typeof===R_?Error(n(525)):(l=Object.prototype.toString.call(a),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)))}function Mp(l){function a(C,M){if(l){var N=C.deletions;N===null?(C.deletions=[M],C.flags|=16):N.push(M)}}function o(C,M){if(!l)return null;for(;M!==null;)a(C,M),M=M.sibling;return null}function c(C){for(var M=new Map;C!==null;)C.key!==null?M.set(C.key,C):M.set(C.index,C),C=C.sibling;return M}function h(C,M){return C=Jn(C,M),C.index=0,C.sibling=null,C}function d(C,M,N){return C.index=N,l?(N=C.alternate,N!==null?(N=N.index,N<M?(C.flags|=67108866,M):N):(C.flags|=67108866,M)):(C.flags|=1048576,M)}function v(C){return l&&C.alternate===null&&(C.flags|=67108866),C}function _(C,M,N,Q){return M===null||M.tag!==6?(M=sm(N,C.mode,Q),M.return=C,M):(M=h(M,N),M.return=C,M)}function D(C,M,N,Q){var P=N.type;return P===Mu?V(C,M,N.props.children,Q,N.key):M!==null&&(M.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Dl&&Aa(P)===M.type)?(M=h(M,N.props),ks(M,N),M.return=C,M):(M=Tr(N.type,N.key,N.props,null,C.mode,Q),ks(M,N),M.return=C,M)}function j(C,M,N,Q){return M===null||M.tag!==4||M.stateNode.containerInfo!==N.containerInfo||M.stateNode.implementation!==N.implementation?(M=om(N,C.mode,Q),M.return=C,M):(M=h(M,N.children||[]),M.return=C,M)}function V(C,M,N,Q,P){return M===null||M.tag!==7?(M=Na(N,C.mode,Q,P),M.return=C,M):(M=h(M,N),M.return=C,M)}function Y(C,M,N){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=sm(""+M,C.mode,N),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case zr:return N=Tr(M.type,M.key,M.props,null,C.mode,N),ks(N,M),N.return=C,N;case Ou:return M=om(M,C.mode,N),M.return=C,M;case Dl:return M=Aa(M),Y(C,M,N)}if(_r(M)||y(M))return M=Na(M,C.mode,N,null),M.return=C,M;if(typeof M.then=="function")return Y(C,tr(M),N);if(M.$$typeof===Nl)return Y(C,Pc(C,M),N);er(C,M)}return null}function K(C,M,N,Q){var P=M!==null?M.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return P!==null?null:_(C,M,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case zr:return N.key===P?D(C,M,N,Q):null;case Ou:return N.key===P?j(C,M,N,Q):null;case Dl:return N=Aa(N),K(C,M,N,Q)}if(_r(N)||y(N))return P!==null?null:V(C,M,N,Q,null);if(typeof N.then=="function")return K(C,M,tr(N),Q);if(N.$$typeof===Nl)return K(C,M,Pc(C,N),Q);er(C,N)}return null}function it(C,M,N,Q,P){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(N)||null,_(M,C,""+Q,P);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zr:return C=C.get(Q.key===null?N:Q.key)||null,D(M,C,Q,P);case Ou:return C=C.get(Q.key===null?N:Q.key)||null,j(M,C,Q,P);case Dl:return Q=Aa(Q),it(C,M,N,Q,P)}if(_r(Q)||y(Q))return C=C.get(N)||null,V(M,C,Q,P,null);if(typeof Q.then=="function")return it(C,M,N,tr(Q),P);if(Q.$$typeof===Nl)return it(C,M,N,Pc(M,Q),P);er(M,Q)}return null}function Be(C,M,N,Q){for(var P=null,Zt=null,$=M,St=M=0,Me=null;$!==null&&St<N.length;St++){$.index>St?(Me=$,$=null):Me=$.sibling;var bt=K(C,$,N[St],Q);if(bt===null){$===null&&($=Me);break}l&&$&&bt.alternate===null&&a(C,$),M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt,$=Me}if(St===N.length)return o(C,$),gt&&ye(C,St),P;if($===null){for(;St<N.length;St++)$=Y(C,N[St],Q),$!==null&&(M=d($,M,St),Zt===null?P=$:Zt.sibling=$,Zt=$);return gt&&ye(C,St),P}for($=c($);St<N.length;St++)Me=it($,C,St,N[St],Q),Me!==null&&(l&&Me.alternate!==null&&$.delete(Me.key===null?St:Me.key),M=d(Me,M,St),Zt===null?P=Me:Zt.sibling=Me,Zt=Me);return l&&$.forEach(function(Yl){return a(C,Yl)}),gt&&ye(C,St),P}function Ao(C,M,N,Q){if(N==null)throw Error(n(151));for(var P=null,Zt=null,$=M,St=M=0,Me=null,bt=N.next();$!==null&&!bt.done;St++,bt=N.next()){$.index>St?(Me=$,$=null):Me=$.sibling;var Yl=K(C,$,bt.value,Q);if(Yl===null){$===null&&($=Me);break}l&&$&&Yl.alternate===null&&a(C,$),M=d(Yl,M,St),Zt===null?P=Yl:Zt.sibling=Yl,Zt=Yl,$=Me}if(bt.done)return o(C,$),gt&&ye(C,St),P;if($===null){for(;!bt.done;St++,bt=N.next())bt=Y(C,bt.value,Q),bt!==null&&(M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt);return gt&&ye(C,St),P}for($=c($);!bt.done;St++,bt=N.next())bt=it($,C,St,bt.value,Q),bt!==null&&(l&&bt.alternate!==null&&$.delete(bt.key===null?St:bt.key),M=d(bt,M,St),Zt===null?P=bt:Zt.sibling=bt,Zt=bt);return l&&$.forEach(function(EA){return a(C,EA)}),gt&&ye(C,St),P}function Ya(C,M,N,Q){if(typeof N=="object"&&N!==null&&N.type===Mu&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case zr:t:{for(var P=N.key;M!==null;){if(M.key===P){if(P=N.type,P===Mu){if(M.tag===7){o(C,M.sibling),Q=h(M,N.props.children),Q.return=C,C=Q;break t}}else if(M.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Dl&&Aa(P)===M.type){o(C,M.sibling),Q=h(M,N.props),ks(Q,N),Q.return=C,C=Q;break t}o(C,M);break}else a(C,M);M=M.sibling}N.type===Mu?(Q=Na(N.props.children,C.mode,Q,N.key),Q.return=C,C=Q):(Q=Tr(N.type,N.key,N.props,null,C.mode,Q),ks(Q,N),Q.return=C,C=Q)}return v(C);case Ou:t:{for(P=N.key;M!==null;){if(M.key===P)if(M.tag===4&&M.stateNode.containerInfo===N.containerInfo&&M.stateNode.implementation===N.implementation){o(C,M.sibling),Q=h(M,N.children||[]),Q.return=C,C=Q;break t}else{o(C,M);break}else a(C,M);M=M.sibling}Q=om(N,C.mode,Q),Q.return=C,C=Q}return v(C);case Dl:return N=Aa(N),Ya(C,M,N,Q)}if(_r(N))return Be(C,M,N,Q);if(y(N)){if(P=y(N),typeof P!="function")throw Error(n(150));return N=P.call(N),Ao(C,M,N,Q)}if(typeof N.then=="function")return Ya(C,M,tr(N),Q);if(N.$$typeof===Nl)return Ya(C,M,Pc(C,N),Q);er(C,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,M!==null&&M.tag===6?(o(C,M.sibling),Q=h(M,N),Q.return=C,C=Q):(o(C,M),Q=sm(N,C.mode,Q),Q.return=C,C=Q),v(C)):o(C,M)}return function(C,M,N,Q){try{So=0;var P=Ya(C,M,N,Q);return qu=null,P}catch($){if($===Lu||$===wr)throw $;var Zt=e(29,$,null,C.mode);return Zt.lanes=Q,Zt.return=C,Zt}finally{}}}function ir(){for(var l=Gu,a=Dm=Gu=0;a<l;){var o=Vi[a];Vi[a++]=null;var c=Vi[a];Vi[a++]=null;var h=Vi[a];Vi[a++]=null;var d=Vi[a];if(Vi[a++]=null,c!==null&&h!==null){var v=c.pending;v===null?h.next=h:(h.next=v.next,v.next=h),c.pending=h}d!==0&&Cp(o,h,d)}}function nr(l,a,o,c){Vi[Gu++]=l,Vi[Gu++]=a,Vi[Gu++]=o,Vi[Gu++]=c,Dm|=c,l.lanes|=c,l=l.alternate,l!==null&&(l.lanes|=c)}function dd(l,a,o,c){return nr(l,a,o,c),lr(l)}function Oa(l,a){return nr(l,null,null,a),lr(l)}function Cp(l,a,o){l.lanes|=o;var c=l.alternate;c!==null&&(c.lanes|=o);for(var h=!1,d=l.return;d!==null;)d.childLanes|=o,c=d.alternate,c!==null&&(c.childLanes|=o),d.tag===22&&(l=d.stateNode,l===null||l._visibility&1||(h=!0)),l=d,d=d.return;return l.tag===3?(d=l.stateNode,h&&a!==null&&(h=31-Si(o),l=d.hiddenUpdates,c=l[h],c===null?l[h]=[a]:c.push(a),a.lane=o|536870912),d):null}function lr(l){if(50<_o)throw _o=0,Vm=null,Error(n(185));for(var a=l.return;a!==null;)l=a,a=l.return;return l.tag===3?l.stateNode:null}function md(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gd(l,a){l=l.updateQueue,a.updateQueue===l&&(a.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function _l(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Al(l,a,o){var c=l.updateQueue;if(c===null)return null;if(c=c.shared,ot&2){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=lr(l),Cp(l,null,o),a}return nr(l,c,a,o),lr(l)}function $s(l,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=l.pendingLanes,o|=c,a.lanes=o,G(l,o)}}function yd(l,a){var o=l.updateQueue,c=l.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?h=d=v:d=d.next=v,o=o.next}while(o!==null);d===null?h=d=a:d=d.next=a}else h=d=a;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:d,shared:c.shared,callbacks:c.callbacks},l.updateQueue=o;return}l=o.lastBaseUpdate,l===null?o.firstBaseUpdate=a:l.next=a,o.lastBaseUpdate=a}function to(){if(Hm){var l=ju;if(l!==null)throw l}}function eo(l,a,o,c){Hm=!1;var h=l.updateQueue;wl=!1;var d=h.firstBaseUpdate,v=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var D=_,j=D.next;D.next=null,v===null?d=j:v.next=j,v=D;var V=l.alternate;V!==null&&(V=V.updateQueue,_=V.lastBaseUpdate,_!==v&&(_===null?V.firstBaseUpdate=j:_.next=j,V.lastBaseUpdate=D))}if(d!==null){var Y=h.baseState;v=0,V=j=D=null,_=d;do{var K=_.lane&-536870913,it=K!==_.lane;if(it?(dt&K)===K:(c&K)===K){K!==0&&K===wu&&(Hm=!0),V!==null&&(V=V.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});t:{var Be=l,Ao=_;K=a;var Ya=o;switch(Ao.tag){case 1:if(Be=Ao.payload,typeof Be=="function"){Y=Be.call(Ya,Y,K);break t}Y=Be;break t;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ao.payload,K=typeof Be=="function"?Be.call(Ya,Y,K):Be,K==null)break t;Y=rm({},Y,K);break t;case 2:wl=!0}}K=_.callback,K!==null&&(l.flags|=64,it&&(l.flags|=8192),it=h.callbacks,it===null?h.callbacks=[K]:it.push(K))}else it={lane:K,tag:_.tag,payload:_.payload,callback:_.callback,next:null},V===null?(j=V=it,D=Y):V=V.next=it,v|=K;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;it=_,_=it.next,it.next=null,h.lastBaseUpdate=it,h.shared.pending=null}}while(!0);V===null&&(D=Y),h.baseState=D,h.firstBaseUpdate=j,h.lastBaseUpdate=V,d===null&&(h.shared.lanes=0),Ll|=v,l.lanes=v,l.memoizedState=Y}}function Rp(l,a){if(typeof l!="function")throw Error(n(191,l));l.call(a)}function Np(l,a){var o=l.callbacks;if(o!==null)for(l.callbacks=null,l=0;l<o.length;l++)Rp(o[l],a)}function Dp(l,a){l=$n,x(Lr,l),x(Yu,a),$n=l|a.baseLanes}function vd(){x(Lr,$n),x(Yu,Yu.current)}function pd(){$n=Lr.current,p(Yu),p(Lr)}function Ol(l){var a=l.alternate;x(ne,ne.current&1),x(xi,l),Zi===null&&(a===null||Yu.current!==null||a.memoizedState!==null)&&(Zi=l)}function Sd(l){x(ne,ne.current),x(xi,l),Zi===null&&(Zi=l)}function Hp(l){l.tag===22?(x(ne,ne.current),x(xi,l),Zi===null&&(Zi=l)):Ml(l)}function Ml(){x(ne,ne.current),x(xi,xi.current)}function yi(l){p(xi),Zi===l&&(Zi=null),p(ne)}function ar(l){for(var a=l;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Sm(o)||bm(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Wt(){throw Error(n(321))}function bd(l,a){if(a===null)return!1;for(var o=0;o<a.length&&o<l.length;o++)if(!Ei(l[o],a[o]))return!1;return!0}function Ed(l,a,o,c,h,d){return In=d,at=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,W.H=l===null||l.memoizedState===null?uS:Um,qa=!1,d=o(c,h),qa=!1,Qu&&(d=Bp(a,o,c,h)),Up(l),d}function Up(l){W.H=Eo;var a=Ot!==null&&Ot.next!==null;if(In=0,se=Ot=at=null,qr=!1,bo=0,Xu=null,a)throw Error(n(300));l===null||oe||(l=l.dependencies,l!==null&&gi(l)&&(oe=!0))}function Bp(l,a,o,c){at=l;var h=0;do{if(Qu&&(Xu=null),bo=0,Qu=!1,25<=h)throw Error(n(301));if(h+=1,se=Ot=null,l.updateQueue!=null){var d=l.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}W.H=sS,d=a(o,c)}while(Qu);return d}function u_(){var l=W.H,a=l.useState()[0];return a=typeof a.then=="function"?io(a):a,l=l.useState()[0],(Ot!==null?Ot.memoizedState:null)!==l&&(at.flags|=1024),a}function xd(){var l=Gr!==0;return Gr=0,l}function Td(l,a,o){a.updateQueue=l.updateQueue,a.flags&=-2053,l.lanes&=~o}function zd(l){if(qr){for(l=l.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}qr=!1}In=0,se=Ot=at=null,Qu=!1,bo=Gr=0,Xu=null}function Fe(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?at.memoizedState=se=l:se=se.next=l,se}function ie(){if(Ot===null){var l=at.alternate;l=l!==null?l.memoizedState:null}else l=Ot.next;var a=se===null?at.memoizedState:se.next;if(a!==null)se=a,Ot=l;else{if(l===null)throw at.alternate===null?Error(n(467)):Error(n(310));Ot=l,l={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},se===null?at.memoizedState=se=l:se=se.next=l}return se}function ur(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(l){var a=bo;return bo+=1,Xu===null&&(Xu=[]),l=_p(Xu,l,a),a=at,(se===null?a.memoizedState:se.next)===null&&(a=a.alternate,W.H=a===null||a.memoizedState===null?uS:Um),l}function sr(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return io(l);if(l.$$typeof===Nl)return ee(l)}throw Error(n(438,String(l)))}function _d(l){var a=null,o=at.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=at.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=ur(),at.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(l),c=0;c<l;c++)o[c]=N_;return a.index++,o}function Xn(l,a){return typeof a=="function"?a(l):a}function or(l){var a=ie();return Ad(a,Ot,l)}function Ad(l,a,o){var c=l.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;var h=l.baseQueue,d=c.pending;if(d!==null){if(h!==null){var v=h.next;h.next=d.next,d.next=v}a.baseQueue=h=d,c.pending=null}if(d=l.baseState,h===null)l.memoizedState=d;else{a=h.next;var _=v=null,D=null,j=a,V=!1;do{var Y=j.lane&-536870913;if(Y!==j.lane?(dt&Y)===Y:(In&Y)===Y){var K=j.revertLane;if(K===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Y===wu&&(V=!0);else if((In&K)===K){j=j.next,K===wu&&(V=!0);continue}else Y={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(_=D=Y,v=d):D=D.next=Y,at.lanes|=K,Ll|=K;Y=j.action,qa&&o(d,Y),d=j.hasEagerState?j.eagerState:o(d,Y)}else K={lane:Y,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(_=D=K,v=d):D=D.next=K,at.lanes|=Y,Ll|=Y;j=j.next}while(j!==null&&j!==a);if(D===null?v=d:D.next=_,!Ei(d,l.memoizedState)&&(oe=!0,V&&(o=ju,o!==null)))throw o;l.memoizedState=d,l.baseState=v,l.baseQueue=D,c.lastRenderedState=d}return h===null&&(c.lanes=0),[l.memoizedState,c.dispatch]}function Od(l){var a=ie(),o=a.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=l;var c=o.dispatch,h=o.pending,d=a.memoizedState;if(h!==null){o.pending=null;var v=h=h.next;do d=l(d,v.action),v=v.next;while(v!==h);Ei(d,a.memoizedState)||(oe=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),o.lastRenderedState=d}return[d,c]}function wp(l,a,o){var c=at,h=ie(),d=gt;if(d){if(o===void 0)throw Error(n(407));o=o()}else o=a();var v=!Ei((Ot||h).memoizedState,o);if(v&&(h.memoizedState=o,oe=!0),h=h.queue,Rd(qp.bind(null,c,h,l),[l]),h.getSnapshot!==a||v||se!==null&&se.memoizedState.tag&1){if(c.flags|=2048,Tu(9,{destroy:void 0},Lp.bind(null,c,h,o,a),null),Nt===null)throw Error(n(349));d||In&127||jp(c,a,o)}return o}function jp(l,a,o){l.flags|=16384,l={getSnapshot:a,value:o},a=at.updateQueue,a===null?(a=ur(),at.updateQueue=a,a.stores=[l]):(o=a.stores,o===null?a.stores=[l]:o.push(l))}function Lp(l,a,o,c){a.value=o,a.getSnapshot=c,Gp(a)&&Yp(l)}function qp(l,a,o){return o(function(){Gp(a)&&Yp(l)})}function Gp(l){var a=l.getSnapshot;l=l.value;try{var o=a();return!Ei(l,o)}catch{return!0}}function Yp(l){var a=Oa(l,2);a!==null&&ii(a,l,2)}function Md(l){var a=Fe();if(typeof l=="function"){var o=l;if(l=o(),qa){ht(!0);try{o()}finally{ht(!1)}}}return a.memoizedState=a.baseState=l,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:l},a}function Qp(l,a,o,c){return l.baseState=o,Ad(l,Ot,typeof c=="function"?c:Xn)}function s_(l,a,o,c,h){if(fr(l))throw Error(n(485));if(l=a.action,l!==null){var d={payload:h,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};W.T!==null?o(!0):d.isTransition=!1,c(d),o=a.pending,o===null?(d.next=a.pending=d,Xp(a,d)):(d.next=o.next,a.pending=o.next=d)}}function Xp(l,a){var o=a.action,c=a.payload,h=l.state;if(a.isTransition){var d=W.T,v={};W.T=v;try{var _=o(h,c),D=W.S;D!==null&&D(v,_),Vp(l,a,_)}catch(j){Cd(l,a,j)}finally{d!==null&&v.types!==null&&(d.types=v.types),W.T=d}}else try{d=o(h,c),Vp(l,a,d)}catch(j){Cd(l,a,j)}}function Vp(l,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Zp(l,a,c)},function(c){return Cd(l,a,c)}):Zp(l,a,o)}function Zp(l,a,o){a.status="fulfilled",a.value=o,Kp(a),l.state=o,a=l.pending,a!==null&&(o=a.next,o===a?l.pending=null:(o=o.next,a.next=o,Xp(l,o)))}function Cd(l,a,o){var c=l.pending;if(l.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,Kp(a),a=a.next;while(a!==c)}l.action=null}function Kp(l){l=l.listeners;for(var a=0;a<l.length;a++)(0,l[a])()}function Jp(l,a){return a}function Fp(l,a){if(gt){var o=Nt.formState;if(o!==null){t:{var c=at;if(gt){if(Xt){var h=z3(Xt,Xi);if(h){Xt=Q1(h),c=_3(h);break t}}qi(c)}c=!1}c&&(a=o[0])}}o=Fe(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jp,lastRenderedState:a},o.queue=c,o=h0.bind(null,at,c),c.dispatch=o,c=Md(!1);var d=Ud.bind(null,at,!1,c.queue);return c=Fe(),h={state:a,dispatch:null,action:l,pending:null},c.queue=h,o=s_.bind(null,at,h,d,o),h.dispatch=o,c.memoizedState=l,[a,o,!1]}function Wp(l){var a=ie();return Pp(a,Ot,l)}function Pp(l,a,o){if(a=Ad(l,a,Jp)[0],l=or(Xn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=io(a)}catch(v){throw v===Lu?wr:v}else c=a;a=ie();var h=a.queue,d=h.dispatch;return o!==a.memoizedState&&(at.flags|=2048,Tu(9,{destroy:void 0},o_.bind(null,h,o),null)),[c,d,l]}function o_(l,a){l.action=a}function Ip(l){var a=ie(),o=Ot;if(o!==null)return Pp(a,o,l);ie(),a=a.memoizedState,o=ie();var c=o.queue.dispatch;return o.memoizedState=l,[a,c,!1]}function Tu(l,a,o,c){return l={tag:l,create:o,deps:c,inst:a,next:null},a=at.updateQueue,a===null&&(a=ur(),at.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=l.next=l:(c=o.next,o.next=l,l.next=c,a.lastEffect=l),l}function kp(){return ie().memoizedState}function cr(l,a,o,c){var h=Fe();at.flags|=l,h.memoizedState=Tu(1|a,{destroy:void 0},o,c===void 0?null:c)}function rr(l,a,o,c){var h=ie();c=c===void 0?null:c;var d=h.memoizedState.inst;Ot!==null&&c!==null&&bd(c,Ot.memoizedState.deps)?h.memoizedState=Tu(a,d,o,c):(at.flags|=l,h.memoizedState=Tu(1|a,d,o,c))}function $p(l,a){cr(8390656,8,l,a)}function Rd(l,a){rr(2048,8,l,a)}function c_(l){at.flags|=4;var a=at.updateQueue;if(a===null)a=ur(),at.updateQueue=a,a.events=[l];else{var o=a.events;o===null?a.events=[l]:o.push(l)}}function t0(l){var a=ie().memoizedState;return c_({ref:a,nextImpl:l}),function(){if(ot&2)throw Error(n(440));return a.impl.apply(void 0,arguments)}}function e0(l,a){return rr(4,2,l,a)}function i0(l,a){return rr(4,4,l,a)}function n0(l,a){if(typeof a=="function"){l=l();var o=a(l);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return l=l(),a.current=l,function(){a.current=null}}function l0(l,a,o){o=o!=null?o.concat([l]):null,rr(4,4,n0.bind(null,a,l),o)}function Nd(){}function a0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&bd(a,c[1])?c[0]:(o.memoizedState=[l,a],l)}function u0(l,a){var o=ie();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&bd(a,c[1]))return c[0];if(c=l(),qa){ht(!0);try{l()}finally{ht(!1)}}return o.memoizedState=[c,a],c}function Dd(l,a,o){return o===void 0||In&1073741824&&!(dt&261930)?l.memoizedState=a:(l.memoizedState=o,l=i1(),at.lanes|=l,Ll|=l,o)}function s0(l,a,o,c){return Ei(o,a)?o:Yu.current!==null?(l=Dd(l,o,c),Ei(l,a)||(oe=!0),l):!(In&42)||In&1073741824&&!(dt&261930)?(oe=!0,l.memoizedState=o):(l=i1(),at.lanes|=l,Ll|=l,a)}function o0(l,a,o,c,h){var d=Wn();Ae(d!==0&&8>d?d:8);var v=W.T,_={};W.T=_,Ud(l,!1,a,o);try{var D=h(),j=W.S;if(j!==null&&j(_,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var V=a_(D,c);no(l,a,V,vi(l))}else no(l,a,c,vi(l))}catch(Y){no(l,a,{then:function(){},status:"rejected",reason:Y},vi())}finally{Ae(d),v!==null&&_.types!==null&&(v.types=_.types),W.T=v}}function c0(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:Cu,baseState:Cu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:Cu},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:o},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function Hd(){return ee(Ha)}function r0(){return ie().memoizedState}function f0(){return ie().memoizedState}function r_(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var o=vi();l=_l(o);var c=Al(a,l,o);c!==null&&(ii(c,a,o),$s(c,a,o)),a={cache:rd()},l.payload=a;return}a=a.return}}function f_(l,a,o){var c=vi();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},fr(l)?d0(a,o):(o=dd(l,a,o,c),o!==null&&(ii(o,l,c),m0(o,a,c)))}function h0(l,a,o){var c=vi();no(l,a,o,c)}function no(l,a,o,c){var h={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(fr(l))d0(a,h);else{var d=l.alternate;if(l.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var v=a.lastRenderedState,_=d(v,o);if(h.hasEagerState=!0,h.eagerState=_,Ei(_,v))return nr(l,a,h,0),Nt===null&&ir(),!1}catch{}finally{}if(o=dd(l,a,h,c),o!==null)return ii(o,l,c),m0(o,a,c),!0}return!1}function Ud(l,a,o,c){if(c={lane:2,revertLane:fd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},fr(l)){if(a)throw Error(n(479))}else a=dd(l,o,c,2),a!==null&&ii(a,l,2)}function fr(l){var a=l.alternate;return l===at||a!==null&&a===at}function d0(l,a){Qu=qr=!0;var o=l.pending;o===null?a.next=a:(a.next=o.next,o.next=a),l.pending=a}function m0(l,a,o){if(o&4194048){var c=a.lanes;c&=l.pendingLanes,o|=c,a.lanes=o,G(l,o)}}function Bd(l,a,o,c){a=l.memoizedState,o=o(c,a),o=o==null?a:rm({},a,o),l.memoizedState=o,l.lanes===0&&(l.updateQueue.baseState=o)}function g0(l,a,o,c,h,d,v){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(c,d,v):a.prototype&&a.prototype.isPureReactComponent?!$c(o,c)||!$c(h,d):!0}function y0(l,a,o,c){l=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==l&&Bm.enqueueReplaceState(a,a.state,null)}function Ma(l,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(l=l.defaultProps){o===a&&(o=rm({},o));for(var h in l)o[h]===void 0&&(o[h]=l[h])}return o}function hr(l,a){try{var o=l.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function v0(l,a,o){try{var c=l.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function wd(l,a,o){return o=_l(o),o.tag=3,o.payload={element:null},o.callback=function(){hr(l,a)},o}function p0(l){return l=_l(l),l.tag=3,l}function S0(l,a,o,c){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var d=c.value;l.payload=function(){return h(d)},l.callback=function(){v0(a,o,c)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(l.callback=function(){v0(a,o,c),typeof h!="function"&&(ql===null?ql=new Set([this]):ql.add(this));var _=c.stack;this.componentDidCatch(c.value,{componentStack:_!==null?_:""})})}function h_(l,a,o,c,h){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&Gi(a,o,h,!0),o=xi.current,o!==null){switch(o.tag){case 31:case 13:return Zi===null?Er():o.alternate===null&&Pt===0&&(Pt=3),o.flags&=-257,o.flags|=65536,o.lanes=h,c===jr?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),am(l,c,h)),!1;case 22:return o.flags|=65536,c===jr?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),am(l,c,h)),!1}throw Error(n(435,o.tag))}return am(l,c,h),Er(),!1}if(gt)return a=xi.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==Om&&(l=Error(n(422),{cause:c}),zl(ue(l,o)))):(c!==Om&&(a=Error(n(423),{cause:c}),zl(ue(a,o))),l=l.current.alternate,l.flags|=65536,h&=-h,l.lanes|=h,c=ue(c,o),h=wd(l.stateNode,c,h),yd(l,h),Pt!==4&&(Pt=2)),!1;var d=Error(n(520),{cause:c});if(d=ue(d,o),To===null?To=[d]:To.push(d),Pt!==4&&(Pt=2),a===null)return!0;c=ue(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,l=h&-h,o.lanes|=l,l=wd(o.stateNode,c,l),yd(o,l),!1;case 1:if(a=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ql===null||!ql.has(d))))return o.flags|=65536,h&=-h,o.lanes|=h,h=p0(h),S0(h,l,o,c),yd(o,h),!1}o=o.return}while(o!==null);return!1}function De(l,a,o,c){a.child=l===null?aS(a,null,o,c):La(a,l.child,o,c)}function b0(l,a,o,c,h){o=o.render;var d=a.ref;if("ref"in c){var v={};for(var _ in c)_!=="ref"&&(v[_]=c[_])}else v=c;return Je(a),c=Ed(l,a,o,v,d,h),_=xd(),l!==null&&!oe?(Td(l,a,h),Vn(l,a,h)):(gt&&_&&X(a),a.flags|=1,De(l,a,c,h),a.child)}function E0(l,a,o,c,h){if(l===null){var d=o.type;return typeof d=="function"&&!um(d)&&d.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=d,x0(l,a,d,c,h)):(l=Tr(o.type,null,c,a,a.mode,h),l.ref=a.ref,l.return=a,a.child=l)}if(d=l.child,!Xd(l,h)){var v=d.memoizedProps;if(o=o.compare,o=o!==null?o:$c,o(v,c)&&l.ref===a.ref)return Vn(l,a,h)}return a.flags|=1,l=Jn(d,c),l.ref=a.ref,l.return=a,a.child=l}function x0(l,a,o,c,h){if(l!==null){var d=l.memoizedProps;if($c(d,c)&&l.ref===a.ref)if(oe=!1,a.pendingProps=c=d,Xd(l,h))l.flags&131072&&(oe=!0);else return a.lanes=l.lanes,Vn(l,a,h)}return jd(l,a,o,c,h)}function T0(l,a,o,c){var h=c.children,d=l!==null?l.memoizedState:null;if(l===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if(a.flags&128){if(d=d!==null?d.baseLanes|o:o,l!==null){for(c=a.child=l.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~d}else c=0,a.child=null;return z0(l,a,d,o,c)}if(o&536870912)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&kc(a,d!==null?d.cachePool:null),d!==null?Dp(a,d):vd(),Hp(a);else return c=a.lanes=536870912,z0(l,a,d!==null?d.baseLanes|o:o,o,c)}else d!==null?(kc(a,d.cachePool),Dp(a,d),Ml(a),a.memoizedState=null):(l!==null&&kc(a,null),vd(),Ml(a));return De(l,a,h,o),a.child}function lo(l,a){return l!==null&&l.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function z0(l,a,o,c,h){var d=hd();return d=d===null?null:{parent:Fn?Vt._currentValue:Vt._currentValue2,pool:d},a.memoizedState={baseLanes:o,cachePool:d},l!==null&&kc(a,null),vd(),Hp(a),l!==null&&Gi(l,a,c,!0),a.childLanes=h,null}function dr(l,a){return a=gr({mode:a.mode,children:a.children},l.mode),a.ref=l.ref,l.child=a,a.return=l,a}function _0(l,a,o){return La(a,l.child,null,o),l=dr(a,a.pendingProps),l.flags|=2,yi(a),a.memoizedState=null,l}function d_(l,a,o){var c=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,l===null){if(gt){if(c.mode==="hidden")return l=dr(a,c),a.lanes=536870912,lo(null,l);if(Sd(a),(l=Xt)?(l=U3(l,Xi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},o=x1(l),o.return=a,a.child=o,Ue=a,Xt=null)):l=null,l===null)throw qi(a);return a.lanes=536870912,null}return dr(a,c)}var d=l.memoizedState;if(d!==null){var v=d.dehydrated;if(Sd(a),h)if(a.flags&256)a.flags&=-257,a=_0(l,a,o);else if(a.memoizedState!==null)a.child=l.child,a.flags|=128,a=null;else throw Error(n(558));else if(oe||Gi(l,a,o,!1),h=(o&l.childLanes)!==0,oe||h){if(c=Nt,c!==null&&(v=J(c,o),v!==0&&v!==d.retryLane))throw d.retryLane=v,Oa(l,v),ii(c,l,v),wm;Er(),a=_0(l,a,o)}else l=d.treeContext,Ze&&(Xt=C3(v),Ue=a,gt=!0,Bl=null,Xi=!1,l!==null&&xa(a,l)),a=dr(a,c),a.flags|=4096;return a}return l=Jn(l.child,{mode:c.mode,children:c.children}),l.ref=a.ref,a.child=l,l.return=a,l}function mr(l,a){var o=a.ref;if(o===null)l!==null&&l.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(n(284));(l===null||l.ref!==o)&&(a.flags|=4194816)}}function jd(l,a,o,c,h){return Je(a),o=Ed(l,a,o,c,void 0,h),c=xd(),l!==null&&!oe?(Td(l,a,h),Vn(l,a,h)):(gt&&c&&X(a),a.flags|=1,De(l,a,o,h),a.child)}function A0(l,a,o,c,h,d){return Je(a),a.updateQueue=null,o=Bp(a,c,o,h),Up(l),c=xd(),l!==null&&!oe?(Td(l,a,d),Vn(l,a,d)):(gt&&c&&X(a),a.flags|=1,De(l,a,o,d),a.child)}function O0(l,a,o,c,h){if(Je(a),a.stateNode===null){var d=Du,v=o.contextType;typeof v=="object"&&v!==null&&(d=ee(v)),d=new o(c,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Bm,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=c,d.state=a.memoizedState,d.refs={},md(a),v=o.contextType,d.context=typeof v=="object"&&v!==null?ee(v):Du,d.state=a.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Bd(a,o,v,c),d.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&Bm.enqueueReplaceState(d,d.state,null),eo(a,c,d,h),to(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(l===null){d=a.stateNode;var _=a.memoizedProps,D=Ma(o,_);d.props=D;var j=d.context,V=o.contextType;v=Du,typeof V=="object"&&V!==null&&(v=ee(V));var Y=o.getDerivedStateFromProps;V=typeof Y=="function"||typeof d.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_||j!==v)&&y0(a,d,c,v),wl=!1;var K=a.memoizedState;d.state=K,eo(a,c,d,h),to(),j=a.memoizedState,_||K!==j||wl?(typeof Y=="function"&&(Bd(a,o,Y,c),j=a.memoizedState),(D=wl||g0(a,o,D,c,K,j,v))?(V||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=j),d.props=c,d.state=j,d.context=v,c=D):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{d=a.stateNode,gd(l,a),v=a.memoizedProps,V=Ma(o,v),d.props=V,Y=a.pendingProps,K=d.context,j=o.contextType,D=Du,typeof j=="object"&&j!==null&&(D=ee(j)),_=o.getDerivedStateFromProps,(j=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==Y||K!==D)&&y0(a,d,c,D),wl=!1,K=a.memoizedState,d.state=K,eo(a,c,d,h),to();var it=a.memoizedState;v!==Y||K!==it||wl||l!==null&&l.dependencies!==null&&gi(l.dependencies)?(typeof _=="function"&&(Bd(a,o,_,c),it=a.memoizedState),(V=wl||g0(a,o,V,c,K,it,D)||l!==null&&l.dependencies!==null&&gi(l.dependencies))?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(c,it,D),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(c,it,D)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=it),d.props=c,d.state=it,d.context=D,c=V):(typeof d.componentDidUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===l.memoizedProps&&K===l.memoizedState||(a.flags|=1024),c=!1)}return d=c,mr(l,a),c=(a.flags&128)!==0,d||c?(d=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,l!==null&&c?(a.child=La(a,l.child,null,h),a.child=La(a,null,o,h)):De(l,a,o,h),a.memoizedState=d.state,l=a.child):l=Vn(l,a,h),l}function M0(l,a,o,c){return Qn(),a.flags|=256,De(l,a,o,c),a.child}function Ld(l){return{baseLanes:l,cachePool:Tp()}}function qd(l,a,o){return l=l!==null?l.childLanes&~o:0,a&&(l|=zi),l}function C0(l,a,o){var c=a.pendingProps,h=!1,d=(a.flags&128)!==0,v;if((v=d)||(v=l!==null&&l.memoizedState===null?!1:(ne.current&2)!==0),v&&(h=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,l===null){if(gt){if(h?Ol(a):Ml(a),(l=Xt)?(l=B3(l,Xi),l!==null&&(a.memoizedState={dehydrated:l,treeContext:Hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},o=x1(l),o.return=a,a.child=o,Ue=a,Xt=null)):l=null,l===null)throw qi(a);return bm(l)?a.lanes=32:a.lanes=536870912,null}var _=c.children;return c=c.fallback,h?(Ml(a),h=a.mode,_=gr({mode:"hidden",children:_},h),c=Na(c,h,o,null),_.return=a,c.return=a,_.sibling=c,a.child=_,c=a.child,c.memoizedState=Ld(o),c.childLanes=qd(l,v,o),a.memoizedState=jm,lo(null,c)):(Ol(a),Gd(a,_))}var D=l.memoizedState;if(D!==null&&(_=D.dehydrated,_!==null)){if(d)a.flags&256?(Ol(a),a.flags&=-257,a=Yd(l,a,o)):a.memoizedState!==null?(Ml(a),a.child=l.child,a.flags|=128,a=null):(Ml(a),_=c.fallback,h=a.mode,c=gr({mode:"visible",children:c.children},h),_=Na(_,h,o,null),_.flags|=2,c.return=a,_.return=a,c.sibling=_,a.child=c,La(a,l.child,null,o),c=a.child,c.memoizedState=Ld(o),c.childLanes=qd(l,v,o),a.memoizedState=jm,a=lo(null,c));else if(Ol(a),bm(_))v=x3(_).digest,c=Error(n(419)),c.stack="",c.digest=v,zl({value:c,source:null,stack:null}),a=Yd(l,a,o);else if(oe||Gi(l,a,o,!1),v=(o&l.childLanes)!==0,oe||v){if(v=Nt,v!==null&&(c=J(v,o),c!==0&&c!==D.retryLane))throw D.retryLane=c,Oa(l,c),ii(v,l,c),wm;Sm(_)||Er(),a=Yd(l,a,o)}else Sm(_)?(a.flags|=192,a.child=l.child,a=null):(l=D.treeContext,Ze&&(Xt=R3(_),Ue=a,gt=!0,Bl=null,Xi=!1,l!==null&&xa(a,l)),a=Gd(a,c.children),a.flags|=4096);return a}return h?(Ml(a),_=c.fallback,h=a.mode,D=l.child,d=D.sibling,c=Jn(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,d!==null?_=Jn(d,_):(_=Na(_,h,o,null),_.flags|=2),_.return=a,c.return=a,c.sibling=_,a.child=c,lo(null,c),c=a.child,_=l.child.memoizedState,_===null?_=Ld(o):(h=_.cachePool,h!==null?(D=Fn?Vt._currentValue:Vt._currentValue2,h=h.parent!==D?{parent:D,pool:D}:h):h=Tp(),_={baseLanes:_.baseLanes|o,cachePool:h}),c.memoizedState=_,c.childLanes=qd(l,v,o),a.memoizedState=jm,lo(l.child,c)):(Ol(a),o=l.child,l=o.sibling,o=Jn(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,l!==null&&(v=a.deletions,v===null?(a.deletions=[l],a.flags|=16):v.push(l)),a.child=o,a.memoizedState=null,o)}function Gd(l,a){return a=gr({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function gr(l,a){return l=e(22,l,null,a),l.lanes=0,l}function Yd(l,a,o){return La(a,l.child,null,o),l=Gd(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function R0(l,a,o){l.lanes|=a;var c=l.alternate;c!==null&&(c.lanes|=a),Rt(l.return,a,o)}function Qd(l,a,o,c,h,d){var v=l.memoizedState;v===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h,treeForkCount:d}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=c,v.tail=o,v.tailMode=h,v.treeForkCount=d)}function N0(l,a,o){var c=a.pendingProps,h=c.revealOrder,d=c.tail;c=c.children;var v=ne.current,_=(v&2)!==0;if(_?(v=v&1|2,a.flags|=128):v&=1,x(ne,v),De(l,a,c,o),c=gt?yo:0,!_&&l!==null&&l.flags&128)t:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&R0(l,o,a);else if(l.tag===19)R0(l,o,a);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break t;for(;l.sibling===null;){if(l.return===null||l.return===a)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(h){case"forwards":for(o=a.child,h=null;o!==null;)l=o.alternate,l!==null&&ar(l)===null&&(h=o),o=o.sibling;o=h,o===null?(h=a.child,a.child=null):(h=o.sibling,o.sibling=null),Qd(a,!1,h,o,d,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,h=a.child,a.child=null;h!==null;){if(l=h.alternate,l!==null&&ar(l)===null){a.child=h;break}l=h.sibling,h.sibling=o,o=h,h=l}Qd(a,!0,o,null,d,c);break;case"together":Qd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Vn(l,a,o){if(l!==null&&(a.dependencies=l.dependencies),Ll|=a.lanes,!(o&a.childLanes))if(l!==null){if(Gi(l,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(l!==null&&a.child!==l.child)throw Error(n(153));if(a.child!==null){for(l=a.child,o=Jn(l,l.pendingProps),a.child=o,o.return=a;l.sibling!==null;)l=l.sibling,o=o.sibling=Jn(l,l.pendingProps),o.return=a;o.sibling=null}return a.child}function Xd(l,a){return l.lanes&a?!0:(l=l.dependencies,!!(l!==null&&gi(l)))}function m_(l,a,o){switch(a.tag){case 3:bu(a,a.stateNode.containerInfo),k(a,Vt,l.memoizedState.cache),Qn();break;case 27:case 5:Eu(a);break;case 4:bu(a,a.stateNode.containerInfo);break;case 10:k(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sd(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ol(a),a.flags|=128,null):o&a.child.childLanes?C0(l,a,o):(Ol(a),l=Vn(l,a,o),l!==null?l.sibling:null);Ol(a);break;case 19:var h=(l.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(Gi(l,a,o,!1),c=(o&a.childLanes)!==0),h){if(c)return N0(l,a,o);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),x(ne,ne.current),c)break;return null;case 22:return a.lanes=0,T0(l,a,o,a.pendingProps);case 24:k(a,Vt,l.memoizedState.cache)}return Vn(l,a,o)}function D0(l,a,o){if(l!==null)if(l.memoizedProps!==a.pendingProps)oe=!0;else{if(!Xd(l,o)&&!(a.flags&128))return oe=!1,m_(l,a,o);oe=!!(l.flags&131072)}else oe=!1,gt&&a.flags&1048576&&Ps(a,yo,a.index);switch(a.lanes=0,a.tag){case 16:t:{var c=a.pendingProps;if(l=Aa(a.elementType),a.type=l,typeof l=="function")um(l)?(c=Ma(l,c),a.tag=1,a=O0(null,a,l,c,o)):(a.tag=0,a=jd(null,a,l,c,o));else{if(l!=null){var h=l.$$typeof;if(h===hm){a.tag=11,a=b0(null,a,l,c,o);break t}else if(h===gm){a.tag=14,a=E0(null,a,l,c,o);break t}}throw a=g(l)||l,Error(n(306,a,""))}}return a;case 0:return jd(l,a,a.type,a.pendingProps,o);case 1:return c=a.type,h=Ma(c,a.pendingProps),O0(l,a,c,h,o);case 3:t:{if(bu(a,a.stateNode.containerInfo),l===null)throw Error(n(387));var d=a.pendingProps;h=a.memoizedState,c=h.element,gd(l,a),eo(a,d,null,o);var v=a.memoizedState;if(d=v.cache,k(a,Vt,d),d!==h.cache&&ve(a,[Vt],o,!0),to(),d=v.element,Ze&&h.isDehydrated)if(h={element:d,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=M0(l,a,d,o);break t}else if(d!==c){c=ue(Error(n(424)),a),zl(c),a=M0(l,a,d,o);break t}else for(Ze&&(Xt=M3(a.stateNode.containerInfo),Ue=a,gt=!0,Bl=null,Xi=!0),o=aS(a,null,d,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qn(),d===c){a=Vn(l,a,o);break t}De(l,a,d,o)}a=a.child}return a;case 26:if(rn)return mr(l,a),l===null?(o=Z1(a.type,null,a.pendingProps,null))?a.memoizedState=o:gt||(a.stateNode=eA(a.type,a.pendingProps,Ul.current,a)):a.memoizedState=Z1(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:if(pe)return Eu(a),l===null&&pe&&gt&&(c=a.stateNode=I1(a.type,a.pendingProps,Ul.current,He.current,!1),Ue=a,Xi=!0,Xt=N3(a.type,c,Xt)),De(l,a,a.pendingProps.children,o),mr(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&&gt&&(k3(a.type,a.pendingProps,He.current),(h=c=Xt)&&(c=D3(c,a.type,a.pendingProps,Xi),c!==null?(a.stateNode=c,Ue=a,Xt=O3(c),Xi=!1,h=!0):h=!1),h||qi(a)),Eu(a),h=a.type,d=a.pendingProps,v=l!==null?l.memoizedProps:null,c=d.children,Ar(h,d)?c=null:v!==null&&Ar(h,v)&&(a.flags|=32),a.memoizedState!==null&&(h=Ed(l,a,u_,null,null,o),Fn?Ha._currentValue=h:Ha._currentValue2=h),mr(l,a),De(l,a,c,o),a.child;case 6:return l===null&&gt&&($3(a.pendingProps,He.current),(l=o=Xt)&&(o=H3(o,a.pendingProps,Xi),o!==null?(a.stateNode=o,Ue=a,Xt=null,l=!0):l=!1),l||qi(a)),null;case 13:return C0(l,a,o);case 4:return bu(a,a.stateNode.containerInfo),c=a.pendingProps,l===null?a.child=La(a,null,c,o):De(l,a,c,o),a.child;case 11:return b0(l,a,a.type,a.pendingProps,o);case 7:return De(l,a,a.pendingProps,o),a.child;case 8:return De(l,a,a.pendingProps.children,o),a.child;case 12:return De(l,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,k(a,a.type,c.value),De(l,a,c.children,o),a.child;case 9:return h=a.type._context,c=a.pendingProps.children,Je(a),h=ee(h),c=c(h),a.flags|=1,De(l,a,c,o),a.child;case 14:return E0(l,a,a.type,a.pendingProps,o);case 15:return x0(l,a,a.type,a.pendingProps,o);case 19:return N0(l,a,o);case 31:return d_(l,a,o);case 22:return T0(l,a,o,a.pendingProps);case 24:return Je(a),c=ee(Vt),l===null?(h=hd(),h===null&&(h=Nt,d=rd(),h.pooledCache=d,d.refCount++,d!==null&&(h.pooledCacheLanes|=o),h=d),a.memoizedState={parent:c,cache:h},md(a),k(a,Vt,h)):(l.lanes&o&&(gd(l,a),eo(a,null,null,o),to()),h=l.memoizedState,d=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),k(a,Vt,c)):(c=d.cache,k(a,Vt,c),c!==h.cache&&ve(a,[Vt],o,!0))),De(l,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}function sn(l){l.flags|=4}function yr(l){bn&&(l.flags|=8)}function H0(l,a){if(l!==null&&l.child===a.child)return!1;if(a.flags&16)return!0;for(l=a.child;l!==null;){if(l.flags&8218||l.subtreeFlags&8218)return!0;l=l.sibling}return!1}function Vd(l,a,o,c){if(Ve)for(o=a.child;o!==null;){if(o.tag===5||o.tag===6)vm(l,o.stateNode);else if(!(o.tag===4||pe&&o.tag===27)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return;o=o.return}o.sibling.return=o.return,o=o.sibling}else if(bn)for(var h=a.child;h!==null;){if(h.tag===5){var d=h.stateNode;o&&c&&(d=G1(d,h.type,h.memoizedProps)),vm(l,d)}else if(h.tag===6)d=h.stateNode,o&&c&&(d=Y1(d,h.memoizedProps)),vm(l,d);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)d=h.child,d!==null&&(d.return=h),Vd(l,h,!0,!0);else if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function U0(l,a,o,c){var h=!1;if(bn)for(var d=a.child;d!==null;){if(d.tag===5){var v=d.stateNode;o&&c&&(v=G1(v,d.type,d.memoizedProps)),L1(l,v)}else if(d.tag===6)v=d.stateNode,o&&c&&(v=Y1(v,d.memoizedProps)),L1(l,v);else if(d.tag!==4){if(d.tag===22&&d.memoizedState!==null)h=d.child,h!==null&&(h.return=d),U0(l,d,!0,!0),h=!0;else if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return h;d=d.return}d.sibling.return=d.return,d=d.sibling}return h}function B0(l,a){if(bn&&H0(l,a)){l=a.stateNode;var o=l.containerInfo,c=j1();U0(c,a,!1,!1),l.pendingChildren=c,sn(a),E3(o,c)}}function Zd(l,a,o,c){if(Ve)l.memoizedProps!==c&&sn(a);else if(bn){var h=l.stateNode,d=l.memoizedProps;if((l=H0(l,a))||d!==c){var v=He.current;d=b3(h,o,d,c,!l,null),d===h?a.stateNode=h:(yr(a),D1(d,o,c,v)&&sn(a),a.stateNode=d,l&&Vd(d,a,!1,!1))}else a.stateNode=h}}function Kd(l,a,o,c,h){if(l.mode&32&&(o===null?J_(a,c):F_(a,o,c))){if(l.flags|=16777216,(h&335544128)===h||pm(a,c))if(U1(l.stateNode,a,c))l.flags|=8192;else if(s1())l.flags|=8192;else throw ja=jr,Nm}else l.flags&=-16777217}function w0(l,a){if(nA(a)){if(l.flags|=16777216,!P1(a))if(s1())l.flags|=8192;else throw ja=jr,Nm}else l.flags&=-16777217}function vr(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?z():536870912,l.lanes|=a,Ku|=a)}function ao(l,a){if(!gt)switch(l.tailMode){case"hidden":a=l.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?l.tail=null:o.sibling=null;break;case"collapsed":o=l.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||l.tail===null?l.tail=null:l.tail.sibling=null:c.sibling=null}}function Bt(l){var a=l.alternate!==null&&l.alternate.child===l.child,o=0,c=0;if(a)for(var h=l.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=l,h=h.sibling;else for(h=l.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=l,h=h.sibling;return l.subtreeFlags|=c,l.childLanes=o,a}function g_(l,a,o){var c=a.pendingProps;switch(Ut(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(a),null;case 1:return Bt(a),null;case 3:return o=a.stateNode,c=null,l!==null&&(c=l.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),lt(Vt),Yn(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(l===null||l.child===null)&&(za(a)?sn(a):l===null||l.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,_a())),B0(l,a),Bt(a),null;case 26:if(rn){var h=a.type,d=a.memoizedState;return l===null?(sn(a),d!==null?(Bt(a),w0(a,d)):(Bt(a),Kd(a,h,null,c,o))):d?d!==l.memoizedState?(sn(a),Bt(a),w0(a,d)):(Bt(a),a.flags&=-16777217):(d=l.memoizedProps,Ve?d!==c&&sn(a):Zd(l,a,h,c),Bt(a),Kd(a,h,d,c,o)),null}case 27:if(pe){if(Ta(a),o=Ul.current,h=a.type,l!==null&&a.stateNode!=null)Ve?l.memoizedProps!==c&&sn(a):Zd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Bt(a),null}l=He.current,za(a)?Wc(a,l):(l=I1(h,c,o,l,!0),a.stateNode=l,sn(a))}return Bt(a),null}case 5:if(Ta(a),h=a.type,l!==null&&a.stateNode!=null)Zd(l,a,h,c);else{if(!c){if(a.stateNode===null)throw Error(n(166));return Bt(a),null}if(d=He.current,za(a))Wc(a,d),K3(a.stateNode,h,c,d)&&(a.flags|=64);else{var v=q_(h,c,Ul.current,d,a);yr(a),Vd(v,a,!1,!1),a.stateNode=v,D1(v,h,c,d)&&sn(a)}}return Bt(a),Kd(a,a.type,l===null?null:l.memoizedProps,a.pendingProps,o),null;case 6:if(l&&a.stateNode!=null)o=l.memoizedProps,Ve?o!==c&&sn(a):bn&&(o!==c?(l=Ul.current,o=He.current,yr(a),a.stateNode=H1(c,l,o,a)):a.stateNode=l.stateNode);else{if(typeof c!="string"&&a.stateNode===null)throw Error(n(166));if(l=Ul.current,o=He.current,za(a)){if(!Ze)throw Error(n(176));if(l=a.stateNode,o=a.memoizedProps,c=null,h=Ue,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}j3(l,o,a,c)||qi(a,!0)}else yr(a),a.stateNode=H1(c,l,o,a)}return Bt(a),null;case 31:if(o=a.memoizedState,l===null||l.memoizedState!==null){if(c=za(a),o!==null){if(l===null){if(!c)throw Error(n(318));if(!Ze)throw Error(n(556));if(l=a.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(557));L3(l,a)}else Qn(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Bt(a),l=!1}else o=_a(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=o),l=!0;if(!l)return a.flags&256?(yi(a),a):(yi(a),null);if(a.flags&128)throw Error(n(558))}return Bt(a),null;case 13:if(c=a.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(h=za(a),c!==null&&c.dehydrated!==null){if(l===null){if(!h)throw Error(n(318));if(!Ze)throw Error(n(344));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));q3(h,a)}else Qn(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Bt(a),h=!1}else h=_a(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(yi(a),a):(yi(a),null)}return yi(a),a.flags&128?(a.lanes=o,a):(o=c!==null,l=l!==null&&l.memoizedState!==null,o&&(c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),d=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(d=c.memoizedState.cachePool.pool),d!==h&&(c.flags|=2048)),o!==l&&o&&(a.child.flags|=8192),vr(a,a.updateQueue),Bt(a),null);case 4:return Yn(),B0(l,a),l===null&&X_(a.stateNode.containerInfo),Bt(a),null;case 10:return lt(a.type),Bt(a),null;case 19:if(p(ne),c=a.memoizedState,c===null)return Bt(a),null;if(h=(a.flags&128)!==0,d=c.rendering,d===null)if(h)ao(c,!1);else{if(Pt!==0||l!==null&&l.flags&128)for(l=a.child;l!==null;){if(d=ar(l),d!==null){for(a.flags|=128,ao(c,!1),l=d.updateQueue,a.updateQueue=l,vr(a,l),a.subtreeFlags=0,l=o,o=a.child;o!==null;)E1(o,l),o=o.sibling;return x(ne,ne.current&1|2),gt&&ye(a,c.treeForkCount),a.child}l=l.sibling}c.tail!==null&&ni()>zo&&(a.flags|=128,h=!0,ao(c,!1),a.lanes=4194304)}else{if(!h)if(l=ar(d),l!==null){if(a.flags|=128,h=!0,l=l.updateQueue,a.updateQueue=l,vr(a,l),ao(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!gt)return Bt(a),null}else 2*ni()-c.renderingStartTime>zo&&o!==536870912&&(a.flags|=128,h=!0,ao(c,!1),a.lanes=4194304);c.isBackwards?(d.sibling=a.child,a.child=d):(l=c.last,l!==null?l.sibling=d:a.child=d,c.last=d)}return c.tail!==null?(l=c.tail,c.rendering=l,c.tail=l.sibling,c.renderingStartTime=ni(),l.sibling=null,o=ne.current,x(ne,h?o&1|2:o&1),gt&&ye(a,c.treeForkCount),l):(Bt(a),null);case 22:case 23:return yi(a),pd(),c=a.memoizedState!==null,l!==null?l.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?o&536870912&&!(a.flags&128)&&(Bt(a),a.subtreeFlags&6&&(a.flags|=8192)):Bt(a),o=a.updateQueue,o!==null&&vr(a,o.retryQueue),o=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),l!==null&&p(wa),null;case 24:return o=null,l!==null&&(o=l.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),lt(Vt),Bt(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function y_(l,a){switch(Ut(a),a.tag){case 1:return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 3:return lt(Vt),Yn(),l=a.flags,l&65536&&!(l&128)?(a.flags=l&-65537|128,a):null;case 26:case 27:case 5:return Ta(a),null;case 31:if(a.memoizedState!==null){if(yi(a),a.alternate===null)throw Error(n(340));Qn()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 13:if(yi(a),l=a.memoizedState,l!==null&&l.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Qn()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 19:return p(ne),null;case 4:return Yn(),null;case 10:return lt(a.type),null;case 22:case 23:return yi(a),pd(),l!==null&&p(wa),l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 24:return lt(Vt),null;case 25:return null;default:return null}}function j0(l,a){switch(Ut(a),a.tag){case 3:lt(Vt),Yn();break;case 26:case 27:case 5:Ta(a);break;case 4:Yn();break;case 31:a.memoizedState!==null&&yi(a);break;case 13:yi(a);break;case 19:p(ne);break;case 10:lt(a.type);break;case 22:case 23:yi(a),pd(),l!==null&&p(wa);break;case 24:lt(Vt)}}function uo(l,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var h=c.next;o=h;do{if((o.tag&l)===l){c=void 0;var d=o.create,v=o.inst;c=d(),v.destroy=c}o=o.next}while(o!==h)}}catch(_){pt(a,a.return,_)}}function Cl(l,a,o){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var d=h.next;c=d;do{if((c.tag&l)===l){var v=c.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,h=a;var D=o,j=_;try{j()}catch(V){pt(h,D,V)}}}c=c.next}while(c!==d)}}catch(V){pt(a,a.return,V)}}function L0(l){var a=l.updateQueue;if(a!==null){var o=l.stateNode;try{Np(a,o)}catch(c){pt(l,l.return,c)}}}function q0(l,a,o){o.props=Ma(l.type,l.memoizedProps),o.state=l.memoizedState;try{o.componentWillUnmount()}catch(c){pt(l,a,c)}}function so(l,a){try{var o=l.ref;if(o!==null){switch(l.tag){case 26:case 27:case 5:var c=fo(l.stateNode);break;case 30:c=l.stateNode;break;default:c=l.stateNode}typeof o=="function"?l.refCleanup=o(c):o.current=c}}catch(h){pt(l,a,h)}}function Sn(l,a){var o=l.ref,c=l.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(h){pt(l,a,h)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){pt(l,a,h)}else o.current=null}function G0(l){var a=l.type,o=l.memoizedProps,c=l.stateNode;try{c3(c,a,o,l)}catch(h){pt(l,l.return,h)}}function Jd(l,a,o){try{r3(l.stateNode,l.type,o,a,l)}catch(c){pt(l,l.return,c)}}function Y0(l){return l.tag===5||l.tag===3||(rn?l.tag===26:!1)||(pe?l.tag===27&&Ru(l.type):!1)||l.tag===4}function Fd(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||Y0(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(pe&&l.tag===27&&Ru(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Wd(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?h3(o,l,a):s3(o,l);else if(c!==4&&(pe&&c===27&&Ru(l.type)&&(o=l.stateNode,a=null),l=l.child,l!==null))for(Wd(l,a,o),l=l.sibling;l!==null;)Wd(l,a,o),l=l.sibling}function pr(l,a,o){var c=l.tag;if(c===5||c===6)l=l.stateNode,a?f3(o,l,a):u3(o,l);else if(c!==4&&(pe&&c===27&&Ru(l.type)&&(o=l.stateNode),l=l.child,l!==null))for(pr(l,a,o),l=l.sibling;l!==null;)pr(l,a,o),l=l.sibling}function Q0(l,a,o){l=l.containerInfo;try{q1(l,o)}catch(c){pt(a,a.return,c)}}function X0(l){var a=l.stateNode,o=l.memoizedProps;try{aA(l.type,o,a,l)}catch(c){pt(l,l.return,c)}}function v_(l,a){for(j_(l.containerInfo),Oe=a;Oe!==null;)if(l=Oe,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,Oe=a;else for(;Oe!==null;){l=Oe;var o=l.alternate;switch(a=l.flags,l.tag){case 0:if(a&4&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(var c=0;c<a.length;c++){var h=a[c];h.ref.impl=h.nextImpl}break;case 11:case 15:break;case 1:if(a&1024&&o!==null){a=void 0,c=l,h=o.memoizedProps,o=o.memoizedState;var d=c.stateNode;try{var v=Ma(c.type,h);a=d.getSnapshotBeforeUpdate(v,o),d.__reactInternalSnapshotBeforeUpdate=a}catch(_){pt(c,c.return,_)}}break;case 3:a&1024&&Ve&&S3(l.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(a&1024)throw Error(n(163))}if(a=l.sibling,a!==null){a.return=l.return,Oe=a;break}Oe=l.return}}function V0(l,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Zn(l,o),c&4&&uo(5,o);break;case 1:if(Zn(l,o),c&4)if(l=o.stateNode,a===null)try{l.componentDidMount()}catch(v){pt(o,o.return,v)}else{var h=Ma(o.type,a.memoizedProps);a=a.memoizedState;try{l.componentDidUpdate(h,a,l.__reactInternalSnapshotBeforeUpdate)}catch(v){pt(o,o.return,v)}}c&64&&L0(o),c&512&&so(o,o.return);break;case 3:if(Zn(l,o),c&64&&(c=o.updateQueue,c!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=fo(o.child.stateNode);break;case 1:l=o.child.stateNode}try{Np(c,l)}catch(v){pt(o,o.return,v)}}break;case 27:pe&&a===null&&c&4&&X0(o);case 26:case 5:if(Zn(l,o),a===null){if(c&4)G0(o);else if(c&64){l=o.type,a=o.memoizedProps,h=o.stateNode;try{Q3(h,l,a,o)}catch(v){pt(o,o.return,v)}}}c&512&&so(o,o.return);break;case 12:Zn(l,o);break;case 31:Zn(l,o),c&4&&K0(l,o);break;case 13:Zn(l,o),c&4&&J0(l,o),c&64&&(c=o.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(o=z_.bind(null,o),T3(c,o))));break;case 22:if(c=o.memoizedState!==null||kn,!c){a=a!==null&&a.memoizedState!==null||ce,h=kn;var d=ce;kn=c,(ce=a)&&!d?Kn(l,o,(o.subtreeFlags&8772)!==0):Zn(l,o),kn=h,ce=d}break;case 30:break;default:Zn(l,o)}}function Z0(l){var a=l.alternate;a!==null&&(l.alternate=null,Z0(a)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(a=l.stateNode,a!==null&&K_(a)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function on(l,a,o){for(o=o.child;o!==null;)Pd(l,a,o),o=o.sibling}function Pd(l,a,o){if(bi&&typeof bi.onCommitFiberUnmount=="function")try{bi.onCommitFiberUnmount(go,o)}catch{}switch(o.tag){case 26:if(rn){ce||Sn(o,a),on(l,a,o),o.memoizedState?J1(o.memoizedState):o.stateNode&&W1(o.stateNode);break}case 27:if(pe){ce||Sn(o,a);var c=re,h=li;Ru(o.type)&&(re=o.stateNode,li=!1),on(l,a,o),k1(o.stateNode),re=c,li=h;break}case 5:ce||Sn(o,a);case 6:if(Ve){if(c=re,h=li,re=null,on(l,a,o),re=c,li=h,re!==null)if(li)try{m3(re,o.stateNode)}catch(d){pt(o,a,d)}else try{d3(re,o.stateNode)}catch(d){pt(o,a,d)}}else on(l,a,o);break;case 18:Ve&&re!==null&&(li?W3(re,o.stateNode):F3(re,o.stateNode));break;case 4:Ve?(c=re,h=li,re=o.stateNode.containerInfo,li=!0,on(l,a,o),re=c,li=h):(bn&&Q0(o.stateNode,o,j1()),on(l,a,o));break;case 0:case 11:case 14:case 15:Cl(2,o,a),ce||Cl(4,o,a),on(l,a,o);break;case 1:ce||(Sn(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&q0(o,a,c)),on(l,a,o);break;case 21:on(l,a,o);break;case 22:ce=(c=ce)||o.memoizedState!==null,on(l,a,o),ce=c;break;default:on(l,a,o)}}function K0(l,a){if(Ze&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{V3(l)}catch(o){pt(a,a.return,o)}}}function J0(l,a){if(Ze&&a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Z3(l)}catch(o){pt(a,a.return,o)}}function p_(l){switch(l.tag){case 31:case 13:case 19:var a=l.stateNode;return a===null&&(a=l.stateNode=new oS),a;case 22:return l=l.stateNode,a=l._retryCache,a===null&&(a=l._retryCache=new oS),a;default:throw Error(n(435,l.tag))}}function Sr(l,a){var o=p_(l);a.forEach(function(c){if(!o.has(c)){o.add(c);var h=__.bind(null,l,c);c.then(h,h)}})}function Xe(l,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c],d=l,v=a;if(Ve){var _=v;t:for(;_!==null;){switch(_.tag){case 27:if(pe){if(Ru(_.type)){re=_.stateNode,li=!1;break t}break}case 5:re=_.stateNode,li=!1;break t;case 3:case 4:re=_.stateNode.containerInfo,li=!0;break t}_=_.return}if(re===null)throw Error(n(160));Pd(d,v,h),re=null,li=!1}else Pd(d,v,h);d=h.alternate,d!==null&&(d.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)F0(a,l),a=a.sibling}function F0(l,a){var o=l.alternate,c=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Xe(a,l),We(l),c&4&&(Cl(3,l,l.return),uo(3,l),Cl(5,l,l.return));break;case 1:Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),c&64&&kn&&(l=l.updateQueue,l!==null&&(c=l.callbacks,c!==null&&(o=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:if(rn){var h=fn;if(Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),c&4){c=o!==null?o.memoizedState:null;var d=l.memoizedState;o===null?d===null?l.stateNode===null?l.stateNode=tA(h,l.type,l.memoizedProps,l):F1(h,l.type,l.stateNode):l.stateNode=K1(h,d,l.memoizedProps):c!==d?(c===null?o.stateNode!==null&&W1(o.stateNode):J1(c),d===null?F1(h,l.type,l.stateNode):K1(h,d,l.memoizedProps)):d===null&&l.stateNode!==null&&Jd(l,l.memoizedProps,o.memoizedProps)}break}case 27:if(pe){Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),o!==null&&c&4&&Jd(l,l.memoizedProps,o.memoizedProps);break}case 5:if(Xe(a,l),We(l),c&512&&(ce||o===null||Sn(o,o.return)),Ve){if(l.flags&32){h=l.stateNode;try{w1(h)}catch(Y){pt(l,l.return,Y)}}c&4&&l.stateNode!=null&&(h=l.memoizedProps,Jd(l,h,o!==null?o.memoizedProps:h)),c&1024&&(Lm=!0)}else bn&&l.alternate!==null&&(l.alternate.stateNode=l.stateNode);break;case 6:if(Xe(a,l),We(l),c&4&&Ve){if(l.stateNode===null)throw Error(n(162));c=l.memoizedProps,o=o!==null?o.memoizedProps:c,h=l.stateNode;try{o3(h,o,c)}catch(Y){pt(l,l.return,Y)}}break;case 3:if(rn?(iA(),h=fn,fn=Em(a.containerInfo),Xe(a,l),fn=h):Xe(a,l),We(l),c&4){if(Ve&&Ze&&o!==null&&o.memoizedState.isDehydrated)try{X3(a.containerInfo)}catch(Y){pt(l,l.return,Y)}if(bn){c=a.containerInfo,o=a.pendingChildren;try{q1(c,o)}catch(Y){pt(l,l.return,Y)}}}Lm&&(Lm=!1,W0(l));break;case 4:rn?(o=fn,fn=Em(l.stateNode.containerInfo),Xe(a,l),We(l),fn=o):(Xe(a,l),We(l)),c&4&&bn&&Q0(l.stateNode,l,l.stateNode.pendingChildren);break;case 12:Xe(a,l),We(l);break;case 31:Xe(a,l),We(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 13:Xe(a,l),We(l),l.child.flags&8192&&l.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Kr=ni()),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 22:h=l.memoizedState!==null;var v=o!==null&&o.memoizedState!==null,_=kn,D=ce;if(kn=_||h,ce=D||v,Xe(a,l),ce=D,kn=_,We(l),c&8192&&(a=l.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,h&&(o===null||v||kn||ce||Ca(l)),Ve)){t:if(o=null,Ve)for(a=l;;){if(a.tag===5||rn&&a.tag===26){if(o===null){v=o=a;try{d=v.stateNode,h?g3(d):v3(v.stateNode,v.memoizedProps)}catch(Y){pt(v,v.return,Y)}}}else if(a.tag===6){if(o===null){v=a;try{var j=v.stateNode;h?y3(j):p3(j,v.memoizedProps)}catch(Y){pt(v,v.return,Y)}}}else if(a.tag===18){if(o===null){v=a;try{var V=v.stateNode;h?P3(V):I3(v.stateNode)}catch(Y){pt(v,v.return,Y)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===l)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break t;for(;a.sibling===null;){if(a.return===null||a.return===l)break t;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}}c&4&&(c=l.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Sr(l,o))));break;case 19:Xe(a,l),We(l),c&4&&(c=l.updateQueue,c!==null&&(l.updateQueue=null,Sr(l,c)));break;case 30:break;case 21:break;default:Xe(a,l),We(l)}}function We(l){var a=l.flags;if(a&2){try{for(var o,c=l.return;c!==null;){if(Y0(c)){o=c;break}c=c.return}if(Ve){if(o==null)throw Error(n(160));switch(o.tag){case 27:if(pe){var h=o.stateNode,d=Fd(l);pr(l,d,h);break}case 5:var v=o.stateNode;o.flags&32&&(w1(v),o.flags&=-33);var _=Fd(l);pr(l,_,v);break;case 3:case 4:var D=o.stateNode.containerInfo,j=Fd(l);Wd(l,j,D);break;default:throw Error(n(161))}}}catch(V){pt(l,l.return,V)}l.flags&=-3}a&4096&&(l.flags&=-4097)}function W0(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var a=l;W0(a),a.tag===5&&a.flags&1024&&I_(a.stateNode),l=l.sibling}}function Zn(l,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)V0(l,a.alternate,a),a=a.sibling}function Ca(l){for(l=l.child;l!==null;){var a=l;switch(a.tag){case 0:case 11:case 14:case 15:Cl(4,a,a.return),Ca(a);break;case 1:Sn(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&q0(a,a.return,o),Ca(a);break;case 27:pe&&k1(a.stateNode);case 26:case 5:Sn(a,a.return),Ca(a);break;case 22:a.memoizedState===null&&Ca(a);break;case 30:Ca(a);break;default:Ca(a)}l=l.sibling}}function Kn(l,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,h=l,d=a,v=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(h,d,o),uo(4,d);break;case 1:if(Kn(h,d,o),c=d,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(j){pt(c,c.return,j)}if(c=d,h=c.updateQueue,h!==null){var _=c.stateNode;try{var D=h.shared.hiddenCallbacks;if(D!==null)for(h.shared.hiddenCallbacks=null,h=0;h<D.length;h++)Rp(D[h],_)}catch(j){pt(c,c.return,j)}}o&&v&64&&L0(d),so(d,d.return);break;case 27:pe&&X0(d);case 26:case 5:Kn(h,d,o),o&&c===null&&v&4&&G0(d),so(d,d.return);break;case 12:Kn(h,d,o);break;case 31:Kn(h,d,o),o&&v&4&&K0(h,d);break;case 13:Kn(h,d,o),o&&v&4&&J0(h,d);break;case 22:d.memoizedState===null&&Kn(h,d,o),so(d,d.return);break;case 30:break;default:Kn(h,d,o)}a=a.sibling}}function Id(l,a){var o=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(l!=null&&l.refCount++,o!=null&&Is(o))}function kd(l,a){l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&Is(l))}function cn(l,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)P0(l,a,o,c),a=a.sibling}function P0(l,a,o,c){var h=a.flags;switch(a.tag){case 0:case 11:case 15:cn(l,a,o,c),h&2048&&uo(9,a);break;case 1:cn(l,a,o,c);break;case 3:cn(l,a,o,c),h&2048&&(l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&Is(l)));break;case 12:if(h&2048){cn(l,a,o,c),l=a.stateNode;try{var d=a.memoizedProps,v=d.id,_=d.onPostCommit;typeof _=="function"&&_(v,a.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(D){pt(a,a.return,D)}}else cn(l,a,o,c);break;case 31:cn(l,a,o,c);break;case 13:cn(l,a,o,c);break;case 23:break;case 22:d=a.stateNode,v=a.alternate,a.memoizedState!==null?d._visibility&2?cn(l,a,o,c):oo(l,a):d._visibility&2?cn(l,a,o,c):(d._visibility|=2,zu(l,a,o,c,(a.subtreeFlags&10256)!==0||!1)),h&2048&&Id(v,a);break;case 24:cn(l,a,o,c),h&2048&&kd(a.alternate,a);break;default:cn(l,a,o,c)}}function zu(l,a,o,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var d=l,v=a,_=o,D=c,j=v.flags;switch(v.tag){case 0:case 11:case 15:zu(d,v,_,D,h),uo(8,v);break;case 23:break;case 22:var V=v.stateNode;v.memoizedState!==null?V._visibility&2?zu(d,v,_,D,h):oo(d,v):(V._visibility|=2,zu(d,v,_,D,h)),h&&j&2048&&Id(v.alternate,v);break;case 24:zu(d,v,_,D,h),h&&j&2048&&kd(v.alternate,v);break;default:zu(d,v,_,D,h)}a=a.sibling}}function oo(l,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=l,c=a,h=c.flags;switch(c.tag){case 22:oo(o,c),h&2048&&Id(c.alternate,c);break;case 24:oo(o,c),h&2048&&kd(c.alternate,c);break;default:oo(o,c)}a=a.sibling}}function Ra(l,a,o){if(l.subtreeFlags&Vu)for(l=l.child;l!==null;)I0(l,a,o),l=l.sibling}function I0(l,a,o){switch(l.tag){case 26:if(Ra(l,a,o),l.flags&Vu)if(l.memoizedState!==null)lA(o,fn,l.memoizedState,l.memoizedProps);else{var c=l.stateNode,h=l.type;l=l.memoizedProps,((a&335544128)===a||pm(h,l))&&B1(o,c,h,l)}break;case 5:Ra(l,a,o),l.flags&Vu&&(c=l.stateNode,h=l.type,l=l.memoizedProps,((a&335544128)===a||pm(h,l))&&B1(o,c,h,l));break;case 3:case 4:rn?(c=fn,fn=Em(l.stateNode.containerInfo),Ra(l,a,o),fn=c):Ra(l,a,o);break;case 22:l.memoizedState===null&&(c=l.alternate,c!==null&&c.memoizedState!==null?(c=Vu,Vu=16777216,Ra(l,a,o),Vu=c):Ra(l,a,o));break;default:Ra(l,a,o)}}function k0(l){var a=l.alternate;if(a!==null&&(l=a.child,l!==null)){a.child=null;do a=l.sibling,l.sibling=null,l=a;while(l!==null)}}function co(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Oe=c,t1(c,l)}k0(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)$0(l),l=l.sibling}function $0(l){switch(l.tag){case 0:case 11:case 15:co(l),l.flags&2048&&Cl(9,l,l.return);break;case 3:co(l);break;case 12:co(l);break;case 22:var a=l.stateNode;l.memoizedState!==null&&a._visibility&2&&(l.return===null||l.return.tag!==13)?(a._visibility&=-3,br(l)):co(l);break;default:co(l)}}function br(l){var a=l.deletions;if(l.flags&16){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];Oe=c,t1(c,l)}k0(l)}for(l=l.child;l!==null;){switch(a=l,a.tag){case 0:case 11:case 15:Cl(8,a,a.return),br(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,br(a));break;default:br(a)}l=l.sibling}}function t1(l,a){for(;Oe!==null;){var o=Oe;switch(o.tag){case 0:case 11:case 15:Cl(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Is(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Oe=c;else t:for(o=l;Oe!==null;){c=Oe;var h=c.sibling,d=c.return;if(Z0(c),c===o){Oe=null;break t}if(h!==null){h.return=d,Oe=h;break t}Oe=d}}}function $d(l){var a=Q_(l);if(a!=null){if(typeof a.memoizedProps["data-testname"]!="string")throw Error(n(364));return a}if(l=t3(l),l===null)throw Error(n(362));return l.stateNode.current}function tm(l,a){var o=l.tag;switch(a.$$typeof){case Yr:if(l.type===a.value)return!0;break;case Qr:t:{for(a=a.value,l=[l,0],o=0;o<l.length;){var c=l[o++],h=c.tag,d=l[o++],v=a[d];if(h!==5&&h!==26&&h!==27||!mo(c)){for(;v!=null&&tm(c,v);)d++,v=a[d];if(d===a.length){a=!0;break t}else for(c=c.child;c!==null;)l.push(c,d),c=c.sibling}}a=!1}return a;case Xr:if((o===5||o===26||o===27)&&n3(l.stateNode,a.value))return!0;break;case Zr:if((o===5||o===6||o===26||o===27)&&(l=i3(l),l!==null&&0<=l.indexOf(a.value)))return!0;break;case Vr:if((o===5||o===26||o===27)&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===a.value.toLowerCase()))return!0;break;default:throw Error(n(365))}return!1}function em(l){switch(l.$$typeof){case Yr:return"<"+(g(l.value)||"Unknown")+">";case Qr:return":has("+(em(l)||"")+")";case Xr:return'[role="'+l.value+'"]';case Zr:return'"'+l.value+'"';case Vr:return'[data-testname="'+l.value+'"]';default:throw Error(n(365))}}function e1(l,a){var o=[];l=[l,0];for(var c=0;c<l.length;){var h=l[c++],d=h.tag,v=l[c++],_=a[v];if(d!==5&&d!==26&&d!==27||!mo(h)){for(;_!=null&&tm(h,_);)v++,_=a[v];if(v===a.length)o.push(h);else for(h=h.child;h!==null;)l.push(h,v),h=h.sibling}}return o}function im(l,a){if(!ho)throw Error(n(363));l=$d(l),l=e1(l,a),a=[],l=Array.from(l);for(var o=0;o<l.length;){var c=l[o++],h=c.tag;if(h===5||h===26||h===27)mo(c)||a.push(c.stateNode);else for(c=c.child;c!==null;)l.push(c),c=c.sibling}return a}function vi(){return ot&2&&dt!==0?dt&-dt:W.T!==null?fd():V_()}function i1(){if(zi===0)if(!(dt&536870912)||gt){var l=Mr;Mr<<=1,!(Mr&3932160)&&(Mr=262144),zi=l}else zi=536870912;return l=xi.current,l!==null&&(l.flags|=32),zi}function ii(l,a,o){(l===Nt&&(Tt===2||Tt===9)||l.cancelPendingCommit!==null)&&(_u(l,0),Rl(l,dt,zi,!1)),H(l,o),(!(ot&2)||l!==Nt)&&(l===Nt&&(!(ot&2)&&(Ga|=o),Pt===4&&Rl(l,dt,zi,!1)),pn(l))}function n1(l,a,o){if(ot&6)throw Error(n(327));var c=!o&&(a&127)===0&&(a&l.expiredLanes)===0||T(l,a),h=c?E_(l,a):lm(l,a,!0),d=c;do{if(h===0){Zu&&!c&&Rl(l,a,0,!1);break}else{if(o=l.current.alternate,d&&!S_(o)){h=lm(l,a,!1),d=!1;continue}if(h===2){if(d=a,l.errorRecoveryDisabledLanes&d)var v=0;else v=l.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;t:{var _=l;h=To;var D=Ze&&_.current.memoizedState.isDehydrated;if(D&&(_u(_,v).flags|=256),v=lm(_,v,!1),v!==2){if(qm&&!D){_.errorRecoveryDisabledLanes|=d,Ga|=d,h=4;break t}d=ai,ai=h,d!==null&&(ai===null?ai=d:ai.push.apply(ai,d))}h=v}if(d=!1,h!==2)continue}}if(h===1){_u(l,0),Rl(l,a,0,!0);break}t:{switch(c=l,d=h,d){case 0:case 1:throw Error(n(345));case 4:if((a&4194048)!==a)break;case 6:Rl(c,a,zi,!jl);break t;case 2:ai=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(h=Kr+300-ni(),10<h)){if(Rl(c,a,zi,!jl),w(c,0,!0)!==0)break t;tl=a,c.timeoutHandle=G_(l1.bind(null,c,o,ai,Jr,Ym,a,zi,Ga,Ku,jl,d,"Throttled",-0,0),h);break t}l1(c,o,ai,Jr,Ym,a,zi,Ga,Ku,jl,d,null,-0,0)}}break}while(!0);pn(l)}function l1(l,a,o,c,h,d,v,_,D,j,V,Y,K,it){if(l.timeoutHandle=Da,Y=a.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y=W_(),I0(a,d,Y);var Be=(d&62914560)===d?Kr-ni():(d&4194048)===d?cS-ni():0;if(Be=P_(Y,Be),Be!==null){tl=d,l.cancelPendingCommit=Be(d1.bind(null,l,a,d,o,c,h,v,_,D,V,Y,null,K,it)),Rl(l,d,v,!j);return}}d1(l,a,d,o,c,h,v,_,D)}function S_(l){for(var a=l;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var h=o[c],d=h.getSnapshot;h=h.value;try{if(!Ei(d(),h))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Rl(l,a,o,c){a&=~Gm,a&=~Ga,l.suspendedLanes|=a,l.pingedLanes&=~a,c&&(l.warmLanes|=a),c=l.expirationTimes;for(var h=a;0<h;){var d=31-Si(h),v=1<<d;c[d]=-1,h&=~v}o!==0&&L(l,o,a)}function a1(){return ot&6?!0:(xu(0,!1),!1)}function nm(){if(ct!==null){if(Tt===0)var l=ct.return;else l=ct,Pn=Ua=null,zd(l),qu=null,So=0,l=ct;for(;l!==null;)j0(l.alternate,l),l=l.return;ct=null}}function _u(l,a){var o=l.timeoutHandle;o!==Da&&(l.timeoutHandle=Da,Y_(o)),o=l.cancelPendingCommit,o!==null&&(l.cancelPendingCommit=null,o()),tl=0,nm(),Nt=l,ct=o=Jn(l.current,null),dt=a,Tt=0,Ti=null,jl=!1,Zu=T(l,a),qm=!1,Ku=zi=Gm=Ga=Ll=Pt=0,ai=To=null,Ym=!1,a&8&&(a|=a&32);var c=l.entangledLanes;if(c!==0)for(l=l.entanglements,c&=a;0<c;){var h=31-Si(c),d=1<<h;a|=l[h],c&=~d}return $n=a,ir(),o}function u1(l,a){at=null,W.H=Eo,a===Lu||a===wr?(a=Ap(),Tt=3):a===Nm?(a=Ap(),Tt=4):Tt=a===wm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Ti=a,ct===null&&(Pt=1,hr(l,ue(a,l.current)))}function s1(){var l=xi.current;return l===null?!0:(dt&4194048)===dt?Zi===null:(dt&62914560)===dt||dt&536870912?l===Zi:!1}function o1(){var l=W.H;return W.H=Eo,l===null?Eo:l}function c1(){var l=W.A;return W.A=SA,l}function Er(){Pt=4,jl||(dt&4194048)!==dt&&xi.current!==null||(Zu=!0),!(Ll&134217727)&&!(Ga&134217727)||Nt===null||Rl(Nt,dt,zi,!1)}function lm(l,a,o){var c=ot;ot|=2;var h=o1(),d=c1();(Nt!==l||dt!==a)&&(Jr=null,_u(l,a)),a=!1;var v=Pt;t:do try{if(Tt!==0&&ct!==null){var _=ct,D=Ti;switch(Tt){case 8:nm(),v=6;break t;case 3:case 2:case 9:case 6:xi.current===null&&(a=!0);var j=Tt;if(Tt=0,Ti=null,Au(l,_,D,j),o&&Zu){v=0;break t}break;default:j=Tt,Tt=0,Ti=null,Au(l,_,D,j)}}b_(),v=Pt;break}catch(V){u1(l,V)}while(!0);return a&&l.shellSuspendCounter++,Pn=Ua=null,ot=c,W.H=h,W.A=d,ct===null&&(Nt=null,dt=0,ir()),v}function b_(){for(;ct!==null;)r1(ct)}function E_(l,a){var o=ot;ot|=2;var c=o1(),h=c1();Nt!==l||dt!==a?(Jr=null,zo=ni()+500,_u(l,a)):Zu=T(l,a);t:do try{if(Tt!==0&&ct!==null){a=ct;var d=Ti;e:switch(Tt){case 1:Tt=0,Ti=null,Au(l,a,d,1);break;case 2:case 9:if(zp(d)){Tt=0,Ti=null,f1(a);break}a=function(){Tt!==2&&Tt!==9||Nt!==l||(Tt=7),pn(l)},d.then(a,a);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:zp(d)?(Tt=0,Ti=null,f1(a)):(Tt=0,Ti=null,Au(l,a,d,7));break;case 5:var v=null;switch(ct.tag){case 26:v=ct.memoizedState;case 5:case 27:var _=ct,D=_.type,j=_.pendingProps;if(v?P1(v):U1(_.stateNode,D,j)){Tt=0,Ti=null;var V=_.sibling;if(V!==null)ct=V;else{var Y=_.return;Y!==null?(ct=Y,xr(Y)):ct=null}break e}}Tt=0,Ti=null,Au(l,a,d,5);break;case 6:Tt=0,Ti=null,Au(l,a,d,6);break;case 8:nm(),Pt=6;break t;default:throw Error(n(462))}}x_();break}catch(K){u1(l,K)}while(!0);return Pn=Ua=null,W.H=c,W.A=h,ot=o,ct!==null?0:(Nt=null,dt=0,ir(),Pt)}function x_(){for(;ct!==null&&!oA();)r1(ct)}function r1(l){var a=D0(l.alternate,l,$n);l.memoizedProps=l.pendingProps,a===null?xr(l):ct=a}function f1(l){var a=l,o=a.alternate;switch(a.tag){case 15:case 0:a=A0(o,a,a.pendingProps,a.type,void 0,dt);break;case 11:a=A0(o,a,a.pendingProps,a.type.render,a.ref,dt);break;case 5:zd(a);default:j0(o,a),a=ct=E1(a,$n),a=D0(o,a,$n)}l.memoizedProps=l.pendingProps,a===null?xr(l):ct=a}function Au(l,a,o,c){Pn=Ua=null,zd(a),qu=null,So=0;var h=a.return;try{if(h_(l,h,a,o,dt)){Pt=1,hr(l,ue(o,l.current)),ct=null;return}}catch(d){if(h!==null)throw ct=h,d;Pt=1,hr(l,ue(o,l.current)),ct=null;return}a.flags&32768?(gt||c===1?l=!0:Zu||dt&536870912?l=!1:(jl=l=!0,(c===2||c===9||c===3||c===6)&&(c=xi.current,c!==null&&c.tag===13&&(c.flags|=16384))),h1(a,l)):xr(a)}function xr(l){var a=l;do{if(a.flags&32768){h1(a,jl);return}l=a.return;var o=g_(a.alternate,a,$n);if(o!==null){ct=o;return}if(a=a.sibling,a!==null){ct=a;return}ct=a=l}while(a!==null);Pt===0&&(Pt=5)}function h1(l,a){do{var o=y_(l.alternate,l);if(o!==null){o.flags&=32767,ct=o;return}if(o=l.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(l=l.sibling,l!==null)){ct=l;return}ct=l=o}while(l!==null);Pt=6,ct=null}function d1(l,a,o,c,h,d,v,_,D){l.cancelPendingCommit=null;do ro();while(Se!==0);if(ot&6)throw Error(n(327));if(a!==null){if(a===l.current)throw Error(n(177));if(d=a.lanes|a.childLanes,d|=Dm,q(l,o,d,v,_,D),l===Nt&&(ct=Nt=null,dt=0),Ju=a,Gl=l,tl=o,Qm=d,Xm=h,rS=c,a.subtreeFlags&10256||a.flags&10256?(l.callbackNode=null,l.callbackPriority=0,A_(zm,function(){return p1(),null})):(l.callbackNode=null,l.callbackPriority=0),c=(a.flags&13878)!==0,a.subtreeFlags&13878||c){c=W.T,W.T=null,h=Wn(),Ae(2),v=ot,ot|=4;try{v_(l,a,o)}finally{ot=v,Ae(h),W.T=c}}Se=1,m1(),g1(),y1()}}function m1(){if(Se===1){Se=0;var l=Gl,a=Ju,o=(a.flags&13878)!==0;if(a.subtreeFlags&13878||o){o=W.T,W.T=null;var c=Wn();Ae(2);var h=ot;ot|=4;try{F0(a,l),L_(l.containerInfo)}finally{ot=h,Ae(c),W.T=o}}l.current=a,Se=2}}function g1(){if(Se===2){Se=0;var l=Gl,a=Ju,o=(a.flags&8772)!==0;if(a.subtreeFlags&8772||o){o=W.T,W.T=null;var c=Wn();Ae(2);var h=ot;ot|=4;try{V0(l,a.alternate,a)}finally{ot=h,Ae(c),W.T=o}}Se=3}}function y1(){if(Se===4||Se===3){Se=0,cA();var l=Gl,a=Ju,o=tl,c=rS;a.subtreeFlags&10256||a.flags&10256?Se=5:(Se=0,Ju=Gl=null,v1(l,l.pendingLanes));var h=l.pendingLanes;if(h===0&&(ql=null),I(o),a=a.stateNode,bi&&typeof bi.onCommitFiberRoot=="function")try{bi.onCommitFiberRoot(go,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=W.T,h=Wn(),Ae(2),W.T=null;try{for(var d=l.onRecoverableError,v=0;v<c.length;v++){var _=c[v];d(_.value,{componentStack:_.stack})}}finally{W.T=a,Ae(h)}}tl&3&&ro(),pn(l),h=l.pendingLanes,o&261930&&h&42?l===Vm?_o++:(_o=0,Vm=l):_o=0,Ze&&J3(),xu(0,!1)}}function v1(l,a){(l.pooledCacheLanes&=a)===0&&(a=l.pooledCache,a!=null&&(l.pooledCache=null,Is(a)))}function ro(){return m1(),g1(),y1(),p1()}function p1(){if(Se!==5)return!1;var l=Gl,a=Qm;Qm=0;var o=I(tl),c=32>o?32:o;o=W.T;var h=Wn();try{Ae(c),W.T=null,c=Xm,Xm=null;var d=Gl,v=tl;if(Se=0,Ju=Gl=null,tl=0,ot&6)throw Error(n(331));var _=ot;if(ot|=4,$0(d.current),P0(d,d.current,v,c),ot=_,xu(0,!1),bi&&typeof bi.onPostCommitFiberRoot=="function")try{bi.onPostCommitFiberRoot(go,d)}catch{}return!0}finally{Ae(h),W.T=o,v1(l,a)}}function S1(l,a,o){a=ue(o,a),a=wd(l.stateNode,a,2),l=Al(l,a,2),l!==null&&(H(l,2),pn(l))}function pt(l,a,o){if(l.tag===3)S1(l,l,o);else for(;a!==null;){if(a.tag===3){S1(a,l,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ql===null||!ql.has(c))){l=ue(o,l),o=p0(2),c=Al(a,o,2),c!==null&&(S0(o,c,a,l),H(c,2),pn(c));break}}a=a.return}}function am(l,a,o){var c=l.pingCache;if(c===null){c=l.pingCache=new bA;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(o)||(qm=!0,h.add(o),l=T_.bind(null,l,a,o),a.then(l,l))}function T_(l,a,o){var c=l.pingCache;c!==null&&c.delete(a),l.pingedLanes|=l.suspendedLanes&o,l.warmLanes&=~o,Nt===l&&(dt&o)===o&&(Pt===4||Pt===3&&(dt&62914560)===dt&&300>ni()-Kr?!(ot&2)&&_u(l,0):Gm|=o,Ku===dt&&(Ku=0)),pn(l)}function b1(l,a){a===0&&(a=z()),l=Oa(l,a),l!==null&&(H(l,a),pn(l))}function z_(l){var a=l.memoizedState,o=0;a!==null&&(o=a.retryLane),b1(l,o)}function __(l,a){var o=0;switch(l.tag){case 31:case 13:var c=l.stateNode,h=l.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=l.stateNode;break;case 22:c=l.stateNode._retryCache;break;default:throw Error(n(314))}c!==null&&c.delete(a),b1(l,o)}function A_(l,a){return Rr(l,a)}function O_(l,a,o,c){this.tag=l,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function um(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Jn(l,a){var o=l.alternate;return o===null?(o=e(l.tag,a,l.key,l.mode),o.elementType=l.elementType,o.type=l.type,o.stateNode=l.stateNode,o.alternate=l,l.alternate=o):(o.pendingProps=a,o.type=l.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=l.flags&65011712,o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,a=l.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=l.sibling,o.index=l.index,o.ref=l.ref,o.refCleanup=l.refCleanup,o}function E1(l,a){l.flags&=65011714;var o=l.alternate;return o===null?(l.childLanes=0,l.lanes=a,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,a=o.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),l}function Tr(l,a,o,c,h,d){var v=0;if(c=l,typeof l=="function")um(l)&&(v=1);else if(typeof l=="string")v=rn&&pe?V1(l,o,He.current)?26:$1(l)?27:5:rn?V1(l,o,He.current)?26:5:pe&&$1(l)?27:5;else t:switch(l){case ym:return l=e(31,o,a,h),l.elementType=ym,l.lanes=d,l;case Mu:return Na(o.children,h,d,a);case M1:v=8,h|=24;break;case fm:return l=e(12,o,a,h|2),l.elementType=fm,l.lanes=d,l;case dm:return l=e(13,o,a,h),l.elementType=dm,l.lanes=d,l;case mm:return l=e(19,o,a,h),l.elementType=mm,l.lanes=d,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Nl:v=10;break t;case C1:v=9;break t;case hm:v=11;break t;case gm:v=14;break t;case Dl:v=16,c=null;break t}v=29,o=Error(n(130,l===null?"null":typeof l,"")),c=null}return a=e(v,o,a,h),a.elementType=l,a.type=c,a.lanes=d,a}function Na(l,a,o,c){return l=e(7,l,c,a),l.lanes=o,l}function sm(l,a,o){return l=e(6,l,null,a),l.lanes=o,l}function x1(l){var a=e(18,null,null,0);return a.stateNode=l,a}function om(l,a,o){return a=e(4,l.children!==null?l.children:[],l.key,a),a.lanes=o,a.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},a}function M_(l,a,o,c,h,d,v,_,D){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Da,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=O(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=O(0),this.hiddenUpdates=O(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function T1(l,a,o,c,h,d,v,_,D,j,V,Y){return l=new M_(l,a,o,v,D,j,V,Y,_),a=1,d===!0&&(a|=24),d=e(3,null,null,a),l.current=d,d.stateNode=l,a=rd(),a.refCount++,l.pooledCache=a,a.refCount++,d.memoizedState={element:c,isDehydrated:o,cache:a},md(d),l}function z1(l){return l?(l=Du,l):Du}function _1(l){var a=l._reactInternals;if(a===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=r(a),l=l!==null?f(l):null,l===null?null:fo(l.stateNode)}function A1(l,a,o,c,h,d){h=z1(h),c.context===null?c.context=h:c.pendingContext=h,c=_l(a),c.payload={element:o},d=d===void 0?null:d,d!==null&&(c.callback=d),o=Al(l,c,a),o!==null&&(ii(o,l,a),$s(o,l,a))}function O1(l,a){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var o=l.retryLane;l.retryLane=o!==0&&o<a?o:a}}function cm(l,a){O1(l,a),(l=l.alternate)&&O1(l,a)}var st={},C_=vt(),pi=zg(),rm=Object.assign,R_=Symbol.for("react.element"),zr=Symbol.for("react.transitional.element"),Ou=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),M1=Symbol.for("react.strict_mode"),fm=Symbol.for("react.profiler"),C1=Symbol.for("react.consumer"),Nl=Symbol.for("react.context"),hm=Symbol.for("react.forward_ref"),dm=Symbol.for("react.suspense"),mm=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),Dl=Symbol.for("react.lazy");Symbol.for("react.scope");var ym=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N_=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var R1=Symbol.iterator,D_=Symbol.for("react.client.reference"),_r=Array.isArray,W=C_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H_=t.rendererVersion,U_=t.rendererPackageName,N1=t.extraDevToolsConfig,fo=t.getPublicInstance,B_=t.getRootHostContext,w_=t.getChildHostContext,j_=t.prepareForCommit,L_=t.resetAfterCommit,q_=t.createInstance;t.cloneMutableInstance;var vm=t.appendInitialChild,D1=t.finalizeInitialChildren,Ar=t.shouldSetTextContent,H1=t.createTextInstance;t.cloneMutableTextInstance;var G_=t.scheduleTimeout,Y_=t.cancelTimeout,Da=t.noTimeout,Fn=t.isPrimaryRenderer;t.warnsIfNotActing;var Ve=t.supportsMutation,bn=t.supportsPersistence,Ze=t.supportsHydration,Q_=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var X_=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var Ae=t.setCurrentUpdatePriority,Wn=t.getCurrentUpdatePriority,V_=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var Z_=t.shouldAttemptEagerTransition,K_=t.detachDeletedInstance;t.requestPostPaintCallback;var J_=t.maySuspendCommit,F_=t.maySuspendCommitOnUpdate,pm=t.maySuspendCommitInSyncRender,U1=t.preloadInstance,W_=t.startSuspendingCommit,B1=t.suspendInstance;t.suspendOnActiveViewTransition;var P_=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var Cu=t.NotPendingTransition,Ha=t.HostTransitionContext,I_=t.resetFormInstance;t.bindToConsole;var k_=t.supportsMicrotasks,$_=t.scheduleMicrotask,ho=t.supportsTestSelectors,t3=t.findFiberRoot,e3=t.getBoundingRect,i3=t.getTextContent,mo=t.isHiddenSubtree,n3=t.matchAccessibilityRole,l3=t.setFocusIfFocusable,a3=t.setupIntersectionObserver,u3=t.appendChild,s3=t.appendChildToContainer,o3=t.commitTextUpdate,c3=t.commitMount,r3=t.commitUpdate,f3=t.insertBefore,h3=t.insertInContainerBefore,d3=t.removeChild,m3=t.removeChildFromContainer,w1=t.resetTextContent,g3=t.hideInstance,y3=t.hideTextInstance,v3=t.unhideInstance,p3=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var S3=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var b3=t.cloneInstance,j1=t.createContainerChildSet,L1=t.appendChildToContainerChildSet,E3=t.finalizeContainerChildren,q1=t.replaceContainerChildren,G1=t.cloneHiddenInstance,Y1=t.cloneHiddenTextInstance,Sm=t.isSuspenseInstancePending,bm=t.isSuspenseInstanceFallback,x3=t.getSuspenseInstanceFallbackErrorDetails,T3=t.registerSuspenseInstanceRetry,z3=t.canHydrateFormStateMarker,_3=t.isFormStateMarkerMatching,Q1=t.getNextHydratableSibling,A3=t.getNextHydratableSiblingAfterSingleton,O3=t.getFirstHydratableChild,M3=t.getFirstHydratableChildWithinContainer,C3=t.getFirstHydratableChildWithinActivityInstance,R3=t.getFirstHydratableChildWithinSuspenseInstance,N3=t.getFirstHydratableChildWithinSingleton,D3=t.canHydrateInstance,H3=t.canHydrateTextInstance,U3=t.canHydrateActivityInstance,B3=t.canHydrateSuspenseInstance,w3=t.hydrateInstance,j3=t.hydrateTextInstance,L3=t.hydrateActivityInstance,q3=t.hydrateSuspenseInstance,G3=t.getNextHydratableInstanceAfterActivityInstance,Y3=t.getNextHydratableInstanceAfterSuspenseInstance,Q3=t.commitHydratedInstance,X3=t.commitHydratedContainer,V3=t.commitHydratedActivityInstance,Z3=t.commitHydratedSuspenseInstance,K3=t.finalizeHydratedChildren,J3=t.flushHydrationEvents;t.clearActivityBoundary;var F3=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var W3=t.clearSuspenseBoundaryFromContainer,P3=t.hideDehydratedBoundary,I3=t.unhideDehydratedBoundary,X1=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var k3=t.validateHydratableInstance,$3=t.validateHydratableTextInstance,rn=t.supportsResources,V1=t.isHostHoistableType,Em=t.getHoistableRoot,Z1=t.getResource,K1=t.acquireResource,J1=t.releaseResource,tA=t.hydrateHoistable,F1=t.mountHoistable,W1=t.unmountHoistable,eA=t.createHoistableInstance,iA=t.prepareToCommitHoistables,nA=t.mayResourceSuspendCommit,P1=t.preloadResource,lA=t.suspendResource,pe=t.supportsSingletons,I1=t.resolveSingletonInstance,aA=t.acquireSingletonInstance,k1=t.releaseSingletonInstance,$1=t.isHostSingletonType,Ru=t.isSingletonScope,xm=[],Nu=-1,Du={},Si=Math.clz32?Math.clz32:A,uA=Math.log,sA=Math.LN2,Or=256,Mr=262144,Cr=4194304,Rr=pi.unstable_scheduleCallback,Tm=pi.unstable_cancelCallback,oA=pi.unstable_shouldYield,cA=pi.unstable_requestPaint,ni=pi.unstable_now,tS=pi.unstable_ImmediatePriority,rA=pi.unstable_UserBlockingPriority,zm=pi.unstable_NormalPriority,fA=pi.unstable_IdlePriority,hA=pi.log,dA=pi.unstable_setDisableYieldValue,go=null,bi=null,Ei=typeof Object.is=="function"?Object.is:qn,eS=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},mA=Object.prototype.hasOwnProperty,_m,iS,Am=!1,nS=new WeakMap,Hu=[],Uu=0,Nr=null,yo=0,Yi=[],Qi=0,Hl=null,En=1,xn="",He=S(null),vo=S(null),Ul=S(null),Dr=S(null),Ue=null,Xt=null,gt=!1,Bl=null,Xi=!1,Om=Error(n(519)),Hr=S(null),Ua=null,Pn=null,gA=typeof AbortController<"u"?AbortController:function(){var l=[],a=this.signal={aborted:!1,addEventListener:function(o,c){l.push(c)}};this.abort=function(){a.aborted=!0,l.forEach(function(o){return o()})}},yA=pi.unstable_scheduleCallback,vA=pi.unstable_NormalPriority,Vt={$$typeof:Nl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},Ur=null,Bu=null,Mm=!1,Br=!1,Cm=!1,Ba=0,po=null,Rm=0,wu=0,ju=null,lS=W.S;W.S=function(l,a){cS=ni(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&l_(l,a),lS!==null&&lS(l,a)};var wa=S(null),Lu=Error(n(460)),Nm=Error(n(474)),wr=Error(n(542)),jr={then:function(){}},ja=null,qu=null,So=0,La=Mp(!0),aS=Mp(!1),Vi=[],Gu=0,Dm=0,wl=!1,Hm=!1,Yu=S(null),Lr=S(0),xi=S(null),Zi=null,ne=S(0),In=0,at=null,Ot=null,se=null,qr=!1,Qu=!1,qa=!1,Gr=0,bo=0,Xu=null,pA=0,Eo={readContext:ee,use:sr,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt,useHostTransitionStatus:Wt,useFormState:Wt,useActionState:Wt,useOptimistic:Wt,useMemoCache:Wt,useCacheRefresh:Wt};Eo.useEffectEvent=Wt;var uS={readContext:ee,use:sr,useCallback:function(l,a){return Fe().memoizedState=[l,a===void 0?null:a],l},useContext:ee,useEffect:$p,useImperativeHandle:function(l,a,o){o=o!=null?o.concat([l]):null,cr(4194308,4,n0.bind(null,a,l),o)},useLayoutEffect:function(l,a){return cr(4194308,4,l,a)},useInsertionEffect:function(l,a){cr(4,2,l,a)},useMemo:function(l,a){var o=Fe();a=a===void 0?null:a;var c=l();if(qa){ht(!0);try{l()}finally{ht(!1)}}return o.memoizedState=[c,a],c},useReducer:function(l,a,o){var c=Fe();if(o!==void 0){var h=o(a);if(qa){ht(!0);try{o(a)}finally{ht(!1)}}}else h=a;return c.memoizedState=c.baseState=h,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:h},c.queue=l,l=l.dispatch=f_.bind(null,at,l),[c.memoizedState,l]},useRef:function(l){var a=Fe();return l={current:l},a.memoizedState=l},useState:function(l){l=Md(l);var a=l.queue,o=h0.bind(null,at,a);return a.dispatch=o,[l.memoizedState,o]},useDebugValue:Nd,useDeferredValue:function(l,a){var o=Fe();return Dd(o,l,a)},useTransition:function(){var l=Md(!1);return l=o0.bind(null,at,l.queue,!0,!1),Fe().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,o){var c=at,h=Fe();if(gt){if(o===void 0)throw Error(n(407));o=o()}else{if(o=a(),Nt===null)throw Error(n(349));dt&127||jp(c,a,o)}h.memoizedState=o;var d={value:o,getSnapshot:a};return h.queue=d,$p(qp.bind(null,c,d,l),[l]),c.flags|=2048,Tu(9,{destroy:void 0},Lp.bind(null,c,d,o,a),null),o},useId:function(){var l=Fe(),a=Nt.identifierPrefix;if(gt){var o=xn,c=En;o=(c&~(1<<32-Si(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Gr++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=pA++,a="_"+a+"r_"+o.toString(32)+"_";return l.memoizedState=a},useHostTransitionStatus:Hd,useFormState:Fp,useActionState:Fp,useOptimistic:function(l){var a=Fe();a.memoizedState=a.baseState=l;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Ud.bind(null,at,!0,o),o.dispatch=a,[l,a]},useMemoCache:_d,useCacheRefresh:function(){return Fe().memoizedState=r_.bind(null,at)},useEffectEvent:function(l){var a=Fe(),o={impl:l};return a.memoizedState=o,function(){if(ot&2)throw Error(n(440));return o.impl.apply(void 0,arguments)}}},Um={readContext:ee,use:sr,useCallback:a0,useContext:ee,useEffect:Rd,useImperativeHandle:l0,useInsertionEffect:e0,useLayoutEffect:i0,useMemo:u0,useReducer:or,useRef:kp,useState:function(){return or(Xn)},useDebugValue:Nd,useDeferredValue:function(l,a){var o=ie();return s0(o,Ot.memoizedState,l,a)},useTransition:function(){var l=or(Xn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:io(l),a]},useSyncExternalStore:wp,useId:r0,useHostTransitionStatus:Hd,useFormState:Wp,useActionState:Wp,useOptimistic:function(l,a){var o=ie();return Qp(o,Ot,l,a)},useMemoCache:_d,useCacheRefresh:f0};Um.useEffectEvent=t0;var sS={readContext:ee,use:sr,useCallback:a0,useContext:ee,useEffect:Rd,useImperativeHandle:l0,useInsertionEffect:e0,useLayoutEffect:i0,useMemo:u0,useReducer:Od,useRef:kp,useState:function(){return Od(Xn)},useDebugValue:Nd,useDeferredValue:function(l,a){var o=ie();return Ot===null?Dd(o,l,a):s0(o,Ot.memoizedState,l,a)},useTransition:function(){var l=Od(Xn)[0],a=ie().memoizedState;return[typeof l=="boolean"?l:io(l),a]},useSyncExternalStore:wp,useId:r0,useHostTransitionStatus:Hd,useFormState:Ip,useActionState:Ip,useOptimistic:function(l,a){var o=ie();return Ot!==null?Qp(o,Ot,l,a):(o.baseState=l,[l,o.queue.dispatch])},useMemoCache:_d,useCacheRefresh:f0};sS.useEffectEvent=t0;var Bm={enqueueSetState:function(l,a,o){l=l._reactInternals;var c=vi(),h=_l(c);h.payload=a,o!=null&&(h.callback=o),a=Al(l,h,c),a!==null&&(ii(a,l,c),$s(a,l,c))},enqueueReplaceState:function(l,a,o){l=l._reactInternals;var c=vi(),h=_l(c);h.tag=1,h.payload=a,o!=null&&(h.callback=o),a=Al(l,h,c),a!==null&&(ii(a,l,c),$s(a,l,c))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var o=vi(),c=_l(o);c.tag=2,a!=null&&(c.callback=a),a=Al(l,c,o),a!==null&&(ii(a,l,o),$s(a,l,o))}},wm=Error(n(461)),oe=!1,jm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},kn=!1,ce=!1,Lm=!1,oS=typeof WeakSet=="function"?WeakSet:Set,Oe=null,re=null,li=!1,fn=null,Vu=8192,SA={getCacheForType:function(l){var a=ee(Vt),o=a.data.get(l);return o===void 0&&(o=l(),a.data.set(l,o)),o},cacheSignal:function(){return ee(Vt).controller.signal}},Yr=0,Qr=1,Xr=2,Vr=3,Zr=4;if(typeof Symbol=="function"&&Symbol.for){var xo=Symbol.for;Yr=xo("selector.component"),Qr=xo("selector.has_pseudo_class"),Xr=xo("selector.role"),Vr=xo("selector.test_id"),Zr=xo("selector.text")}var bA=typeof WeakMap=="function"?WeakMap:Map,ot=0,Nt=null,ct=null,dt=0,Tt=0,Ti=null,jl=!1,Zu=!1,qm=!1,$n=0,Pt=0,Ll=0,Ga=0,Gm=0,zi=0,Ku=0,To=null,ai=null,Ym=!1,Kr=0,cS=0,zo=1/0,Jr=null,ql=null,Se=0,Gl=null,Ju=null,tl=0,Qm=0,Xm=null,rS=null,_o=0,Vm=null;return st.attemptContinuousHydration=function(l){if(l.tag===13||l.tag===31){var a=Oa(l,67108864);a!==null&&ii(a,l,67108864),cm(l,67108864)}},st.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13||l.tag===31){var a=vi();a=B(a);var o=Oa(l,a);o!==null&&ii(o,l,a),cm(l,a)}},st.attemptSynchronousHydration=function(l){switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var a=R(l.pendingLanes);if(a!==0){for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var o=1<<31-Si(a);l.entanglements[1]|=o,a&=~o}pn(l),!(ot&6)&&(zo=ni()+500,xu(0,!1))}}break;case 31:case 13:a=Oa(l,2),a!==null&&ii(a,l,2),a1(),cm(l,2)}},st.batchedUpdates=function(l,a){return l(a)},st.createComponentSelector=function(l){return{$$typeof:Yr,value:l}},st.createContainer=function(l,a,o,c,h,d,v,_,D,j){return T1(l,a,!1,null,o,c,d,null,v,_,D,j)},st.createHasPseudoClassSelector=function(l){return{$$typeof:Qr,value:l}},st.createHydrationContainer=function(l,a,o,c,h,d,v,_,D,j,V,Y,K,it){return l=T1(o,c,!0,l,h,d,_,it,D,j,V,Y),l.context=z1(null),o=l.current,c=vi(),c=B(c),h=_l(c),h.callback=a??null,Al(o,h,c),a=c,l.current.lanes=a,H(l,a),pn(l),l},st.createPortal=function(l,a,o){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ou,key:c==null?null:""+c,children:l,containerInfo:a,implementation:o}},st.createRoleSelector=function(l){return{$$typeof:Xr,value:l}},st.createTestNameSelector=function(l){return{$$typeof:Vr,value:l}},st.createTextSelector=function(l){return{$$typeof:Zr,value:l}},st.defaultOnCaughtError=function(l){console.error(l)},st.defaultOnRecoverableError=function(l){eS(l)},st.defaultOnUncaughtError=function(l){eS(l)},st.deferredUpdates=function(l){var a=W.T,o=Wn();try{return Ae(32),W.T=null,l()}finally{Ae(o),W.T=a}},st.discreteUpdates=function(l,a,o,c,h){var d=W.T,v=Wn();try{return Ae(2),W.T=null,l(a,o,c,h)}finally{Ae(v),W.T=d,ot===0&&(zo=ni()+500)}},st.findAllNodes=im,st.findBoundingRects=function(l,a){if(!ho)throw Error(n(363));a=im(l,a),l=[];for(var o=0;o<a.length;o++)l.push(e3(a[o]));for(a=l.length-1;0<a;a--){o=l[a];for(var c=o.x,h=c+o.width,d=o.y,v=d+o.height,_=a-1;0<=_;_--)if(a!==_){var D=l[_],j=D.x,V=j+D.width,Y=D.y,K=Y+D.height;if(c>=j&&d>=Y&&h<=V&&v<=K){l.splice(a,1);break}else if(c!==j||o.width!==D.width||K<d||Y>v){if(!(d!==Y||o.height!==D.height||V<c||j>h)){j>c&&(D.width+=j-c,D.x=c),V<h&&(D.width=h-j),l.splice(a,1);break}}else{Y>d&&(D.height+=Y-d,D.y=d),K<v&&(D.height=v-Y),l.splice(a,1);break}}}return l},st.findHostInstance=_1,st.findHostInstanceWithNoPortals=function(l){return l=r(l),l=l!==null?m(l):null,l===null?null:fo(l.stateNode)},st.findHostInstanceWithWarning=function(l){return _1(l)},st.flushPassiveEffects=ro,st.flushSyncFromReconciler=function(l){var a=ot;ot|=1;var o=W.T,c=Wn();try{if(Ae(2),W.T=null,l)return l()}finally{Ae(c),W.T=o,ot=a,!(ot&6)&&xu(0,!1)}},st.flushSyncWork=a1,st.focusWithin=function(l,a){if(!ho)throw Error(n(363));for(l=$d(l),a=e1(l,a),a=Array.from(a),l=0;l<a.length;){var o=a[l++],c=o.tag;if(!mo(o)){if((c===5||c===26||c===27)&&l3(o.stateNode))return!0;for(o=o.child;o!==null;)a.push(o),o=o.sibling}}return!1},st.getFindAllNodesFailureDescription=function(l,a){if(!ho)throw Error(n(363));var o=0,c=[];l=[$d(l),0];for(var h=0;h<l.length;){var d=l[h++],v=d.tag,_=l[h++],D=a[_];if((v!==5&&v!==26&&v!==27||!mo(d))&&(tm(d,D)&&(c.push(em(D)),_++,_>o&&(o=_)),_<a.length))for(d=d.child;d!==null;)l.push(d,_),d=d.sibling}if(o<a.length){for(l=[];o<a.length;o++)l.push(em(a[o]));return`findAllNodes was able to match part of the selector:
9
- `+(c.join(" > ")+`
10
-
11
- No matching component was found for:
12
- `)+l.join(" > ")}return null},st.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 27:case 5:return fo(l.child.stateNode);default:return l.child.stateNode}},st.injectIntoDevTools=function(){var l={bundleType:0,version:H_,rendererPackageName:U_,currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(N1!==null&&(l.rendererConfig=N1),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled||!a.supportsFiber)l=!0;else{try{go=a.inject(l),bi=a}catch{}l=!!a.checkDCE}}return l},st.isAlreadyRendering=function(){return(ot&6)!==0},st.observeVisibleRects=function(l,a,o,c){if(!ho)throw Error(n(363));l=im(l,a);var h=a3(l,o,c).disconnect;return{disconnect:function(){h()}}},st.shouldError=function(){return null},st.shouldSuspend=function(){return!1},st.startHostTransition=function(l,a,o,c){if(l.tag!==5)throw Error(n(476));var h=c0(l).queue;o0(l,h,a,Cu,o===null?i:function(){var d=c0(l);return d.next===null&&(d=l.alternate.memoizedState),no(l,d.next.queue,{},vi()),o(c)})},st.updateContainer=function(l,a,o,c){var h=a.current,d=vi();return A1(h,d,l,a,o,c),d},st.updateContainerSync=function(l,a,o,c){return A1(a.current,2,l,a,o,c),2},st};Go.exports.default=Go.exports;Object.defineProperty(Go.exports,"__esModule",{value:!0})});var Rb=be((M6,Cb)=>{"use strict";Cb.exports=Mb()});var Nb=be(Jl=>{"use strict";Jl.ConcurrentRoot=1;Jl.ContinuousEventPriority=8;Jl.DefaultEventPriority=32;Jl.DiscreteEventPriority=2;Jl.IdleEventPriority=268435456;Jl.LegacyRoot=0;Jl.NoEventPriority=0});var Hb=be((R6,Db)=>{"use strict";Db.exports=Nb()});var e2=be($e=>{"use strict";var T4=vt();function t2(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Wl(){}var ke={d:{f:Wl,r:function(){throw Error(t2(522))},D:Wl,C:Wl,L:Wl,m:Wl,X:Wl,S:Wl,M:Wl},p:0,findDOMNode:null},z4=Symbol.for("react.portal");function _4(t,e,i){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z4,key:n==null?null:""+n,children:t,containerInfo:e,implementation:i}}var Wo=T4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _f(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}$e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ke;$e.createPortal=function(t,e){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(t2(299));return _4(t,e,null,i)};$e.flushSync=function(t){var e=Wo.T,i=ke.p;try{if(Wo.T=null,ke.p=2,t)return t()}finally{Wo.T=e,ke.p=i,ke.d.f()}};$e.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ke.d.C(t,e))};$e.prefetchDNS=function(t){typeof t=="string"&&ke.d.D(t)};$e.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var i=e.as,n=_f(i,e.crossOrigin),u=typeof e.integrity=="string"?e.integrity:void 0,s=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;i==="style"?ke.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:u,fetchPriority:s}):i==="script"&&ke.d.X(t,{crossOrigin:n,integrity:u,fetchPriority:s,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};$e.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var i=_f(e.as,e.crossOrigin);ke.d.M(t,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&ke.d.M(t)};$e.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var i=e.as,n=_f(i,e.crossOrigin);ke.d.L(t,i,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};$e.preloadModule=function(t,e){if(typeof t=="string")if(e){var i=_f(e.as,e.crossOrigin);ke.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else ke.d.m(t)};$e.requestFormReset=function(t){ke.d.r(t)};$e.unstable_batchedUpdates=function(t,e){return t(e)};$e.useFormState=function(t,e,i){return Wo.H.useFormState(t,e,i)};$e.useFormStatus=function(){return Wo.H.useHostTransitionStatus()};$e.version="19.2.0"});var Dg=be((FD,n2)=>{"use strict";function i2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i2)}catch(t){console.error(t)}}i2(),n2.exports=e2()});var gz=be(Ph=>{"use strict";var Te=zg(),CE=vt(),A4=Dg();function U(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function RE(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Bc(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function NE(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function DE(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function l2(t){if(Bc(t)!==t)throw Error(U(188))}function O4(t){var e=t.alternate;if(!e){if(e=Bc(t),e===null)throw Error(U(188));return e!==t?null:t}for(var i=t,n=e;;){var u=i.return;if(u===null)break;var s=u.alternate;if(s===null){if(n=u.return,n!==null){i=n;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===i)return l2(u),t;if(s===n)return l2(u),e;s=s.sibling}throw Error(U(188))}if(i.return!==n.return)i=u,n=s;else{for(var r=!1,f=u.child;f;){if(f===i){r=!0,i=u,n=s;break}if(f===n){r=!0,n=u,i=s;break}f=f.sibling}if(!r){for(f=s.child;f;){if(f===i){r=!0,i=s,n=u;break}if(f===n){r=!0,n=s,i=u;break}f=f.sibling}if(!r)throw Error(U(189))}}if(i.alternate!==n)throw Error(U(190))}if(i.tag!==3)throw Error(U(188));return i.stateNode.current===i?t:e}function HE(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=HE(t),e!==null)return e;t=t.sibling}return null}var Gt=Object.assign,M4=Symbol.for("react.element"),Af=Symbol.for("react.transitional.element"),nc=Symbol.for("react.portal"),hs=Symbol.for("react.fragment"),UE=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),BE=Symbol.for("react.consumer"),fl=Symbol.for("react.context"),sv=Symbol.for("react.forward_ref"),dy=Symbol.for("react.suspense"),my=Symbol.for("react.suspense_list"),ov=Symbol.for("react.memo"),Pl=Symbol.for("react.lazy");Symbol.for("react.scope");var gy=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var C4=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var a2=Symbol.iterator;function Po(t){return t===null||typeof t!="object"?null:(t=a2&&t[a2]||t["@@iterator"],typeof t=="function"?t:null)}var R4=Symbol.for("react.client.reference");function yy(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===R4?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case hs:return"Fragment";case hy:return"Profiler";case UE:return"StrictMode";case dy:return"Suspense";case my:return"SuspenseList";case gy:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case nc:return"Portal";case fl:return t.displayName||"Context";case BE:return(t._context.displayName||"Context")+".Consumer";case sv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ov:return e=t.displayName||null,e!==null?e:yy(t.type)||"Memo";case Pl:e=t._payload,t=t._init;try{return yy(t(e))}catch{}}return null}var lc=Array.isArray,tt=CE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xt=A4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,iu={pending:!1,data:null,method:null,action:null},vy=[],ds=-1;function Bn(t){return{current:t}}function Ne(t){0>ds||(t.current=vy[ds],vy[ds]=null,ds--)}function Ht(t,e){ds++,vy[ds]=t.current,t.current=e}var Un=Bn(null),Ec=Bn(null),sa=Bn(null),ah=Bn(null);function uh(t,e){switch(Ht(sa,e),Ht(Ec,t),Ht(Un,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?hE(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=hE(e),t=ez(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ne(Un),Ht(Un,t)}function Ns(){Ne(Un),Ne(Ec),Ne(sa)}function py(t){t.memoizedState!==null&&Ht(ah,t);var e=Un.current,i=ez(e,t.type);e!==i&&(Ht(Ec,t),Ht(Un,i))}function sh(t){Ec.current===t&&(Ne(Un),Ne(Ec)),ah.current===t&&(Ne(ah),Dc._currentValue=iu)}var Hg,u2;function ka(t){if(Hg===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Hg=e&&e[1]||"",u2=-1<i.stack.indexOf(`
13
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
14
- `+Hg+t+u2}var Ug=!1;function Bg(t,e){if(!t||Ug)return"";Ug=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(x){var p=x}Reflect.construct(t,[],S)}else{try{S.call()}catch(x){p=x}t.call(S.prototype)}}else{try{throw Error()}catch(x){p=x}(S=t())&&typeof S.catch=="function"&&S.catch(function(){})}}catch(x){if(x&&p&&typeof x.stack=="string")return[x.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),r=s[0],f=s[1];if(r&&f){var m=r.split(`
15
- `),y=f.split(`
16
- `);for(u=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;u<y.length&&!y[u].includes("DetermineComponentFrameRoot");)u++;if(n===m.length||u===y.length)for(n=m.length-1,u=y.length-1;1<=n&&0<=u&&m[n]!==y[u];)u--;for(;1<=n&&0<=u;n--,u--)if(m[n]!==y[u]){if(n!==1||u!==1)do if(n--,u--,0>u||m[n]!==y[u]){var g=`
17
- `+m[n].replace(" at new "," at ");return t.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",t.displayName)),g}while(1<=n&&0<=u);break}}}finally{Ug=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?ka(i):""}function N4(t,e){switch(t.tag){case 26:case 27:case 5:return ka(t.type);case 16:return ka("Lazy");case 13:return t.child!==e&&e!==null?ka("Suspense Fallback"):ka("Suspense");case 19:return ka("SuspenseList");case 0:case 15:return Bg(t.type,!1);case 11:return Bg(t.type.render,!1);case 1:return Bg(t.type,!0);case 31:return ka("Activity");default:return""}}function s2(t){try{var e="",i=null;do e+=N4(t,i),i=t,t=t.return;while(t);return e}catch(n){return`
18
- Error generating stack: `+n.message+`
19
- `+n.stack}}var Sy=Object.prototype.hasOwnProperty,cv=Te.unstable_scheduleCallback,wg=Te.unstable_cancelCallback,D4=Te.unstable_shouldYield,H4=Te.unstable_requestPaint,Hi=Te.unstable_now,U4=Te.unstable_getCurrentPriorityLevel,wE=Te.unstable_ImmediatePriority,jE=Te.unstable_UserBlockingPriority,oh=Te.unstable_NormalPriority,B4=Te.unstable_LowPriority,LE=Te.unstable_IdlePriority,w4=Te.log,j4=Te.unstable_setDisableYieldValue,wc=null,Ui=null;function ia(t){if(typeof w4=="function"&&j4(t),Ui&&typeof Ui.setStrictMode=="function")try{Ui.setStrictMode(wc,t)}catch{}}var Bi=Math.clz32?Math.clz32:G4,L4=Math.log,q4=Math.LN2;function G4(t){return t>>>=0,t===0?32:31-(L4(t)/q4|0)|0}var Of=256,Mf=262144,Cf=4194304;function $a(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Uh(t,e,i){var n=t.pendingLanes;if(n===0)return 0;var u=0,s=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var f=n&134217727;return f!==0?(n=f&~s,n!==0?u=$a(n):(r&=f,r!==0?u=$a(r):i||(i=f&~t,i!==0&&(u=$a(i))))):(f=n&~s,f!==0?u=$a(f):r!==0?u=$a(r):i||(i=n&~t,i!==0&&(u=$a(i)))),u===0?0:e!==0&&e!==u&&!(e&s)&&(s=u&-u,i=e&-e,s>=i||s===32&&(i&4194048)!==0)?e:u}function jc(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Y4(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qE(){var t=Cf;return Cf<<=1,!(Cf&62914560)&&(Cf=4194304),t}function jg(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function Lc(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Q4(t,e,i,n,u,s){var r=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,y=t.hiddenUpdates;for(i=r&~i;0<i;){var g=31-Bi(i),S=1<<g;f[g]=0,m[g]=-1;var p=y[g];if(p!==null)for(y[g]=null,g=0;g<p.length;g++){var x=p[g];x!==null&&(x.lane&=-536870913)}i&=~S}n!==0&&GE(t,n,0),s!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=s&~(r&~e))}function GE(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Bi(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|i&261930}function YE(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var n=31-Bi(i),u=1<<n;u&e|t[n]&e&&(t[n]|=e),i&=~u}}function QE(t,e){var i=e&-e;return i=i&42?1:rv(i),i&(t.suspendedLanes|e)?0:i}function rv(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function fv(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function XE(){var t=xt.p;return t!==0?t:(t=window.event,t===void 0?32:hz(t.type))}function o2(t,e){var i=xt.p;try{return xt.p=t,e()}finally{xt.p=i}}var ba=Math.random().toString(36).slice(2),Le="__reactFiber$"+ba,di="__reactProps$"+ba,Qs="__reactContainer$"+ba,by="__reactEvents$"+ba,X4="__reactListeners$"+ba,V4="__reactHandles$"+ba,c2="__reactResources$"+ba,qc="__reactMarker$"+ba;function hv(t){delete t[Le],delete t[di],delete t[by],delete t[X4],delete t[V4]}function ms(t){var e=t[Le];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Qs]||i[Le]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=vE(t);t!==null;){if(i=t[Le])return i;t=vE(t)}return e}t=i,i=t.parentNode}return null}function Xs(t){if(t=t[Le]||t[Qs]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ac(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(U(33))}function zs(t){var e=t[c2];return e||(e=t[c2]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Re(t){t[qc]=!0}var VE=new Set,ZE={};function hu(t,e){Ds(t,e),Ds(t+"Capture",e)}function Ds(t,e){for(ZE[t]=e,t=0;t<e.length;t++)VE.add(e[t])}var Z4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),r2={},f2={};function K4(t){return Sy.call(f2,t)?!0:Sy.call(r2,t)?!1:Z4.test(t)?f2[t]=!0:(r2[t]=!0,!1)}function Vf(t,e,i){if(K4(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function Rf(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function ll(t,e,i,n){if(n===null)t.removeAttribute(i);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+n)}}function Ii(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function KE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function J4(t,e,i){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(r){i=""+r,s.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(r){i=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ey(t){if(!t._valueTracker){var e=KE(t)?"checked":"value";t._valueTracker=J4(t,e,""+t[e])}}function JE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),n="";return t&&(n=KE(t)?t.checked?"true":"false":t.value),t=n,t!==i?(e.setValue(t),!0):!1}function ch(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var F4=/[\n"\\]/g;function tn(t){return t.replace(F4,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xy(t,e,i,n,u,s,r,f){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ii(e)):t.value!==""+Ii(e)&&(t.value=""+Ii(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Ty(t,r,Ii(e)):i!=null?Ty(t,r,Ii(i)):n!=null&&t.removeAttribute("value"),u==null&&s!=null&&(t.defaultChecked=!!s),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+Ii(f):t.removeAttribute("name")}function FE(t,e,i,n,u,s,r,f){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||i!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Ey(t);return}i=i!=null?""+Ii(i):"",e=e!=null?""+Ii(e):i,f||e===t.value||(t.value=e),t.defaultValue=e}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=f?t.checked:!!n,t.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r),Ey(t)}function Ty(t,e,i){e==="number"&&ch(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function _s(t,e,i,n){if(t=t.options,e){e={};for(var u=0;u<i.length;u++)e["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=e.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&n&&(t[i].defaultSelected=!0)}else{for(i=""+Ii(i),e=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,n&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function WE(t,e,i){if(e!=null&&(e=""+Ii(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ii(i):""}function PE(t,e,i,n){if(e==null){if(n!=null){if(i!=null)throw Error(U(92));if(lc(n)){if(1<n.length)throw Error(U(93));n=n[0]}i=n}i==null&&(i=""),e=i}i=Ii(e),t.defaultValue=i,n=t.textContent,n===i&&n!==""&&n!==null&&(t.value=n),Ey(t)}function Hs(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var W4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function h2(t,e,i){var n=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,i):typeof i!="number"||i===0||W4.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function IE(t,e,i){if(e!=null&&typeof e!="object")throw Error(U(62));if(t=t.style,i!=null){for(var n in i)!i.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var u in e)n=e[u],e.hasOwnProperty(u)&&i[u]!==n&&h2(t,u,n)}else for(var s in e)e.hasOwnProperty(s)&&h2(t,s,e[s])}function dv(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),I4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zf(t){return I4.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hl(){}var zy=null;function mv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gs=null,As=null;function d2(t){var e=Xs(t);if(e&&(t=e.stateNode)){var i=t[di]||null;t:switch(t=e.stateNode,e.type){case"input":if(xy(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+tn(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var n=i[e];if(n!==t&&n.form===t.form){var u=n[di]||null;if(!u)throw Error(U(90));xy(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<i.length;e++)n=i[e],n.form===t.form&&JE(n)}break t;case"textarea":WE(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&_s(t,!!i.multiple,e,!1)}}}var Lg=!1;function kE(t,e,i){if(Lg)return t(e,i);Lg=!0;try{var n=t(e);return n}finally{if(Lg=!1,(gs!==null||As!==null)&&(Kh(),gs&&(e=gs,t=As,As=gs=null,d2(e),t)))for(e=0;e<t.length;e++)d2(t[e])}}function xc(t,e){var i=t.stateNode;if(i===null)return null;var n=i[di]||null;if(n===null)return null;i=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(U(231,e,typeof i));return i}var vl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_y=!1;if(vl)try{ss={},Object.defineProperty(ss,"passive",{get:function(){_y=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{_y=!1}var ss,na=null,gv=null,Kf=null;function $E(){if(Kf)return Kf;var t,e=gv,i=e.length,n,u="value"in na?na.value:na.textContent,s=u.length;for(t=0;t<i&&e[t]===u[t];t++);var r=i-t;for(n=1;n<=r&&e[i-n]===u[s-n];n++);return Kf=u.slice(t,1<n?1-n:void 0)}function Jf(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Nf(){return!0}function m2(){return!1}function mi(t){function e(i,n,u,s,r){this._reactName=i,this._targetInst=u,this.type=n,this.nativeEvent=s,this.target=r,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(i=t[f],this[f]=i?i(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Nf:m2,this.isPropagationStopped=m2,this}return Gt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),e}var du={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bh=mi(du),Gc=Gt({},du,{view:0,detail:0}),k4=mi(Gc),qg,Gg,Io,wh=Gt({},Gc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yv,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Io&&(Io&&t.type==="mousemove"?(qg=t.screenX-Io.screenX,Gg=t.screenY-Io.screenY):Gg=qg=0,Io=t),qg)},movementY:function(t){return"movementY"in t?t.movementY:Gg}}),g2=mi(wh),$4=Gt({},wh,{dataTransfer:0}),tO=mi($4),eO=Gt({},Gc,{relatedTarget:0}),Yg=mi(eO),iO=Gt({},du,{animationName:0,elapsedTime:0,pseudoElement:0}),nO=mi(iO),lO=Gt({},du,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),aO=mi(lO),uO=Gt({},du,{data:0}),y2=mi(uO),sO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rO(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cO[t])?!!e[t]:!1}function yv(){return rO}var fO=Gt({},Gc,{key:function(t){if(t.key){var e=sO[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Jf(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oO[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yv,charCode:function(t){return t.type==="keypress"?Jf(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Jf(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),hO=mi(fO),dO=Gt({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v2=mi(dO),mO=Gt({},Gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yv}),gO=mi(mO),yO=Gt({},du,{propertyName:0,elapsedTime:0,pseudoElement:0}),vO=mi(yO),pO=Gt({},wh,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),SO=mi(pO),bO=Gt({},du,{newState:0,oldState:0}),EO=mi(bO),xO=[9,13,27,32],vv=vl&&"CompositionEvent"in window,oc=null;vl&&"documentMode"in document&&(oc=document.documentMode);var TO=vl&&"TextEvent"in window&&!oc,tx=vl&&(!vv||oc&&8<oc&&11>=oc),p2=" ",S2=!1;function ex(t,e){switch(t){case"keyup":return xO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ix(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ys=!1;function zO(t,e){switch(t){case"compositionend":return ix(e);case"keypress":return e.which!==32?null:(S2=!0,p2);case"textInput":return t=e.data,t===p2&&S2?null:t;default:return null}}function _O(t,e){if(ys)return t==="compositionend"||!vv&&ex(t,e)?(t=$E(),Kf=gv=na=null,ys=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tx&&e.locale!=="ko"?null:e.data;default:return null}}var AO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function b2(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!AO[t.type]:e==="textarea"}function nx(t,e,i,n){gs?As?As.push(n):As=[n]:gs=n,e=Oh(e,"onChange"),0<e.length&&(i=new Bh("onChange","change",null,i,n),t.push({event:i,listeners:e}))}var cc=null,Tc=null;function OO(t){kT(t,0)}function jh(t){var e=ac(t);if(JE(e))return t}function E2(t,e){if(t==="change")return e}var lx=!1;vl&&(vl?(Hf="oninput"in document,Hf||(Qg=document.createElement("div"),Qg.setAttribute("oninput","return;"),Hf=typeof Qg.oninput=="function"),Df=Hf):Df=!1,lx=Df&&(!document.documentMode||9<document.documentMode));var Df,Hf,Qg;function x2(){cc&&(cc.detachEvent("onpropertychange",ax),Tc=cc=null)}function ax(t){if(t.propertyName==="value"&&jh(Tc)){var e=[];nx(e,Tc,t,mv(t)),kE(OO,e)}}function MO(t,e,i){t==="focusin"?(x2(),cc=e,Tc=i,cc.attachEvent("onpropertychange",ax)):t==="focusout"&&x2()}function CO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jh(Tc)}function RO(t,e){if(t==="click")return jh(e)}function NO(t,e){if(t==="input"||t==="change")return jh(e)}function DO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ji=typeof Object.is=="function"?Object.is:DO;function zc(t,e){if(ji(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(n=0;n<i.length;n++){var u=i[n];if(!Sy.call(e,u)||!ji(t[u],e[u]))return!1}return!0}function T2(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function z2(t,e){var i=T2(t);t=0;for(var n;i;){if(i.nodeType===3){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=T2(i)}}function ux(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ux(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function sx(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ch(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=ch(t.document)}return e}function pv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var HO=vl&&"documentMode"in document&&11>=document.documentMode,vs=null,Ay=null,rc=null,Oy=!1;function _2(t,e,i){var n=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Oy||vs==null||vs!==ch(n)||(n=vs,"selectionStart"in n&&pv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),rc&&zc(rc,n)||(rc=n,n=Oh(Ay,"onSelect"),0<n.length&&(e=new Bh("onSelect","select",null,e,i),t.push({event:e,listeners:n}),e.target=vs)))}function Ia(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ps={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},Xg={},ox={};vl&&(ox=document.createElement("div").style,"AnimationEvent"in window||(delete ps.animationend.animation,delete ps.animationiteration.animation,delete ps.animationstart.animation),"TransitionEvent"in window||delete ps.transitionend.transition);function mu(t){if(Xg[t])return Xg[t];if(!ps[t])return t;var e=ps[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in ox)return Xg[t]=e[i];return t}var cx=mu("animationend"),rx=mu("animationiteration"),fx=mu("animationstart"),UO=mu("transitionrun"),BO=mu("transitionstart"),wO=mu("transitioncancel"),hx=mu("transitionend"),dx=new Map,My="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");My.push("scrollEnd");function vn(t,e){dx.set(t,e),hu(e,[t])}var rh=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Pi=[],Ss=0,Sv=0;function Lh(){for(var t=Ss,e=Sv=Ss=0;e<t;){var i=Pi[e];Pi[e++]=null;var n=Pi[e];Pi[e++]=null;var u=Pi[e];Pi[e++]=null;var s=Pi[e];if(Pi[e++]=null,n!==null&&u!==null){var r=n.pending;r===null?u.next=u:(u.next=r.next,r.next=u),n.pending=u}s!==0&&mx(i,u,s)}}function qh(t,e,i,n){Pi[Ss++]=t,Pi[Ss++]=e,Pi[Ss++]=i,Pi[Ss++]=n,Sv|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function bv(t,e,i,n){return qh(t,e,i,n),fh(t)}function gu(t,e){return qh(t,null,null,e),fh(t)}function mx(t,e,i){t.lanes|=i;var n=t.alternate;n!==null&&(n.lanes|=i);for(var u=!1,s=t.return;s!==null;)s.childLanes|=i,n=s.alternate,n!==null&&(n.childLanes|=i),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(u=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,u&&e!==null&&(u=31-Bi(i),t=s.hiddenUpdates,n=t[u],n===null?t[u]=[e]:n.push(e),e.lane=i|536870912),s):null}function fh(t){if(50<Sc)throw Sc=0,Wy=null,Error(U(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var bs={};function jO(t,e,i,n){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(t,e,i,n){return new jO(t,e,i,n)}function Ev(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ml(t,e){var i=t.alternate;return i===null?(i=Ni(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function gx(t,e){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ff(t,e,i,n,u,s){var r=0;if(n=t,typeof t=="function")Ev(t)&&(r=1);else if(typeof t=="string")r=GM(t,i,Un.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gy:return t=Ni(31,i,e,u),t.elementType=gy,t.lanes=s,t;case hs:return nu(i.children,u,s,e);case UE:r=8,u|=24;break;case hy:return t=Ni(12,i,e,u|2),t.elementType=hy,t.lanes=s,t;case dy:return t=Ni(13,i,e,u),t.elementType=dy,t.lanes=s,t;case my:return t=Ni(19,i,e,u),t.elementType=my,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case fl:r=10;break t;case BE:r=9;break t;case sv:r=11;break t;case ov:r=14;break t;case Pl:r=16,n=null;break t}r=29,i=Error(U(130,t===null?"null":typeof t,"")),n=null}return e=Ni(r,i,e,u),e.elementType=t,e.type=n,e.lanes=s,e}function nu(t,e,i,n){return t=Ni(7,t,n,e),t.lanes=i,t}function Vg(t,e,i){return t=Ni(6,t,null,e),t.lanes=i,t}function yx(t){var e=Ni(18,null,null,0);return e.stateNode=t,e}function Zg(t,e,i){return e=Ni(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var A2=new WeakMap;function en(t,e){if(typeof t=="object"&&t!==null){var i=A2.get(t);return i!==void 0?i:(e={value:t,source:e,stack:s2(e)},A2.set(t,e),e)}return{value:t,source:e,stack:s2(e)}}var Es=[],xs=0,hh=null,_c=0,ki=[],$i=0,ya=null,Nn=1,Dn="";function cl(t,e){Es[xs++]=_c,Es[xs++]=hh,hh=t,_c=e}function vx(t,e,i){ki[$i++]=Nn,ki[$i++]=Dn,ki[$i++]=ya,ya=t;var n=Nn;t=Dn;var u=32-Bi(n)-1;n&=~(1<<u),i+=1;var s=32-Bi(e)+u;if(30<s){var r=u-u%5;s=(n&(1<<r)-1).toString(32),n>>=r,u-=r,Nn=1<<32-Bi(e)+u|i<<u|n,Dn=s+t}else Nn=1<<s|i<<u|n,Dn=t}function xv(t){t.return!==null&&(cl(t,1),vx(t,1,0))}function Tv(t){for(;t===hh;)hh=Es[--xs],Es[xs]=null,_c=Es[--xs],Es[xs]=null;for(;t===ya;)ya=ki[--$i],ki[$i]=null,Dn=ki[--$i],ki[$i]=null,Nn=ki[--$i],ki[$i]=null}function px(t,e){ki[$i++]=Nn,ki[$i++]=Dn,ki[$i++]=ya,Nn=e.id,Dn=e.overflow,ya=t}var qe=null,qt=null,yt=!1,oa=null,nn=!1,Cy=Error(U(519));function va(t){var e=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ac(en(e,t)),Cy}function O2(t){var e=t.stateNode,i=t.type,n=t.memoizedProps;switch(e[Le]=t,e[di]=n,i){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(i=0;i<Rc.length;i++)rt(Rc[i],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),FE(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),PE(e,n.value,n.defaultValue,n.children)}i=n.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||n.suppressHydrationWarning===!0||tz(e.textContent,i)?(n.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),n.onScroll!=null&&rt("scroll",e),n.onScrollEnd!=null&&rt("scrollend",e),n.onClick!=null&&(e.onclick=hl),e=!0):e=!1,e||va(t,!0)}function M2(t){for(qe=t.return;qe;)switch(qe.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:qe=qe.return}}function os(t){if(t!==qe)return!1;if(!yt)return M2(t),yt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||tv(t.type,t.memoizedProps)),i=!i),i&&qt&&va(t),M2(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));qt=yE(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));qt=yE(t)}else e===27?(e=qt,Ea(t.type)?(t=lv,lv=null,qt=t):qt=e):qt=qe?an(t.stateNode.nextSibling):null;return!0}function su(){qt=qe=null,yt=!1}function Kg(){var t=oa;return t!==null&&(fi===null?fi=t:fi.push.apply(fi,t),oa=null),t}function Ac(t){oa===null?oa=[t]:oa.push(t)}var Ry=Bn(null),yu=null,dl=null;function kl(t,e,i){Ht(Ry,e._currentValue),e._currentValue=i}function gl(t){t._currentValue=Ry.current,Ne(Ry)}function Ny(t,e,i){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===i)break;t=t.return}}function Dy(t,e,i,n){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var s=u.dependencies;if(s!==null){var r=u.child;s=s.firstContext;t:for(;s!==null;){var f=s;s=u;for(var m=0;m<e.length;m++)if(f.context===e[m]){s.lanes|=i,f=s.alternate,f!==null&&(f.lanes|=i),Ny(s.return,i,t),n||(r=null);break t}s=f.next}}else if(u.tag===18){if(r=u.return,r===null)throw Error(U(341));r.lanes|=i,s=r.alternate,s!==null&&(s.lanes|=i),Ny(r,i,t),r=null}else r=u.child;if(r!==null)r.return=u;else for(r=u;r!==null;){if(r===t){r=null;break}if(u=r.sibling,u!==null){u.return=r.return,r=u;break}r=r.return}u=r}}function Vs(t,e,i,n){t=null;for(var u=e,s=!1;u!==null;){if(!s){if(u.flags&524288)s=!0;else if(u.flags&262144)break}if(u.tag===10){var r=u.alternate;if(r===null)throw Error(U(387));if(r=r.memoizedProps,r!==null){var f=u.type;ji(u.pendingProps.value,r.value)||(t!==null?t.push(f):t=[f])}}else if(u===ah.current){if(r=u.alternate,r===null)throw Error(U(387));r.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Dc):t=[Dc])}u=u.return}t!==null&&Dy(e,t,i,n),e.flags|=262144}function dh(t){for(t=t.firstContext;t!==null;){if(!ji(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ou(t){yu=t,dl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ge(t){return Sx(yu,t)}function Uf(t,e){return yu===null&&ou(t),Sx(t,e)}function Sx(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},dl===null){if(t===null)throw Error(U(308));dl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dl=dl.next=e;return i}var LO=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},qO=Te.unstable_scheduleCallback,GO=Te.unstable_NormalPriority,de={$$typeof:fl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zv(){return{controller:new LO,data:new Map,refCount:0}}function Yc(t){t.refCount--,t.refCount===0&&qO(GO,function(){t.controller.abort()})}var fc=null,Hy=0,Us=0,Os=null;function YO(t,e){if(fc===null){var i=fc=[];Hy=0,Us=Wv(),Os={status:"pending",value:void 0,then:function(n){i.push(n)}}}return Hy++,e.then(C2,C2),e}function C2(){if(--Hy===0&&fc!==null){Os!==null&&(Os.status="fulfilled");var t=fc;fc=null,Us=0,Os=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function QO(t,e){var i=[],n={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var u=0;u<i.length;u++)(0,i[u])(e)},function(u){for(n.status="rejected",n.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),n}var R2=tt.S;tt.S=function(t,e){HT=Hi(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&YO(t,e),R2!==null&&R2(t,e)};var lu=Bn(null);function _v(){var t=lu.current;return t!==null?t:Dt.pooledCache}function Wf(t,e){e===null?Ht(lu,lu.current):Ht(lu,e.pool)}function bx(){var t=_v();return t===null?null:{parent:de._currentValue,pool:t}}var Zs=Error(U(460)),Av=Error(U(474)),Gh=Error(U(542)),mh={then:function(){}};function N2(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ex(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(hl,hl),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,H2(t),t;default:if(typeof e.status=="string")e.then(hl,hl);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(U(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=n}},function(n){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,H2(t),t}throw au=e,Zs}}function tu(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(au=i,Zs):i}}var au=null;function D2(){if(au===null)throw Error(U(459));var t=au;return au=null,t}function H2(t){if(t===Zs||t===Gh)throw Error(U(483))}var Ms=null,Oc=0;function Bf(t){var e=Oc;return Oc+=1,Ms===null&&(Ms=[]),Ex(Ms,t,e)}function ko(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function wf(t,e){throw e.$$typeof===M4?Error(U(525)):(t=Object.prototype.toString.call(e),Error(U(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function xx(t){function e(T,E){if(t){var z=T.deletions;z===null?(T.deletions=[E],T.flags|=16):z.push(E)}}function i(T,E){if(!t)return null;for(;E!==null;)e(T,E),E=E.sibling;return null}function n(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function u(T,E){return T=ml(T,E),T.index=0,T.sibling=null,T}function s(T,E,z){return T.index=z,t?(z=T.alternate,z!==null?(z=z.index,z<E?(T.flags|=67108866,E):z):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function r(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function f(T,E,z,O){return E===null||E.tag!==6?(E=Vg(z,T.mode,O),E.return=T,E):(E=u(E,z),E.return=T,E)}function m(T,E,z,O){var H=z.type;return H===hs?g(T,E,z.props.children,O,z.key):E!==null&&(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Pl&&tu(H)===E.type)?(E=u(E,z.props),ko(E,z),E.return=T,E):(E=Ff(z.type,z.key,z.props,null,T.mode,O),ko(E,z),E.return=T,E)}function y(T,E,z,O){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=Zg(z,T.mode,O),E.return=T,E):(E=u(E,z.children||[]),E.return=T,E)}function g(T,E,z,O,H){return E===null||E.tag!==7?(E=nu(z,T.mode,O,H),E.return=T,E):(E=u(E,z),E.return=T,E)}function S(T,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Vg(""+E,T.mode,z),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Af:return z=Ff(E.type,E.key,E.props,null,T.mode,z),ko(z,E),z.return=T,z;case nc:return E=Zg(E,T.mode,z),E.return=T,E;case Pl:return E=tu(E),S(T,E,z)}if(lc(E)||Po(E))return E=nu(E,T.mode,z,null),E.return=T,E;if(typeof E.then=="function")return S(T,Bf(E),z);if(E.$$typeof===fl)return S(T,Uf(T,E),z);wf(T,E)}return null}function p(T,E,z,O){var H=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return H!==null?null:f(T,E,""+z,O);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case Af:return z.key===H?m(T,E,z,O):null;case nc:return z.key===H?y(T,E,z,O):null;case Pl:return z=tu(z),p(T,E,z,O)}if(lc(z)||Po(z))return H!==null?null:g(T,E,z,O,null);if(typeof z.then=="function")return p(T,E,Bf(z),O);if(z.$$typeof===fl)return p(T,E,Uf(T,z),O);wf(T,z)}return null}function x(T,E,z,O,H){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return T=T.get(z)||null,f(E,T,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Af:return T=T.get(O.key===null?z:O.key)||null,m(E,T,O,H);case nc:return T=T.get(O.key===null?z:O.key)||null,y(E,T,O,H);case Pl:return O=tu(O),x(T,E,z,O,H)}if(lc(O)||Po(O))return T=T.get(z)||null,g(E,T,O,H,null);if(typeof O.then=="function")return x(T,E,z,Bf(O),H);if(O.$$typeof===fl)return x(T,E,z,Uf(E,O),H);wf(E,O)}return null}function A(T,E,z,O){for(var H=null,q=null,L=E,G=E=0,J=null;L!==null&&G<z.length;G++){L.index>G?(J=L,L=null):J=L.sibling;var B=p(T,L,z[G],O);if(B===null){L===null&&(L=J);break}t&&L&&B.alternate===null&&e(T,L),E=s(B,E,G),q===null?H=B:q.sibling=B,q=B,L=J}if(G===z.length)return i(T,L),yt&&cl(T,G),H;if(L===null){for(;G<z.length;G++)L=S(T,z[G],O),L!==null&&(E=s(L,E,G),q===null?H=L:q.sibling=L,q=L);return yt&&cl(T,G),H}for(L=n(L);G<z.length;G++)J=x(L,T,G,z[G],O),J!==null&&(t&&J.alternate!==null&&L.delete(J.key===null?G:J.key),E=s(J,E,G),q===null?H=J:q.sibling=J,q=J);return t&&L.forEach(function(I){return e(T,I)}),yt&&cl(T,G),H}function R(T,E,z,O){if(z==null)throw Error(U(151));for(var H=null,q=null,L=E,G=E=0,J=null,B=z.next();L!==null&&!B.done;G++,B=z.next()){L.index>G?(J=L,L=null):J=L.sibling;var I=p(T,L,B.value,O);if(I===null){L===null&&(L=J);break}t&&L&&I.alternate===null&&e(T,L),E=s(I,E,G),q===null?H=I:q.sibling=I,q=I,L=J}if(B.done)return i(T,L),yt&&cl(T,G),H;if(L===null){for(;!B.done;G++,B=z.next())B=S(T,B.value,O),B!==null&&(E=s(B,E,G),q===null?H=B:q.sibling=B,q=B);return yt&&cl(T,G),H}for(L=n(L);!B.done;G++,B=z.next())B=x(L,T,G,B.value,O),B!==null&&(t&&B.alternate!==null&&L.delete(B.key===null?G:B.key),E=s(B,E,G),q===null?H=B:q.sibling=B,q=B);return t&&L.forEach(function(ht){return e(T,ht)}),yt&&cl(T,G),H}function w(T,E,z,O){if(typeof z=="object"&&z!==null&&z.type===hs&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case Af:t:{for(var H=z.key;E!==null;){if(E.key===H){if(H=z.type,H===hs){if(E.tag===7){i(T,E.sibling),O=u(E,z.props.children),O.return=T,T=O;break t}}else if(E.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===Pl&&tu(H)===E.type){i(T,E.sibling),O=u(E,z.props),ko(O,z),O.return=T,T=O;break t}i(T,E);break}else e(T,E);E=E.sibling}z.type===hs?(O=nu(z.props.children,T.mode,O,z.key),O.return=T,T=O):(O=Ff(z.type,z.key,z.props,null,T.mode,O),ko(O,z),O.return=T,T=O)}return r(T);case nc:t:{for(H=z.key;E!==null;){if(E.key===H)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){i(T,E.sibling),O=u(E,z.children||[]),O.return=T,T=O;break t}else{i(T,E);break}else e(T,E);E=E.sibling}O=Zg(z,T.mode,O),O.return=T,T=O}return r(T);case Pl:return z=tu(z),w(T,E,z,O)}if(lc(z))return A(T,E,z,O);if(Po(z)){if(H=Po(z),typeof H!="function")throw Error(U(150));return z=H.call(z),R(T,E,z,O)}if(typeof z.then=="function")return w(T,E,Bf(z),O);if(z.$$typeof===fl)return w(T,E,Uf(T,z),O);wf(T,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(i(T,E.sibling),O=u(E,z),O.return=T,T=O):(i(T,E),O=Vg(z,T.mode,O),O.return=T,T=O),r(T)):i(T,E)}return function(T,E,z,O){try{Oc=0;var H=w(T,E,z,O);return Ms=null,H}catch(L){if(L===Zs||L===Gh)throw L;var q=Ni(29,L,null,T.mode);return q.lanes=O,q.return=T,q}finally{}}}var cu=xx(!0),Tx=xx(!1),Il=!1;function Ov(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uy(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ca(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ra(t,e,i){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Et&2){var u=n.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),n.pending=e,e=fh(t),mx(t,null,i),e}return qh(t,n,e,i),fh(t)}function hc(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,i|=n,e.lanes=i,YE(t,i)}}function Jg(t,e){var i=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,i===n)){var u=null,s=null;if(i=i.firstBaseUpdate,i!==null){do{var r={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};s===null?u=s=r:s=s.next=r,i=i.next}while(i!==null);s===null?u=s=e:s=s.next=e}else u=s=e;i={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var By=!1;function dc(){if(By){var t=Os;if(t!==null)throw t}}function mc(t,e,i,n){By=!1;var u=t.updateQueue;Il=!1;var s=u.firstBaseUpdate,r=u.lastBaseUpdate,f=u.shared.pending;if(f!==null){u.shared.pending=null;var m=f,y=m.next;m.next=null,r===null?s=y:r.next=y,r=m;var g=t.alternate;g!==null&&(g=g.updateQueue,f=g.lastBaseUpdate,f!==r&&(f===null?g.firstBaseUpdate=y:f.next=y,g.lastBaseUpdate=m))}if(s!==null){var S=u.baseState;r=0,g=y=m=null,f=s;do{var p=f.lane&-536870913,x=p!==f.lane;if(x?(mt&p)===p:(n&p)===p){p!==0&&p===Us&&(By=!0),g!==null&&(g=g.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var A=t,R=f;p=e;var w=i;switch(R.tag){case 1:if(A=R.payload,typeof A=="function"){S=A.call(w,S,p);break t}S=A;break t;case 3:A.flags=A.flags&-65537|128;case 0:if(A=R.payload,p=typeof A=="function"?A.call(w,S,p):A,p==null)break t;S=Gt({},S,p);break t;case 2:Il=!0}}p=f.callback,p!==null&&(t.flags|=64,x&&(t.flags|=8192),x=u.callbacks,x===null?u.callbacks=[p]:x.push(p))}else x={lane:p,tag:f.tag,payload:f.payload,callback:f.callback,next:null},g===null?(y=g=x,m=S):g=g.next=x,r|=p;if(f=f.next,f===null){if(f=u.shared.pending,f===null)break;x=f,f=x.next,x.next=null,u.lastBaseUpdate=x,u.shared.pending=null}}while(!0);g===null&&(m=S),u.baseState=m,u.firstBaseUpdate=y,u.lastBaseUpdate=g,s===null&&(u.shared.lanes=0),Sa|=r,t.lanes=r,t.memoizedState=S}}function zx(t,e){if(typeof t!="function")throw Error(U(191,t));t.call(e)}function _x(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)zx(i[t],e)}var Bs=Bn(null),gh=Bn(0);function U2(t,e){t=El,Ht(gh,t),Ht(Bs,e),El=t|e.baseLanes}function wy(){Ht(gh,El),Ht(Bs,Bs.current)}function Mv(){El=gh.current,Ne(Bs),Ne(gh)}var Li=Bn(null),ln=null;function $l(t){var e=t.alternate;Ht(le,le.current&1),Ht(Li,t),ln===null&&(e===null||Bs.current!==null||e.memoizedState!==null)&&(ln=t)}function jy(t){Ht(le,le.current),Ht(Li,t),ln===null&&(ln=t)}function Ax(t){t.tag===22?(Ht(le,le.current),Ht(Li,t),ln===null&&(ln=t)):ta(t)}function ta(){Ht(le,le.current),Ht(Li,Li.current)}function Ri(t){Ne(Li),ln===t&&(ln=null),Ne(le)}var le=Bn(0);function yh(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||iv(i)||nv(i)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var pl=0,ut=null,Ct=null,fe=null,vh=!1,Cs=!1,ru=!1,ph=0,Mc=0,Rs=null,XO=0;function kt(){throw Error(U(321))}function Cv(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!ji(t[i],e[i]))return!1;return!0}function Rv(t,e,i,n,u,s){return pl=s,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,tt.H=t===null||t.memoizedState===null?nT:Yv,ru=!1,s=i(n,u),ru=!1,Cs&&(s=Mx(e,i,n,u)),Ox(t),s}function Ox(t){tt.H=Cc;var e=Ct!==null&&Ct.next!==null;if(pl=0,fe=Ct=ut=null,vh=!1,Mc=0,Rs=null,e)throw Error(U(300));t===null||me||(t=t.dependencies,t!==null&&dh(t)&&(me=!0))}function Mx(t,e,i,n){ut=t;var u=0;do{if(Cs&&(Rs=null),Mc=0,Cs=!1,25<=u)throw Error(U(301));if(u+=1,fe=Ct=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}tt.H=lT,s=e(i,n)}while(Cs);return s}function VO(){var t=tt.H,e=t.useState()[0];return e=typeof e.then=="function"?Qc(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ut.flags|=1024),e}function Nv(){var t=ph!==0;return ph=0,t}function Dv(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Hv(t){if(vh){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}vh=!1}pl=0,fe=Ct=ut=null,Cs=!1,Mc=ph=0,Rs=null}function ti(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?ut.memoizedState=fe=t:fe=fe.next=t,fe}function ae(){if(Ct===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=fe===null?ut.memoizedState:fe.next;if(e!==null)fe=e,Ct=t;else{if(t===null)throw ut.alternate===null?Error(U(467)):Error(U(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},fe===null?ut.memoizedState=fe=t:fe=fe.next=t}return fe}function Yh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qc(t){var e=Mc;return Mc+=1,Rs===null&&(Rs=[]),t=Ex(Rs,t,e),e=ut,(fe===null?e.memoizedState:fe.next)===null&&(e=e.alternate,tt.H=e===null||e.memoizedState===null?nT:Yv),t}function Qh(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Qc(t);if(t.$$typeof===fl)return Ge(t)}throw Error(U(438,String(t)))}function Uv(t){var e=null,i=ut.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var n=ut.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=Yh(),ut.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),n=0;n<t;n++)i[n]=C4;return e.index++,i}function Sl(t,e){return typeof e=="function"?e(t):e}function Pf(t){var e=ae();return Bv(e,Ct,t)}function Bv(t,e,i){var n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=i;var u=t.baseQueue,s=n.pending;if(s!==null){if(u!==null){var r=u.next;u.next=s.next,s.next=r}e.baseQueue=u=s,n.pending=null}if(s=t.baseState,u===null)t.memoizedState=s;else{e=u.next;var f=r=null,m=null,y=e,g=!1;do{var S=y.lane&-536870913;if(S!==y.lane?(mt&S)===S:(pl&S)===S){var p=y.revertLane;if(p===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),S===Us&&(g=!0);else if((pl&p)===p){y=y.next,p===Us&&(g=!0);continue}else S={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=S,r=s):m=m.next=S,ut.lanes|=p,Sa|=p;S=y.action,ru&&i(s,S),s=y.hasEagerState?y.eagerState:i(s,S)}else p={lane:S,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=p,r=s):m=m.next=p,ut.lanes|=S,Sa|=S;y=y.next}while(y!==null&&y!==e);if(m===null?r=s:m.next=f,!ji(s,t.memoizedState)&&(me=!0,g&&(i=Os,i!==null)))throw i;t.memoizedState=s,t.baseState=r,t.baseQueue=m,n.lastRenderedState=s}return u===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Fg(t){var e=ae(),i=e.queue;if(i===null)throw Error(U(311));i.lastRenderedReducer=t;var n=i.dispatch,u=i.pending,s=e.memoizedState;if(u!==null){i.pending=null;var r=u=u.next;do s=t(s,r.action),r=r.next;while(r!==u);ji(s,e.memoizedState)||(me=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),i.lastRenderedState=s}return[s,n]}function Cx(t,e,i){var n=ut,u=ae(),s=yt;if(s){if(i===void 0)throw Error(U(407));i=i()}else i=e();var r=!ji((Ct||u).memoizedState,i);if(r&&(u.memoizedState=i,me=!0),u=u.queue,wv(Dx.bind(null,n,u,t),[t]),u.getSnapshot!==e||r||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,ws(9,{destroy:void 0},Nx.bind(null,n,u,i,e),null),Dt===null)throw Error(U(349));s||pl&127||Rx(n,e,i)}return i}function Rx(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=ut.updateQueue,e===null?(e=Yh(),ut.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Nx(t,e,i,n){e.value=i,e.getSnapshot=n,Hx(e)&&Ux(t)}function Dx(t,e,i){return i(function(){Hx(e)&&Ux(t)})}function Hx(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!ji(t,i)}catch{return!0}}function Ux(t){var e=gu(t,2);e!==null&&hi(e,t,2)}function Ly(t){var e=ti();if(typeof t=="function"){var i=t;if(t=i(),ru){ia(!0);try{i()}finally{ia(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:t},e}function Bx(t,e,i,n){return t.baseState=i,Bv(t,Ct,typeof n=="function"?n:Sl)}function ZO(t,e,i,n,u){if(Vh(t))throw Error(U(485));if(t=e.action,t!==null){var s={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){s.listeners.push(r)}};tt.T!==null?i(!0):s.isTransition=!1,n(s),i=e.pending,i===null?(s.next=e.pending=s,wx(e,s)):(s.next=i.next,e.pending=i.next=s)}}function wx(t,e){var i=e.action,n=e.payload,u=t.state;if(e.isTransition){var s=tt.T,r={};tt.T=r;try{var f=i(u,n),m=tt.S;m!==null&&m(r,f),B2(t,e,f)}catch(y){qy(t,e,y)}finally{s!==null&&r.types!==null&&(s.types=r.types),tt.T=s}}else try{s=i(u,n),B2(t,e,s)}catch(y){qy(t,e,y)}}function B2(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(n){w2(t,e,n)},function(n){return qy(t,e,n)}):w2(t,e,i)}function w2(t,e,i){e.status="fulfilled",e.value=i,jx(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,wx(t,i)))}function qy(t,e,i){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=i,jx(e),e=e.next;while(e!==n)}t.action=null}function jx(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Lx(t,e){return e}function j2(t,e){if(yt){var i=Dt.formState;if(i!==null){t:{var n=ut;if(yt){if(qt){e:{for(var u=qt,s=nn;u.nodeType!==8;){if(!s){u=null;break e}if(u=an(u.nextSibling),u===null){u=null;break e}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){qt=an(u.nextSibling),n=u.data==="F!";break t}}va(n)}n=!1}n&&(e=i[0])}}return i=ti(),i.memoizedState=i.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lx,lastRenderedState:e},i.queue=n,i=tT.bind(null,ut,n),n.dispatch=i,n=Ly(!1),s=Gv.bind(null,ut,!1,n.queue),n=ti(),u={state:e,dispatch:null,action:t,pending:null},n.queue=u,i=ZO.bind(null,ut,u,s,i),u.dispatch=i,n.memoizedState=t,[e,i,!1]}function L2(t){var e=ae();return qx(e,Ct,t)}function qx(t,e,i){if(e=Bv(t,e,Lx)[0],t=Pf(Sl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Qc(e)}catch(r){throw r===Zs?Gh:r}else n=e;e=ae();var u=e.queue,s=u.dispatch;return i!==e.memoizedState&&(ut.flags|=2048,ws(9,{destroy:void 0},KO.bind(null,u,i),null)),[n,s,t]}function KO(t,e){t.action=e}function q2(t){var e=ae(),i=Ct;if(i!==null)return qx(e,i,t);ae(),e=e.memoizedState,i=ae();var n=i.queue.dispatch;return i.memoizedState=t,[e,n,!1]}function ws(t,e,i,n){return t={tag:t,create:i,deps:n,inst:e,next:null},e=ut.updateQueue,e===null&&(e=Yh(),ut.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(n=i.next,i.next=t,t.next=n,e.lastEffect=t),t}function Gx(){return ae().memoizedState}function If(t,e,i,n){var u=ti();ut.flags|=t,u.memoizedState=ws(1|e,{destroy:void 0},i,n===void 0?null:n)}function Xh(t,e,i,n){var u=ae();n=n===void 0?null:n;var s=u.memoizedState.inst;Ct!==null&&n!==null&&Cv(n,Ct.memoizedState.deps)?u.memoizedState=ws(e,s,i,n):(ut.flags|=t,u.memoizedState=ws(1|e,s,i,n))}function G2(t,e){If(8390656,8,t,e)}function wv(t,e){Xh(2048,8,t,e)}function JO(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=Yh(),ut.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function Yx(t){var e=ae().memoizedState;return JO({ref:e,nextImpl:t}),function(){if(Et&2)throw Error(U(440));return e.impl.apply(void 0,arguments)}}function Qx(t,e){return Xh(4,2,t,e)}function Xx(t,e){return Xh(4,4,t,e)}function Vx(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Zx(t,e,i){i=i!=null?i.concat([t]):null,Xh(4,4,Vx.bind(null,e,t),i)}function jv(){}function Kx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;return e!==null&&Cv(e,n[1])?n[0]:(i.memoizedState=[t,e],t)}function Jx(t,e){var i=ae();e=e===void 0?null:e;var n=i.memoizedState;if(e!==null&&Cv(e,n[1]))return n[0];if(n=t(),ru){ia(!0);try{t()}finally{ia(!1)}}return i.memoizedState=[n,e],n}function Lv(t,e,i){return i===void 0||pl&1073741824&&!(mt&261930)?t.memoizedState=e:(t.memoizedState=i,t=BT(),ut.lanes|=t,Sa|=t,i)}function Fx(t,e,i,n){return ji(i,e)?i:Bs.current!==null?(t=Lv(t,i,n),ji(t,e)||(me=!0),t):!(pl&42)||pl&1073741824&&!(mt&261930)?(me=!0,t.memoizedState=i):(t=BT(),ut.lanes|=t,Sa|=t,e)}function Wx(t,e,i,n,u){var s=xt.p;xt.p=s!==0&&8>s?s:8;var r=tt.T,f={};tt.T=f,Gv(t,!1,e,i);try{var m=u(),y=tt.S;if(y!==null&&y(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var g=QO(m,n);gc(t,e,g,wi(t))}else gc(t,e,n,wi(t))}catch(S){gc(t,e,{then:function(){},status:"rejected",reason:S},wi())}finally{xt.p=s,r!==null&&f.types!==null&&(r.types=f.types),tt.T=r}}function FO(){}function Gy(t,e,i,n){if(t.tag!==5)throw Error(U(476));var u=Px(t).queue;Wx(t,u,e,iu,i===null?FO:function(){return Ix(t),i(n)})}function Px(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:iu,baseState:iu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:iu},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ix(t){var e=Px(t);e.next===null&&(e=t.alternate.memoizedState),gc(t,e.next.queue,{},wi())}function qv(){return Ge(Dc)}function kx(){return ae().memoizedState}function $x(){return ae().memoizedState}function WO(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=wi();t=ca(i);var n=ra(e,t,i);n!==null&&(hi(n,e,i),hc(n,e,i)),e={cache:zv()},t.payload=e;return}e=e.return}}function PO(t,e,i){var n=wi();i={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Vh(t)?eT(e,i):(i=bv(t,e,i,n),i!==null&&(hi(i,t,n),iT(i,e,n)))}function tT(t,e,i){var n=wi();gc(t,e,i,n)}function gc(t,e,i,n){var u={lane:n,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Vh(t))eT(e,u);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var r=e.lastRenderedState,f=s(r,i);if(u.hasEagerState=!0,u.eagerState=f,ji(f,r))return qh(t,e,u,0),Dt===null&&Lh(),!1}catch{}finally{}if(i=bv(t,e,u,n),i!==null)return hi(i,t,n),iT(i,e,n),!0}return!1}function Gv(t,e,i,n){if(n={lane:2,revertLane:Wv(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vh(t)){if(e)throw Error(U(479))}else e=bv(t,i,n,2),e!==null&&hi(e,t,2)}function Vh(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function eT(t,e){Cs=vh=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function iT(t,e,i){if(i&4194048){var n=e.lanes;n&=t.pendingLanes,i|=n,e.lanes=i,YE(t,i)}}var Cc={readContext:Ge,use:Qh,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Cc.useEffectEvent=kt;var nT={readContext:Ge,use:Qh,useCallback:function(t,e){return ti().memoizedState=[t,e===void 0?null:e],t},useContext:Ge,useEffect:G2,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,If(4194308,4,Vx.bind(null,e,t),i)},useLayoutEffect:function(t,e){return If(4194308,4,t,e)},useInsertionEffect:function(t,e){If(4,2,t,e)},useMemo:function(t,e){var i=ti();e=e===void 0?null:e;var n=t();if(ru){ia(!0);try{t()}finally{ia(!1)}}return i.memoizedState=[n,e],n},useReducer:function(t,e,i){var n=ti();if(i!==void 0){var u=i(e);if(ru){ia(!0);try{i(e)}finally{ia(!1)}}}else u=e;return n.memoizedState=n.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},n.queue=t,t=t.dispatch=PO.bind(null,ut,t),[n.memoizedState,t]},useRef:function(t){var e=ti();return t={current:t},e.memoizedState=t},useState:function(t){t=Ly(t);var e=t.queue,i=tT.bind(null,ut,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:jv,useDeferredValue:function(t,e){var i=ti();return Lv(i,t,e)},useTransition:function(){var t=Ly(!1);return t=Wx.bind(null,ut,t.queue,!0,!1),ti().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var n=ut,u=ti();if(yt){if(i===void 0)throw Error(U(407));i=i()}else{if(i=e(),Dt===null)throw Error(U(349));mt&127||Rx(n,e,i)}u.memoizedState=i;var s={value:i,getSnapshot:e};return u.queue=s,G2(Dx.bind(null,n,s,t),[t]),n.flags|=2048,ws(9,{destroy:void 0},Nx.bind(null,n,s,i,e),null),i},useId:function(){var t=ti(),e=Dt.identifierPrefix;if(yt){var i=Dn,n=Nn;i=(n&~(1<<32-Bi(n)-1)).toString(32)+i,e="_"+e+"R_"+i,i=ph++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=XO++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:qv,useFormState:j2,useActionState:j2,useOptimistic:function(t){var e=ti();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Gv.bind(null,ut,!0,i),i.dispatch=e,[t,e]},useMemoCache:Uv,useCacheRefresh:function(){return ti().memoizedState=WO.bind(null,ut)},useEffectEvent:function(t){var e=ti(),i={impl:t};return e.memoizedState=i,function(){if(Et&2)throw Error(U(440));return i.impl.apply(void 0,arguments)}}},Yv={readContext:Ge,use:Qh,useCallback:Kx,useContext:Ge,useEffect:wv,useImperativeHandle:Zx,useInsertionEffect:Qx,useLayoutEffect:Xx,useMemo:Jx,useReducer:Pf,useRef:Gx,useState:function(){return Pf(Sl)},useDebugValue:jv,useDeferredValue:function(t,e){var i=ae();return Fx(i,Ct.memoizedState,t,e)},useTransition:function(){var t=Pf(Sl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Qc(t),e]},useSyncExternalStore:Cx,useId:kx,useHostTransitionStatus:qv,useFormState:L2,useActionState:L2,useOptimistic:function(t,e){var i=ae();return Bx(i,Ct,t,e)},useMemoCache:Uv,useCacheRefresh:$x};Yv.useEffectEvent=Yx;var lT={readContext:Ge,use:Qh,useCallback:Kx,useContext:Ge,useEffect:wv,useImperativeHandle:Zx,useInsertionEffect:Qx,useLayoutEffect:Xx,useMemo:Jx,useReducer:Fg,useRef:Gx,useState:function(){return Fg(Sl)},useDebugValue:jv,useDeferredValue:function(t,e){var i=ae();return Ct===null?Lv(i,t,e):Fx(i,Ct.memoizedState,t,e)},useTransition:function(){var t=Fg(Sl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:Qc(t),e]},useSyncExternalStore:Cx,useId:kx,useHostTransitionStatus:qv,useFormState:q2,useActionState:q2,useOptimistic:function(t,e){var i=ae();return Ct!==null?Bx(i,Ct,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Uv,useCacheRefresh:$x};lT.useEffectEvent=Yx;function Wg(t,e,i,n){e=t.memoizedState,i=i(n,e),i=i==null?e:Gt({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Yy={enqueueSetState:function(t,e,i){t=t._reactInternals;var n=wi(),u=ca(n);u.payload=e,i!=null&&(u.callback=i),e=ra(t,u,n),e!==null&&(hi(e,t,n),hc(e,t,n))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var n=wi(),u=ca(n);u.tag=1,u.payload=e,i!=null&&(u.callback=i),e=ra(t,u,n),e!==null&&(hi(e,t,n),hc(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=wi(),n=ca(i);n.tag=2,e!=null&&(n.callback=e),e=ra(t,n,i),e!==null&&(hi(e,t,i),hc(e,t,i))}};function Y2(t,e,i,n,u,s,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,r):e.prototype&&e.prototype.isPureReactComponent?!zc(i,n)||!zc(u,s):!0}function Q2(t,e,i,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,n),e.state!==t&&Yy.enqueueReplaceState(e,e.state,null)}function fu(t,e){var i=e;if("ref"in e){i={};for(var n in e)n!=="ref"&&(i[n]=e[n])}if(t=t.defaultProps){i===e&&(i=Gt({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function aT(t){rh(t)}function uT(t){console.error(t)}function sT(t){rh(t)}function Sh(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function X2(t,e,i){try{var n=t.onCaughtError;n(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Qy(t,e,i){return i=ca(i),i.tag=3,i.payload={element:null},i.callback=function(){Sh(t,e)},i}function oT(t){return t=ca(t),t.tag=3,t}function cT(t,e,i,n){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var s=n.value;t.payload=function(){return u(s)},t.callback=function(){X2(e,i,n)}}var r=i.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){X2(e,i,n),typeof u!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})})}function IO(t,e,i,n,u){if(i.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=i.alternate,e!==null&&Vs(e,i,u,!0),i=Li.current,i!==null){switch(i.tag){case 31:case 13:return ln===null?zh():i.alternate===null&&$t===0&&($t=3),i.flags&=-257,i.flags|=65536,i.lanes=u,n===mh?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([n]):e.add(n),uy(t,n,u)),!1;case 22:return i.flags|=65536,n===mh?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([n]):i.add(n)),uy(t,n,u)),!1}throw Error(U(435,i.tag))}return uy(t,n,u),zh(),!1}if(yt)return e=Li.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=u,n!==Cy&&(t=Error(U(422),{cause:n}),Ac(en(t,i)))):(n!==Cy&&(e=Error(U(423),{cause:n}),Ac(en(e,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,n=en(n,i),u=Qy(t.stateNode,n,u),Jg(t,u),$t!==4&&($t=2)),!1;var s=Error(U(520),{cause:n});if(s=en(s,i),pc===null?pc=[s]:pc.push(s),$t!==4&&($t=2),e===null)return!0;n=en(n,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=Qy(i.stateNode,n,t),Jg(i,t),!1;case 1:if(e=i.type,s=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(fa===null||!fa.has(s))))return i.flags|=65536,u&=-u,i.lanes|=u,u=oT(u),cT(u,t,i,n),Jg(i,u),!1}i=i.return}while(i!==null);return!1}var Qv=Error(U(461)),me=!1;function je(t,e,i,n){e.child=t===null?Tx(e,null,i,n):cu(e,t.child,i,n)}function V2(t,e,i,n,u){i=i.render;var s=e.ref;if("ref"in n){var r={};for(var f in n)f!=="ref"&&(r[f]=n[f])}else r=n;return ou(e),n=Rv(t,e,i,r,s,u),f=Nv(),t!==null&&!me?(Dv(t,e,u),bl(t,e,u)):(yt&&f&&xv(e),e.flags|=1,je(t,e,n,u),e.child)}function Z2(t,e,i,n,u){if(t===null){var s=i.type;return typeof s=="function"&&!Ev(s)&&s.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=s,rT(t,e,s,n,u)):(t=Ff(i.type,null,n,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Xv(t,u)){var r=s.memoizedProps;if(i=i.compare,i=i!==null?i:zc,i(r,n)&&t.ref===e.ref)return bl(t,e,u)}return e.flags|=1,t=ml(s,n),t.ref=e.ref,t.return=e,e.child=t}function rT(t,e,i,n,u){if(t!==null){var s=t.memoizedProps;if(zc(s,n)&&t.ref===e.ref)if(me=!1,e.pendingProps=n=s,Xv(t,u))t.flags&131072&&(me=!0);else return e.lanes=t.lanes,bl(t,e,u)}return Xy(t,e,i,n,u)}function fT(t,e,i,n){var u=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(e.flags&128){if(s=s!==null?s.baseLanes|i:i,t!==null){for(n=e.child=t.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~s}else n=0,e.child=null;return K2(t,e,s,i,n)}if(i&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wf(e,s!==null?s.cachePool:null),s!==null?U2(e,s):wy(),Ax(e);else return n=e.lanes=536870912,K2(t,e,s!==null?s.baseLanes|i:i,i,n)}else s!==null?(Wf(e,s.cachePool),U2(e,s),ta(e),e.memoizedState=null):(t!==null&&Wf(e,null),wy(),ta(e));return je(t,e,u,i),e.child}function uc(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function K2(t,e,i,n,u){var s=_v();return s=s===null?null:{parent:de._currentValue,pool:s},e.memoizedState={baseLanes:i,cachePool:s},t!==null&&Wf(e,null),wy(),Ax(e),t!==null&&Vs(t,e,n,!0),e.childLanes=u,null}function kf(t,e){return e=bh({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function J2(t,e,i){return cu(e,t.child,null,i),t=kf(e,e.pendingProps),t.flags|=2,Ri(e),e.memoizedState=null,t}function kO(t,e,i){var n=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(n.mode==="hidden")return t=kf(e,n),e.lanes=536870912,uc(null,t);if(jy(e),(t=qt)?(t=nz(t,nn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ya!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},i=yx(t),i.return=e,e.child=i,qe=e,qt=null)):t=null,t===null)throw va(e);return e.lanes=536870912,null}return kf(e,n)}var s=t.memoizedState;if(s!==null){var r=s.dehydrated;if(jy(e),u)if(e.flags&256)e.flags&=-257,e=J2(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(U(558));else if(me||Vs(t,e,i,!1),u=(i&t.childLanes)!==0,me||u){if(n=Dt,n!==null&&(r=QE(n,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,gu(t,r),hi(n,t,r),Qv;zh(),e=J2(t,e,i)}else t=s.treeContext,qt=an(r.nextSibling),qe=e,yt=!0,oa=null,nn=!1,t!==null&&px(e,t),e=kf(e,n),e.flags|=4096;return e}return t=ml(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $f(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(U(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Xy(t,e,i,n,u){return ou(e),i=Rv(t,e,i,n,void 0,u),n=Nv(),t!==null&&!me?(Dv(t,e,u),bl(t,e,u)):(yt&&n&&xv(e),e.flags|=1,je(t,e,i,u),e.child)}function F2(t,e,i,n,u,s){return ou(e),e.updateQueue=null,i=Mx(e,n,i,u),Ox(t),n=Nv(),t!==null&&!me?(Dv(t,e,s),bl(t,e,s)):(yt&&n&&xv(e),e.flags|=1,je(t,e,i,s),e.child)}function W2(t,e,i,n,u){if(ou(e),e.stateNode===null){var s=bs,r=i.contextType;typeof r=="object"&&r!==null&&(s=Ge(r)),s=new i(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Yy,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},Ov(e),r=i.contextType,s.context=typeof r=="object"&&r!==null?Ge(r):bs,s.state=e.memoizedState,r=i.getDerivedStateFromProps,typeof r=="function"&&(Wg(e,i,r,n),s.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(r=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),r!==s.state&&Yy.enqueueReplaceState(s,s.state,null),mc(e,n,s,u),dc(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var f=e.memoizedProps,m=fu(i,f);s.props=m;var y=s.context,g=i.contextType;r=bs,typeof g=="object"&&g!==null&&(r=Ge(g));var S=i.getDerivedStateFromProps;g=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f||y!==r)&&Q2(e,s,n,r),Il=!1;var p=e.memoizedState;s.state=p,mc(e,n,s,u),dc(),y=e.memoizedState,f||p!==y||Il?(typeof S=="function"&&(Wg(e,i,S,n),y=e.memoizedState),(m=Il||Y2(e,i,m,n,p,y,r))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=y),s.props=n,s.state=y,s.context=r,n=m):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,Uy(t,e),r=e.memoizedProps,g=fu(i,r),s.props=g,S=e.pendingProps,p=s.context,y=i.contextType,m=bs,typeof y=="object"&&y!==null&&(m=Ge(y)),f=i.getDerivedStateFromProps,(y=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(r!==S||p!==m)&&Q2(e,s,n,m),Il=!1,p=e.memoizedState,s.state=p,mc(e,n,s,u),dc();var x=e.memoizedState;r!==S||p!==x||Il||t!==null&&t.dependencies!==null&&dh(t.dependencies)?(typeof f=="function"&&(Wg(e,i,f,n),x=e.memoizedState),(g=Il||Y2(e,i,g,n,p,x,m)||t!==null&&t.dependencies!==null&&dh(t.dependencies))?(y||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,x,m),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,x,m)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=x),s.props=n,s.state=x,s.context=m,n=g):(typeof s.componentDidUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,$f(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,i=n&&typeof i.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=cu(e,t.child,null,u),e.child=cu(e,null,i,u)):je(t,e,i,u),e.memoizedState=s.state,t=e.child):t=bl(t,e,u),t}function P2(t,e,i,n){return su(),e.flags|=256,je(t,e,i,n),e.child}var Pg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ig(t){return{baseLanes:t,cachePool:bx()}}function kg(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Di),t}function hT(t,e,i){var n=e.pendingProps,u=!1,s=(e.flags&128)!==0,r;if((r=s)||(r=t!==null&&t.memoizedState===null?!1:(le.current&2)!==0),r&&(u=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?$l(e):ta(e),(t=qt)?(t=nz(t,nn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ya!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},i=yx(t),i.return=e,e.child=i,qe=e,qt=null)):t=null,t===null)throw va(e);return nv(t)?e.lanes=32:e.lanes=536870912,null}var f=n.children;return n=n.fallback,u?(ta(e),u=e.mode,f=bh({mode:"hidden",children:f},u),n=nu(n,u,i,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n=e.child,n.memoizedState=Ig(i),n.childLanes=kg(t,r,i),e.memoizedState=Pg,uc(null,n)):($l(e),Vy(e,f))}var m=t.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(s)e.flags&256?($l(e),e.flags&=-257,e=$g(t,e,i)):e.memoizedState!==null?(ta(e),e.child=t.child,e.flags|=128,e=null):(ta(e),f=n.fallback,u=e.mode,n=bh({mode:"visible",children:n.children},u),f=nu(f,u,i,null),f.flags|=2,n.return=e,f.return=e,n.sibling=f,e.child=n,cu(e,t.child,null,i),n=e.child,n.memoizedState=Ig(i),n.childLanes=kg(t,r,i),e.memoizedState=Pg,e=uc(null,n));else if($l(e),nv(f)){if(r=f.nextSibling&&f.nextSibling.dataset,r)var y=r.dgst;r=y,n=Error(U(419)),n.stack="",n.digest=r,Ac({value:n,source:null,stack:null}),e=$g(t,e,i)}else if(me||Vs(t,e,i,!1),r=(i&t.childLanes)!==0,me||r){if(r=Dt,r!==null&&(n=QE(r,i),n!==0&&n!==m.retryLane))throw m.retryLane=n,gu(t,n),hi(r,t,n),Qv;iv(f)||zh(),e=$g(t,e,i)}else iv(f)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,qt=an(f.nextSibling),qe=e,yt=!0,oa=null,nn=!1,t!==null&&px(e,t),e=Vy(e,n.children),e.flags|=4096);return e}return u?(ta(e),f=n.fallback,u=e.mode,m=t.child,y=m.sibling,n=ml(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,y!==null?f=ml(y,f):(f=nu(f,u,i,null),f.flags|=2),f.return=e,n.return=e,n.sibling=f,e.child=n,uc(null,n),n=e.child,f=t.child.memoizedState,f===null?f=Ig(i):(u=f.cachePool,u!==null?(m=de._currentValue,u=u.parent!==m?{parent:m,pool:m}:u):u=bx(),f={baseLanes:f.baseLanes|i,cachePool:u}),n.memoizedState=f,n.childLanes=kg(t,r,i),e.memoizedState=Pg,uc(t.child,n)):($l(e),i=t.child,t=i.sibling,i=ml(i,{mode:"visible",children:n.children}),i.return=e,i.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=i,e.memoizedState=null,i)}function Vy(t,e){return e=bh({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function bh(t,e){return t=Ni(22,t,null,e),t.lanes=0,t}function $g(t,e,i){return cu(e,t.child,null,i),t=Vy(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function I2(t,e,i){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ny(t.return,e,i)}function ty(t,e,i,n,u,s){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:i,tailMode:u,treeForkCount:s}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=i,r.tailMode=u,r.treeForkCount=s)}function dT(t,e,i){var n=e.pendingProps,u=n.revealOrder,s=n.tail;n=n.children;var r=le.current,f=(r&2)!==0;if(f?(r=r&1|2,e.flags|=128):r&=1,Ht(le,r),je(t,e,n,i),n=yt?_c:0,!f&&t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&I2(t,i,e);else if(t.tag===19)I2(t,i,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(i=e.child,u=null;i!==null;)t=i.alternate,t!==null&&yh(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=e.child,e.child=null):(u=i.sibling,i.sibling=null),ty(e,!1,u,i,s,n);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&yh(t)===null){e.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}ty(e,!0,i,null,s,n);break;case"together":ty(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function bl(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),Sa|=e.lanes,!(i&e.childLanes))if(t!==null){if(Vs(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(U(153));if(e.child!==null){for(t=e.child,i=ml(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=ml(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Xv(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&dh(t)))}function $O(t,e,i){switch(e.tag){case 3:uh(e,e.stateNode.containerInfo),kl(e,de,t.memoizedState.cache),su();break;case 27:case 5:py(e);break;case 4:uh(e,e.stateNode.containerInfo);break;case 10:kl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,jy(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?($l(e),e.flags|=128,null):i&e.child.childLanes?hT(t,e,i):($l(e),t=bl(t,e,i),t!==null?t.sibling:null);$l(e);break;case 19:var u=(t.flags&128)!==0;if(n=(i&e.childLanes)!==0,n||(Vs(t,e,i,!1),n=(i&e.childLanes)!==0),u){if(n)return dT(t,e,i);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Ht(le,le.current),n)break;return null;case 22:return e.lanes=0,fT(t,e,i,e.pendingProps);case 24:kl(e,de,t.memoizedState.cache)}return bl(t,e,i)}function mT(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)me=!0;else{if(!Xv(t,i)&&!(e.flags&128))return me=!1,$O(t,e,i);me=!!(t.flags&131072)}else me=!1,yt&&e.flags&1048576&&vx(e,_c,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=tu(e.elementType),e.type=t,typeof t=="function")Ev(t)?(n=fu(t,n),e.tag=1,e=W2(null,e,t,n,i)):(e.tag=0,e=Xy(null,e,t,n,i));else{if(t!=null){var u=t.$$typeof;if(u===sv){e.tag=11,e=V2(null,e,t,n,i);break t}else if(u===ov){e.tag=14,e=Z2(null,e,t,n,i);break t}}throw e=yy(t)||t,Error(U(306,e,""))}}return e;case 0:return Xy(t,e,e.type,e.pendingProps,i);case 1:return n=e.type,u=fu(n,e.pendingProps),W2(t,e,n,u,i);case 3:t:{if(uh(e,e.stateNode.containerInfo),t===null)throw Error(U(387));n=e.pendingProps;var s=e.memoizedState;u=s.element,Uy(t,e),mc(e,n,null,i);var r=e.memoizedState;if(n=r.cache,kl(e,de,n),n!==s.cache&&Dy(e,[de],i,!0),dc(),n=r.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=P2(t,e,n,i);break t}else if(n!==u){u=en(Error(U(424)),e),Ac(u),e=P2(t,e,n,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qt=an(t.firstChild),qe=e,yt=!0,oa=null,nn=!0,i=Tx(e,null,n,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(su(),n===u){e=bl(t,e,i);break t}je(t,e,n,i)}e=e.child}return e;case 26:return $f(t,e),t===null?(i=SE(e.type,null,e.pendingProps,null))?e.memoizedState=i:yt||(i=e.type,t=e.pendingProps,n=Mh(sa.current).createElement(i),n[Le]=e,n[di]=t,Ye(n,i,t),Re(n),e.stateNode=n):e.memoizedState=SE(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return py(e),t===null&&yt&&(n=e.stateNode=lz(e.type,e.pendingProps,sa.current),qe=e,nn=!0,u=qt,Ea(e.type)?(lv=u,qt=an(n.firstChild)):qt=u),je(t,e,e.pendingProps.children,i),$f(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=n=qt)&&(n=OM(n,e.type,e.pendingProps,nn),n!==null?(e.stateNode=n,qe=e,qt=an(n.firstChild),nn=!1,u=!0):u=!1),u||va(e)),py(e),u=e.type,s=e.pendingProps,r=t!==null?t.memoizedProps:null,n=s.children,tv(u,s)?n=null:r!==null&&tv(u,r)&&(e.flags|=32),e.memoizedState!==null&&(u=Rv(t,e,VO,null,null,i),Dc._currentValue=u),$f(t,e),je(t,e,n,i),e.child;case 6:return t===null&&yt&&((t=i=qt)&&(i=MM(i,e.pendingProps,nn),i!==null?(e.stateNode=i,qe=e,qt=null,t=!0):t=!1),t||va(e)),null;case 13:return hT(t,e,i);case 4:return uh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=cu(e,null,n,i):je(t,e,n,i),e.child;case 11:return V2(t,e,e.type,e.pendingProps,i);case 7:return je(t,e,e.pendingProps,i),e.child;case 8:return je(t,e,e.pendingProps.children,i),e.child;case 12:return je(t,e,e.pendingProps.children,i),e.child;case 10:return n=e.pendingProps,kl(e,e.type,n.value),je(t,e,n.children,i),e.child;case 9:return u=e.type._context,n=e.pendingProps.children,ou(e),u=Ge(u),n=n(u),e.flags|=1,je(t,e,n,i),e.child;case 14:return Z2(t,e,e.type,e.pendingProps,i);case 15:return rT(t,e,e.type,e.pendingProps,i);case 19:return dT(t,e,i);case 31:return kO(t,e,i);case 22:return fT(t,e,i,e.pendingProps);case 24:return ou(e),n=Ge(de),t===null?(u=_v(),u===null&&(u=Dt,s=zv(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=i),u=s),e.memoizedState={parent:n,cache:u},Ov(e),kl(e,de,u)):(t.lanes&i&&(Uy(t,e),mc(e,null,null,i),dc()),u=t.memoizedState,s=e.memoizedState,u.parent!==n?(u={parent:n,cache:n},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),kl(e,de,n)):(n=s.cache,kl(e,de,n),n!==u.cache&&Dy(e,[de],i,!0))),je(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(U(156,e.tag))}function al(t){t.flags|=4}function ey(t,e,i,n,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(LT())t.flags|=8192;else throw au=mh,Av}else t.flags&=-16777217}function k2(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!sz(e))if(LT())t.flags|=8192;else throw au=mh,Av}function jf(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?qE():536870912,t.lanes|=e,js|=e)}function $o(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var n=null;i!==null;)i.alternate!==null&&(n=i),i=i.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,n=0;if(e)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=n,t.childLanes=i,e}function tM(t,e,i){var n=e.pendingProps;switch(Tv(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return i=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),gl(de),Ns(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(os(e)?al(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Kg())),Lt(e),null;case 26:var u=e.type,s=e.memoizedState;return t===null?(al(e),s!==null?(Lt(e),k2(e,s)):(Lt(e),ey(e,u,null,n,i))):s?s!==t.memoizedState?(al(e),Lt(e),k2(e,s)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&al(e),Lt(e),ey(e,u,t,n,i)),null;case 27:if(sh(e),i=sa.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(!n){if(e.stateNode===null)throw Error(U(166));return Lt(e),null}t=Un.current,os(e)?O2(e,t):(t=lz(u,n,i),e.stateNode=t,al(e))}return Lt(e),null;case 5:if(sh(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(!n){if(e.stateNode===null)throw Error(U(166));return Lt(e),null}if(s=Un.current,os(e))O2(e,s);else{var r=Mh(sa.current);switch(s){case 1:s=r.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=r.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=r.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=r.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=r.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?r.createElement(u,{is:n.is}):r.createElement(u)}}s[Le]=e,s[di]=n;t:for(r=e.child;r!==null;){if(r.tag===5||r.tag===6)s.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}e.stateNode=s;t:switch(Ye(s,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&al(e)}}return Lt(e),ey(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&al(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(U(166));if(t=sa.current,os(e)){if(t=e.stateNode,i=e.memoizedProps,n=null,u=qe,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}t[Le]=e,t=!!(t.nodeValue===i||n!==null&&n.suppressHydrationWarning===!0||tz(t.nodeValue,i)),t||va(e,!0)}else t=Mh(t).createTextNode(n),t[Le]=e,e.stateNode=t}return Lt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(n=os(e),i!==null){if(t===null){if(!n)throw Error(U(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(557));t[Le]=e}else su(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else i=Kg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Ri(e),e):(Ri(e),null);if(e.flags&128)throw Error(U(558))}return Lt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=os(e),n!==null&&n.dehydrated!==null){if(t===null){if(!u)throw Error(U(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(U(317));u[Le]=e}else su(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=Kg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ri(e),e):(Ri(e),null)}return Ri(e),e.flags&128?(e.lanes=i,e):(i=n!==null,t=t!==null&&t.memoizedState!==null,i&&(n=e.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==u&&(n.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),jf(e,e.updateQueue),Lt(e),null);case 4:return Ns(),t===null&&Pv(e.stateNode.containerInfo),Lt(e),null;case 10:return gl(e.type),Lt(e),null;case 19:if(Ne(le),n=e.memoizedState,n===null)return Lt(e),null;if(u=(e.flags&128)!==0,s=n.rendering,s===null)if(u)$o(n,!1);else{if($t!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=yh(t),s!==null){for(e.flags|=128,$o(n,!1),t=s.updateQueue,e.updateQueue=t,jf(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)gx(i,t),i=i.sibling;return Ht(le,le.current&1|2),yt&&cl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Hi()>xh&&(e.flags|=128,u=!0,$o(n,!1),e.lanes=4194304)}else{if(!u)if(t=yh(s),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,jf(e,t),$o(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!yt)return Lt(e),null}else 2*Hi()-n.renderingStartTime>xh&&i!==536870912&&(e.flags|=128,u=!0,$o(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Hi(),t.sibling=null,i=le.current,Ht(le,u?i&1|2:i&1),yt&&cl(e,n.treeForkCount),t):(Lt(e),null);case 22:case 23:return Ri(e),Mv(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?i&536870912&&!(e.flags&128)&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),i=e.updateQueue,i!==null&&jf(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==i&&(e.flags|=2048),t!==null&&Ne(lu),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),gl(de),Lt(e),null;case 25:return null;case 30:return null}throw Error(U(156,e.tag))}function eM(t,e){switch(Tv(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gl(de),Ns(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return sh(e),null;case 31:if(e.memoizedState!==null){if(Ri(e),e.alternate===null)throw Error(U(340));su()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ri(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(U(340));su()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ne(le),null;case 4:return Ns(),null;case 10:return gl(e.type),null;case 22:case 23:return Ri(e),Mv(),t!==null&&Ne(lu),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gl(de),null;case 25:return null;default:return null}}function gT(t,e){switch(Tv(e),e.tag){case 3:gl(de),Ns();break;case 26:case 27:case 5:sh(e);break;case 4:Ns();break;case 31:e.memoizedState!==null&&Ri(e);break;case 13:Ri(e);break;case 19:Ne(le);break;case 10:gl(e.type);break;case 22:case 23:Ri(e),Mv(),t!==null&&Ne(lu);break;case 24:gl(de)}}function Xc(t,e){try{var i=e.updateQueue,n=i!==null?i.lastEffect:null;if(n!==null){var u=n.next;i=u;do{if((i.tag&t)===t){n=void 0;var s=i.create,r=i.inst;n=s(),r.destroy=n}i=i.next}while(i!==u)}}catch(f){_t(e,e.return,f)}}function pa(t,e,i){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var s=u.next;n=s;do{if((n.tag&t)===t){var r=n.inst,f=r.destroy;if(f!==void 0){r.destroy=void 0,u=e;var m=i,y=f;try{y()}catch(g){_t(u,m,g)}}}n=n.next}while(n!==s)}}catch(g){_t(e,e.return,g)}}function yT(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{_x(e,i)}catch(n){_t(t,t.return,n)}}}function vT(t,e,i){i.props=fu(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(n){_t(t,e,n)}}function yc(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof i=="function"?t.refCleanup=i(n):i.current=n}}catch(u){_t(t,e,u)}}function Hn(t,e){var i=t.ref,n=t.refCleanup;if(i!==null)if(typeof n=="function")try{n()}catch(u){_t(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){_t(t,e,u)}else i.current=null}function pT(t){var e=t.type,i=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&n.focus();break t;case"img":i.src?n.src=i.src:i.srcSet&&(n.srcset=i.srcSet)}}catch(u){_t(t,t.return,u)}}function iy(t,e,i){try{var n=t.stateNode;EM(n,t.type,i,e),n[di]=e}catch(u){_t(t,t.return,u)}}function ST(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ea(t.type)||t.tag===4}function ny(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ST(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ea(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Zy(t,e,i){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=hl));else if(n!==4&&(n===27&&Ea(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(Zy(t,e,i),t=t.sibling;t!==null;)Zy(t,e,i),t=t.sibling}function Eh(t,e,i){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(n!==4&&(n===27&&Ea(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Eh(t,e,i),t=t.sibling;t!==null;)Eh(t,e,i),t=t.sibling}function bT(t){var e=t.stateNode,i=t.memoizedProps;try{for(var n=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Ye(e,n,i),e[Le]=t,e[di]=i}catch(s){_t(t,t.return,s)}}var rl=!1,he=!1,ly=!1,$2=typeof WeakSet=="function"?WeakSet:Set,Ce=null;function iM(t,e){if(t=t.containerInfo,ky=Dh,t=sx(t),pv(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var n=i.getSelection&&i.getSelection();if(n&&n.rangeCount!==0){i=n.anchorNode;var u=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{i.nodeType,s.nodeType}catch{i=null;break t}var r=0,f=-1,m=-1,y=0,g=0,S=t,p=null;e:for(;;){for(var x;S!==i||u!==0&&S.nodeType!==3||(f=r+u),S!==s||n!==0&&S.nodeType!==3||(m=r+n),S.nodeType===3&&(r+=S.nodeValue.length),(x=S.firstChild)!==null;)p=S,S=x;for(;;){if(S===t)break e;if(p===i&&++y===u&&(f=r),p===s&&++g===n&&(m=r),(x=S.nextSibling)!==null)break;S=p,p=S.parentNode}S=x}i=f===-1||m===-1?null:{start:f,end:m}}else i=null}i=i||{start:0,end:0}}else i=null;for($y={focusedElem:t,selectionRange:i},Dh=!1,Ce=e;Ce!==null;)if(e=Ce,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ce=t;else for(;Ce!==null;){switch(e=Ce,s=e.alternate,t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&s!==null){t=void 0,i=e,u=s.memoizedProps,s=s.memoizedState,n=i.stateNode;try{var A=fu(i.type,u);t=n.getSnapshotBeforeUpdate(A,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(R){_t(i,i.return,R)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)ev(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ev(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(U(163))}if(t=e.sibling,t!==null){t.return=e.return,Ce=t;break}Ce=e.return}}function ET(t,e,i){var n=i.flags;switch(i.tag){case 0:case 11:case 15:sl(t,i),n&4&&Xc(5,i);break;case 1:if(sl(t,i),n&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(r){_t(i,i.return,r)}else{var u=fu(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){_t(i,i.return,r)}}n&64&&yT(i),n&512&&yc(i,i.return);break;case 3:if(sl(t,i),n&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{_x(t,e)}catch(r){_t(i,i.return,r)}}break;case 27:e===null&&n&4&&bT(i);case 26:case 5:sl(t,i),e===null&&n&4&&pT(i),n&512&&yc(i,i.return);break;case 12:sl(t,i);break;case 31:sl(t,i),n&4&&zT(t,i);break;case 13:sl(t,i),n&4&&_T(t,i),n&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=fM.bind(null,i),CM(t,i))));break;case 22:if(n=i.memoizedState!==null||rl,!n){e=e!==null&&e.memoizedState!==null||he,u=rl;var s=he;rl=n,(he=e)&&!s?ol(t,i,(i.subtreeFlags&8772)!==0):sl(t,i),rl=u,he=s}break;case 30:break;default:sl(t,i)}}function xT(t){var e=t.alternate;e!==null&&(t.alternate=null,xT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hv(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,ri=!1;function ul(t,e,i){for(i=i.child;i!==null;)TT(t,e,i),i=i.sibling}function TT(t,e,i){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(wc,i)}catch{}switch(i.tag){case 26:he||Hn(i,e),ul(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:he||Hn(i,e);var n=Qt,u=ri;Ea(i.type)&&(Qt=i.stateNode,ri=!1),ul(t,e,i),bc(i.stateNode),Qt=n,ri=u;break;case 5:he||Hn(i,e);case 6:if(n=Qt,u=ri,Qt=null,ul(t,e,i),Qt=n,ri=u,Qt!==null)if(ri)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(i.stateNode)}catch(s){_t(i,e,s)}else try{Qt.removeChild(i.stateNode)}catch(s){_t(i,e,s)}break;case 18:Qt!==null&&(ri?(t=Qt,mE(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Ys(t)):mE(Qt,i.stateNode));break;case 4:n=Qt,u=ri,Qt=i.stateNode.containerInfo,ri=!0,ul(t,e,i),Qt=n,ri=u;break;case 0:case 11:case 14:case 15:pa(2,i,e),he||pa(4,i,e),ul(t,e,i);break;case 1:he||(Hn(i,e),n=i.stateNode,typeof n.componentWillUnmount=="function"&&vT(i,e,n)),ul(t,e,i);break;case 21:ul(t,e,i);break;case 22:he=(n=he)||i.memoizedState!==null,ul(t,e,i),he=n;break;default:ul(t,e,i)}}function zT(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ys(t)}catch(i){_t(e,e.return,i)}}}function _T(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ys(t)}catch(i){_t(e,e.return,i)}}function nM(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $2),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $2),e;default:throw Error(U(435,t.tag))}}function Lf(t,e){var i=nM(t);e.forEach(function(n){if(!i.has(n)){i.add(n);var u=hM.bind(null,t,n);n.then(u,u)}})}function oi(t,e){var i=e.deletions;if(i!==null)for(var n=0;n<i.length;n++){var u=i[n],s=t,r=e,f=r;t:for(;f!==null;){switch(f.tag){case 27:if(Ea(f.type)){Qt=f.stateNode,ri=!1;break t}break;case 5:Qt=f.stateNode,ri=!1;break t;case 3:case 4:Qt=f.stateNode.containerInfo,ri=!0;break t}f=f.return}if(Qt===null)throw Error(U(160));TT(s,r,u),Qt=null,ri=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)AT(e,t),e=e.sibling}var yn=null;function AT(t,e){var i=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oi(e,t),ci(t),n&4&&(pa(3,t,t.return),Xc(3,t),pa(5,t,t.return));break;case 1:oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),n&64&&rl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?n:i.concat(n))));break;case 26:var u=yn;if(oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),n&4){var s=i!==null?i.memoizedState:null;if(n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null){t:{n=t.type,i=t.memoizedProps,u=u.ownerDocument||u;e:switch(n){case"title":s=u.getElementsByTagName("title")[0],(!s||s[qc]||s[Le]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(n),u.head.insertBefore(s,u.querySelector("head > title"))),Ye(s,n,i),s[Le]=t,Re(s),n=s;break t;case"link":var r=EE("link","href",u).get(n+(i.href||""));if(r){for(var f=0;f<r.length;f++)if(s=r[f],s.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&s.getAttribute("rel")===(i.rel==null?null:i.rel)&&s.getAttribute("title")===(i.title==null?null:i.title)&&s.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){r.splice(f,1);break e}}s=u.createElement(n),Ye(s,n,i),u.head.appendChild(s);break;case"meta":if(r=EE("meta","content",u).get(n+(i.content||""))){for(f=0;f<r.length;f++)if(s=r[f],s.getAttribute("content")===(i.content==null?null:""+i.content)&&s.getAttribute("name")===(i.name==null?null:i.name)&&s.getAttribute("property")===(i.property==null?null:i.property)&&s.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&s.getAttribute("charset")===(i.charSet==null?null:i.charSet)){r.splice(f,1);break e}}s=u.createElement(n),Ye(s,n,i),u.head.appendChild(s);break;default:throw Error(U(468,n))}s[Le]=t,Re(s),n=s}t.stateNode=n}else xE(u,t.type,t.stateNode);else t.stateNode=bE(u,n,t.memoizedProps);else s!==n?(s===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):s.count--,n===null?xE(u,t.type,t.stateNode):bE(u,n,t.memoizedProps)):n===null&&t.stateNode!==null&&iy(t,t.memoizedProps,i.memoizedProps)}break;case 27:oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),i!==null&&n&4&&iy(t,t.memoizedProps,i.memoizedProps);break;case 5:if(oi(e,t),ci(t),n&512&&(he||i===null||Hn(i,i.return)),t.flags&32){u=t.stateNode;try{Hs(u,"")}catch(A){_t(t,t.return,A)}}n&4&&t.stateNode!=null&&(u=t.memoizedProps,iy(t,u,i!==null?i.memoizedProps:u)),n&1024&&(ly=!0);break;case 6:if(oi(e,t),ci(t),n&4){if(t.stateNode===null)throw Error(U(162));n=t.memoizedProps,i=t.stateNode;try{i.nodeValue=n}catch(A){_t(t,t.return,A)}}break;case 3:if(ih=null,u=yn,yn=Ch(e.containerInfo),oi(e,t),yn=u,ci(t),n&4&&i!==null&&i.memoizedState.isDehydrated)try{Ys(e.containerInfo)}catch(A){_t(t,t.return,A)}ly&&(ly=!1,OT(t));break;case 4:n=yn,yn=Ch(t.stateNode.containerInfo),oi(e,t),ci(t),yn=n;break;case 12:oi(e,t),ci(t);break;case 31:oi(e,t),ci(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Lf(t,n)));break;case 13:oi(e,t),ci(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Zh=Hi()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Lf(t,n)));break;case 22:u=t.memoizedState!==null;var m=i!==null&&i.memoizedState!==null,y=rl,g=he;if(rl=y||u,he=g||m,oi(e,t),he=g,rl=y,ci(t),n&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(i===null||m||rl||he||eu(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){m=i=e;try{if(s=m.stateNode,u)r=s.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{f=m.stateNode;var S=m.memoizedProps.style,p=S!=null&&S.hasOwnProperty("display")?S.display:null;f.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(A){_t(m,m.return,A)}}}else if(e.tag===6){if(i===null){m=e;try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(A){_t(m,m.return,A)}}}else if(e.tag===18){if(i===null){m=e;try{var x=m.stateNode;u?gE(x,!0):gE(m.stateNode,!1)}catch(A){_t(m,m.return,A)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(i=n.retryQueue,i!==null&&(n.retryQueue=null,Lf(t,i))));break;case 19:oi(e,t),ci(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Lf(t,n)));break;case 30:break;case 21:break;default:oi(e,t),ci(t)}}function ci(t){var e=t.flags;if(e&2){try{for(var i,n=t.return;n!==null;){if(ST(n)){i=n;break}n=n.return}if(i==null)throw Error(U(160));switch(i.tag){case 27:var u=i.stateNode,s=ny(t);Eh(t,s,u);break;case 5:var r=i.stateNode;i.flags&32&&(Hs(r,""),i.flags&=-33);var f=ny(t);Eh(t,f,r);break;case 3:case 4:var m=i.stateNode.containerInfo,y=ny(t);Zy(t,y,m);break;default:throw Error(U(161))}}catch(g){_t(t,t.return,g)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function OT(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;OT(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function sl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ET(t,e.alternate,e),e=e.sibling}function eu(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:pa(4,e,e.return),eu(e);break;case 1:Hn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&vT(e,e.return,i),eu(e);break;case 27:bc(e.stateNode);case 26:case 5:Hn(e,e.return),eu(e);break;case 22:e.memoizedState===null&&eu(e);break;case 30:eu(e);break;default:eu(e)}t=t.sibling}}function ol(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,u=t,s=e,r=s.flags;switch(s.tag){case 0:case 11:case 15:ol(u,s,i),Xc(4,s);break;case 1:if(ol(u,s,i),n=s,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(y){_t(n,n.return,y)}if(n=s,u=n.updateQueue,u!==null){var f=n.stateNode;try{var m=u.shared.hiddenCallbacks;if(m!==null)for(u.shared.hiddenCallbacks=null,u=0;u<m.length;u++)zx(m[u],f)}catch(y){_t(n,n.return,y)}}i&&r&64&&yT(s),yc(s,s.return);break;case 27:bT(s);case 26:case 5:ol(u,s,i),i&&n===null&&r&4&&pT(s),yc(s,s.return);break;case 12:ol(u,s,i);break;case 31:ol(u,s,i),i&&r&4&&zT(u,s);break;case 13:ol(u,s,i),i&&r&4&&_T(u,s);break;case 22:s.memoizedState===null&&ol(u,s,i),yc(s,s.return);break;case 30:break;default:ol(u,s,i)}e=e.sibling}}function Vv(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Yc(i))}function Zv(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Yc(t))}function gn(t,e,i,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)MT(t,e,i,n),e=e.sibling}function MT(t,e,i,n){var u=e.flags;switch(e.tag){case 0:case 11:case 15:gn(t,e,i,n),u&2048&&Xc(9,e);break;case 1:gn(t,e,i,n);break;case 3:gn(t,e,i,n),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Yc(t)));break;case 12:if(u&2048){gn(t,e,i,n),t=e.stateNode;try{var s=e.memoizedProps,r=s.id,f=s.onPostCommit;typeof f=="function"&&f(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){_t(e,e.return,m)}}else gn(t,e,i,n);break;case 31:gn(t,e,i,n);break;case 13:gn(t,e,i,n);break;case 23:break;case 22:s=e.stateNode,r=e.alternate,e.memoizedState!==null?s._visibility&2?gn(t,e,i,n):vc(t,e):s._visibility&2?gn(t,e,i,n):(s._visibility|=2,rs(t,e,i,n,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Vv(r,e);break;case 24:gn(t,e,i,n),u&2048&&Zv(e.alternate,e);break;default:gn(t,e,i,n)}}function rs(t,e,i,n,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,r=e,f=i,m=n,y=r.flags;switch(r.tag){case 0:case 11:case 15:rs(s,r,f,m,u),Xc(8,r);break;case 23:break;case 22:var g=r.stateNode;r.memoizedState!==null?g._visibility&2?rs(s,r,f,m,u):vc(s,r):(g._visibility|=2,rs(s,r,f,m,u)),u&&y&2048&&Vv(r.alternate,r);break;case 24:rs(s,r,f,m,u),u&&y&2048&&Zv(r.alternate,r);break;default:rs(s,r,f,m,u)}e=e.sibling}}function vc(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,n=e,u=n.flags;switch(n.tag){case 22:vc(i,n),u&2048&&Vv(n.alternate,n);break;case 24:vc(i,n),u&2048&&Zv(n.alternate,n);break;default:vc(i,n)}e=e.sibling}}var sc=8192;function cs(t,e,i){if(t.subtreeFlags&sc)for(t=t.child;t!==null;)CT(t,e,i),t=t.sibling}function CT(t,e,i){switch(t.tag){case 26:cs(t,e,i),t.flags&sc&&t.memoizedState!==null&&YM(i,yn,t.memoizedState,t.memoizedProps);break;case 5:cs(t,e,i);break;case 3:case 4:var n=yn;yn=Ch(t.stateNode.containerInfo),cs(t,e,i),yn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=sc,sc=16777216,cs(t,e,i),sc=n):cs(t,e,i));break;default:cs(t,e,i)}}function RT(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function tc(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Ce=n,DT(n,t)}RT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)NT(t),t=t.sibling}function NT(t){switch(t.tag){case 0:case 11:case 15:tc(t),t.flags&2048&&pa(9,t,t.return);break;case 3:tc(t);break;case 12:tc(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,th(t)):tc(t);break;default:tc(t)}}function th(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var i=0;i<e.length;i++){var n=e[i];Ce=n,DT(n,t)}RT(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:pa(8,e,e.return),th(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,th(e));break;default:th(e)}t=t.sibling}}function DT(t,e){for(;Ce!==null;){var i=Ce;switch(i.tag){case 0:case 11:case 15:pa(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var n=i.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Yc(i.memoizedState.cache)}if(n=i.child,n!==null)n.return=i,Ce=n;else t:for(i=t;Ce!==null;){n=Ce;var u=n.sibling,s=n.return;if(xT(n),n===i){Ce=null;break t}if(u!==null){u.return=s,Ce=u;break t}Ce=s}}}var lM={getCacheForType:function(t){var e=Ge(de),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return Ge(de).controller.signal}},aM=typeof WeakMap=="function"?WeakMap:Map,Et=0,Dt=null,ft=null,mt=0,zt=0,Ci=null,la=!1,Ks=!1,Kv=!1,El=0,$t=0,Sa=0,uu=0,Jv=0,Di=0,js=0,pc=null,fi=null,Ky=!1,Zh=0,HT=0,xh=1/0,Th=null,fa=null,xe=0,ha=null,Ls=null,yl=0,Jy=0,Fy=null,UT=null,Sc=0,Wy=null;function wi(){return Et&2&&mt!==0?mt&-mt:tt.T!==null?Wv():XE()}function BT(){if(Di===0)if(!(mt&536870912)||yt){var t=Mf;Mf<<=1,!(Mf&3932160)&&(Mf=262144),Di=t}else Di=536870912;return t=Li.current,t!==null&&(t.flags|=32),Di}function hi(t,e,i){(t===Dt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(qs(t,0),aa(t,mt,Di,!1)),Lc(t,i),(!(Et&2)||t!==Dt)&&(t===Dt&&(!(Et&2)&&(uu|=i),$t===4&&aa(t,mt,Di,!1)),wn(t))}function wT(t,e,i){if(Et&6)throw Error(U(327));var n=!i&&(e&127)===0&&(e&t.expiredLanes)===0||jc(t,e),u=n?oM(t,e):ay(t,e,!0),s=n;do{if(u===0){Ks&&!n&&aa(t,e,0,!1);break}else{if(i=t.current.alternate,s&&!uM(i)){u=ay(t,e,!1),s=!1;continue}if(u===2){if(s=e,t.errorRecoveryDisabledLanes&s)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var f=t;u=pc;var m=f.current.memoizedState.isDehydrated;if(m&&(qs(f,r).flags|=256),r=ay(f,r,!1),r!==2){if(Kv&&!m){f.errorRecoveryDisabledLanes|=s,uu|=s,u=4;break t}s=fi,fi=u,s!==null&&(fi===null?fi=s:fi.push.apply(fi,s))}u=r}if(s=!1,u!==2)continue}}if(u===1){qs(t,0),aa(t,e,0,!0);break}t:{switch(n=t,s=u,s){case 0:case 1:throw Error(U(345));case 4:if((e&4194048)!==e)break;case 6:aa(n,e,Di,!la);break t;case 2:fi=null;break;case 3:case 5:break;default:throw Error(U(329))}if((e&62914560)===e&&(u=Zh+300-Hi(),10<u)){if(aa(n,e,Di,!la),Uh(n,0,!0)!==0)break t;yl=e,n.timeoutHandle=iz(tE.bind(null,n,i,fi,Th,Ky,e,Di,uu,js,la,s,"Throttled",-0,0),u);break t}tE(n,i,fi,Th,Ky,e,Di,uu,js,la,s,null,-0,0)}}break}while(!0);wn(t)}function tE(t,e,i,n,u,s,r,f,m,y,g,S,p,x){if(t.timeoutHandle=-1,S=e.subtreeFlags,S&8192||(S&16785408)===16785408){S={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hl},CT(e,s,S);var A=(s&62914560)===s?Zh-Hi():(s&4194048)===s?HT-Hi():0;if(A=QM(S,A),A!==null){yl=s,t.cancelPendingCommit=A(iE.bind(null,t,e,s,i,n,u,r,f,m,g,S,null,p,x)),aa(t,s,r,!y);return}}iE(t,e,s,i,n,u,r,f,m)}function uM(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var n=0;n<i.length;n++){var u=i[n],s=u.getSnapshot;u=u.value;try{if(!ji(s(),u))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function aa(t,e,i,n){e&=~Jv,e&=~uu,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var u=e;0<u;){var s=31-Bi(u),r=1<<s;n[s]=-1,u&=~r}i!==0&&GE(t,i,e)}function Kh(){return Et&6?!0:(Vc(0,!1),!1)}function Fv(){if(ft!==null){if(zt===0)var t=ft.return;else t=ft,dl=yu=null,Hv(t),Ms=null,Oc=0,t=ft;for(;t!==null;)gT(t.alternate,t),t=t.return;ft=null}}function qs(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,zM(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),yl=0,Fv(),Dt=t,ft=i=ml(t.current,null),mt=e,zt=0,Ci=null,la=!1,Ks=jc(t,e),Kv=!1,js=Di=Jv=uu=Sa=$t=0,fi=pc=null,Ky=!1,e&8&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var u=31-Bi(n),s=1<<u;e|=t[u],n&=~s}return El=e,Lh(),i}function jT(t,e){ut=null,tt.H=Cc,e===Zs||e===Gh?(e=D2(),zt=3):e===Av?(e=D2(),zt=4):zt=e===Qv?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ci=e,ft===null&&($t=1,Sh(t,en(e,t.current)))}function LT(){var t=Li.current;return t===null?!0:(mt&4194048)===mt?ln===null:(mt&62914560)===mt||mt&536870912?t===ln:!1}function qT(){var t=tt.H;return tt.H=Cc,t===null?Cc:t}function GT(){var t=tt.A;return tt.A=lM,t}function zh(){$t=4,la||(mt&4194048)!==mt&&Li.current!==null||(Ks=!0),!(Sa&134217727)&&!(uu&134217727)||Dt===null||aa(Dt,mt,Di,!1)}function ay(t,e,i){var n=Et;Et|=2;var u=qT(),s=GT();(Dt!==t||mt!==e)&&(Th=null,qs(t,e)),e=!1;var r=$t;t:do try{if(zt!==0&&ft!==null){var f=ft,m=Ci;switch(zt){case 8:Fv(),r=6;break t;case 3:case 2:case 9:case 6:Li.current===null&&(e=!0);var y=zt;if(zt=0,Ci=null,Ts(t,f,m,y),i&&Ks){r=0;break t}break;default:y=zt,zt=0,Ci=null,Ts(t,f,m,y)}}sM(),r=$t;break}catch(g){jT(t,g)}while(!0);return e&&t.shellSuspendCounter++,dl=yu=null,Et=n,tt.H=u,tt.A=s,ft===null&&(Dt=null,mt=0,Lh()),r}function sM(){for(;ft!==null;)YT(ft)}function oM(t,e){var i=Et;Et|=2;var n=qT(),u=GT();Dt!==t||mt!==e?(Th=null,xh=Hi()+500,qs(t,e)):Ks=jc(t,e);t:do try{if(zt!==0&&ft!==null){e=ft;var s=Ci;e:switch(zt){case 1:zt=0,Ci=null,Ts(t,e,s,1);break;case 2:case 9:if(N2(s)){zt=0,Ci=null,eE(e);break}e=function(){zt!==2&&zt!==9||Dt!==t||(zt=7),wn(t)},s.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:N2(s)?(zt=0,Ci=null,eE(e)):(zt=0,Ci=null,Ts(t,e,s,7));break;case 5:var r=null;switch(ft.tag){case 26:r=ft.memoizedState;case 5:case 27:var f=ft;if(r?sz(r):f.stateNode.complete){zt=0,Ci=null;var m=f.sibling;if(m!==null)ft=m;else{var y=f.return;y!==null?(ft=y,Jh(y)):ft=null}break e}}zt=0,Ci=null,Ts(t,e,s,5);break;case 6:zt=0,Ci=null,Ts(t,e,s,6);break;case 8:Fv(),$t=6;break t;default:throw Error(U(462))}}cM();break}catch(g){jT(t,g)}while(!0);return dl=yu=null,tt.H=n,tt.A=u,Et=i,ft!==null?0:(Dt=null,mt=0,Lh(),$t)}function cM(){for(;ft!==null&&!D4();)YT(ft)}function YT(t){var e=mT(t.alternate,t,El);t.memoizedProps=t.pendingProps,e===null?Jh(t):ft=e}function eE(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=F2(i,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=F2(i,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Hv(e);default:gT(i,e),e=ft=gx(e,El),e=mT(i,e,El)}t.memoizedProps=t.pendingProps,e===null?Jh(t):ft=e}function Ts(t,e,i,n){dl=yu=null,Hv(e),Ms=null,Oc=0;var u=e.return;try{if(IO(t,u,e,i,mt)){$t=1,Sh(t,en(i,t.current)),ft=null;return}}catch(s){if(u!==null)throw ft=u,s;$t=1,Sh(t,en(i,t.current)),ft=null;return}e.flags&32768?(yt||n===1?t=!0:Ks||mt&536870912?t=!1:(la=t=!0,(n===2||n===9||n===3||n===6)&&(n=Li.current,n!==null&&n.tag===13&&(n.flags|=16384))),QT(e,t)):Jh(e)}function Jh(t){var e=t;do{if(e.flags&32768){QT(e,la);return}t=e.return;var i=tM(e.alternate,e,El);if(i!==null){ft=i;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);$t===0&&($t=5)}function QT(t,e){do{var i=eM(t.alternate,t);if(i!==null){i.flags&=32767,ft=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=i}while(t!==null);$t=6,ft=null}function iE(t,e,i,n,u,s,r,f,m){t.cancelPendingCommit=null;do Fh();while(xe!==0);if(Et&6)throw Error(U(327));if(e!==null){if(e===t.current)throw Error(U(177));if(s=e.lanes|e.childLanes,s|=Sv,Q4(t,i,s,r,f,m),t===Dt&&(ft=Dt=null,mt=0),Ls=e,ha=t,yl=i,Jy=s,Fy=u,UT=n,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,dM(oh,function(){return JT(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,e.subtreeFlags&13878||n){n=tt.T,tt.T=null,u=xt.p,xt.p=2,r=Et,Et|=4;try{iM(t,e,i)}finally{Et=r,xt.p=u,tt.T=n}}xe=1,XT(),VT(),ZT()}}function XT(){if(xe===1){xe=0;var t=ha,e=Ls,i=(e.flags&13878)!==0;if(e.subtreeFlags&13878||i){i=tt.T,tt.T=null;var n=xt.p;xt.p=2;var u=Et;Et|=4;try{AT(e,t);var s=$y,r=sx(t.containerInfo),f=s.focusedElem,m=s.selectionRange;if(r!==f&&f&&f.ownerDocument&&ux(f.ownerDocument.documentElement,f)){if(m!==null&&pv(f)){var y=m.start,g=m.end;if(g===void 0&&(g=y),"selectionStart"in f)f.selectionStart=y,f.selectionEnd=Math.min(g,f.value.length);else{var S=f.ownerDocument||document,p=S&&S.defaultView||window;if(p.getSelection){var x=p.getSelection(),A=f.textContent.length,R=Math.min(m.start,A),w=m.end===void 0?R:Math.min(m.end,A);!x.extend&&R>w&&(r=w,w=R,R=r);var T=z2(f,R),E=z2(f,w);if(T&&E&&(x.rangeCount!==1||x.anchorNode!==T.node||x.anchorOffset!==T.offset||x.focusNode!==E.node||x.focusOffset!==E.offset)){var z=S.createRange();z.setStart(T.node,T.offset),x.removeAllRanges(),R>w?(x.addRange(z),x.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),x.addRange(z))}}}}for(S=[],x=f;x=x.parentNode;)x.nodeType===1&&S.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<S.length;f++){var O=S[f];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Dh=!!ky,$y=ky=null}finally{Et=u,xt.p=n,tt.T=i}}t.current=e,xe=2}}function VT(){if(xe===2){xe=0;var t=ha,e=Ls,i=(e.flags&8772)!==0;if(e.subtreeFlags&8772||i){i=tt.T,tt.T=null;var n=xt.p;xt.p=2;var u=Et;Et|=4;try{ET(t,e.alternate,e)}finally{Et=u,xt.p=n,tt.T=i}}xe=3}}function ZT(){if(xe===4||xe===3){xe=0,H4();var t=ha,e=Ls,i=yl,n=UT;e.subtreeFlags&10256||e.flags&10256?xe=5:(xe=0,Ls=ha=null,KT(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(fa=null),fv(i),e=e.stateNode,Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(wc,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=tt.T,u=xt.p,xt.p=2,tt.T=null;try{for(var s=t.onRecoverableError,r=0;r<n.length;r++){var f=n[r];s(f.value,{componentStack:f.stack})}}finally{tt.T=e,xt.p=u}}yl&3&&Fh(),wn(t),u=t.pendingLanes,i&261930&&u&42?t===Wy?Sc++:(Sc=0,Wy=t):Sc=0,Vc(0,!1)}}function KT(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Yc(e)))}function Fh(){return XT(),VT(),ZT(),JT()}function JT(){if(xe!==5)return!1;var t=ha,e=Jy;Jy=0;var i=fv(yl),n=tt.T,u=xt.p;try{xt.p=32>i?32:i,tt.T=null,i=Fy,Fy=null;var s=ha,r=yl;if(xe=0,Ls=ha=null,yl=0,Et&6)throw Error(U(331));var f=Et;if(Et|=4,NT(s.current),MT(s,s.current,r,i),Et=f,Vc(0,!1),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(wc,s)}catch{}return!0}finally{xt.p=u,tt.T=n,KT(t,e)}}function nE(t,e,i){e=en(i,e),e=Qy(t.stateNode,e,2),t=ra(t,e,2),t!==null&&(Lc(t,2),wn(t))}function _t(t,e,i){if(t.tag===3)nE(t,t,i);else for(;e!==null;){if(e.tag===3){nE(e,t,i);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fa===null||!fa.has(n))){t=en(i,t),i=oT(2),n=ra(e,i,2),n!==null&&(cT(i,n,e,t),Lc(n,2),wn(n));break}}e=e.return}}function uy(t,e,i){var n=t.pingCache;if(n===null){n=t.pingCache=new aM;var u=new Set;n.set(e,u)}else u=n.get(e),u===void 0&&(u=new Set,n.set(e,u));u.has(i)||(Kv=!0,u.add(i),t=rM.bind(null,t,e,i),e.then(t,t))}function rM(t,e,i){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Dt===t&&(mt&i)===i&&($t===4||$t===3&&(mt&62914560)===mt&&300>Hi()-Zh?!(Et&2)&&qs(t,0):Jv|=i,js===mt&&(js=0)),wn(t)}function FT(t,e){e===0&&(e=qE()),t=gu(t,e),t!==null&&(Lc(t,e),wn(t))}function fM(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),FT(t,i)}function hM(t,e){var i=0;switch(t.tag){case 31:case 13:var n=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(U(314))}n!==null&&n.delete(e),FT(t,i)}function dM(t,e){return cv(t,e)}var _h=null,fs=null,Py=!1,Ah=!1,sy=!1,ua=0;function wn(t){t!==fs&&t.next===null&&(fs===null?_h=fs=t:fs=fs.next=t),Ah=!0,Py||(Py=!0,gM())}function Vc(t,e){if(!sy&&Ah){sy=!0;do for(var i=!1,n=_h;n!==null;){if(!e)if(t!==0){var u=n.pendingLanes;if(u===0)var s=0;else{var r=n.suspendedLanes,f=n.pingedLanes;s=(1<<31-Bi(42|t)+1)-1,s&=u&~(r&~f),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(i=!0,lE(n,s))}else s=mt,s=Uh(n,n===Dt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(s&3)||jc(n,s)||(i=!0,lE(n,s));n=n.next}while(i);sy=!1}}function mM(){WT()}function WT(){Ah=Py=!1;var t=0;ua!==0&&TM()&&(t=ua);for(var e=Hi(),i=null,n=_h;n!==null;){var u=n.next,s=PT(n,e);s===0?(n.next=null,i===null?_h=u:i.next=u,u===null&&(fs=i)):(i=n,(t!==0||s&3)&&(Ah=!0)),n=u}xe!==0&&xe!==5||Vc(t,!1),ua!==0&&(ua=0)}function PT(t,e){for(var i=t.suspendedLanes,n=t.pingedLanes,u=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var r=31-Bi(s),f=1<<r,m=u[r];m===-1?(!(f&i)||f&n)&&(u[r]=Y4(f,e)):m<=e&&(t.expiredLanes|=f),s&=~f}if(e=Dt,i=mt,i=Uh(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,i===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&wg(n),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||jc(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(n!==null&&wg(n),fv(i)){case 2:case 8:i=jE;break;case 32:i=oh;break;case 268435456:i=LE;break;default:i=oh}return n=IT.bind(null,t),i=cv(i,n),t.callbackPriority=e,t.callbackNode=i,e}return n!==null&&n!==null&&wg(n),t.callbackPriority=2,t.callbackNode=null,2}function IT(t,e){if(xe!==0&&xe!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Fh()&&t.callbackNode!==i)return null;var n=mt;return n=Uh(t,t===Dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(wT(t,n,e),PT(t,Hi()),t.callbackNode!=null&&t.callbackNode===i?IT.bind(null,t):null)}function lE(t,e){if(Fh())return null;wT(t,e,!0)}function gM(){_M(function(){Et&6?cv(wE,mM):WT()})}function Wv(){if(ua===0){var t=Us;t===0&&(t=Of,Of<<=1,!(Of&261888)&&(Of=256)),ua=t}return ua}function aE(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zf(""+t)}function uE(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function yM(t,e,i,n,u){if(e==="submit"&&i&&i.stateNode===u){var s=aE((u[di]||null).action),r=n.submitter;r&&(e=(e=r[di]||null)?aE(e.formAction):r.getAttribute("formAction"),e!==null&&(s=e,r=null));var f=new Bh("action","action",null,n,u);t.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(ua!==0){var m=r?uE(u,r):new FormData(u);Gy(i,{pending:!0,data:m,method:u.method,action:s},null,m)}}else typeof s=="function"&&(f.preventDefault(),m=r?uE(u,r):new FormData(u),Gy(i,{pending:!0,data:m,method:u.method,action:s},s,m))},currentTarget:u}]})}}for(qf=0;qf<My.length;qf++)Gf=My[qf],sE=Gf.toLowerCase(),oE=Gf[0].toUpperCase()+Gf.slice(1),vn(sE,"on"+oE);var Gf,sE,oE,qf;vn(cx,"onAnimationEnd");vn(rx,"onAnimationIteration");vn(fx,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(UO,"onTransitionRun");vn(BO,"onTransitionStart");vn(wO,"onTransitionCancel");vn(hx,"onTransitionEnd");Ds("onMouseEnter",["mouseout","mouseover"]);Ds("onMouseLeave",["mouseout","mouseover"]);Ds("onPointerEnter",["pointerout","pointerover"]);Ds("onPointerLeave",["pointerout","pointerover"]);hu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hu("onBeforeInput",["compositionend","keypress","textInput","paste"]);hu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rc));function kT(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var n=t[i],u=n.event;n=n.listeners;t:{var s=void 0;if(e)for(var r=n.length-1;0<=r;r--){var f=n[r],m=f.instance,y=f.currentTarget;if(f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=y;try{s(u)}catch(g){rh(g)}u.currentTarget=null,s=m}else for(r=0;r<n.length;r++){if(f=n[r],m=f.instance,y=f.currentTarget,f=f.listener,m!==s&&u.isPropagationStopped())break t;s=f,u.currentTarget=y;try{s(u)}catch(g){rh(g)}u.currentTarget=null,s=m}}}}function rt(t,e){var i=e[by];i===void 0&&(i=e[by]=new Set);var n=t+"__bubble";i.has(n)||($T(e,t,2,!1),i.add(n))}function oy(t,e,i){var n=0;e&&(n|=4),$T(i,t,n,e)}var Yf="_reactListening"+Math.random().toString(36).slice(2);function Pv(t){if(!t[Yf]){t[Yf]=!0,VE.forEach(function(i){i!=="selectionchange"&&(vM.has(i)||oy(i,!1,t),oy(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Yf]||(e[Yf]=!0,oy("selectionchange",!1,e))}}function $T(t,e,i,n){switch(hz(e)){case 2:var u=ZM;break;case 8:u=KM;break;default:u=tp}i=u.bind(null,e,i,t),u=void 0,!_y||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),n?u!==void 0?t.addEventListener(e,i,{capture:!0,passive:u}):t.addEventListener(e,i,!0):u!==void 0?t.addEventListener(e,i,{passive:u}):t.addEventListener(e,i,!1)}function cy(t,e,i,n,u){var s=n;if(!(e&1)&&!(e&2)&&n!==null)t:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var f=n.stateNode.containerInfo;if(f===u)break;if(r===4)for(r=n.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===u)return;r=r.return}for(;f!==null;){if(r=ms(f),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){n=s=r;continue t}f=f.parentNode}}n=n.return}kE(function(){var y=s,g=mv(i),S=[];t:{var p=dx.get(t);if(p!==void 0){var x=Bh,A=t;switch(t){case"keypress":if(Jf(i)===0)break t;case"keydown":case"keyup":x=hO;break;case"focusin":A="focus",x=Yg;break;case"focusout":A="blur",x=Yg;break;case"beforeblur":case"afterblur":x=Yg;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=g2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=tO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=gO;break;case cx:case rx:case fx:x=nO;break;case hx:x=vO;break;case"scroll":case"scrollend":x=k4;break;case"wheel":x=SO;break;case"copy":case"cut":case"paste":x=aO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=v2;break;case"toggle":case"beforetoggle":x=EO}var R=(e&4)!==0,w=!R&&(t==="scroll"||t==="scrollend"),T=R?p!==null?p+"Capture":null:p;R=[];for(var E=y,z;E!==null;){var O=E;if(z=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||z===null||T===null||(O=xc(E,T),O!=null&&R.push(Nc(E,O,z))),w)break;E=E.return}0<R.length&&(p=new x(p,A,null,i,g),S.push({event:p,listeners:R}))}}if(!(e&7)){t:{if(p=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout",p&&i!==zy&&(A=i.relatedTarget||i.fromElement)&&(ms(A)||A[Qs]))break t;if((x||p)&&(p=g.window===g?g:(p=g.ownerDocument)?p.defaultView||p.parentWindow:window,x?(A=i.relatedTarget||i.toElement,x=y,A=A?ms(A):null,A!==null&&(w=Bc(A),R=A.tag,A!==w||R!==5&&R!==27&&R!==6)&&(A=null)):(x=null,A=y),x!==A)){if(R=g2,O="onMouseLeave",T="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(R=v2,O="onPointerLeave",T="onPointerEnter",E="pointer"),w=x==null?p:ac(x),z=A==null?p:ac(A),p=new R(O,E+"leave",x,i,g),p.target=w,p.relatedTarget=z,O=null,ms(g)===y&&(R=new R(T,E+"enter",A,i,g),R.target=z,R.relatedTarget=w,O=R),w=O,x&&A)e:{for(R=pM,T=x,E=A,z=0,O=T;O;O=R(O))z++;O=0;for(var H=E;H;H=R(H))O++;for(;0<z-O;)T=R(T),z--;for(;0<O-z;)E=R(E),O--;for(;z--;){if(T===E||E!==null&&T===E.alternate){R=T;break e}T=R(T),E=R(E)}R=null}else R=null;x!==null&&cE(S,p,x,R,!1),A!==null&&w!==null&&cE(S,w,A,R,!0)}}t:{if(p=y?ac(y):window,x=p.nodeName&&p.nodeName.toLowerCase(),x==="select"||x==="input"&&p.type==="file")var q=E2;else if(b2(p))if(lx)q=NO;else{q=CO;var L=MO}else x=p.nodeName,!x||x.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?y&&dv(y.elementType)&&(q=E2):q=RO;if(q&&(q=q(t,y))){nx(S,q,i,g);break t}L&&L(t,p,y),t==="focusout"&&y&&p.type==="number"&&y.memoizedProps.value!=null&&Ty(p,"number",p.value)}switch(L=y?ac(y):window,t){case"focusin":(b2(L)||L.contentEditable==="true")&&(vs=L,Ay=y,rc=null);break;case"focusout":rc=Ay=vs=null;break;case"mousedown":Oy=!0;break;case"contextmenu":case"mouseup":case"dragend":Oy=!1,_2(S,i,g);break;case"selectionchange":if(HO)break;case"keydown":case"keyup":_2(S,i,g)}var G;if(vv)t:{switch(t){case"compositionstart":var J="onCompositionStart";break t;case"compositionend":J="onCompositionEnd";break t;case"compositionupdate":J="onCompositionUpdate";break t}J=void 0}else ys?ex(t,i)&&(J="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(J="onCompositionStart");J&&(tx&&i.locale!=="ko"&&(ys||J!=="onCompositionStart"?J==="onCompositionEnd"&&ys&&(G=$E()):(na=g,gv="value"in na?na.value:na.textContent,ys=!0)),L=Oh(y,J),0<L.length&&(J=new y2(J,t,null,i,g),S.push({event:J,listeners:L}),G?J.data=G:(G=ix(i),G!==null&&(J.data=G)))),(G=TO?zO(t,i):_O(t,i))&&(J=Oh(y,"onBeforeInput"),0<J.length&&(L=new y2("onBeforeInput","beforeinput",null,i,g),S.push({event:L,listeners:J}),L.data=G)),yM(S,t,y,i,g)}kT(S,e)})}function Nc(t,e,i){return{instance:t,listener:e,currentTarget:i}}function Oh(t,e){for(var i=e+"Capture",n=[];t!==null;){var u=t,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=xc(t,i),u!=null&&n.unshift(Nc(t,u,s)),u=xc(t,e),u!=null&&n.push(Nc(t,u,s))),t.tag===3)return n;t=t.return}return[]}function pM(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cE(t,e,i,n,u){for(var s=e._reactName,r=[];i!==null&&i!==n;){var f=i,m=f.alternate,y=f.stateNode;if(f=f.tag,m!==null&&m===n)break;f!==5&&f!==26&&f!==27||y===null||(m=y,u?(y=xc(i,s),y!=null&&r.unshift(Nc(i,y,m))):u||(y=xc(i,s),y!=null&&r.push(Nc(i,y,m)))),i=i.return}r.length!==0&&t.push({event:e,listeners:r})}var SM=/\r\n?/g,bM=/\u0000|\uFFFD/g;function rE(t){return(typeof t=="string"?t:""+t).replace(SM,`
20
- `).replace(bM,"")}function tz(t,e){return e=rE(e),rE(t)===e}function Mt(t,e,i,n,u,s){switch(i){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Hs(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Hs(t,""+n);break;case"className":Rf(t,"class",n);break;case"tabIndex":Rf(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Rf(t,i,n);break;case"style":IE(t,n,s);break;case"data":if(e!=="object"){Rf(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(i);break}n=Zf(""+n),t.setAttribute(i,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(i==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(i);break}n=Zf(""+n),t.setAttribute(i,n);break;case"onClick":n!=null&&(t.onclick=hl);break;case"onScroll":n!=null&&rt("scroll",t);break;case"onScrollEnd":n!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(U(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(U(60));t.innerHTML=i}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}i=Zf(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,""+n):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":n===!0?t.setAttribute(i,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(i,n):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(i,n):t.removeAttribute(i);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(i):t.setAttribute(i,n);break;case"popover":rt("beforetoggle",t),rt("toggle",t),Vf(t,"popover",n);break;case"xlinkActuate":ll(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ll(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ll(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ll(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ll(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ll(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ll(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ll(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ll(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Vf(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=P4.get(i)||i,Vf(t,i,n))}}function Iy(t,e,i,n,u,s){switch(i){case"style":IE(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(U(61));if(i=n.__html,i!=null){if(u.children!=null)throw Error(U(60));t.innerHTML=i}}break;case"children":typeof n=="string"?Hs(t,n):(typeof n=="number"||typeof n=="bigint")&&Hs(t,""+n);break;case"onScroll":n!=null&&rt("scroll",t);break;case"onScrollEnd":n!=null&&rt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ZE.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),e=i.slice(2,u?i.length-7:void 0),s=t[di]||null,s=s!=null?s[i]:null,typeof s=="function"&&t.removeEventListener(e,s,u),typeof n=="function")){typeof s!="function"&&s!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,n,u);break t}i in t?t[i]=n:n===!0?t.setAttribute(i,""):Vf(t,i,n)}}}function Ye(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var n=!1,u=!1,s;for(s in i)if(i.hasOwnProperty(s)){var r=i[s];if(r!=null)switch(s){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,e));default:Mt(t,e,s,r,i,null)}}u&&Mt(t,e,"srcSet",i.srcSet,i,null),n&&Mt(t,e,"src",i.src,i,null);return;case"input":rt("invalid",t);var f=s=r=u=null,m=null,y=null;for(n in i)if(i.hasOwnProperty(n)){var g=i[n];if(g!=null)switch(n){case"name":u=g;break;case"type":r=g;break;case"checked":m=g;break;case"defaultChecked":y=g;break;case"value":s=g;break;case"defaultValue":f=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(U(137,e));break;default:Mt(t,e,n,g,i,null)}}FE(t,s,f,m,y,r,u,!1);return;case"select":rt("invalid",t),n=r=s=null;for(u in i)if(i.hasOwnProperty(u)&&(f=i[u],f!=null))switch(u){case"value":s=f;break;case"defaultValue":r=f;break;case"multiple":n=f;default:Mt(t,e,u,f,i,null)}e=s,i=r,t.multiple=!!n,e!=null?_s(t,!!n,e,!1):i!=null&&_s(t,!!n,i,!0);return;case"textarea":rt("invalid",t),s=u=n=null;for(r in i)if(i.hasOwnProperty(r)&&(f=i[r],f!=null))switch(r){case"value":n=f;break;case"defaultValue":u=f;break;case"children":s=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(91));break;default:Mt(t,e,r,f,i,null)}PE(t,n,u,s);return;case"option":for(m in i)if(i.hasOwnProperty(m)&&(n=i[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Mt(t,e,m,n,i,null)}return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(n=0;n<Rc.length;n++)rt(Rc[n],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(y in i)if(i.hasOwnProperty(y)&&(n=i[y],n!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,e));default:Mt(t,e,y,n,i,null)}return;default:if(dv(e)){for(g in i)i.hasOwnProperty(g)&&(n=i[g],n!==void 0&&Iy(t,e,g,n,i,void 0));return}}for(f in i)i.hasOwnProperty(f)&&(n=i[f],n!=null&&Mt(t,e,f,n,i,null))}function EM(t,e,i,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,r=null,f=null,m=null,y=null,g=null;for(x in i){var S=i[x];if(i.hasOwnProperty(x)&&S!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":m=S;default:n.hasOwnProperty(x)||Mt(t,e,x,null,n,S)}}for(var p in n){var x=n[p];if(S=i[p],n.hasOwnProperty(p)&&(x!=null||S!=null))switch(p){case"type":s=x;break;case"name":u=x;break;case"checked":y=x;break;case"defaultChecked":g=x;break;case"value":r=x;break;case"defaultValue":f=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(U(137,e));break;default:x!==S&&Mt(t,e,p,x,n,S)}}xy(t,r,f,m,y,g,s,u);return;case"select":x=r=f=p=null;for(s in i)if(m=i[s],i.hasOwnProperty(s)&&m!=null)switch(s){case"value":break;case"multiple":x=m;default:n.hasOwnProperty(s)||Mt(t,e,s,null,n,m)}for(u in n)if(s=n[u],m=i[u],n.hasOwnProperty(u)&&(s!=null||m!=null))switch(u){case"value":p=s;break;case"defaultValue":f=s;break;case"multiple":r=s;default:s!==m&&Mt(t,e,u,s,n,m)}e=f,i=r,n=x,p!=null?_s(t,!!i,p,!1):!!n!=!!i&&(e!=null?_s(t,!!i,e,!0):_s(t,!!i,i?[]:"",!1));return;case"textarea":x=p=null;for(f in i)if(u=i[f],i.hasOwnProperty(f)&&u!=null&&!n.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Mt(t,e,f,null,n,u)}for(r in n)if(u=n[r],s=i[r],n.hasOwnProperty(r)&&(u!=null||s!=null))switch(r){case"value":p=u;break;case"defaultValue":x=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(U(91));break;default:u!==s&&Mt(t,e,r,u,n,s)}WE(t,p,x);return;case"option":for(var A in i)if(p=i[A],i.hasOwnProperty(A)&&p!=null&&!n.hasOwnProperty(A))switch(A){case"selected":t.selected=!1;break;default:Mt(t,e,A,null,n,p)}for(m in n)if(p=n[m],x=i[m],n.hasOwnProperty(m)&&p!==x&&(p!=null||x!=null))switch(m){case"selected":t.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Mt(t,e,m,p,n,x)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var R in i)p=i[R],i.hasOwnProperty(R)&&p!=null&&!n.hasOwnProperty(R)&&Mt(t,e,R,null,n,p);for(y in n)if(p=n[y],x=i[y],n.hasOwnProperty(y)&&p!==x&&(p!=null||x!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,e));break;default:Mt(t,e,y,p,n,x)}return;default:if(dv(e)){for(var w in i)p=i[w],i.hasOwnProperty(w)&&p!==void 0&&!n.hasOwnProperty(w)&&Iy(t,e,w,void 0,n,p);for(g in n)p=n[g],x=i[g],!n.hasOwnProperty(g)||p===x||p===void 0&&x===void 0||Iy(t,e,g,p,n,x);return}}for(var T in i)p=i[T],i.hasOwnProperty(T)&&p!=null&&!n.hasOwnProperty(T)&&Mt(t,e,T,null,n,p);for(S in n)p=n[S],x=i[S],!n.hasOwnProperty(S)||p===x||p==null&&x==null||Mt(t,e,S,p,n,x)}function fE(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xM(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),n=0;n<i.length;n++){var u=i[n],s=u.transferSize,r=u.initiatorType,f=u.duration;if(s&&f&&fE(r)){for(r=0,f=u.responseEnd,n+=1;n<i.length;n++){var m=i[n],y=m.startTime;if(y>f)break;var g=m.transferSize,S=m.initiatorType;g&&fE(S)&&(m=m.responseEnd,r+=g*(m<f?1:(f-y)/(m-y)))}if(--n,e+=8*(s+r)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ky=null,$y=null;function Mh(t){return t.nodeType===9?t:t.ownerDocument}function hE(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ez(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function tv(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ry=null;function TM(){var t=window.event;return t&&t.type==="popstate"?t===ry?!1:(ry=t,!0):(ry=null,!1)}var iz=typeof setTimeout=="function"?setTimeout:void 0,zM=typeof clearTimeout=="function"?clearTimeout:void 0,dE=typeof Promise=="function"?Promise:void 0,_M=typeof queueMicrotask=="function"?queueMicrotask:typeof dE<"u"?function(t){return dE.resolve(null).then(t).catch(AM)}:iz;function AM(t){setTimeout(function(){throw t})}function Ea(t){return t==="head"}function mE(t,e){var i=e,n=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(n===0){t.removeChild(u),Ys(e);return}n--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")n++;else if(i==="html")bc(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,bc(i);for(var s=i.firstChild;s;){var r=s.nextSibling,f=s.nodeName;s[qc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&s.rel.toLowerCase()==="stylesheet"||i.removeChild(s),s=r}}else i==="body"&&bc(t.ownerDocument.body);i=u}while(i);Ys(e)}function gE(t,e){var i=t;t=0;do{var n=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),n&&n.nodeType===8)if(i=n.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=n}while(i)}function ev(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ev(i),hv(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function OM(t,e,i,n){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[qc])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=an(t.nextSibling),t===null)break}return null}function MM(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=an(t.nextSibling),t===null))return null;return t}function nz(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=an(t.nextSibling),t===null))return null;return t}function iv(t){return t.data==="$?"||t.data==="$~"}function nv(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function CM(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var n=function(){e(),i.removeEventListener("DOMContentLoaded",n)};i.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function an(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var lv=null;function yE(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return an(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function vE(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function lz(t,e,i){switch(e=Mh(i),t){case"html":if(t=e.documentElement,!t)throw Error(U(452));return t;case"head":if(t=e.head,!t)throw Error(U(453));return t;case"body":if(t=e.body,!t)throw Error(U(454));return t;default:throw Error(U(451))}}function bc(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hv(t)}var un=new Map,pE=new Set;function Ch(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xl=xt.d;xt.d={f:RM,r:NM,D:DM,C:HM,L:UM,m:BM,X:jM,S:wM,M:LM};function RM(){var t=xl.f(),e=Kh();return t||e}function NM(t){var e=Xs(t);e!==null&&e.tag===5&&e.type==="form"?Ix(e):xl.r(t)}var Js=typeof document>"u"?null:document;function az(t,e,i){var n=Js;if(n&&typeof e=="string"&&e){var u=tn(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),pE.has(u)||(pE.add(u),t={rel:t,crossOrigin:i,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),Ye(e,"link",t),Re(e),n.head.appendChild(e)))}}function DM(t){xl.D(t),az("dns-prefetch",t,null)}function HM(t,e){xl.C(t,e),az("preconnect",t,e)}function UM(t,e,i){xl.L(t,e,i);var n=Js;if(n&&t&&e){var u='link[rel="preload"][as="'+tn(e)+'"]';e==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+tn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+tn(i.imageSizes)+'"]')):u+='[href="'+tn(t)+'"]';var s=u;switch(e){case"style":s=Gs(t);break;case"script":s=Fs(t)}un.has(s)||(t=Gt({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),un.set(s,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Zc(s))||e==="script"&&n.querySelector(Kc(s))||(e=n.createElement("link"),Ye(e,"link",t),Re(e),n.head.appendChild(e)))}}function BM(t,e){xl.m(t,e);var i=Js;if(i&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+tn(n)+'"][href="'+tn(t)+'"]',s=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Fs(t)}if(!un.has(s)&&(t=Gt({rel:"modulepreload",href:t},e),un.set(s,t),i.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Kc(s)))return}n=i.createElement("link"),Ye(n,"link",t),Re(n),i.head.appendChild(n)}}}function wM(t,e,i){xl.S(t,e,i);var n=Js;if(n&&t){var u=zs(n).hoistableStyles,s=Gs(t);e=e||"default";var r=u.get(s);if(!r){var f={loading:0,preload:null};if(r=n.querySelector(Zc(s)))f.loading=5;else{t=Gt({rel:"stylesheet",href:t,"data-precedence":e},i),(i=un.get(s))&&Iv(t,i);var m=r=n.createElement("link");Re(m),Ye(m,"link",t),m._p=new Promise(function(y,g){m.onload=y,m.onerror=g}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,eh(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:f},u.set(s,r)}}}function jM(t,e){xl.X(t,e);var i=Js;if(i&&t){var n=zs(i).hoistableScripts,u=Fs(t),s=n.get(u);s||(s=i.querySelector(Kc(u)),s||(t=Gt({src:t,async:!0},e),(e=un.get(u))&&kv(t,e),s=i.createElement("script"),Re(s),Ye(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function LM(t,e){xl.M(t,e);var i=Js;if(i&&t){var n=zs(i).hoistableScripts,u=Fs(t),s=n.get(u);s||(s=i.querySelector(Kc(u)),s||(t=Gt({src:t,async:!0,type:"module"},e),(e=un.get(u))&&kv(t,e),s=i.createElement("script"),Re(s),Ye(s,"link",t),i.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function SE(t,e,i,n){var u=(u=sa.current)?Ch(u):null;if(!u)throw Error(U(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Gs(i.href),i=zs(u).hoistableStyles,n=i.get(e),n||(n={type:"style",instance:null,count:0,state:null},i.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Gs(i.href);var s=zs(u).hoistableStyles,r=s.get(t);if(r||(u=u.ownerDocument||u,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,r),(s=u.querySelector(Zc(t)))&&!s._p&&(r.instance=s,r.state.loading=5),un.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},un.set(t,i),s||qM(u,t,i,r.state))),e&&n===null)throw Error(U(528,""));return r}if(e&&n!==null)throw Error(U(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fs(i),i=zs(u).hoistableScripts,n=i.get(e),n||(n={type:"script",instance:null,count:0,state:null},i.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,t))}}function Gs(t){return'href="'+tn(t)+'"'}function Zc(t){return'link[rel="stylesheet"]['+t+"]"}function uz(t){return Gt({},t,{"data-precedence":t.precedence,precedence:null})}function qM(t,e,i,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Ye(e,"link",i),Re(e),t.head.appendChild(e))}function Fs(t){return'[src="'+tn(t)+'"]'}function Kc(t){return"script[async]"+t}function bE(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+tn(i.href)+'"]');if(n)return e.instance=n,Re(n),n;var u=Gt({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Re(n),Ye(n,"style",u),eh(n,i.precedence,t),e.instance=n;case"stylesheet":u=Gs(i.href);var s=t.querySelector(Zc(u));if(s)return e.state.loading|=4,e.instance=s,Re(s),s;n=uz(i),(u=un.get(u))&&Iv(n,u),s=(t.ownerDocument||t).createElement("link"),Re(s);var r=s;return r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ye(s,"link",n),e.state.loading|=4,eh(s,i.precedence,t),e.instance=s;case"script":return s=Fs(i.src),(u=t.querySelector(Kc(s)))?(e.instance=u,Re(u),u):(n=i,(u=un.get(s))&&(n=Gt({},i),kv(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Re(u),Ye(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(U(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(n=e.instance,e.state.loading|=4,eh(n,i.precedence,t));return e.instance}function eh(t,e,i){for(var n=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,s=u,r=0;r<n.length;r++){var f=n[r];if(f.dataset.precedence===e)s=f;else if(s!==u)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Iv(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function kv(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ih=null;function EE(t,e,i){if(ih===null){var n=new Map,u=ih=new Map;u.set(i,n)}else u=ih,n=u.get(i),n||(n=new Map,u.set(i,n));if(n.has(t))return n;for(n.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var s=i[u];if(!(s[qc]||s[Le]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var r=s.getAttribute(e)||"";r=t+r;var f=n.get(r);f?f.push(s):n.set(r,[s])}}return n}function xE(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function GM(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function sz(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function YM(t,e,i,n){if(i.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(i.state.loading&4)){if(i.instance===null){var u=Gs(n.href),s=e.querySelector(Zc(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Rh.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=s,Re(s);return}s=e.ownerDocument||e,n=uz(n),(u=un.get(u))&&Iv(n,u),s=s.createElement("link"),Re(s);var r=s;r._p=new Promise(function(f,m){r.onload=f,r.onerror=m}),Ye(s,"link",n),i.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&!(i.state.loading&3)&&(t.count++,i=Rh.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var fy=0;function QM(t,e){return t.stylesheets&&t.count===0&&nh(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var n=setTimeout(function(){if(t.stylesheets&&nh(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&fy===0&&(fy=62500*xM());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&nh(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>fy?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function Rh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Nh=null;function nh(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Nh=new Map,e.forEach(XM,t),Nh=null,Rh.call(t))}function XM(t,e){if(!(e.state.loading&4)){var i=Nh.get(t);if(i)var n=i.get(null);else{i=new Map,Nh.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var r=u[s];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(i.set(r.dataset.precedence,r),n=r)}n&&i.set(null,n)}u=e.instance,r=u.getAttribute("data-precedence"),s=i.get(r)||n,s===n&&i.set(null,u),i.set(r,u),this.count++,n=Rh.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),s?s.parentNode.insertBefore(u,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Dc={$$typeof:fl,Provider:null,Consumer:null,_currentValue:iu,_currentValue2:iu,_threadCount:0};function VM(t,e,i,n,u,s,r,f,m){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jg(0),this.hiddenUpdates=jg(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function oz(t,e,i,n,u,s,r,f,m,y,g,S){return t=new VM(t,e,i,r,m,y,g,S,f),e=1,s===!0&&(e|=24),s=Ni(3,null,null,e),t.current=s,s.stateNode=t,e=zv(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:i,cache:e},Ov(s),t}function cz(t){return t?(t=bs,t):bs}function rz(t,e,i,n,u,s){u=cz(u),n.context===null?n.context=u:n.pendingContext=u,n=ca(e),n.payload={element:i},s=s===void 0?null:s,s!==null&&(n.callback=s),i=ra(t,n,e),i!==null&&(hi(i,t,e),hc(i,t,e))}function TE(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function $v(t,e){TE(t,e),(t=t.alternate)&&TE(t,e)}function fz(t){if(t.tag===13||t.tag===31){var e=gu(t,67108864);e!==null&&hi(e,t,67108864),$v(t,67108864)}}function zE(t){if(t.tag===13||t.tag===31){var e=wi();e=rv(e);var i=gu(t,e);i!==null&&hi(i,t,e),$v(t,e)}}var Dh=!0;function ZM(t,e,i,n){var u=tt.T;tt.T=null;var s=xt.p;try{xt.p=2,tp(t,e,i,n)}finally{xt.p=s,tt.T=u}}function KM(t,e,i,n){var u=tt.T;tt.T=null;var s=xt.p;try{xt.p=8,tp(t,e,i,n)}finally{xt.p=s,tt.T=u}}function tp(t,e,i,n){if(Dh){var u=av(n);if(u===null)cy(t,e,n,Hh,i),_E(t,n);else if(FM(u,t,e,i,n))n.stopPropagation();else if(_E(t,n),e&4&&-1<JM.indexOf(t)){for(;u!==null;){var s=Xs(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var r=$a(s.pendingLanes);if(r!==0){var f=s;for(f.pendingLanes|=2,f.entangledLanes|=2;r;){var m=1<<31-Bi(r);f.entanglements[1]|=m,r&=~m}wn(s),!(Et&6)&&(xh=Hi()+500,Vc(0,!1))}}break;case 31:case 13:f=gu(s,2),f!==null&&hi(f,s,2),Kh(),$v(s,2)}if(s=av(n),s===null&&cy(t,e,n,Hh,i),s===u)break;u=s}u!==null&&n.stopPropagation()}else cy(t,e,n,null,i)}}function av(t){return t=mv(t),ep(t)}var Hh=null;function ep(t){if(Hh=null,t=ms(t),t!==null){var e=Bc(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=NE(e),t!==null)return t;t=null}else if(i===31){if(t=DE(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Hh=t,null}function hz(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(U4()){case wE:return 2;case jE:return 8;case oh:case B4:return 32;case LE:return 268435456;default:return 32}default:return 32}}var uv=!1,da=null,ma=null,ga=null,Hc=new Map,Uc=new Map,ea=[],JM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function _E(t,e){switch(t){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":ga=null;break;case"pointerover":case"pointerout":Hc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uc.delete(e.pointerId)}}function ec(t,e,i,n,u,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:i,eventSystemFlags:n,nativeEvent:s,targetContainers:[u]},e!==null&&(e=Xs(e),e!==null&&fz(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function FM(t,e,i,n,u){switch(e){case"focusin":return da=ec(da,t,e,i,n,u),!0;case"dragenter":return ma=ec(ma,t,e,i,n,u),!0;case"mouseover":return ga=ec(ga,t,e,i,n,u),!0;case"pointerover":var s=u.pointerId;return Hc.set(s,ec(Hc.get(s)||null,t,e,i,n,u)),!0;case"gotpointercapture":return s=u.pointerId,Uc.set(s,ec(Uc.get(s)||null,t,e,i,n,u)),!0}return!1}function dz(t){var e=ms(t.target);if(e!==null){var i=Bc(e);if(i!==null){if(e=i.tag,e===13){if(e=NE(i),e!==null){t.blockedOn=e,o2(t.priority,function(){zE(i)});return}}else if(e===31){if(e=DE(i),e!==null){t.blockedOn=e,o2(t.priority,function(){zE(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function lh(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=av(t.nativeEvent);if(i===null){i=t.nativeEvent;var n=new i.constructor(i.type,i);zy=n,i.target.dispatchEvent(n),zy=null}else return e=Xs(i),e!==null&&fz(e),t.blockedOn=i,!1;e.shift()}return!0}function AE(t,e,i){lh(t)&&i.delete(e)}function WM(){uv=!1,da!==null&&lh(da)&&(da=null),ma!==null&&lh(ma)&&(ma=null),ga!==null&&lh(ga)&&(ga=null),Hc.forEach(AE),Uc.forEach(AE)}function Qf(t,e){t.blockedOn===e&&(t.blockedOn=null,uv||(uv=!0,Te.unstable_scheduleCallback(Te.unstable_NormalPriority,WM)))}var Xf=null;function OE(t){Xf!==t&&(Xf=t,Te.unstable_scheduleCallback(Te.unstable_NormalPriority,function(){Xf===t&&(Xf=null);for(var e=0;e<t.length;e+=3){var i=t[e],n=t[e+1],u=t[e+2];if(typeof n!="function"){if(ep(n||i)===null)continue;break}var s=Xs(i);s!==null&&(t.splice(e,3),e-=3,Gy(s,{pending:!0,data:u,method:i.method,action:n},n,u))}}))}function Ys(t){function e(m){return Qf(m,t)}da!==null&&Qf(da,t),ma!==null&&Qf(ma,t),ga!==null&&Qf(ga,t),Hc.forEach(e),Uc.forEach(e);for(var i=0;i<ea.length;i++){var n=ea[i];n.blockedOn===t&&(n.blockedOn=null)}for(;0<ea.length&&(i=ea[0],i.blockedOn===null);)dz(i),i.blockedOn===null&&ea.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(n=0;n<i.length;n+=3){var u=i[n],s=i[n+1],r=u[di]||null;if(typeof s=="function")r||OE(i);else if(r){var f=null;if(s&&s.hasAttribute("formAction")){if(u=s,r=s[di]||null)f=r.formAction;else if(ep(u)!==null)continue}else f=r.action;typeof f=="function"?i[n+1]=f:(i.splice(n,3),n-=3),OE(i)}}}function mz(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(r){return u=r})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),n||setTimeout(i,20)}function i(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function ip(t){this._internalRoot=t}Wh.prototype.render=ip.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(U(409));var i=e.current,n=wi();rz(i,n,t,e,null,null)};Wh.prototype.unmount=ip.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;rz(t.current,2,null,t,null,null),Kh(),e[Qs]=null}};function Wh(t){this._internalRoot=t}Wh.prototype.unstable_scheduleHydration=function(t){if(t){var e=XE();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ea.length&&e!==0&&e<ea[i].priority;i++);ea.splice(i,0,t),i===0&&dz(t)}};var ME=CE.version;if(ME!=="19.2.0")throw Error(U(527,ME,"19.2.0"));xt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(U(188)):(t=Object.keys(t).join(","),Error(U(268,t)));return t=O4(e),t=t!==null?HE(t):null,t=t===null?null:t.stateNode,t};var PM={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:tt,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ic=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ic.isDisabled&&ic.supportsFiber))try{wc=ic.inject(PM),Ui=ic}catch{}var ic;Ph.createRoot=function(t,e){if(!RE(t))throw Error(U(299));var i=!1,n="",u=aT,s=uT,r=sT;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=oz(t,1,!1,null,null,i,n,null,u,s,r,mz),t[Qs]=e.current,Pv(t),new ip(e)};Ph.hydrateRoot=function(t,e,i){if(!RE(t))throw Error(U(299));var n=!1,u="",s=aT,r=uT,f=sT,m=null;return i!=null&&(i.unstable_strictMode===!0&&(n=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(s=i.onUncaughtError),i.onCaughtError!==void 0&&(r=i.onCaughtError),i.onRecoverableError!==void 0&&(f=i.onRecoverableError),i.formState!==void 0&&(m=i.formState)),e=oz(t,1,!0,e,i??null,n,u,m,s,r,f,mz),e.context=cz(null),i=e.current,n=wi(),n=rv(n),u=ca(n),u.callback=null,ra(i,u,n),i=n,e.current.lanes=i,Lc(e,i),wn(e),t[Qs]=e.current,Pv(t),new Wh(e)};Ph.version="19.2.0"});var pz=be((PD,vz)=>{"use strict";function yz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yz)}catch(t){console.error(t)}}yz(),vz.exports=gz()});var FC={};MA(FC,{Atlas:()=>Cg,AtlasAuto:()=>E4,AtlasContext:()=>On,BoundsContext:()=>Zl,Box:()=>dn,BrowserEventManager:()=>Fa,CanvasRenderer:()=>Ho,CompositeRenderer:()=>Va,CompositeResource:()=>Mo,DebugRenderer:()=>Uo,DrawBox:()=>x4,Geometry:()=>Xa,GridBuilder:()=>$m,HTMLPortal:()=>Ih,ImageService:()=>YC,ImageTexture:()=>Xl,ModeContext:()=>An,ModeProvider:()=>o4,OverlayRenderer:()=>Ja,ReactAtlas:()=>is,RegionHighlight:()=>IM,ResizeWorldItem:()=>sp,Runtime:()=>_n,SingleImage:()=>Ee,StaticRenderer:()=>Ko,Text:()=>il,TileSet:()=>cp,TiledImage:()=>Ki,WebGLRenderer:()=>Xo,World:()=>Ji,WorldObject:()=>zn,Zone:()=>Jm,activateEvents:()=>Ag,applyProps:()=>_g,bounceOut:()=>Ro,canDrag:()=>KC,createDefaultEventMap:()=>Zm,defaultConfig:()=>kS,defaultPreset:()=>Zo,easingFunctions:()=>mn,fromImage:()=>RA,getId:()=>rp,getTileFromCanvas:()=>$z,getTileFromImageService:()=>ud,getTiles:()=>GC,getTilesFromManifest:()=>t_,mergeStyles:()=>JC,popmotionController:()=>Bo,presets:()=>Mg,staticPreset:()=>Og,supportedEventAttributes:()=>Fu,supportedEventMap:()=>hn,unmountComponentAtNode:()=>es,useAfterFrame:()=>Rg,useAfterPaint:()=>QC,useAtlas:()=>Fo,useAtlasImage:()=>XC,useBeforeFrame:()=>VC,useCanvas:()=>Ng,useControlledAnnotationList:()=>ZC,useFrame:()=>Pa,useMode:()=>wo,useResizeWorldItem:()=>up,useRuntime:()=>we,useWorldEvent:()=>kh});var Fu=["onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onClick","onDragStart","onDragEnd","onDragEnter","onDragExit","onDrag","onDragOver","onContextMenu"];function Zm(){return Fu.reduce((t,e)=>(t[e]=[],t),{})}var hn=Fu.reduce((t,e)=>(t[e.slice(2).toLowerCase()]=e,t[e]=e,t),{});var Ql=(t,e,i)=>{let n=t.length,u=i||Z(n);for(let s=0;s<n;s++)u[s]=s%5===0?t[s+1]<e[3]&&t[s+3]>e[1]&&t[s+2]<e[4]&&t[s+4]>e[2]?1:0:t[s];return u};function Z(t,e,i){return new Float32Array(t,e,i)}var hS=(t,e,i)=>{let n=t[1]<=e[3]&&t[3]>=e[1]&&t[2]<=e[4]&&t[4]>=e[2],u=i||Z(5);return n?(u[0]=1,u[1]=Math.max(t[1],e[1]),u[2]=Math.max(t[2],e[2]),u[3]=Math.min(t[3],e[3]),u[4]=Math.min(t[4],e[4]),u):(u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u)},dS=t=>t.length/5;var ui=(t,e,i)=>{let n=i||Z(9);return n[0]=t[0]*e[0]+t[1]*e[3]+t[2]*e[6],n[1]=t[0]*e[1]+t[1]*e[4]+t[2]*e[7],n[2]=t[0]*e[2]+t[1]*e[5]+t[2]*e[8],n[3]=t[3]*e[0]+t[4]*e[3]+t[5]*e[6],n[4]=t[3]*e[1]+t[4]*e[4]+t[5]*e[7],n[5]=t[3]*e[2]+t[4]*e[5]+t[5]*e[8],n[6]=t[6]*e[0]+t[7]*e[3]+t[8]*e[6],n[7]=t[6]*e[1]+t[7]*e[4]+t[8]*e[7],n[8]=t[6]*e[2]+t[7]*e[5]+t[8]*e[8],n},et=class t{constructor(e){this.index=0,this.length=e,this.points=Z(this.length)}static grid(e=1,i=1){return new t(5*e*i)}static point(e,i){let n=Z(5);return n[0]=1,n[1]=e,n[2]=i,n[3]=e,n[4]=i,n}static positionPair(e){let i=Z(5);return i[0]=1,i[1]=e.x1,i[2]=e.y1,i[3]=e.x2,i[4]=e.y2,i}static projection(e){return t.singleBox(e.width,e.height,e.x,e.y)}static singleBox(e,i,n=0,u=0){let s=Z(5);return s[0]=1,s[1]=n,s[2]=u,s[3]=e+n,s[4]=i+u,s}row(e){return e(this)}addPoints(e,i,n,u){return this.points[this.index]=1,this.points[1+this.index]=e,this.points[2+this.index]=i,this.points[3+this.index]=n,this.points[4+this.index]=u,this.index+=5,this}addBox(e,i,n,u){return this.addPoints(e,i,e+n,i+u),this}build(){return this.points}};var Pe=(t,e)=>{let i=t.length;for(let n=0;n<i;n++)t[n]=n%5===0?e[6]*t[n+1]+e[7]*t[n+2]+e[8]*t[n]:n%5%2===1?e[0]*t[n]+e[1]*t[n+1]+e[2]:e[3]*t[n-1]+e[4]*t[n]+e[5];return t},_i=t=>{let e=Z(9);return e[0]=t,e[4]=t,e[8]=1,e},Kt=(t,e)=>{let i=Z(9);return i[0]=1,i[2]=t,i[4]=1,i[5]=e,i[8]=1,i},el=(t,e,i)=>ui(Kt((1-t)*e,(1-t)*i),_i(t)),Ai=(t,e,i)=>{let n=t.length,u=i&&i.length>=n?i.slice(0,n):Z(n);for(let s=0;s<n;s++)u[s]=s%5===0?e[6]*t[s+1]+e[7]*t[s+2]+e[8]*t[s]:s%5%2===1?e[0]*t[s]+e[1]*t[s+1]+e[2]:e[3]*t[s-1]+e[4]*t[s]+e[5];return u};var mS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Tn=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=mS[i[t]&63];return e};var It=class{constructor(){b(this,"__id");b(this,"__revision",0);b(this,"__host");b(this,"__onCreate");b(this,"__parent");b(this,"__owner",{value:void 0});b(this,"__state",{});b(this,"eventHandlers");b(this,"scale",1);b(this,"layers",[]);b(this,"time",[]);b(this,"_crop");b(this,"cropData");b(this,"id");b(this,"addEventListener",(e,i,n)=>{let u=hn[e];if(!this.eventHandlers[u])throw new Error(`Unknown event ${u}`);this.eventHandlers[u].indexOf(i)===-1&&this.eventHandlers[u].push(i)});b(this,"removeEventListener",(e,i)=>{let n=hn[e];if(!this.eventHandlers[n]){console.warn(`Unknown event ${n}`);return}this.eventHandlers[n].indexOf(i)!==-1&&(this.eventHandlers[n]=this.eventHandlers[n].filter(u=>u!==i))});this.id=this.__id=Tn(),this.eventHandlers=Zm()}get crop(){return this._crop}set crop(e){this._crop=e}getObjectsAt(e){return[]}getAllPointsAt(e,i,n){return[]}getScheduledUpdates(e,i){return[]}dispatchEvent(e,i){let n=this.eventHandlers[e],u=n?n.length:0,s=!1;if(u)for(let r=0;r<u;r++)try{n[r](i),s=!0}catch(f){console.error(e,f)}return s}get x(){return this.points[1]}get y(){return this.points[2]}get width(){return this.points[3]-this.points[1]}get height(){return this.points[4]-this.points[2]}translate(e,i){Pe(this.points,Kt(e,i))}atScale(e){Pe(this.points,el(e,this.x,this.y)),this.scale*=e}transform(e){Pe(this.points,e)}applyProps(e){this.__revision++}appendChild(e){}removeChild(e){}insertBefore(e,i){}hideInstance(){}};var Ee=class t extends It{constructor(i){super();b(this,"type","spacial-content");b(this,"id");b(this,"uri");b(this,"display");b(this,"points");b(this,"priority");b(this,"style",{opacity:1});if(!i)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Z(5)},this.points=Z(5);else{let n=i.scale||1;this.id=i.id||i.uri,this.uri=i.uri,this.points=et.singleBox(i.width,i.height,i.x,i.y),this.display={x:0,y:0,scale:n,width:i.width/n,height:i.height/n,points:et.singleBox(i.width/n,i.height/n),rotation:i?.rotation}}}applyProps(i){let n=i.display?i.display.width:i.target.width,u=i.target.width/n;if(this.id=i.id||i.uri,this.uri=i.uri,this.points.set(et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y)),i.style&&typeof i.style.opacity<"u"&&(this.style.opacity=i.style.opacity),i.crop){this.cropData=i.crop;let s=et.singleBox(i.crop.width,i.crop.height,i.crop.x,i.crop.y);Pe(s,Kt(-i.crop.x,-i.crop.y)),this.crop?this.crop.set(s):this.crop=Z(s)}i.display?(this.display.scale=u,this.display.width=i.display.width,this.display.height=i.display.height,this.display.rotation=i.display.rotation,this.display.points=et.singleBox(i.display.width,i.display.height)):(this.display.scale=u,this.display.width=i.target.width/u,this.display.height=i.target.height/u,this.display.points=et.singleBox(i.target.width/u,i.target.height/u))}getAllPointsAt(i,n,u){return[[this,this.crop||this.points,n]]}static fromSvg(i,n,u,s){return t.fromImage("data:image/svg+xml;base64,"+btoa(i),n,u,s)}static fromImage(i,n,u,s){let r=new t;return r.applyProps({uri:i,id:s,display:u,target:n}),r}getImageUrl(){return this.uri}};var Xl=class extends It{constructor(i){super();b(this,"type","spacial-content");b(this,"id");b(this,"uri");b(this,"display");b(this,"points");b(this,"getTexture");if(this.getTexture=()=>({source:void 0,hash:-1}),!i)this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Z(5)},this.points=Z(5);else{let n=i.scale||1;this.id=i.id||i.uri,this.uri=i.uri,this.points=et.singleBox(i.width,i.height),this.display={x:0,y:0,scale:n,width:i.width/n,height:i.height/n,points:n!==1?et.singleBox(i.width/n,i.height/n):this.points}}}applyProps(i){let n=i.display?i.display.width:i.target.width,u=i.target.width/n;this.id=i.id,this.points.set(et.singleBox(i.target.width,i.target.height)),this.display.scale=u,this.display.width=i.target.width/u,this.display.height=i.target.height/u,this.getTexture=i.getTexture,this.display.points=u!==1?et.singleBox(i.target.width/u,i.target.height/u):this.points}getAllPointsAt(i,n,u){return[[this,this.points,n]]}};function gS(t,e,i=1){let n=e.length;if(n===0)throw new Error("No resources passed in.");let u=0,s=1/0;for(let r=0;r<n&&!(!e[r]||!e[r].display);r++){let f=Km(e[r].display.scale,t/(i||1));f<s&&(s=f,u=r)}return u}function Km(t,e){return Math.abs(t-e)}function Qa(t,e){let i=Km(t.x,e.x),n=Km(t.y,e.y);return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}function yS(t){let e=t.length;return t.indexOf("/info.json")===e-10?t.slice(0,-10):t}function Fr(t,e,i){return Math.min(Math.max(t,e),i)}var Ki=class t extends It{constructor(i){super();b(this,"id");b(this,"type","spacial-content");b(this,"display");b(this,"tileWidth");b(this,"style",{opacity:1});b(this,"points");b(this,"service");b(this,"format","jpg");b(this,"crop2");b(this,"version3");b(this,"tileUrl");this.tileUrl=yS(i.url),this.id=i.id||`${this.tileUrl}--${i.scaleFactor}`,this.points=i.displayPoints?i.displayPoints:Ai(i.points,_i(i.scaleFactor)),this.tileWidth=i.tileWidth,this.version3=i.version3,this.display={x:0,y:0,width:i.width/i.scaleFactor,height:i.height/i.scaleFactor,points:i.points,scale:i.scaleFactor},i.format&&(this.format=i.format)}applyProps(i){if(i.style&&typeof i.style.opacity<"u"&&(this.style.opacity=i.style.opacity),i.service!==this.service&&(this.service=i.service),i.format?this.format=i.format:this.format="jpg",typeof i.version3<"u"&&(this.version3=i.version3),i.crop){this.cropData=i.crop;let n=Z([...this.points]),u=n.length/5,s=i.crop.x||0,r=i.crop.y||0,f=i.crop.x+i.crop.width,m=i.crop.y+i.crop.height;for(let y=0;y<u;y++){let g=y*5;n[g+1]<f&&n[g+3]>s&&n[g+2]<m&&n[g+4]>r?(n[g+1]=Fr(n[g+1],s,f),n[g+3]=Fr(n[g+3],s,f),n[g+2]=Fr(n[g+2],r,m),n[g+4]=Fr(n[g+4],r,m)):n[g]=0}Pe(n,Kt(-i.crop.x,-i.crop.y)),this.crop?this.crop.set(n):this.crop=n}}static fromTile(i,n,u,s,r,f,m,y){u.height=u.height?u.height:u.width;let g=m?Math.floor(n.width/s):Math.ceil(n.width/s),S=m?Math.floor(n.height/s):Math.ceil(n.height/s),p=Math.ceil(g/u.width),x=Math.ceil(S/u.height),A=et.grid(p,x),R=et.grid(p,x),w=r?r["@context"]?Array.isArray(r["@context"])?r["@context"]:[r["@context"]]:[]:[],T=typeof y<"u"?y:w.indexOf("http://iiif.io/api/image/3/context.json")!==-1;for(let z=0;z<x;z++)for(let O=0;O<p;O++){let H=O*u.width,q=z*u.height;R.addPoints(H*s,q*s,O===p-1?n.width:(H+u.width)*s,z===x-1?n.height:(q+u.height)*s),A.addPoints(H,q,O===p-1?g:H+u.width,z===x-1?S:q+u.height)}let E=new t({url:i,scaleFactor:s,points:A.build(),displayPoints:R.build(),width:n.width,height:n.height,tileWidth:u.width,format:f,version3:T});return E.applyProps({service:r}),E}getImageUrl(i){let n=this.points.slice(i*5,i*5+5),u=n[3]-n[1],s=n[4]-n[2],r=Math.ceil(u/this.display.scale),f=Math.ceil(s/this.display.scale),m=`${r>this.tileWidth?this.tileWidth:r},`;return this.version3&&(m+=`${f>this.tileWidth?this.tileWidth:f}`),`${this.tileUrl}/${n[1]},${n[2]},${u},${s}/${m}/0/default.${this.format||"jpg"}`}getAllPointsAt(i,n,u){let s=Ql(this.crop||this.points,i);return[[this,s,n]]}transform(i){Pe(this.points,i)}getScheduledUpdates(i,n){return[]}};var Wr=class extends It{constructor(){super(...arguments);b(this,"type","spacial-content")}getAllPointsAt(i,n,u){return[[this,this.points,n]]}};var Mo=class extends Wr{constructor(i){super();b(this,"id");b(this,"display");b(this,"points");b(this,"images",[]);b(this,"allImages",[]);b(this,"scaleFactors",[]);b(this,"aggregateBuffer",Z(9));b(this,"lazyLoader");b(this,"isFullyLoaded",!1);b(this,"maxScaleFactor",0);b(this,"renderOptions");b(this,"_scheduleSortByScales",!1);b(this,"_sortByScales",()=>{this._scheduleSortByScales=!1,this.allImages.sort((n,u)=>u.display.width-n.display.width),this.images=[];let i=.1;for(let n of this.allImages){if(n.display.width<this.renderOptions.minSize&&n.display.height<this.renderOptions.minSize&&!n.priority||n instanceof Ee&&(n.display.width>this.renderOptions.maxImageSize||n.display.height>this.renderOptions.maxImageSize)&&!n.priority)continue;if(Math.abs(n.display.scale-i)<.25||n.priority){let s=this.images.pop();s&&(s instanceof Ee||s.priority)?(n.priority&&this.images.push(n),this.images.push(s)):n&&this.images.push(n)}else n&&this.images.push(n);i=n.display.scale}this.images.length===0&&(this.images=[...this.allImages]),this.scaleFactors=this.images.map(n=>n.display.scale),this.maxScaleFactor=Math.max(...this.scaleFactors)});b(this,"loadFullResource",async()=>{if(!this.isFullyLoaded&&this.lazyLoader){this.isFullyLoaded=!0;let i=await this.lazyLoader();this.addImages(i)}});b(this,"fallback",[this.loadFullResource]);this.id=i.id,this.points=et.singleBox(i.width,i.height),this.lazyLoader=i.loadFullImages,i.loadFullImages||(this.isFullyLoaded=!0),this.display={x:0,y:0,points:et.singleBox(i.width,i.height),height:i.height,width:i.width,scale:1},this.renderOptions={renderSmallestFallback:!0,renderLayers:3,minSize:255,maxImageSize:2048,quality:1.5,...i.renderOptions||{}},this.addImages(i.images)}applyProps(i){typeof i.renderSmallestFallback<"u"&&i.renderSmallestFallback!==this.renderOptions.renderSmallestFallback&&(this.renderOptions.renderSmallestFallback=i.renderSmallestFallback),typeof i.renderLayers<"u"&&i.renderLayers!==this.renderOptions.renderLayers&&(this.renderOptions.renderLayers=i.renderLayers),typeof i.minSize<"u"&&i.minSize!==this.renderOptions.minSize&&(this.renderOptions.minSize=i.minSize),typeof i.maxImageSize<"u"&&i.maxImageSize!==this.renderOptions.maxImageSize&&(this.renderOptions.maxImageSize=i.maxImageSize),typeof i.quality<"u"&&i.quality!==this.renderOptions.quality&&(this.renderOptions.quality=i.quality)}appendChild(i){this.addImages([i])}removeChild(i){this.images.indexOf(i)!==-1&&(this.images=this.images.filter(n=>n!==i),this.sortByScales())}insertBefore(i,n){this.addImages([i])}hideInstance(){}addImages(i){for(let n of i)n.__parent=this,n.__owner=this.__owner;this.allImages.push(...i.filter(Boolean)),this.sortByScales()}sortByScales(){this._scheduleSortByScales=!0}getScheduledUpdates(i,n){return this._scheduleSortByScales?[this._sortByScales]:this.isFullyLoaded?[]:n>1/this.maxScaleFactor?this.fallback:[]}getAllPointsAt(i,n,u){if(this.images.length===0)return[];let s=gS(1/(u||1)/(window.devicePixelRatio||1),this.images,this.renderOptions.quality),r=this.images.length,f=n?ui(n,Kt(this.x,this.y)):Kt(this.x,this.y);if(s!==this.images.length-1&&this.images[s+1]){let m=[];for(let S=r-1;S>=s;S--)m.push(S);let y=m[0];this.renderOptions.renderLayers&&(m=m.slice(-Math.min(m.length,this.renderOptions.renderLayers))),this.renderOptions.renderSmallestFallback&&m.indexOf(y)===-1&&m.unshift(y);let g=[];for(let S=0;S<m.length;S++)g.push(...this.images[m[S]].getAllPointsAt(i,f,u));return g}return this.images[s].getAllPointsAt(i,f,u)}};function Pr(t,e,i,n,u){let s=Math.PI/180*u,r=Math.cos(s),f=Math.sin(s),m=r*(i-t)+f*(n-e)+t,y=r*(n-e)-f*(i-t)+e;return[m,y]}var zn=class t extends It{constructor(i,n){super();b(this,"id");b(this,"type","world-object");b(this,"scale");b(this,"layers");b(this,"points");b(this,"worldPoints");b(this,"intersectionBuffer",Z(5));b(this,"aggregateBuffer",Z(9));b(this,"invertedBuffer",Z(9));b(this,"rotation",0);b(this,"filteredPointsBuffer");b(this,"_updatedList",[]);b(this,"geometry");let{x:u=0,y:s=0}=n||{};i?(this.id=i.id||"",this.scale=1,this.layers=i.layers,this.points=Z([1,u,s,u+i.width,s+i.height]),this.worldPoints=Z([1,u,s,u+i.width,s+i.height]),this.filteredPointsBuffer=Z(i.layers.length*5)):(this.id="",this.scale=1,this.layers=[],this.points=Z(5),this.worldPoints=Z(5),this.filteredPointsBuffer=Z(5))}static createWithProps(i){let n=new t;return n.applyProps(i),n}applyProps(i){let n=i.x||0,u=i.y||0;this.id=i.id;let s=typeof i.scale<"u"?i.scale:this.scale;this.points[0]=1,this.points[1]=n,this.points[2]=u,this.points[3]=n+i.width,this.points[4]=u+i.height,this.rotation=i.rotation||0,this.worldPoints[3]=this.worldPoints[1]+i.width,this.worldPoints[4]=this.worldPoints[2]+i.height,i.scale&&i.scale!==1&&this.atScale(s),this.scale=s}appendChild(i){i.points[0]===0&&i.points.set(this.points),i.__owner.value=this,this.addLayers([i])}removeChild(i){this.layers=this.layers.filter(n=>n!==i),this.filteredPointsBuffer=Z(this.layers.length*5)}insertBefore(i,n){let u=this.layers.indexOf(n);if(u===-1||this.layers.indexOf(i)!==-1)return;let s=this.layers.slice(0,u),r=this.layers.slice(u);this.layers=[...s,i,...r]}hideInstance(){console.warn("hideInstance: not yet implemented")}getObjectsAt(i,n){if(this.rotation&&(i=this.applyRotation(i)),Ql(this.points,i,this.filteredPointsBuffer)[0]===0)return[];let s=this.layers.length,r=[];for(let f=0;f<s;f++){let m=this.layers[f];if(n&&m.isShape){let g=Ai(m.points,Kt(this.x,this.y));if(!m.intersects([i[1]-g[1],i[2]-g[2]]))continue}if(Ql(Ai(m.points,Kt(this.x,this.y)),i,this.filteredPointsBuffer)[0]!==0&&r.push(m),n){let g=m;r.push(...g.getObjectsAt(i,n))}}return r}applyRotation(i){if(this.rotation){let n={x:i[1],y:i[2]},u={x:i[1],y:i[4]},s={x:i[3],y:i[2]},r={x:i[3],y:i[4]},f=this.points[1]+(this.points[3]-this.points[1])/2,m=this.points[2]+(this.points[4]-this.points[2])/2,[y,g]=Pr(f,m,n.x,n.y,this.rotation),[S,p]=Pr(f,m,u.x,u.y,this.rotation),[x,A]=Pr(f,m,s.x,s.y,this.rotation),[R,w]=Pr(f,m,r.x,r.y,this.rotation),T=Math.min(y,S,x,R),E=Math.max(y,S,x,R),z=Math.min(g,p,A,w),O=Math.max(g,p,A,w);return Z([i[0],T,z,E,O])}return i}getAllPointsAt(i,n,u){let s=ui(Kt(this.x,this.y),_i(this.scale),this.aggregateBuffer);this.rotation&&(i=this.applyRotation(i));let r=hS(i,this.points,this.intersectionBuffer),f=this.layers.length,m=[],y=Ai(r,ui(_i(1/this.scale),Kt(-this.x,-this.y),this.invertedBuffer)),g=n?ui(n,s,this.aggregateBuffer):s,S=u*this.scale;for(let p=0;p<f;p++)m.push(...this.layers[p].getAllPointsAt(y,g,S));return m}addLayers(i){let n=[];for(let u of i)this.layers.indexOf(u)===-1&&(n.push(u),u.points.length===5&&(u.points[1]<this.worldPoints[1]/this.scale||u.points[2]<this.worldPoints[2]/this.scale||u.points[3]>this.worldPoints[3]/this.scale||u.points[4]>this.worldPoints[4]/this.scale)&&(u.crop=u.crop||Z([1,Math.max(this.worldPoints[1]/this.scale,u.points[1]),Math.max(this.worldPoints[2]/this.scale,u.points[2]),Math.min(this.worldPoints[3]/this.scale,u.points[3]),Math.min(this.worldPoints[4]/this.scale,u.points[4])])));this.layers=this.layers.concat(n),this.filteredPointsBuffer=Z(this.layers.length*5)}getScheduledUpdates(i,n){let u=this.layers.length;this._updatedList=[];let s=n*this.scale;for(let r=0;r<u;r++){let f=this.layers[r].getScheduledUpdates(i,s);f&&this._updatedList.push(...f)}return this._updatedList}};var Ji=class t extends It{constructor(i=0,n=0,u=100,s="left-to-right"){super();b(this,"id","world");b(this,"_width");b(this,"_height");b(this,"aspectRatio");b(this,"viewingDirection");b(this,"aggregateBuffer",Z(9));b(this,"isDirty",!1);b(this,"zones",[]);b(this,"filteredPointsBuffer");b(this,"selectedZone");b(this,"triggerQueue",[]);b(this,"activatedEvents",[]);b(this,"_updatedList",[]);b(this,"translationBuffer",Z(9));b(this,"needsRecalculate",!0);b(this,"emptyPaintables",[]);b(this,"renderOrder",[]);b(this,"points");b(this,"objects",[]);b(this,"subscriptions",[]);b(this,"_propagateEventTargets",[]);b(this,"_alreadyFlushed",[]);this._width=i,this._height=n,this.aspectRatio=Number.isNaN(i/n)?1:i/n,this.viewingDirection=s,this.points=Z(u*5),this.filteredPointsBuffer=Z(u*5)}get x(){return 0}get y(){return 0}get width(){return this._width}get height(){return this._height}static withProps(i){let n=new t;return n.applyProps(i),n}applyProps(i){typeof i.width<"u"&&typeof i.height<"u"&&(i.width!==this._width||i.height!==this._height)&&this.resize(i.width,i.height),i.viewingDirection!==this.viewingDirection&&(this.viewingDirection=i.viewingDirection,this.triggerRepaint())}propagateTouchEvent(i,n,u){let s=[];for(let r of u)if(r.x&&r.y){let f=et.singleBox(1,1,r.x,r.y);s.push(this.getObjectsAt(f,!0).reverse())}return s.map(r=>this.propagateEvent(i,n,r,{bubbles:!0,cancelable:!0}))}propagatePointerEvent(i,n,u,s,r={}){let f=et.singleBox(1,1,u,s),m=this.getObjectsAt(f,!0).reverse();return this.propagateEvent(i,n,m,r)}propagateEvent(i,n,u,{bubbles:s=!1,cancelable:r=!1}={}){n.atlasTarget=this,this._propagateEventTargets.length=1,this._propagateEventTargets[0]=this;let f=!1;n.stopPropagation=()=>{f=!0};let m=u.length;for(let S=m-1;S>=0;S--){this._propagateEventTargets.unshift(u[S][0]);let p=u[S][1].length;if(p)for(let x=0;x<p;x++)this._propagateEventTargets.unshift(u[S][1][x])}let y=this._propagateEventTargets.length,g=!1;for(let S=0;S<y&&(n.atlasTarget=this._propagateEventTargets[S],n.atlasWorld=this,g=this._propagateEventTargets[S].dispatchEvent(i,n)||g,!f);S++);return g&&this.triggerRepaint(),this._propagateEventTargets}appendChild(i){let n=this.appendWorldObject(i);this.renderOrder.push(n/5)}removeChild(i){let n=this.objects.indexOf(i);if(n===-1){for(let u of this.objects)if(u&&u.id===i.id){this.removeChild(u);return}return}this.objects[n]=null,this.renderOrder=this.renderOrder.filter(u=>u!==n),this.points[n*5]=0,this.triggerRepaint(),this.needsRecalculate=!0}insertBefore(i,n){let u=this.objects.indexOf(n);if(u===-1)return;let s=this.appendWorldObject(i);this.renderOrder.splice(u-1,0,s/5)}hideInstance(){}asWorldObject(){return null}addZone(i){this.zones.push(i)}selectZone(i){if(typeof i=="string"){let n=this.zones.length;for(let u=0;u<n;u++)if(this.zones[u].id===i){this.selectedZone=u,this.trigger("zone-changed");return}}else this.zones[i]&&(this.selectedZone=i,this.trigger("zone-changed"))}deselectZone(){this.selectedZone=void 0}getActiveZone(){if(this.selectedZone)return this.zones[this.selectedZone]}hasActiveZone(){return typeof this.selectedZone<"u"}checkResizeInternalBuffer(){if(dS(this.points)===this.objects.length){let i=this.points,n=Z(this.points.length*2);n.set(i,0),this.points=n}}appendWorldObject(i){this.checkResizeInternalBuffer();let n=this.objects.length*5,u=i.points;return i.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),i.points[1]=u[1],i.points[2]=u[2],i.points[3]=u[3],i.points[4]=u[4],this.objects.push(i),this.filteredPointsBuffer=Z(this.objects.length*5),this.needsRecalculate=!0,this.triggerRepaint(),n}recalculateWorldSize(){let i=!1;if(this.needsRecalculate){let n=new Int32Array(this.objects.length),u=new Int32Array(this.objects.length),s=this.renderOrder.length;for(let m=0;m<s;m++){let y=this.renderOrder[m];this.objects[y]&&(n[m]=this.points[y*5+3],u[m]=this.points[y*5+4])}let r=Math.max(...n);r!==this._width&&(this._width=r,i=!0);let f=Math.max(...u);f!==this._height&&(this._height=f,i=!0),i&&this.trigger("recalculate-world-size",{width:r,height:f}),this.needsRecalculate=!1}return i}addObjectAt(i,n){n.width&&!n.height?n.height=n.width/i.width*i.height:n.height&&!n.width&&(n.width=n.height/i.height*i.width),(!n||!n.width||!n.height)&&(n.width=i.width,n.height=i.height);let{width:u,x:s,y:r}=n,f=u/i.width;this.checkResizeInternalBuffer(),this.points.set(et.singleBox(i.width,i.height,0,0),this.objects.length*5);let m=new zn(i);return m.points=this.points.subarray(this.objects.length*5,this.objects.length*5+5),this.objects.push(m),this.scaleWorldObject(this.objects.length-1,f),this.translateWorldObject(this.objects.length-1,s,r),this.filteredPointsBuffer=Z(this.points.length*2),this.triggerRepaint(),this.needsRecalculate=!0,m}scaleWorldObject(i,n){Pe(this.points.subarray(i*5,i*5+5),el(n,this.points[i*5+1],this.points[i*5+2]));let u=this.objects[i];u&&(u.atScale(n),this.triggerRepaint())}translateWorldObject(i,n,u){Pe(this.points.subarray(i*5,i*5+5),Kt(n,u));let s=this.objects[i];s&&(s.translate(n,u),this.triggerRepaint())}resize(i,n){return this._width=i,this._height=n,this.aspectRatio=i/n,this.triggerRepaint(),this}getObjects(){return this.objects}getPoints(){return this.points}getPointsFromViewer(i,n){let u=et.singleBox(i.width,i.height,i.x,i.y);return this.getPointsAt(u,n,i.scale)}addLayoutSubscriber(i){return this.subscriptions.push(i),()=>{this.subscriptions.splice(this.subscriptions.indexOf(i),1)}}getScheduledUpdates(i,n){let u=Ql(this.points,i,this.filteredPointsBuffer),s=this.objects.length;this._updatedList=[];for(let r=0;r<s;r++)if(u[r*5]!==0){if(!this.objects[r])continue;this._updatedList.push(...this.objects[r].getScheduledUpdates(i,n))}return this._updatedList}getObjectsAt(i,n=!1){let u=this.getActiveZone(),s=Ql(this.points,i,this.filteredPointsBuffer),r=this.renderOrder.length,f=[];for(let m=0;m<r;m++){let y=this.renderOrder[m];if(s[y*5]!==0){let g=this.objects[y];if(!g||u&&u.objects.indexOf(g)===-1)continue;if(g.type!=="world-object"){f.push([g,[g]]);continue}n?f.push([g,g.getObjectsAt(i,n)]):f.push([g,this.emptyPaintables])}}return f}getPointsAt(i,n,u=1){let s=this.getObjectsAt(i),r=ui(_i(u),Kt(-i[1],-i[2]),this.translationBuffer),f=n?ui(n,r,this.aggregateBuffer):r,m=s.length,y=[];for(let g=0;g<m;g++)s[g]&&y.push(...s[g][0].getAllPointsAt(i,f,u));return y}flushSubscriptions(){if(this.triggerQueue.length){this._alreadyFlushed=[];let i=this.triggerQueue.length;for(let n=0;n<i;n++){if(this._alreadyFlushed.indexOf(this.triggerQueue[n][0])!==-1)continue;typeof this.triggerQueue[n][1]>"u"&&this._alreadyFlushed.push(this.triggerQueue[n][0]);let u=this.subscriptions.length;for(let s=0;s<u;s++)this.subscriptions[s].apply(null,this.triggerQueue[n])}this.triggerQueue=[]}}trigger(i,n){this.triggerQueue.push([i,n])}triggerEventActivation(){this.trigger("event-activation")}triggerRepaint(){this.trigger("repaint")}gotoRegion(i){this.trigger("goto-region",i)}goHome(i=!1){this.trigger("go-home",{immediate:i})}zoomTo(i,n,u){this.trigger("zoom-to",{point:n,factor:i,stream:u})}zoomIn(i){this.trigger("zoom-to",{point:i,factor:.5})}zoomOut(i){this.trigger("zoom-to",{point:i,factor:2})}constraintBounds(i){this.trigger("constrain-bounds",{immediate:i})}};function RA(t){let{src:e,target:i}=t,n=i?i.width:t.width,u=i?i.height:t.height;return new zn({id:e,height:u,width:n,layers:[Ee.fromImage(e,{height:u,width:n},{width:t.width,height:t.height})]})}var NA={margin:0},Jm=class{constructor(e,i={}){b(this,"id");b(this,"config");b(this,"points");b(this,"objects");this.id=e.map(n=>n.id).join("$$"),this.config={...NA,...i},this.points=Z(5),this.objects=e,this.recalculateBounds()}recalculateBounds(){this.points.set([1,Math.min(...this.objects.map(e=>e.points[1]))-this.config.margin,Math.min(...this.objects.map(e=>e.points[2]))-this.config.margin,Math.max(...this.objects.map(e=>e.points[3]))+this.config.margin,Math.max(...this.objects.map(e=>e.points[4]))+this.config.margin])}getPointsAt(e,i,n){return[]}};var Ir=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,kr={},DA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],dn=class extends It{constructor(){super();b(this,"id");b(this,"type","spacial-content");b(this,"points");b(this,"hoverEvents",!1);b(this,"activeEvents",!1);b(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:Z(5)});b(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});b(this,"hovering");b(this,"pressing");b(this,"props",{});b(this,"addHover",()=>{this.hovering=!0,this.__revision++});b(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});b(this,"addPress",()=>{this.pressing=!0,this.__revision++});b(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Tn(12),this.points=Z(5)}getAllPointsAt(i,n){return[[this,this.points,n]]}applyProps(i={}){let n=!1;if(i.interactive!==this.props.interactive&&(n=!0,this.props.interactive=i.interactive),i.style){let u=i.border||i.style.border;if(u!==this._parsed.border.id)if(!u)this._parsed.border.id=null,this._parsed.border.match=[];else{let s=kr[u]||Ir.exec(u)||Ir.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=kr[u]=s)}if(this._parsed.border.id&&(i.style.borderWidth=this._parsed.border.match[1],i.style.borderStyle="solid",i.style.borderColor=this._parsed.border.match[4]),i.style.outline!==this._parsed.outline.id)if(!i.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let s=kr[i.style.outline]||Ir.exec(i.style.outline)||Ir.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=kr[i.style.outline]=s)}this._parsed.outline.id&&(i.style.outlineWidth=this._parsed.outline.match[1],i.style.outlineStyle="solid",i.style.outlineColor=this._parsed.outline.match[4]),this.props.style=i.style,i.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.backgroundColor,n=!0),i.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.style.background,n=!0);for(let s of DA)if(this.props.style[s]!==i.style[s]){n=!0;break}i.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=i.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n=!0),i.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=i.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0)}i.href!==this.props.href&&(this.props.href=i.href,n=!0),i.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=i.hrefTarget,n=!0),i.title!==this.props.title&&(this.props.title=i.title,n=!0),i.className!==this.props.className&&(this.props.className=i.className,i.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),i.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0),i.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=i.relativeSize,n=!0),i.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=i.relativeStyle,n=!0),i.html!==this.props.html&&(this.props.html=i.html,n=!0),i.target&&(i.target.width!==this.display.width||i.target.height!==this.display.height||i.target.x!==this.points[1]||i.target.y!==this.points[2])&&(n=!0,this.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.width=i.target.width,this.display.height=i.target.height),n&&this.__revision++}};var il=class extends It{constructor(){super();b(this,"type","spacial-content");b(this,"id");b(this,"points");b(this,"color","#000");b(this,"backgroundColor");b(this,"hovering");b(this,"pressing");b(this,"text","");b(this,"display",{x:0,y:0,scale:1,width:100,height:100,points:Z(5)});b(this,"className");b(this,"html");b(this,"interactive",!1);b(this,"props",{font:"18px Arial, sans-serif",lineHeight:1,textAlign:"left",verticalAlign:"top",paddingX:0,paddingY:0,fitParent:!1,lineBreak:"auto",strokeText:!1,sizeToFill:!1,maxFontSizeToFill:void 0,allowNewLine:!0,justifyLines:!1,renderHDPI:!1,textDecoration:"none",interactive:!1,relativeSize:!1});this.id="",this.points=Z(5)}getAllPointsAt(i,n){return[[this,this.points,n]]}applyProps({id:i,target:n,text:u,color:s,backgroundColor:r,fontSize:f=18,interactive:m,fontFamily:y="Arial, sans-serif",...g}){g.font=`${f}px ${y}`,this.interactive=m||!1,typeof u<"u"&&(this.text=u||""),s&&(this.color=s),r&&(this.backgroundColor=r),i&&(this.id=i),n&&(this.points=et.singleBox(n.width,n.height,n.x,n.y),this.display.points=this.points,this.display.width=n.width,this.display.height=n.height),this.props={...this.props,...g},this.__revision++}};var Jt=Math.pow,$r=Math.sqrt,Co=Math.sin,vS=Math.cos,No=Math.PI,ef=1.70158,tf=ef*1.525,pS=ef+1,SS=2*No/3,bS=2*No/4.5,Ro=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},mn={linear:t=>t,easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-Jt(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-Jt(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-Jt(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-Jt(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-Jt(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-Jt(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-Jt(-2*t+2,5)/2},easeInSine:function(t){return 1-vS(t*No/2)},easeOutSine:function(t){return Co(t*No/2)},easeInOutSine:function(t){return-(vS(No*t)-1)/2},easeInExpo:function(t){return t===0?0:Jt(2,10*t-10)},easeOutExpo:function(t){return t===1?1:1-Jt(2,-10*t)},easeInOutExpo:function(t){return t===0?0:t===1?1:t<.5?Jt(2,20*t-10)/2:(2-Jt(2,-20*t+10))/2},easeInCirc:function(t){return 1-$r(1-Jt(t,2))},easeOutCirc:function(t){return $r(1-Jt(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-$r(1-Jt(2*t,2)))/2:($r(1-Jt(-2*t+2,2))+1)/2},easeInBack:function(t){return pS*t*t*t-ef*t*t},easeOutBack:function(t){return 1+pS*Jt(t-1,3)+ef*Jt(t-1,2)},easeInOutBack:function(t){return t<.5?Jt(2*t,2)*((tf+1)*2*t-tf)/2:(Jt(2*t-2,2)*((tf+1)*(t*2-2)+tf)+2)/2},easeInElastic:function(t){return t===0?0:t===1?1:-Jt(2,10*t-10)*Co((t*10-10.75)*SS)},easeOutElastic:function(t){return t===0?0:t===1?1:Jt(2,-10*t)*Co((t*10-.75)*SS)+1},easeInOutElastic:function(t){return t===0?0:t===1?1:t<.5?-(Jt(2,20*t-10)*Co((20*t-11.125)*bS))/2:Jt(2,-20*t+10)*Co((20*t-11.125)*bS)/2+1},easeInBounce:function(t){return 1-Ro(1-t)},easeOutBounce:Ro,easeInOutBounce:function(t){return t<.5?(1-Ro(1-2*t))/2:(1+Ro(2*t-1))/2}};var nf=class{constructor(e){b(this,"runtime");b(this,"pendingTransition");b(this,"lastZoomTo",null);b(this,"isConstraining",!1);b(this,"lastGoToRegion",null);this.runtime=e,this.pendingTransition={from:Z(5),to:Z(5),elapsed_time:0,done:!0,total_time:0,timingFunction:mn.easeInOutQuad,constrain:!1}}hasPending(){return!this.pendingTransition.done}getPendingTransition(){return this.pendingTransition}getPendingFrom(){return this.pendingTransition.from}customTransition(e){e(this.pendingTransition)}stopTransition(){this.pendingTransition.from=Z(this.runtime.target),this.pendingTransition.to=Z(this.runtime.target),this.pendingTransition.done=!0,this.pendingTransition.elapsed_time=0,this.pendingTransition.total_time=0}runTransition(e,i){if(!this.pendingTransition.done){let n=this.pendingTransition,u=n.total_time===0?0:(n.elapsed_time+i)/n.total_time,s=n.total_time===0?1:u===0?0:n.timingFunction(u);e[1]=n.from[1]+(n.to[1]-n.from[1])*s,e[2]=n.from[2]+(n.to[2]-n.from[2])*s,e[3]=n.from[3]+(n.to[3]-n.from[3])*s,e[4]=n.from[4]+(n.to[4]-n.from[4])*s,this.pendingTransition.elapsed_time+=i,this.pendingTransition.elapsed_time>=this.pendingTransition.total_time&&(this.pendingTransition.done=!0,this.pendingTransition.callback?.(),this.pendingTransition.constrain&&this.constrainBounds({transition:{duration:this.pendingTransition.total_time===0?0:500,easing:mn.easeOutExpo}}))}}resumeTransition(){this.lastZoomTo&&this.zoomTo(this.lastZoomTo.factor,this.lastZoomTo.options),this.isConstraining&&this.constrainBounds(),this.lastGoToRegion&&this.goToRegion(this.lastGoToRegion.target,this.lastGoToRegion.options)}zoomTo(e,i={}){let{origin:n,stream:u=!1,transition:s}=i;this.lastZoomTo={factor:e,options:i};let r=this.runtime.getZoomedPosition(e,{origin:n}),f=Math.abs(1-e);this.applyTransition(r,s,{duration:2e3*f,easing:mn.easeOutExpo,constrain:!0,callback:()=>{this.lastZoomTo=null}},{stream:!1})}constrainBounds({transition:e,panPadding:i=0}={}){this.isConstraining=!0;let[n,u]=this.runtime.constrainBounds(this.runtime.target,{panPadding:i});n&&(this.applyTransition(u,e,{duration:500,easing:mn.easeOutQuart,constrain:!1,callback:()=>{this.isConstraining=!1}}),this.runtime.updateNextFrame())}applyTransition(e,i,n,{stream:u}={}){this.pendingTransition.from=Z(this.runtime.target),this.pendingTransition.to=e,u||(this.pendingTransition.elapsed_time=0),this.pendingTransition.done=!1,this.pendingTransition.total_time=typeof i?.duration<"u"?i.duration:typeof n?.duration<"u"?n.duration:1e3,this.pendingTransition.constrain=typeof i?.constrain<"u"?i.constrain:typeof n?.constrain<"u"?n.constrain:!1,this.pendingTransition.timingFunction=i?.easing||n?.easing||mn.easeInOutSine}goToRegion(e,{transition:i}={}){this.lastGoToRegion={target:e,options:{transition:i}};let n=this.runtime.clampRegion(e);this.applyTransition(et.singleBox(n.width,n.height,n.x,n.y),i,{duration:1e3,easing:mn.easeOutExpo,constrain:!0,callback:()=>{this.lastGoToRegion=null}}),this.runtime.updateNextFrame()}};var OR=Number.MIN_VALUE+1,_n=class{constructor(e,i,n,u=[],s){b(this,"id",Tn());b(this,"ready",!1);b(this,"renderer");b(this,"world");b(this,"target");b(this,"homePosition");b(this,"manualHomePosition");b(this,"manualFocalPosition");b(this,"focalPosition");b(this,"transitionManager");b(this,"aggregate");b(this,"transformBuffer",Z(500));b(this,"lastTarget",Z(5));b(this,"zoomBuffer",Z(5));b(this,"logNextRender",!1);b(this,"pendingUpdate",!0);b(this,"isCommitting",!1);b(this,"firstRender",!0);b(this,"lastTime");b(this,"stopId");b(this,"mode","explore");b(this,"controllers",[]);b(this,"controllersRunning",!1);b(this,"controllerStopFunctions",[]);b(this,"maxScaleFactor",1);b(this,"_viewerToWorld",{x:0,y:0});b(this,"_lastGoodScale",1);b(this,"hooks",{useFrame:[],useBeforeFrame:[],useAfterPaint:[],useAfterFrame:[]});b(this,"fpsLimit");b(this,"options");b(this,"hookOptions",{filters:{grayscale:0,contrast:0,brightness:0,saturate:0,sepia:0,invert:0,hueRotate:0,blur:0}});b(this,"_viewport",{x:0,y:0,width:0,height:0});b(this,"setViewport",e=>{let i=Math.round(typeof e.x>"u"?this.target[1]:e.x),n=Math.round(typeof e.y>"u"?this.target[2]:e.y);e.width?this.target[3]=i+e.width:this.target[3]=this.target[3]-this.target[1]+i,e.height?this.target[4]=n+e.height:this.target[4]=this.target[4]-this.target[2]+n,Math.abs(this.target[1]-i)>.01&&(this.target[1]=i),Math.abs(this.target[2]-n)>.01&&(this.target[2]=n),this.pendingUpdate=!0});b(this,"render",e=>{let i=e-this.lastTime;if(this.isCommitting||this.fpsLimit&&i<1e3/this.fpsLimit){this.stopId=window.requestAnimationFrame(this.render);return}this.lastTime=e,this.world.flushSubscriptions(),this.stopId=window.requestAnimationFrame(this.render),this.hook("useFrame",i);let n=this.pendingUpdate,u=this.renderer.pendingUpdate();if(this.transitionManager.hasPending()&&(this.transitionManager.runTransition(this.target,i),this.pendingUpdate=!0,this.updateControllerPosition()),!this.firstRender&&!n&&!u&&this.target[0]===this.lastTarget[0]&&this.target[1]===this.lastTarget[1]&&this.target[2]===this.lastTarget[2]&&this.target[3]===this.lastTarget[3]&&this.target[4]===this.lastTarget[4])return;this.hook("useBeforeFrame",i),this.renderer.beforeFrame(this.world,i,this.target,this.hookOptions);let s=this.getScaleFactor(),r=this.renderer.getPointsAt(this.world,this.target,this.aggregate,s),f=r.length;for(let g=0;g<f;g++){let S=r[g][0],p=r[g][1],x=r[g][2],A=x?Ai(p,x,this.transformBuffer):p;this.renderer.prepareLayer(S,S.__parent&&x?Ai(S.__parent.crop||S.__parent.points,x):A);let R=A.length/5;for(let w=0;w<R;w++){let T=w*5;A[T]!==0&&(this.renderer.paint(S,w,A[T+1],A[T+2],A[T+3]-A[T+1],A[T+4]-A[T+2]),this.hook("useAfterPaint",S))}this.renderer.finishLayer(S,p)}this.renderer.afterFrame(this.world,i,this.target,this.hookOptions),this.hook("useAfterFrame",i),this.lastTarget[0]=this.target[0],this.lastTarget[1]=this.target[1],this.lastTarget[2]=this.target[2],this.lastTarget[3]=this.target[3],this.lastTarget[4]=this.target[4],this.firstRender=!1,this.pendingUpdate=!1,this.logNextRender=!1,this.renderer.isReady()&&(this.ready=!0,this.world.trigger("ready")),this.world.flushSubscriptions();let m=this.world.getScheduledUpdates(this.target,s),y=m.length;if(y>0)for(let g=0;g<y;g++){let S=m[y-g-1]();S?S.then(()=>{this.pendingUpdate=!0}):this.pendingUpdate=!0}});this.renderer=e,this.world=i,this.options={maxOverZoom:1,maxUnderZoom:1,visibilityRatio:1.5,...s||{}},this.target=et.projection(n),this.manualHomePosition=!1,this.pendingUpdate=!0,this.homePosition=et.projection(this.world),this.manualFocalPosition=!1,this.focalPosition=this.target,this.updateFocalPosition(),this.transitionManager=new nf(this),this.aggregate=_i(1),this.world.addLayoutSubscriber(r=>{r==="repaint"&&(this.pendingUpdate=!0),r==="recalculate-world-size"&&(this.manualHomePosition||(this.setHomePosition(),this.goHome()),this.updateFocalPosition())}),this.lastTime=performance.now(),this.controllers=u,this.render(this.lastTime),this.startControllers()}get x(){return this.target[1]}set x(e){this.target[1]=e}get y(){return this.target[2]}set y(e){this.target[2]=e}get x2(){return this.target[3]}set x2(e){this.target[3]=e}get y2(){return this.target[4]}set y2(e){this.target[4]=e}get width(){return this.target[3]-this.target[1]}set width(e){this.target[3]=this.target[1]+e}get height(){return this.target[4]-this.target[2]}set height(e){this.target[4]=this.target[2]=e}setHomePosition(e){this.homePosition.set(et.projection(e||this.world)),this.pendingUpdate=!0}startControllers(){if(!this.controllersRunning){for(let e of this.controllers)this.controllerStopFunctions.push(e.start(this));this.controllersRunning=!0}}stopControllers(){if(this.controllersRunning){for(let e of this.controllerStopFunctions)e();this.controllersRunning=!1,this.controllerStopFunctions=[]}}updateControllerPosition(){for(let e of this.controllers)e.updatePosition(this.x,this.y,this.width,this.height)}triggerResize(){this.renderer.triggerResize&&this.renderer.triggerResize(),this.pendingUpdate=!0}addController(e){this.controllers.push(e),this.controllersRunning&&e.start(this),this.pendingUpdate=!0}cover(){return this.goHome({cover:!0})}getRendererScreenPosition(){return this.renderer.getRendererScreenPosition()}updateRendererScreenPosition(){this.pendingUpdate=!0,this.renderer.resize()}setOptions(e){this.options={...this.options,...e}}goHome(e={}){if(this.world.width<=0||this.world.height<=0)return;let i=this.getScaleFactor(),n=e.position?{x:e.position[1],y:e.position[2],width:e.position[3]-e.position[1],height:e.position[4]-e.position[2]}:{x:this.homePosition[1],y:this.homePosition[2],width:this.homePosition[3]-this.homePosition[1],height:this.homePosition[4]-this.homePosition[2]},u=this.width*i,s=this.height*i,r=n.width/u,f=n.height/s,m=u/s;if(e.cover?r>f:r<f){let y=m*n.height,g=(y-n.width)/2;this.target[1]=Math.round(-g+n.x),this.target[2]=Math.round(n.y),this.target[3]=Math.round(y-g+n.x),this.target[4]=Math.round(n.height+n.y)}else{let y=n.width/m,g=(y-n.height)/2;this.target[1]=Math.round(n.x),this.target[2]=Math.round(n.y-g),this.target[3]=Math.round(n.x+n.width),this.target[4]=Math.round(n.y+y-g)}this.constrainBounds(this.target),this.updateControllerPosition()}resize(e,i,n,u){this.transitionManager.hasPending()&&this.transitionManager.stopTransition(),this.updateFocalPosition(e-i,n-u);let s=i/e,r=u/n;this.target[3]=this.target[1]+(this.target[3]-this.target[1])*s,this.target[4]=this.target[2]+(this.target[4]-this.target[2])*r,this.goHome({position:this.focalPosition}),this.renderer.resize(i,u),this.pendingUpdate=!0,this.transitionManager.resumeTransition()}updateFocalPosition(e,i){if(!this.manualFocalPosition){let n=this.width,u=this.height,s=Math.min(n,u),r=0,f=0,m=this.x+r,y=this.y+f;if(n<u){let g=this.height-this.width;this.focalPosition=et.projection({x:m,y:y+g/2,width:s-r*2,height:s-f*2}),this.pendingUpdate=!0}else{let g=this.width-this.height;this.focalPosition=et.projection({x:m+g/2,y,width:s-r*2,height:s-f*2}),this.pendingUpdate=!0}}}getViewport(){return this._viewport.x=this.target[1],this._viewport.y=this.target[2],this._viewport.width=this.target[3]-this.target[1],this._viewport.height=this.target[4]-this.target[2],this._viewport}constrainBounds(e,{panPadding:i=0,ref:n=!1}={}){let{minX:u,maxX:s,minY:r,maxY:f}=this.getBounds({target:e,padding:i}),m=!1,y=n?e:Z(e),g=Math.round(e[3]-e[1]),S=Math.round(e[4]-e[2]);return u>e[1]&&(m=!0,y[1]=u,y[3]=u+g),r>e[2]&&(m=!0,y[2]=r,y[4]=r+S),s<e[1]&&(m=!0,y[1]=s,y[3]=s+g),f<e[2]&&(m=!0,y[2]=f,y[4]=f+S),[m,y]}getBounds(e){let i=e.target||this.target,n=e.padding,u=this.options.visibilityRatio,s=Math.abs(1-u);if(this.world.hasActiveZone()){let E=this.world.getActiveZone();if(E){let z=i[3]-i[1]<E.points[3]-E.points[1],O=i[4]-i[2]<E.points[4]-E.points[2];return{minX:z?E.points[1]-n:E.points[1]+(E.points[3]-E.points[1])/2-(i[3]-i[1])/2,maxX:O?E.points[2]-n:E.points[2]+(E.points[4]-E.points[2])/2-(i[4]-i[2])/2,minY:z?E.points[3]+n:E.points[1]+(E.points[3]-E.points[1])/2-(i[3]-i[1])/2,maxY:O?E.points[4]+n:E.points[2]+(E.points[4]-E.points[2])/2-(i[4]-i[2])/2}}}let r=i[3]-i[1],f=this.world.width,m=-r*s,y=f-r-m,g=i[4]-i[2],S=this.world.height,p=-g*s,x=S-g-p,A=Math.round(Math.max(m,y)),R=Math.round(Math.min(m,y)),w=Math.round(Math.max(p,x)),T=Math.round(Math.min(p,x));return{minX:R,maxX:A,minY:T,maxY:w}}getScaleFactor(e=!1){let i=this.renderer.getScale(this.target[3]-this.target[1],this.target[4]-this.target[2],e);return i===0?this._lastGoodScale:(this._lastGoodScale=i,i)}getZoomedPosition(e,{origin:i,fromPos:n}){let u=n?{width:n[3]-n[1],height:n[4]-n[2]}:void 0,s=u?this.renderer.getScale(u.width,u.height):this.getScaleFactor(),r=u?u.width:this.width,f=u?u.height:this.height,m=this.getRendererScreenPosition()?.width,y=this.world.width,g=m?m/y:1,S=this.options.maxUnderZoom,p=Math.max(g||1,this.options.maxOverZoom),x=1/e,A=s*x;if(x<1){let T=r*s,E=f*s,z=this.world.width/T,O=this.world.height/E;if(z>O){let H=this.world.width*A,L=~~(r*s)*S;H<L&&(e=this.world.width*s/(r*s*S))}else{let H=this.world.height*A,L=~~(f*s)*S;H<L&&(e=this.world.height*s/(f*s*S))}}else A>p&&(e=s/p);let w=Ai(this.target,el(e,i?i.x:this.target[1]+(this.target[3]-this.target[1])/2,i?i.y:this.target[2]+(this.target[4]-this.target[2])/2),this.zoomBuffer);return this.constrainBounds(w,{ref:!0,panPadding:100}),w}clampRegion({x:e,y:i,width:n,height:u,padding:s=0}){let r=this.width,f=this.height,m=n/r<u/f,y=e-s,g=i-s,S=n+s*2,p=u+s*2;if(m){let A=p/f*r;return{x:y-(A-S)/2,y:g,width:A,height:p}}let x=S/r*f;return{x:y,y:g-(x-p)/2,width:S,height:x}}viewerToWorld(e,i){let n=this.getScaleFactor();return this._viewerToWorld.x=this.target[1]+e/n,this._viewerToWorld.y=this.target[2]+i/n,this._viewerToWorld}worldToViewer(e,i,n,u){let s=et.singleBox(n,u,e,i);return Pe(s,ui(_i(this.getScaleFactor()),Kt(-this.target[1],-this.target[2]))),{x:s[1],y:s[2],width:s[3]-s[1],height:s[4]-s[2],strand:s}}setScale(e,i){Pe(this.target,el(e,i?i.x:this.target[1]+(this.target[3]-this.target[1])/2,i?i.y:this.target[2]+(this.target[4]-this.target[2])/2)),this.pendingUpdate=!0}syncTo(e){let i=this.target;return this.target=e.target,this.pendingUpdate=!0,()=>{this.target=i}}stop(){return typeof this.stopId<"u"&&(window.cancelAnimationFrame(this.stopId),this.stopId=void 0),()=>{this.render(performance.now())}}reset(){this.renderer.reset()}selectZone(e){this.world.selectZone(e),this.pendingUpdate=!0}deselectZone(){this.world.deselectZone(),this.pendingUpdate=!0}hook(e,i){let n=this.hooks[e].length;if(n!==0)for(let u=0;u<n;u++)this.hooks[e][u](i)}registerHook(e,i){return this.hooks[e].push(i),()=>{this.hooks[e]=this.hooks[e].filter(n=>n!==i)}}updateNextFrame(){this.pendingUpdate=!0}};var lf=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,af={},HA=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Xa=class extends It{constructor(){super();b(this,"id");b(this,"type","spacial-content");b(this,"isShape",!0);b(this,"points");b(this,"hoverEvents",!1);b(this,"activeEvents",!1);b(this,"display",{x:0,y:0,scale:1,width:-1,height:-1,points:Z(5)});b(this,"boundingBox",null);b(this,"_parsed",{border:{id:null,match:[]},outline:{id:null,match:[]}});b(this,"hovering");b(this,"pressing");b(this,"props",{});b(this,"shape",{type:"none"});b(this,"addHover",()=>{this.hovering=!0,this.__revision++});b(this,"removeHover",()=>{this.hovering=!1,this.pressing=!1,this.__revision++});b(this,"addPress",()=>{this.pressing=!0,this.__revision++});b(this,"removePress",()=>{this.pressing=!1,this.__revision++});this.id=Tn(12),this.points=Z(5),this.shape={type:"none"}}updateBoundingBox(){if(this.shape.type==="none")return;let i=this.shape.points;if(this.shape.points.length>2){let n=Math.min(...i.map(f=>f[0])),u=Math.min(...i.map(f=>f[1])),s=Math.max(0,...i.map(f=>f[0])),r=Math.max(0,...i.map(f=>f[1]));this.boundingBox={x:n,y:u,width:s-n,height:r-u};return}this.boundingBox=null}intersects(i){if(!i||this.shape.type==="none")return!1;let[n,u]=i,s=this.shape.points,r=this.boundingBox;if(r||(this.updateBoundingBox(),r=this.boundingBox),!r||n<r.x||n>r.x+r.width||u<r.y||u>r.height+r.y)return!1;let f=!1;for(let m=0,y=s.length-1;m<s.length;y=m++)s[m][1]>u!=s[y][1]>u&&n<(s[y][0]-s[m][0])*(u-s[m][1])/(s[y][1]-s[m][1])+s[m][0]&&(f=!f);return f}getAllPointsAt(i,n){return i[3]-i[1]===1&&i[4]-i[2]===1?this.intersects([i[1],i[2]])?[[this,this.points,n]]:[]:[[this,this.points,n]]}applyProps(i={}){let n=!1;if(i.points)if(this.shape.type!=="polygon"||this.shape.points.length!==i.points.length)this.shape={type:"polygon",points:i.points,open:i.open},this.updateBoundingBox();else{let u=!1,s=i.points.length;for(let r=0;r<s;r++)if(i.points[r][0]!==this.shape.points[r][0]||i.points[r][1]!==this.shape.points[r][1]){u=!0;break}u&&(this.shape={type:"polygon",points:i.points,open:i.open},this.updateBoundingBox())}if(i.interactive!==this.props.interactive&&(n=!0,this.props.interactive=i.interactive),(i.open||i.open===!1)&&(n=!0,this.shape.open=i.open),i.style){let u=i.border||i.style.border;if(u!==this._parsed.border.id)if(!u)this._parsed.border.id=null,this._parsed.border.match=[];else{let s=af[u]||lf.exec(u)||lf.exec(u);s&&(this._parsed.border.id=u,this._parsed.border.match=af[u]=s)}if(this._parsed.border.id&&(i.style.borderWidth=this._parsed.border.match[1],i.style.borderStyle="solid",i.style.borderColor=this._parsed.border.match[4]),i.style.outline!==this._parsed.outline.id)if(!i.style.outline)this._parsed.outline.id=null,this._parsed.outline.match=[];else{let s=af[i.style.outline]||lf.exec(i.style.outline)||lf.exec(i.style.outline);s&&(this._parsed.outline.id=i.style.outline,this._parsed.outline.match=af[i.style.outline]=s)}this._parsed.outline.id&&(i.style.outlineWidth=this._parsed.outline.match[1],i.style.outlineStyle="solid",i.style.outlineColor=this._parsed.outline.match[4]),this.props.style=i.style,i.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.backgroundColor,n=!0),i.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=i.style.background,n=!0);for(let s of HA)if(this.props.style[s]!==i.style[s]){n=!0;break}i.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=i.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),n=!0),i.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=i.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0)}i.href!==this.props.href&&(this.props.href=i.href,n=!0),i.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=i.hrefTarget,n=!0),i.title!==this.props.title&&(this.props.title=i.title,n=!0),i.className!==this.props.className&&(this.props.className=i.className,i.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),i.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),n=!0),i.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=i.relativeSize,n=!0),i.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=i.relativeStyle,n=!0),i.html!==this.props.html&&(this.props.html=i.html,n=!0),i.target&&(i.target.width!==this.display.width||i.target.height!==this.display.height||i.target.x!==this.points[1]||i.target.y!==this.points[2])&&(n=!0,this.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.points=et.singleBox(i.target.width,i.target.height,i.target.x,i.target.y),this.display.width=i.target.width,this.display.height=i.target.height),n&&this.__revision++}};var Do=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,UA=typeof AbortController=="function",uf=UA?AbortController:class{constructor(){this.signal=new ES}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},BA=typeof AbortSignal=="function",wA=typeof uf.AbortSignal=="function",ES=BA?AbortSignal:wA?uf.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(i=>i(e),this))}onabort(){}addEventListener(e,i){e==="abort"&&this._listeners.push(i)}removeEventListener(e,i){e==="abort"&&(this._listeners=this._listeners.filter(n=>n!==i))}},Im=new Set,Fm=(t,e)=>{let i=`LRU_CACHE_OPTION_${t}`;sf(i)&&km(i,`${t} option`,`options.${e}`,Pu)},Wm=(t,e)=>{let i=`LRU_CACHE_METHOD_${t}`;if(sf(i)){let{prototype:n}=Pu,{get:u}=Object.getOwnPropertyDescriptor(n,t);km(i,`${t} method`,`cache.${e}()`,u)}},jA=(t,e)=>{let i=`LRU_CACHE_PROPERTY_${t}`;if(sf(i)){let{prototype:n}=Pu,{get:u}=Object.getOwnPropertyDescriptor(n,t);km(i,`${t} property`,`cache.${e}`,u)}},xS=(...t)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...t):console.error(...t)},sf=t=>!Im.has(t),km=(t,e,i,n)=>{Im.add(t);let u=`The ${e} is deprecated. Please use ${i} instead.`;xS(u,"DeprecationWarning",t,n)},Vl=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),TS=t=>Vl(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Wu:null:null,Wu=class extends Array{constructor(e){super(e),this.fill(0)}},Pm=class{constructor(e){if(e===0)return[];let i=TS(e);this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Pu=class t{constructor(e={}){let{max:i=0,ttl:n,ttlResolution:u=1,ttlAutopurge:s,updateAgeOnGet:r,updateAgeOnHas:f,allowStale:m,dispose:y,disposeAfter:g,noDisposeOnSet:S,noUpdateTTL:p,maxSize:x=0,maxEntrySize:A=0,sizeCalculation:R,fetchMethod:w,fetchContext:T,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:z,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:H,ignoreFetchAbort:q}=e,{length:L,maxAge:G,stale:J}=e instanceof t?{}:e;if(i!==0&&!Vl(i))throw new TypeError("max option must be a nonnegative integer");let B=i?TS(i):Array;if(!B)throw new Error("invalid max value: "+i);if(this.max=i,this.maxSize=x,this.maxEntrySize=A||this.maxSize,this.sizeCalculation=R||L,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=w||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=T,!this.fetchMethod&&T!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(i).fill(null),this.valList=new Array(i).fill(null),this.next=new B(i),this.prev=new B(i),this.head=0,this.tail=0,this.free=new Pm(i),this.initialFill=1,this.size=0,typeof y=="function"&&(this.dispose=y),typeof g=="function"?(this.disposeAfter=g,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!S,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!H,this.ignoreFetchAbort=!!q,this.maxEntrySize!==0){if(this.maxSize!==0&&!Vl(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Vl(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!J,this.noDeleteOnStaleGet=!!z,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!f,this.ttlResolution=Vl(u)||u===0?u:1,this.ttlAutopurge=!!s,this.ttl=n||G||0,this.ttl){if(!Vl(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let I="LRU_CACHE_UNBOUNDED";sf(I)&&(Im.add(I),xS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",I,t))}J&&Fm("stale","allowStale"),G&&Fm("maxAge","ttl"),L&&Fm("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Wu(this.max),this.starts=new Wu(this.max),this.setItemTTL=(n,u,s=Do.now())=>{if(this.starts[n]=u!==0?s:0,this.ttls[n]=u,u!==0&&this.ttlAutopurge){let r=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},u+1);r.unref&&r.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?Do.now():0},this.statusTTL=(n,u)=>{n&&(n.ttl=this.ttls[u],n.start=this.starts[u],n.now=e||i(),n.remainingTTL=n.now+n.ttl-n.start)};let e=0,i=()=>{let n=Do.now();if(this.ttlResolution>0){e=n;let u=setTimeout(()=>e=0,this.ttlResolution);u.unref&&u.unref()}return n};this.getRemainingTTL=n=>{let u=this.keyMap.get(n);return u===void 0?0:this.ttls[u]===0||this.starts[u]===0?1/0:this.starts[u]+this.ttls[u]-(e||i())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(e||i())-this.starts[n]>this.ttls[n]}updateItemAge(e){}statusTTL(e,i){}setItemTTL(e,i,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Wu(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,i,n,u)=>{if(this.isBackgroundFetch(i))return 0;if(!Vl(n))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(n=u(i,e),!Vl(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.addItemSize=(e,i,n)=>{if(this.sizes[e]=i,this.maxSize){let u=this.maxSize-this.sizes[e];for(;this.calculatedSize>u;)this.evict(!0)}this.calculatedSize+=this.sizes[e],n&&(n.entrySize=i,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,i){}requireSize(e,i,n,u){if(n||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.tail;!(!this.isValidIndex(i)||((e||!this.isStale(i))&&(yield i),i===this.head));)i=this.prev[i]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.head;!(!this.isValidIndex(i)||((e||!this.isStale(i))&&(yield i),i===this.tail));)i=this.next[i]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(let e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,i){for(let n of this.indexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;if(s!==void 0&&e(s,this.keyList[n],this))return this.get(this.keyList[n],i)}}forEach(e,i=this){for(let n of this.indexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;s!==void 0&&e.call(i,s,this.keyList[n],this)}}rforEach(e,i=this){for(let n of this.rindexes()){let u=this.valList[n],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;s!==void 0&&e.call(i,s,this.keyList[n],this)}}get prune(){return Wm("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let i of this.rindexes({allowStale:!0}))this.isStale(i)&&(this.delete(this.keyList[i]),e=!0);return e}dump(){let e=[];for(let i of this.indexes({allowStale:!0})){let n=this.keyList[i],u=this.valList[i],s=this.isBackgroundFetch(u)?u.__staleWhileFetching:u;if(s===void 0)continue;let r={value:s};if(this.ttls){r.ttl=this.ttls[i];let f=Do.now()-this.starts[i];r.start=Math.floor(Date.now()-f)}this.sizes&&(r.size=this.sizes[i]),e.unshift([n,r])}return e}load(e){this.clear();for(let[i,n]of e){if(n.start){let u=Date.now()-n.start;n.start=Do.now()-u}this.set(i,n.value,n)}}dispose(e,i,n){}set(e,i,{ttl:n=this.ttl,start:u,noDisposeOnSet:s=this.noDisposeOnSet,size:r=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,status:y}={}){if(r=this.requireSize(e,i,r,f),this.maxEntrySize&&r>this.maxEntrySize)return y&&(y.set="miss",y.maxEntrySizeExceeded=!0),this.delete(e),this;let g=this.size===0?void 0:this.keyMap.get(e);if(g===void 0)g=this.newIndex(),this.keyList[g]=e,this.valList[g]=i,this.keyMap.set(e,g),this.next[this.tail]=g,this.prev[g]=this.tail,this.tail=g,this.size++,this.addItemSize(g,r,y),y&&(y.set="add"),m=!1;else{this.moveToTail(g);let S=this.valList[g];if(i!==S){if(this.isBackgroundFetch(S)?S.__abortController.abort(new Error("replaced")):s||(this.dispose(S,e,"set"),this.disposeAfter&&this.disposed.push([S,e,"set"])),this.removeItemSize(g),this.valList[g]=i,this.addItemSize(g,r,y),y){y.set="replace";let p=S&&this.isBackgroundFetch(S)?S.__staleWhileFetching:S;p!==void 0&&(y.oldValue=p)}}else y&&(y.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(g,n,u),this.statusTTL(y,g),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let i=this.head,n=this.keyList[i],u=this.valList[i];return this.isBackgroundFetch(u)?u.__abortController.abort(new Error("evicted")):(this.dispose(u,n,"evict"),this.disposeAfter&&this.disposed.push([u,n,"evict"])),this.removeItemSize(i),e&&(this.keyList[i]=null,this.valList[i]=null,this.free.push(i)),this.head=this.next[i],this.keyMap.delete(n),this.size--,i}has(e,{updateAgeOnHas:i=this.updateAgeOnHas,status:n}={}){let u=this.keyMap.get(e);if(u!==void 0)if(this.isStale(u))n&&(n.has="stale",this.statusTTL(n,u));else return i&&this.updateItemAge(u),n&&(n.has="hit"),this.statusTTL(n,u),!0;else n&&(n.has="miss");return!1}peek(e,{allowStale:i=this.allowStale}={}){let n=this.keyMap.get(e);if(n!==void 0&&(i||!this.isStale(n))){let u=this.valList[n];return this.isBackgroundFetch(u)?u.__staleWhileFetching:u}}backgroundFetch(e,i,n,u){let s=i===void 0?void 0:this.valList[i];if(this.isBackgroundFetch(s))return s;let r=new uf;n.signal&&n.signal.addEventListener("abort",()=>r.abort(n.signal.reason));let f={signal:r.signal,options:n,context:u},m=(x,A=!1)=>{let{aborted:R}=r.signal,w=n.ignoreFetchAbort&&x!==void 0;return n.status&&(R&&!A?(n.status.fetchAborted=!0,n.status.fetchError=r.signal.reason,w&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),R&&!w&&!A?g(r.signal.reason):(this.valList[i]===p&&(x===void 0?p.__staleWhileFetching?this.valList[i]=p.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,x,f.options))),x)},y=x=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=x),g(x)),g=x=>{let{aborted:A}=r.signal,R=A&&n.allowStaleOnFetchAbort,w=R||n.allowStaleOnFetchRejection,T=w||n.noDeleteOnFetchRejection;if(this.valList[i]===p&&(!T||p.__staleWhileFetching===void 0?this.delete(e):R||(this.valList[i]=p.__staleWhileFetching)),w)return n.status&&p.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw x},S=(x,A)=>{this.fetchMethod(e,s,f).then(R=>x(R),A),r.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(x(),n.allowStaleOnFetchAbort&&(x=R=>m(R,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(S).then(m,y);return p.__abortController=r,p.__staleWhileFetching=s,p.__returned=null,i===void 0?(this.set(e,p,{...f.options,status:void 0}),i=this.keyMap.get(e)):this.valList[i]=p,p}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:f=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:y=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:x=this.allowStaleOnFetchAbort,fetchContext:A=this.fetchContext,forceRefresh:R=!1,status:w,signal:T}={}){if(!this.fetchMethod)return w&&(w.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,status:w});let E={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:u,ttl:s,noDisposeOnSet:r,size:f,sizeCalculation:m,noUpdateTTL:y,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:p,status:w,signal:T},z=this.keyMap.get(e);if(z===void 0){w&&(w.fetch="miss");let O=this.backgroundFetch(e,z,E,A);return O.__returned=O}else{let O=this.valList[z];if(this.isBackgroundFetch(O)){let J=i&&O.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",J&&(w.returnedStale=!0)),J?O.__staleWhileFetching:O.__returned=O}let H=this.isStale(z);if(!R&&!H)return w&&(w.fetch="hit"),this.moveToTail(z),n&&this.updateItemAge(z),this.statusTTL(w,z),O;let q=this.backgroundFetch(e,z,E,A),L=q.__staleWhileFetching!==void 0,G=L&&i;return w&&(w.fetch=L&&H?"stale":"refresh",G&&H&&(w.returnedStale=!0)),G?q.__staleWhileFetching:q.__returned=q}}get(e,{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:s}={}){let r=this.keyMap.get(e);if(r!==void 0){let f=this.valList[r],m=this.isBackgroundFetch(f);return this.statusTTL(s,r),this.isStale(r)?(s&&(s.get="stale"),m?(s&&(s.returnedStale=i&&f.__staleWhileFetching!==void 0),i?f.__staleWhileFetching:void 0):(u||this.delete(e),s&&(s.returnedStale=i),i?f:void 0)):(s&&(s.get="hit"),m?f.__staleWhileFetching:(this.moveToTail(r),n&&this.updateItemAge(r),f))}else s&&(s.get="miss")}connect(e,i){this.prev[i]=e,this.next[e]=i}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return Wm("del","delete"),this.delete}delete(e){let i=!1;if(this.size!==0){let n=this.keyMap.get(e);if(n!==void 0)if(i=!0,this.size===1)this.clear();else{this.removeItemSize(n);let u=this.valList[n];this.isBackgroundFetch(u)?u.__abortController.abort(new Error("deleted")):(this.dispose(u,e,"delete"),this.disposeAfter&&this.disposed.push([u,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return i}clear(){for(let e of this.rindexes({allowStale:!0})){let i=this.valList[e];if(this.isBackgroundFetch(i))i.__abortController.abort(new Error("deleted"));else{let n=this.keyList[e];this.dispose(i,n,"delete"),this.disposeAfter&&this.disposed.push([i,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Wm("reset","clear"),this.clear}get length(){return jA("length","size"),this.size}static get AbortController(){return uf}static get AbortSignal(){return ES}},zS=Pu;var _S=/(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)?(-?[0-9]+(px|em)\s+|0\s+)?(.*)/g,AS={},LA=typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"),of={};var Ho=class{constructor(e,i){b(this,"canvas");b(this,"ctx");b(this,"options");b(this,"imagesPending",0);b(this,"imagesLoaded",0);b(this,"imageIdsLoaded",[]);b(this,"frameIsRendering",!1);b(this,"pendingDrawCall",!1);b(this,"firstMeaningfulPaint",!1);b(this,"parallelTasks",8);b(this,"frameTasks",0);b(this,"loadingQueueOrdered",!0);b(this,"loadingQueue",[]);b(this,"currentTask",Promise.resolve());b(this,"tasksRunning",0);b(this,"stats");b(this,"averageJobTime",64);b(this,"lastKnownScale",1);b(this,"visible",[]);b(this,"previousVisible",[]);b(this,"rendererPosition");b(this,"dpi");b(this,"drawCalls",[]);b(this,"lastPaintedObject");b(this,"hostCache");b(this,"invalidated",[]);b(this,"_worker",()=>{if(this.loadingQueue.length){let e=this.loadingQueue.pop();e&&(this.tasksRunning++,this.frameTasks++,this.currentTask=e.task().then(()=>{this.tasksRunning--}).catch(()=>{this.tasksRunning--}))}});b(this,"_scheduled",0);b(this,"_doWork",()=>{this.loadingQueue.length===0&&this.tasksRunning===0&&this._scheduled&&(clearInterval(this._scheduled),this._scheduled=0);let e=this.parallelTasks||1;!this.firstMeaningfulPaint&&this.loadingQueue.length&&(e=this.loadingQueue.length);for(let i=0;i<=e;i++)this._worker()});this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.ctx=e.getContext("2d",{alpha:!0}),this.ctx.imageSmoothingEnabled=!0,this.options=i||{},this.canvas.style.transition="opacity .3s",this.dpi=i?.dpi||1,this.hostCache=i?.lruCache?new zS({maxSize:1024*512*512,dispose:(n,u,s)=>{this.invalidated.push(u),n.width=0,n.height=0},sizeCalculation:(n,u)=>n.width*n.height}):{store:{},get(n){return this.store[n]},set(n,u){this.store[n]=u}}}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}resize(){this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return this.firstMeaningfulPaint}afterFrame(e){if(this.clearTransform(),this.lastPaintedObject=void 0,this.frameIsRendering=!1,this.imagesPending=Math.max(0,this.imagesPending-this.imagesLoaded),this.imagesLoaded=0,this.loadingQueueOrdered||(this.loadingQueue=this.loadingQueue.sort((i,n)=>i.network&&i.scale===n.scale?n.distance-i.distance:i.scale<n.scale?-1:1),this.loadingQueueOrdered=!0),this.previousVisible=this.visible,this.pendingDrawCall=!!this.drawCalls.length,this.pendingDrawCall)for(let i=0;i<this.drawCalls.length;i++){let n=this.drawCalls.shift();n&&n()}this.doOffscreenWork(),this.options.debug&&this.stats&&this.stats.end()}doOffscreenWork(){this.frameTasks=0,this.loadingQueue.length&&(this._worker(),this.loadingQueue.length&&(this._scheduled||(this._scheduled=setInterval(this._doWork,0))))}getScale(e,i,n){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let u=this.getCanvasDims(),s=u.width/e,r=u.height/i,f=(s<r?r:s)*(n&&this.dpi||1);return Number.isNaN(f)||(this.lastKnownScale=f),this.lastKnownScale}beforeFrame(e,i,n,u){this.options.debug&&this.stats&&this.stats.begin(),this.frameIsRendering=!0,this.visible=[],this.options.beforeFrame&&this.options.beforeFrame(i);let s=this.getCanvasDims();if(this.ctx.globalAlpha=1,this.ctx.fillStyle=this.canvas.dataset.background??"rgb(0, 0, 0)",this.ctx.fillRect(0,0,s.width,s.height),u.enableFilters&&(u.filters.brightness||u.filters.contrast||u.filters.grayscale||u.filters.invert||u.filters.sepia||u.filters.saturate||u.filters.hueRotate||u.filters.blur)){let r="";u.filters.brightness&&(r+=`brightness(${~~(100+u.filters.brightness*100)}%) `),u.filters.contrast&&(r+=`contrast(${~~(100+u.filters.contrast*100)}%) `),u.filters.grayscale&&(r+=`grayscale(${~~(u.filters.grayscale*100)}%) `),u.filters.invert&&(r+=`invert(${~~(u.filters.invert*100)}%) `),u.filters.sepia&&(r+=`sepia(${~~(u.filters.sepia*100)}%) `),u.filters.saturate&&(r+=`saturate(${~~(100+u.filters.saturate*100)}%) `),u.filters.hueRotate&&(r+=`hue-rotate(${u.filters.hueRotate}deg) `),u.filters.blur&&(r+=`blur(${u.filters.blur}px) `),this.ctx.filter!==r&&(this.ctx.filter=r)}else this.ctx.filter="none"}applyTransform(e,i,n,u,s){let r=e.__owner.value;if(r&&r.rotation){this.ctx.save();let f=i+u/2,m=n+s/2;this.ctx.translate(f,m),this.ctx.rotate(r.rotation*Math.PI/180),this.ctx.translate(-f,-m),this.lastPaintedObject=r}}clearTransform(){this.lastPaintedObject&&(this.lastPaintedObject.rotation&&this.ctx.restore(),this.lastPaintedObject=void 0)}paint(e,i,n,u,s,r){let f=this.ctx.globalAlpha;if(e instanceof Ee||e instanceof Ki){if(e.display.rotation){this.ctx.save();let g=n+s/2,S=u+r/2;e.crop&&(g-=e.crop[i*5+1],S-=e.crop[i*5+2]),this.ctx.translate(g,S),this.ctx.rotate(e.display.rotation*Math.PI/180),this.ctx.translate(-g,-S)}if(this.visible.push(e),typeof e.style&&e.style.opacity!=="undefined"){if(!e.style.opacity)return;this.ctx.globalAlpha=e.style.opacity}try{let g=e.__host.canvas,S=this.getCanvasDims();if((g.indices.indexOf(i)===-1||this.invalidated.indexOf(g.canvases[i])!==-1)&&this.schedulePaintToCanvas(g,e,i,Qa({x:n+s/2,y:u+s/2},{x:S.width/2,y:S.height/2})),!this.firstMeaningfulPaint)return;let p=this.hostCache.get(g.canvases[i]);if(p)if(e.crop&&e.cropData){if(e.crop[i*5]){let x=[e.crop[i*5+1]/e.display.scale-e.display.points[i*5+1],e.crop[i*5+2]/e.display.scale-e.display.points[i*5+2],1+(e.crop[i*5+3]-e.crop[i*5+1])/e.display.scale,1+(e.crop[i*5+4]-e.crop[i*5+2])/e.display.scale];x[0]+=e.cropData.x/e.display.scale,x[1]+=e.cropData.y/e.display.scale;let A=e.x*this.lastKnownScale,R=e.y*this.lastKnownScale,w=[n+A,u+R,s,r];w[0]+=A,w[1]+=R,this.ctx.drawImage(p,x[0],x[1],x[2],x[3],w[0],w[1],w[2]+1,w[3]+1)}}else LA?this.ctx.drawImage(p,0,0,e.display.points[i*5+3]-e.display.points[i*5+1],e.display.points[i*5+4]-e.display.points[i*5+2],n,u,s+1,r+1):this.ctx.drawImage(p,0,0,e.display.points[i*5+3]-e.display.points[i*5+1],e.display.points[i*5+4]-e.display.points[i*5+2],n,u,s+Number.MIN_VALUE+.5,r+Number.MIN_VALUE+.5)}catch{}e.display.rotation&&this.ctx.restore()}let m=e instanceof dn&&this.options.box,y=e instanceof Xa&&this.options.polygon;if((m||y)&&!e.props.className&&!e.props.html&&!e.props.href){if(this.visible.push(e),e.props.style){let g=Object.assign({},e.props.style||{},e.hovering?e.props.hoverStyles:{},e.pressing?e.props.pressStyles:{}),S=e.props.relativeStyle?1:s/e.width;typeof g.opacity<"u"&&(this.ctx.globalAlpha=g.opacity);let p=0;typeof g.borderWidth<"u"&&(p=parseInt(g.borderWidth,10)*S);let x=0;typeof g.outlineWidth<"u"&&(x=parseInt(g.outlineWidth,10)*S);let A=0;if(typeof g.outlineOffset<"u"&&(A=parseInt(g.outlineOffset,10)*S),g.borderColor&&(this.ctx.strokeStyle=g.borderColor),g.boxShadow){let R=g.boxShadow.split(/,(?![^(]*\))/);for(let w of R){let T=AS[w]||_S.exec(w)||_S.exec(w);AS[w]=T,T&&(this.ctx.save(),this.ctx.shadowOffsetX=parseInt(T[1])*this.dpi*S,this.ctx.shadowOffsetY=parseInt(T[3])*this.dpi*S,this.ctx.shadowBlur=parseInt(T[5])*this.dpi*S,this.ctx.shadowColor=T[9],this.ctx.fillStyle="rgba(0,0,0,1)",this.ctx.fillRect(n+p,u+p,s,r),this.ctx.restore())}}if(this.ctx.fillStyle=g.backgroundColor||"transparent",this.ctx.lineWidth=p,y){let R=e.shape,w=R.points||[],T=w.length;this.ctx.beginPath();for(let E=0;E<T;E++)this.ctx.lineTo(n+w[E][0]*this.lastKnownScale,u+w[E][1]*this.lastKnownScale);R.open||this.ctx.closePath(),p&&this.ctx.stroke(),R.open||this.ctx.fill()}else p&&this.ctx.strokeRect(n+p/2,u+p/2,s+p,r+p),this.ctx.fillRect(n+p,u+p,s,r);x&&(g.outlineColor&&(this.ctx.strokeStyle=g.outlineColor),this.ctx.lineWidth=x,this.ctx.strokeRect(n-x/2-A,u-x/2-A,s+p*2+x+A*2,r+p*2+x+A*2))}this.ctx.globalAlpha=f}}loadImage(e,i,n,u=!1){if(of[e]&&of[e].naturalWidth>0){i(of[e]);return}try{let s=!1;u||setTimeout(()=>{s||this.loadImage(e,i,n,!0)},3e3);let r=document.createElement("img");r.decoding="auto",r.onload=function(){s=!0,i(r),of[e]=r,r.onload=null},this.options.crossOrigin&&(r.crossOrigin="anonymous"),r.src=e,r.complete&&r.onload({}),r.width}catch(s){console.log("image error",s),n(s)}}schedulePaintToCanvas(e,i,n,u){this.imagesPending++,e.indices.push(n);let s=`${i.id}--${i.display.scale}-${n}`,r=this.invalidated.indexOf(s);r!==-1&&this.invalidated.splice(r,1),e.canvases[n]=s,i.__host.canvas.loading=!0,this.loadingQueueOrdered=!1,this.loadingQueue.push({id:s,scale:i.display.scale,network:!0,distance:u,task:()=>new Promise(f=>{if(this.visible.indexOf(i)===-1){this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),f();return}let m=i.getImageUrl(n);this.loadImage(m,y=>{this.loadingQueue.push({id:s,scale:i.display.scale,distance:u,task:()=>new Promise(g=>{this.imageIdsLoaded.includes(s)||(this.imagesLoaded++,this.imageIdsLoaded.push(s)),e.loaded.push(n),e.loaded.length===e.indices.length&&(e.loading=!1);let S=i.display.points.slice(n*5,n*5+5),p=document.createElement("canvas"),x=p.getContext("2d");p.width=S[3]-S[1],p.height=S[4]-S[2],this.hostCache.set(e.canvases[n],p),this.drawCalls.push(()=>{x.drawImage(y,0,0,S[3]-S[1],S[4]-S[2]),g()})})}),f()},y=>{this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),f()})})})}afterPaintLayer(e,i){}prepareLayer(e,i){if(e.__owner.value)if(e.cropData){let n=this.lastKnownScale*(1/e.display.scale);this.applyTransform(e,i[1],i[2],i[3]-i[1],i[4]-i[2])}else this.applyTransform(e,i[1],i[2],i[3]-i[1],i[4]-i[2]);(!e.__host||!e.__host.canvas)&&(e instanceof Ee||e instanceof Ki)&&this.createImageHost(e)}finishLayer(){this.lastPaintedObject&&this.clearTransform()}createImageHost(e){e.__host=e.__host?e.__host:{},e.__host.canvas={canvas:void 0,canvases:[],indices:[],loaded:[],loading:!1}}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getViewportBounds(e,i,n){let u=e.getActiveZone();if(u){let s=i[3]-i[1]<u.points[3]-u.points[1],r=i[4]-i[2]<u.points[4]-u.points[2];return{x1:s?u.points[1]-n:u.points[1]+(u.points[3]-u.points[1])/2-(i[3]-i[1])/2,y1:r?u.points[2]-n:u.points[2]+(u.points[4]-u.points[2])/2-(i[4]-i[2])/2,x2:s?u.points[3]+n:u.points[1]+(u.points[3]-u.points[1])/2-(i[3]-i[1])/2,y2:r?u.points[4]+n:u.points[2]+(u.points[4]-u.points[2])/2-(i[4]-i[2])/2}}return null}pendingUpdate(){let e=!this.pendingDrawCall&&this.drawCalls.length===0&&this.imagesPending===0&&this.loadingQueue.length===0&&this.tasksRunning===0;return!e&&this.visible.length===0&&setTimeout(()=>{this.canvas.style.opacity="1",this.firstMeaningfulPaint=!0},500),!this.firstMeaningfulPaint&&e&&this.visible.length?(this.canvas.style.opacity="1",this.firstMeaningfulPaint=e,!0):this.options.debug?!0:!e}getRendererScreenPosition(){return this.rendererPosition}reset(){this.loadingQueue=[],this.drawCalls=[]}};var Va=class{constructor(e){b(this,"renderers",[]);b(this,"length");for(let i of e)i&&this.renderers.push(i);this.length=this.renderers.length}afterFrame(e,i,n,u){for(let s=0;s<this.length;s++)this.renderers[s].afterFrame(e,i,n,u)}afterPaintLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].afterPaintLayer(e,i)}beforeFrame(e,i,n,u){for(let s=0;s<this.length;s++)this.renderers[s].beforeFrame(e,i,n,u)}triggerResize(){for(let e=0;e<this.length;e++){let i=this.renderers[e];i.triggerResize&&i.triggerResize()}}getPointsAt(e,i,n,u){return this.renderers[0].getPointsAt(e,i,n,u)}getScale(e,i){return this.renderers[0].getScale(e,i)}getViewportBounds(e,i,n){return this.renderers[0].getViewportBounds(e,i,n)}getRendererScreenPosition(){return this.renderers[0].getRendererScreenPosition()}isReady(){for(let e=0;e<this.length;e++)if(!this.renderers[e].isReady())return!1;return!0}paint(e,i,n,u,s,r){for(let f=0;f<this.length;f++)this.renderers[f].paint(e,i,n,u,s,r)}pendingUpdate(){for(let e=0;e<this.length;e++)if(this.renderers[e].pendingUpdate())return!0;return!1}prepareLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].prepareLayer(e,i)}finishLayer(e,i){for(let n=0;n<this.length;n++)this.renderers[n].finishLayer(e,i)}resize(e,i){for(let n=0;n<this.length;n++)this.renderers[n].resize(e,i)}reset(){for(let e=0;e<this.length;e++)this.renderers[e].reset()}};var Uo=class{constructor(e){b(this,"canvas");b(this,"context");b(this,"heightRatio",1);b(this,"widthRatio",1);b(this,"target",new Float32Array(5));b(this,"initialWidth");b(this,"initialHeight");b(this,"bounds");b(this,"aggregate");b(this,"delta",0);b(this,"renderNextFrame",!0);this.canvas=e,this.initialWidth=e.width,this.initialHeight=e.height,this.context=e.getContext("2d"),this.context.globalAlpha=.5,this.aggregate=_i(1)}isReady(){return!0}resize(){this.initialWidth=this.canvas.width,this.initialHeight=this.canvas.height,this.renderNextFrame=!0}afterFrame(e,i,n){if(this.renderNextFrame){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let u=this.initialWidth/e.width,s=this.initialHeight/e.height,r=this.widthRatio>this.heightRatio?u:s;if(this.target=n,this.bounds){let f=e.getPointsAt(this.bounds,this.aggregate,r);for(let[m,y]of f)if(m instanceof Ee&&m.__host.canvas){let g=y.length/5;for(let S=0;S<g;S++)if(m.__host.canvas.canvases[S]){let x={x1:y[S+1]*r,y1:y[S+2]*r,width:(y[S+3]-y[S+1])*r,height:(y[S+4]-y[S+2])*r}}}}e.getPoints().forEach((f,m,y)=>{if(m%5===0&&f){let g={x1:y[m+1]*r,y1:y[m+2]*r,x2:y[m+3]*r,y2:y[m+4]*r,width:(y[m+3]-y[m+1])*r,height:(y[m+4]-y[m+2])*r};this.context.strokeStyle="red",this.context.strokeRect(g.x1,g.y1,g.width,g.height)}}),n&&(this.context.strokeStyle="red",this.context.lineWidth=window.devicePixelRatio||1,this.context.strokeRect(n[1]*r,n[2]*r,(n[3]-n[1])*r,(n[4]-n[2])*r))}}getActiveZone(e){return null}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){return 1}beforeFrame(e,i){this.bounds=et.singleBox(e.width,e.height)}drawImage(){}afterPaintLayer(e,i){}paint(e,i,n,u,s,r){this.renderNextFrame=!0}prepareLayer(e){}pendingUpdate(){return!1}hasActiveZone(){return!1}getViewportBounds(e,i,n){return null}getRendererScreenPosition(){return this.canvas.getBoundingClientRect()}finishLayer(){}reset(){}};var $m=class{constructor(){b(this,"autoWidth",!1);b(this,"autoHeight",!0);b(this,"width");b(this,"height");b(this,"world");b(this,"content",[]);b(this,"viewingDirection","left-to-right");b(this,"rows");b(this,"columns",4);b(this,"spacing",20);b(this,"reversed",!1);b(this,"padding",20);this.world=Ji.withProps({width:0,height:0,viewingDirection:"left-to-right"}),this.width=0,this.height=0}setViewingDirection(e){this.viewingDirection=e}addContent(e){this.content.push(...e.map(i=>this.world.addObjectAt(i,{width:0,height:0,x:0,y:0})))}setWidth(e){this.width=e}setHeight(e){this.height=e}setSpacing(e){this.spacing=e}setPadding(e){this.padding=e}setRows(e){this.autoWidth=!0,this.rows=e}setColumns(e){this.autoHeight=!0,this.columns=e}recalculate(){if(this.height===0&&this.width===0||this.rows===0||this.columns===0)return;if(this.autoHeight&&!this.width)throw new Error("Cannot set auto height without setting a width");if(this.autoWidth&&!this.height)throw new Error("Cannot set auto width without setting a height");(this.viewingDirection==="left-to-right"||this.viewingDirection==="top-to-bottom")&&this.reversed&&(this.reversed=!1,this.content.reverse()),(this.viewingDirection==="right-to-left"||this.viewingDirection==="bottom-to-top")&&!this.reversed&&(this.reversed=!0,this.content.reverse());let e=this.content.length,i=()=>{if(this.autoWidth&&this.rows){let f=e>this.rows?this.rows:e;return{columns:Math.ceil(e/f),rows:f}}if(this.autoHeight&&this.columns){let f=e>this.columns?this.columns:e;return{columns:f,rows:Math.ceil(e/f)}}throw new Error("Something went wrong.")},{columns:n,rows:u}=i(),s=this.autoWidth?-1:this.width-this.padding*2,r=this.autoWidth?-1:(s-this.spacing*(n-1))/n;if(this.autoHeight&&!this.autoWidth){let f=0,m=this.padding;for(let y=0;y<u&&f!==e;y++){let g=0,S=[];for(let p=0;p<n;p++){let x=this.reversed?e-f:f;if(f===e)break;let A=this.content[x],R=A.width,w=A.width/A.height,T=r/w;S.push([f,r,T,r/R]),T>g&&(g=T),f++}for(let p=0;p<n&&S[p];p++){let x=this.world.getPoints(),A=S[p][0],R=S[p][1],w=S[p][2],T=S[p][3],E=this.padding+p*(this.spacing+R),z=m+(g-w)/2,O=this.reversed?e-A:A,H=x[O*5+1],q=x[O*5+2];this.world.scaleWorldObject(A,T),(H!==E||q!==z)&&this.world.translateWorldObject(O,E-H,z-q)}m+=g+this.spacing}this.height=m+this.padding,this.world.resize(this.width,this.height);return}this.autoWidth&&this.autoHeight,!this.autoWidth&&this.autoHeight}getWorld(){return this.world}};var IS=F(JS(),1);function FS(t){return{x:t[1],y:t[2],width:t[3]-t[1],height:t[4]-t[2]}}var WS="pan",PS="scroll",XA="gesture",kS={zoomOutFactor:.8,zoomInFactor:1.25,maxZoomFactor:1,minZoomFactor:.05,zoomDuration:300,zoomWheelConstant:20,zoomClamp:.6,panBounceStiffness:120,panBounceDamping:15,panTimeConstant:240,panPower:.1,nudgeDistance:100,panPadding:0,devicePixelRatio:1,enableWheel:!0,enableClickToZoom:!0,ignoreSingleFingerTouch:!1,enablePanOnWait:!1,requireMetaKeyForWheelZoom:!1,panOnWaitDelay:40,onPanInSketchMode:()=>{},parentElement:null},Bo=(t={})=>({start:function(e){let{zoomWheelConstant:i,enableWheel:n,enableClickToZoom:u,ignoreSingleFingerTouch:s,enablePanOnWait:r,panOnWaitDelay:f,parentElement:m,requireMetaKeyForWheelZoom:y}={...kS,...t},g={pointerStart:{x:0,y:0},isPressing:!1,mousemoveBuffer:Z(5),multiTouch:{distance:0}};e.world.activatedEvents.push("onMouseUp","onMouseDown","onMouseMove","onTouchStart","onTouchEnd","onTouchMove","onContextMenu");function S(){R=0,T="",z(),z(void 0,"notice"),w=0}function p(){e.world.constraintBounds(),S()}function x(B){if(B.which>1){g.isPressing=!1;return}e.mode==="explore"&&(B.preventDefault(),g.pointerStart.x=B.atlas.x,g.pointerStart.y=B.atlas.y,e.transitionManager.stopTransition(),g.isPressing=!0)}function A(){S(),g.isPressing&&(e.mode==="explore"&&e.world.constraintBounds(),g.isPressing=!1)}let R=0,w=0,T="";function E(B){if(e.mode==="explore"){if(B.atlasTouches.length===1&&(w=performance.now(),s==!1&&B.preventDefault(),g.pointerStart.x=B.atlasTouches[0].x,g.pointerStart.y=B.atlasTouches[0].y),B.atlasTouches.length===2){T=XA,B.preventDefault();let I=B.atlasTouches[0].x,ht=B.atlasTouches[1].x;g.pointerStart.x=(I+ht)/2;let qn=B.atlasTouches[0].y,At=B.atlasTouches[1].y;g.pointerStart.y=(qn+At)/2,R=Qa({x:B.touches[0].clientX,y:B.touches[0].clientY},{x:B.touches[1].clientX,y:B.touches[1].clientY})}e.transitionManager.stopTransition(),g.isPressing=!0}}function z(B,I="intent"){m&&(m.dataset[I]=B)}function O(B){let I=null,ht=null,qn=!1,At=0;if(g.isPressing&&B.touches.length===2){let ei=B.touches[0].clientX,Qe=B.touches[1].clientX;I=(ei+Qe)/2;let Gn=B.touches[0].clientY,ue=B.touches[1].clientY;ht=(Gn+ue)/2,At=Qa({x:B.touches[0].clientX,y:B.touches[0].clientY},{x:B.touches[1].clientX,y:B.touches[1].clientY}),qn=!0}if(z(T),g.isPressing&&B.touches.length===1){if(r&&(performance.now()-w<f&&T==""&&(T=PS),T==""&&(T=WS)),z(T),T==""&&s==!0||T==PS){z("require-two-finger","notice");return}let ei=B.touches[0];I=ei.clientX,ht=ei.clientY}if(I!==null&&ht!==null){let ei=e.getRendererScreenPosition();if(ei){let{x:Qe,y:Gn}=e.viewerToWorld(I-ei.x,ht-ei.y),ue=At&&R?At/R:1;e.transitionManager.customTransition(ye=>{ye.from=Z(e.target),ye.to=Ai(ye.from,ui(Kt(g.pointerStart.x-Qe,g.pointerStart.y-Gn),el(1/ue,Qe,Gn)),g.mousemoveBuffer),ye.elapsed_time=0,ye.total_time=0,ye.timingFunction=mn.easeInOutExpo,ye.done=!1})}R=At}T==WS&&B.preventDefault()}function H(B){if(g.isPressing){let I=e.getRendererScreenPosition();if(I){let{x:ht,y:qn}=e.viewerToWorld(B.clientX-I.x,B.clientY-I.y);e.transitionManager.customTransition(At=>{At.from=Z(e.target),At.to=Ai(At.from,Kt(g.pointerStart.x-ht,g.pointerStart.y-qn),g.mousemoveBuffer),At.elapsed_time=0,At.total_time=0,At.timingFunction=mn.easeInOutExpo,At.done=!1})}}}function q(B){e.mode==="explore"&&e.world.zoomIn(B.atlas)}function L(B){let ht=1+(0,IS.default)(B).spinY/i;e.world.zoomTo(ht,B.atlas,!0)}function G(B){return y&&B.metaKey==!1?(z("meta-required","notice"),B.stopPropagation(),!1):!0}e.world.addEventListener("mouseup",p),e.world.addEventListener("touchend",p),e.world.addEventListener("touchstart",E),e.world.addEventListener("mousedown",x),window.addEventListener("touchend",A),window.addEventListener("mouseup",A),window.addEventListener("mousemove",H),m&&m.addEventListener("touchmove",O),u&&(e.world.activatedEvents.push("onClick"),e.world.addEventListener("click",q)),n&&(e.world.activatedEvents.push("onWheel"),y&&m?.addEventListener("wheel",G,{passive:!0,capture:!0}),e.world.addEventListener("wheel",L));let J=e.world.addLayoutSubscriber((B,I)=>{if(B==="zone-changed"&&e.transitionManager.constrainBounds({transition:{duration:0}}),B==="zoom-to"&&I&&e.transitionManager.zoomTo(I.factor,{origin:I.point,stream:I.stream}),B==="go-home"){let ht=I.immediate?{duration:0}:void 0;e.transitionManager.goToRegion(FS(e.homePosition),{transition:ht})}if(B==="goto-region"&&I){let ht=I.immediate?{duration:0}:{};e.transitionManager.goToRegion(I,{transition:ht})}B==="constrain-bounds"&&e.transitionManager.constrainBounds({transition:I?.immediate?{duration:0}:void 0})});return()=>{e.world.removeEventListener("mouseup",p),e.world.removeEventListener("touchend",p),e.world.removeEventListener("touchstart",E),e.world.removeEventListener("mousedown",x),window.removeEventListener("touchend",A),window.removeEventListener("mouseup",A),e.world.removeEventListener("mousemove",H),m&&(m.removeEventListener("touchmove",H),m.removeEventListener("wheel",G,{passive:!0,capture:!0})),u&&e.world.removeEventListener("click",q),n&&e.world.removeEventListener("wheel",L),J()}},updatePosition(){}});var jt=F(vt(),1);var gf=F(vt(),1),mb=F(Ft(),1),An=gf.default.createContext("explore");An.displayName="Mode";var wo=()=>(0,gf.useContext)(An);function o4(t){return(0,mb.jsx)(An.Provider,{value:t.mode,children:t.children})}var Oi=F(vt(),1);function gb(t,e){let i;return(...n)=>{window.clearTimeout(i),i=window.setTimeout(()=>t(...n),e)}}function yf({debounce:t,scroll:e,polyfill:i,offsetSize:n}={debounce:0,scroll:!1,offsetSize:!1}){let u=i||(typeof window>"u"?class{}:window.ResizeObserver);if(!u)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[s,r]=(0,Oi.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,Oi.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s,orientationHandler:null}),m=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,g=(0,Oi.useRef)(!1);(0,Oi.useEffect)(()=>(g.current=!0,()=>void(g.current=!1)));let[S,p,x]=(0,Oi.useMemo)(()=>{let T=()=>{if(!f.current.element)return;let{left:E,top:z,width:O,height:H,bottom:q,right:L,x:G,y:J}=f.current.element.getBoundingClientRect(),B={left:E,top:z,width:O,height:H,bottom:q,right:L,x:G,y:J};f.current.element instanceof HTMLElement&&n&&(B.height=f.current.element.offsetHeight,B.width=f.current.element.offsetWidth),Object.freeze(B),g.current&&!h4(f.current.lastBounds,B)&&r(f.current.lastBounds=B)};return[T,y?gb(T,y):T,m?gb(T,m):T]},[r,n,m,y]);function A(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(T=>T.removeEventListener("scroll",x,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null),f.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",f.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",f.current.orientationHandler))}function R(){f.current.element&&(f.current.resizeObserver=new u(x),f.current.resizeObserver.observe(f.current.element),e&&f.current.scrollContainers&&f.current.scrollContainers.forEach(T=>T.addEventListener("scroll",x,{capture:!0,passive:!0})),f.current.orientationHandler=()=>{x()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",f.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",f.current.orientationHandler))}let w=T=>{!T||T===f.current.element||(A(),f.current.element=T,f.current.scrollContainers=yb(T),R())};return r4(x,!!e),c4(p),(0,Oi.useEffect)(()=>{A(),R()},[e,x,p]),(0,Oi.useEffect)(()=>A,[]),[w,s,S]}function c4(t){(0,Oi.useEffect)(()=>{let e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function r4(t,e){(0,Oi.useEffect)(()=>{if(e){let i=t;return window.addEventListener("scroll",i,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",i,!0)}},[t,e])}function yb(t){let e=[];if(!t||t===document.body)return e;let{overflow:i,overflowX:n,overflowY:u}=window.getComputedStyle(t);return[i,n,u].some(s=>s==="auto"||s==="scroll")&&e.push(t),[...e,...yb(t.parentElement)]}var f4=["x","y","top","bottom","left","right","width","height"],h4=(t,e)=>f4.every(i=>t[i]===e[i]);var gg=F(vt(),1),On=gg.default.createContext(null);On.displayName="Atlas";var Zl=gg.default.createContext(null);Zl.displayName="Bounds";var Cn=F(vt(),1);var wb=F(Rb(),1),Ka=F(Hb(),1);var Yo,m4=typeof performance=="object"&&typeof performance.now=="function";if(m4){let t=performance;Yo=()=>t.now()}else{let t=Date,e=t.now();Yo=()=>t.now()-e}var jb=F(vt(),1);function Ub(t,e){t&&t.appendChild&&e&&t.appendChild(e)}function Lb(t,e){t&&t.removeChild&&e&&t.removeChild(e)}function g4(t,e){return Lb(t.world,e)}function y4(t,e,i){return qb(t.world,e,i)}function qb(t,e,i){t&&t instanceof _n&&(t=t.world),t&&t.insertBefore&&t.insertBefore(e,i)}function _g(t,e,i){if(i&&(t.applyProps&&t.applyProps(i),t instanceof It))for(let n of Fu){let u=n.slice(2).toLowerCase();i[n]!==e[n]&&(e[n]&&t.removeEventListener(u,e[n]),t.addEventListener(u,i[n]))}}function Ag(t,e){let i=Object.keys(e),n=!1;for(let u of i)if(Fu.indexOf(u)!==-1){let s=hn[u];if(s){if(t.activatedEvents.indexOf(s)!==-1)continue;n=!0,t.activatedEvents.push(s)}}n&&t.triggerEventActivation()}var Ef=new Map,Bb={};function v4(t,{args:e=[],...i},n,u,s){if(!(n instanceof _n)&&s){let m=y=>y.return?m(y.return):y.stateNode&&y.stateNode.containerInfo;n=m(s)}let r,f=n.world;switch(t){case"world":r=Ji.withProps({width:i.width,height:i.height,viewingDirection:"left-to-right"}),r.activatedEvents=f.activatedEvents,r.eventHandlers=f.eventHandlers,r.subscriptions=f.subscriptions,r.triggerEventActivation(),f=r;break;case"box":r=new dn;break;case"shape":r=new Xa;break;case"worldObject":case"world-object":r=new zn;break;case"worldImage":case"world-image":r=new Ee;break;case"texture":r=new Xl;break;case"compositeImage":case"composite-image":r=new Mo({id:i.id,width:i.width,height:i.height,images:[],renderOptions:i.renderOptions});break;case"tiledImage":case"tiled-image":r=Ki.fromTile(i.uri,i.display,i.tile,i.scaleFactor,void 0,i.format,i.useFloorCalc,i.version3);break;case"paragraph":r=new il,r.text=i.children;break;default:return}return Ag(f,i),_g(r,{},i),r}function p4(t,e){if(e instanceof Ji)t.world=e;else if(e instanceof zn)t.world.appendChild(e);else if(e)throw new Error("Invalid root")}var Gb=0,bf=Gb,Qo=(0,wb.default)({unstable_now:Yo,now:Yo,createInstance:v4,removeChild:Lb,appendChild:Ub,appendInitialChild:Ub,insertBefore:qb,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:typeof setTimeout<"u"?setTimeout:void 0,cancelTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,setTimeout:typeof setTimeout<"u"?setTimeout:void 0,clearTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:p4,removeChildFromContainer:g4,createTextInstance(){},insertInContainerBefore:y4,prepareUpdate(t,e,i,n,u){return Ag(u.world,n),n},commitUpdate(t,e,i,n,u,s){t.applyProps&&i&&_g(t,n,i)},finalizeInitialChildren(t){return t?.__handlers},getChildHostContext(){return Bb},getRootHostContext(){return Bb},prepareForCommit(t){return t.isCommitting=!0,null},preparePortalMount(){},hideInstance(t){t&&t.points&&(t.points[0]=0)},unhideInstance(t,e){t&&t.points&&(t.points[0]=1)},getPublicInstance(t){return t},hideTextInstance(){throw new Error("Text is not allowed in the react-three-fibre tree. You may have extraneous whitespace between components.")},resetAfterCommit(t){t.isCommitting=!1,t.pendingUpdate=!0,t.world&&t.world.needsRecalculate&&(t.world.recalculateWorldSize(),t.world.triggerRepaint())},shouldSetTextContent(){return!1},clearContainer(){return!1},supportsHydration:!1,supportsPersistence:!1,detachDeletedInstance(t){},afterActiveInstanceBlur(){},beforeActiveInstanceBlur(){},getCurrentEventPriority(){return Ka.DefaultEventPriority},getInstanceFromNode(t){throw new Error("Not implemented")},getInstanceFromScope(t){throw new Error("Not implemented")},prepareScopeUpdate(t,e){throw new Error("Not implemented")},logRecoverableError(){},requestPostPaintCallback(){},rendererPackageName:"@atlas-viewer/atlas",rendererVersion:jb.version,shouldAttemptEagerTransition:()=>!1,trackSchedulerEvent:()=>{},resolveEventType:()=>null,resolveEventTimeStamp:()=>-1.1,maySuspendCommit:()=>!1,preloadInstance:()=>!0,startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady:()=>null,NotPendingTransition:null,setCurrentUpdatePriority(t){bf=t},getCurrentUpdatePriority(){return bf},resolveUpdatePriority(){if(bf!==Gb)return bf;switch(typeof window<"u"&&window.event?.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Ka.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Ka.ContinuousEventPriority;default:return Ka.DefaultEventPriority}},resetFormInstance(){}});Qo.injectIntoDevTools();function es(t,e){let i=Ef.get(t);i&&Qo.updateContainer(null,i,null,()=>{Ef.delete(t),e&&e(t)})}var is={render(t,e){let i=Ef.get(e);if(i)Qo.updateContainer(t,i,null);else{let n=Qo.createContainer(e,0,null,!1,null,"",()=>{},null);Qo.updateContainer(t,n,null),Ef.set(e,n)}},unmountComponentAtNode(t,e){es(t,e)}};var xf=F(vt(),1),Mi=typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")?xf.useLayoutEffect:xf.useEffect;var ns=F(Ft(),1),Yb=Cn.default.memo(({children:t,setIsReady:e,onCreated:i,bounds:n,preset:u,mode:s="explore"})=>{let r=(0,Cn.useCallback)(function(m){let y=(0,Cn.useRef)(!1),g=()=>{e(!0)};return(0,Cn.useEffect)(()=>{if(u&&!y.current){u.runtime.goHome();let S=i&&i(u);return void(S&&S.then?S.then(g):g())}return()=>{}},[]),(0,Cn.useEffect)(()=>{y.current=!0},[]),m.children},[u]);return Mi(()=>{if(u){let f=u.runtime;s!==f.mode&&(f.mode=s),is.render((0,ns.jsx)(Cn.default.StrictMode,{children:(0,ns.jsx)(r,{children:(0,ns.jsx)(Zl.Provider,{value:n,children:(0,ns.jsx)(An.Provider,{value:s,children:(0,ns.jsx)(On.Provider,{value:u,children:t})})})})}),f)}},[u,s,t]),Mi(()=>{if(u){let f=u.runtime;return()=>{is.unmountComponentAtNode(f)}}return()=>{}},[u]),null});var Xo=class{constructor(e,i){b(this,"canvas");b(this,"gl");b(this,"program");b(this,"fragmentShader");b(this,"vertexShader");b(this,"rectBuffer");b(this,"fragmentShaderSource",`
21
- precision mediump float;
22
-
23
- uniform sampler2D u_image;
24
- varying vec2 v_texCoord;
25
-
26
- void main() {
27
- gl_FragColor = texture2D(u_image, v_texCoord);
28
- }
29
- `);b(this,"vertexShaderSource",`
30
- attribute vec2 a_position;
31
- uniform vec2 u_resolution;
32
- varying vec4 v_color;
33
- uniform sampler2D u_texture;
34
-
35
- attribute vec2 a_texCoord;
36
- varying vec2 v_texCoord;
37
-
38
- void main() {
39
-
40
- // convert the position from pixels to 0.0 to 1.0
41
- vec2 zeroToOne = a_position / u_resolution;
42
-
43
- // convert from 0->1 to 0->2
44
- vec2 zeroToTwo = zeroToOne * 2.0;
45
-
46
- // convert from 0->2 to -1->+1 (clip space)
47
- vec2 clipSpace = zeroToTwo - 1.0;
48
-
49
- gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);
50
-
51
- v_texCoord = a_texCoord;
52
- }
53
- `);b(this,"attributes");b(this,"uniforms");b(this,"buffers");b(this,"rendererPosition");b(this,"dpi");b(this,"lastResize",0);b(this,"lastKnownScale",1);this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.gl=e.getContext("webgl2"),this.fragmentShader=this.createShader(this.gl.FRAGMENT_SHADER,this.fragmentShaderSource),this.vertexShader=this.createShader(this.gl.VERTEX_SHADER,this.vertexShaderSource),this.program=this.createProgram(this.vertexShader,this.fragmentShader),this.dpi=i?.dpi||1,this.attributes={position:this.gl.getAttribLocation(this.program,"a_position"),texCoord:this.gl.getAttribLocation(this.program,"a_texCoord")},this.uniforms={resolution:this.gl.getUniformLocation(this.program,"u_resolution"),texture:this.gl.getUniformLocation(this.program,"u_texture")},this.buffers={position:this.createArrayBuffer(),texCoord:this.createArrayBuffer(new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]))},this.rectBuffer=new Float32Array(12),this.resize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.useProgram(this.program),this.gl.enableVertexAttribArray(this.attributes.position)}resize(){this.resizeCanvasToDisplaySize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return!0}beforeFrame(e,i,n){this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.uniform2f(this.uniforms.resolution,this.gl.canvas.width,this.gl.canvas.height),this.lastResize>1e3&&(this.lastResize=0,this.resizeCanvasToDisplaySize()),this.lastResize+=i}prepareLayer(e){(!e.__host||!e.__host.webgl)&&((e instanceof Ee||e instanceof Ki)&&this.createImageHost(e),e instanceof Xl&&this.createTextureHost(e))}createTextureHost(e){e.__host=e.__host?e.__host:{};let i=this.gl,n=this.gl.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1);let u;if(e instanceof Xl){let s=e.getTexture();s.source&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,s.source),u=s}i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),e.__host.webgl={height:e.height,width:e.width,texture:n,lastImage:u}}createImageHost(e){let i=[...new Array(e.points.length/5)];e.__host=e.__host?e.__host:{},e.__host.webgl={height:e.height,width:e.width,textures:i,loading:[],loaded:[],lastLevelRendered:-1,onLoad:(n,u)=>{let s=this.gl,r=this.gl.createTexture();s.bindTexture(s.TEXTURE_2D,r),s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,!1),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,u),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.bindTexture(s.TEXTURE_2D,null),e.__host.webgl.textures[n]=r,e.__host.webgl.loaded.push(n)}}}paint(e,i,n,u,s,r){if(e.type==="spacial-content"&&e.__host&&e.__host.webgl){if(e.getTexture){let m=e?.getTexture();if(m&&e.__host.webgl.lastImage!==m.hash&&m.source&&!e.__host.webgl.error)try{let g=this.gl.RGBA,S=this.gl.RGBA,p=this.gl.UNSIGNED_BYTE;this.gl.bindTexture(this.gl.TEXTURE_2D,e.__host.webgl.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,g,S,p,m.source),e.__host.webgl.lastImage=m.hash}catch(y){e.__host.webgl.error=y}}if(e.__host.webgl.loading&&e.__host.webgl.loading.indexOf(i)===-1&&e.getImageUrl){e.__host.webgl.loading.push(i);let m=document.createElement("img");m.decoding="async",m.crossOrigin="anonymous",m.src=e.getImageUrl(i),m.onload=()=>(m.onload=null,e.__host.webgl.onLoad(i,m))}let f=e.__host.webgl.texture?e.__host.webgl.texture:e.__host.webgl.textures[i];f&&(this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.texCoord),this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.vertexAttribPointer(this.attributes.texCoord,2,this.gl.FLOAT,!1,0,0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.position),this.gl.enableVertexAttribArray(this.attributes.position),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.bindTexture(this.gl.TEXTURE_2D,f),this.gl.uniform1i(this.uniforms.texture,0),this.setRectangle(n,u,s,r),this.gl.drawArrays(this.gl.TRIANGLES,0,6))}}afterPaintLayer(e,i){}pendingUpdate(){return!0}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}afterFrame(){}getScale(e,i,n){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let u=this.getCanvasDims(),s=u.width/e,r=u.height/i,f=(s<r?r:s)*(n&&this.dpi||1);return Number.isNaN(f)||(this.lastKnownScale=f),this.lastKnownScale}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}getViewportBounds(e,i,n){return null}createShader(e,i){let n=this.gl.createShader(e);if(n){if(this.gl.shaderSource(n,i),this.gl.compileShader(n),this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS))return n;let s=this.gl.getShaderInfoLog(n);if(this.gl.deleteShader(n),s)throw new Error(s)}throw new Error("Invalid shader")}createProgram(e,i){let n=this.gl.createProgram();if(n){if(this.gl.attachShader(n,e),this.gl.attachShader(n,i),this.gl.linkProgram(n),this.gl.getProgramParameter(n,this.gl.LINK_STATUS))return n;let s=this.gl.getProgramInfoLog(n);if(this.gl.deleteProgram(n),s)throw new Error(s)}throw new Error("Invalid program")}resizeCanvasToDisplaySize(){let e=this.gl.canvas,i=e.clientWidth,n=e.clientHeight,u=e.width!==i||e.height!==n;return u&&(e.width=i,e.height=n),u}createArrayBuffer(e){let i=this.gl.createBuffer();if(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,i),e&&this.gl.bufferData(this.gl.ARRAY_BUFFER,e,this.gl.STATIC_DRAW),!i)throw new Error("Cannot create buffer");return i}setRectangle(e,i,n,u){this.gl.bufferData(this.gl.ARRAY_BUFFER,this.getRectangle(e,i,n,u),this.gl.STATIC_DRAW)}getRectangle(e,i,n,u){let s=e,r=e+n,f=i,m=i+u;return this.rectBuffer.set([s,f,r,f,s,m,s,m,r,f,r,m]),this.rectBuffer}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}};function Vo(t,e){let i=e?t:JSON.stringify(t),n=5381,u=i.length;for(;u;)n=n*33^i.charCodeAt(--u);let r=(n>>>0).toString(16);return r.length%2?"0"+r:r}var ls=class{constructor(e){b(this,"$element");b(this,"stylesheetClasses");b(this,"activeStylesheetClasses");b(this,"sheetsDidUpdate");b(this,"sheetPrefix");b(this,"stylesheetEntries");this.sheetPrefix=e?.sheetPrefix||"a-",this.$element=document.createElement("style"),this.stylesheetClasses=[],this.activeStylesheetClasses=[],this.sheetsDidUpdate=!1,this.stylesheetEntries={}}getElement(){return this.$element}addStylesheet(e){let i=e.replace(/\s\s+/g," ").replace(/: /g,":").replace(/; /g,";").trim(),n=this.sheetPrefix+Vo(i,!0);return this.stylesheetClasses.indexOf(n)!==-1||(this.stylesheetClasses.push(n),this.activeStylesheetClasses.push(n),this.stylesheetEntries[n]=i,this.sheetsDidUpdate=!0),n}removeStylesheet(e){let i=this.sheetPrefix+Vo(e,!0);this.stylesheetClasses.indexOf(i)&&(this.stylesheetClasses=this.stylesheetClasses.filter(n=>n!==i)),this.sheetsDidUpdate=!0}clearClasses(){this.activeStylesheetClasses=[]}didUpdateActive(){if(this.activeStylesheetClasses.length){for(let e of this.activeStylesheetClasses)if(this.stylesheetClasses.indexOf(e)===-1)return!0;for(let e of this.stylesheetClasses)if(this.activeStylesheetClasses.indexOf(e)===-1)return!0}return!1}updateSheet(){(this.sheetsDidUpdate||this.didUpdateActive())&&(this.$element.innerText=this.activeStylesheetClasses.map(e=>`.${e}{${this.stylesheetEntries[e]}}`).join(""),this.sheetsDidUpdate=!1,this.stylesheetClasses=[...this.activeStylesheetClasses])}};var Ja=class{constructor(e,i){b(this,"htmlContainer");b(this,"visible",[]);b(this,"previousVisible",[]);b(this,"htmlIds",[]);b(this,"firstMeaningfulPaint",!1);b(this,"rendererPosition");b(this,"stylesheet");b(this,"options");b(this,"paintTx",1);b(this,"zIndex",0);b(this,"classes");this.htmlContainer=e,this.htmlContainer.innerHTML="",this.rendererPosition=this.htmlContainer.getBoundingClientRect(),this.options={triggerResize:()=>{},box:!1,text:!1,sheetPrefix:"",inlineStyles:!1,background:"",...i||{}},this.stylesheet=new ls({sheetPrefix:this.options.sheetPrefix}),this.options.inlineStyles||this.htmlContainer.appendChild(this.stylesheet.getElement()),this.options.background&&this.htmlContainer.classList.add(this.stylesheet.addStylesheet(`
54
- background: ${this.options.background};
55
- `)),this.classes={hostClassName:this.stylesheet.addStylesheet(`
56
- position: absolute;
57
- transform-origin: 0px 0px;
58
- `),interactive:this.stylesheet.addStylesheet("pointer-events: all"),nonInteractive:this.stylesheet.addStylesheet("pointer-events: none")},this.stylesheet.updateSheet()}createHtmlHost(e){if(this.htmlContainer&&(this.options.box||e.props.className||e.props.html||e.props.href)){let i=document.createElement(e.props.href?"a":"div");if(e.props.href){i.style.display="block",i.href=e.props.href;let n=e.props.hrefTarget||"_blank";i.target=n,n!=="_self"&&(i.rel="noopener noreferrer")}i.title=e.props.title||"",this.options.inlineStyles?(i.style.display="block",i.style.position="absolute",i.style.overflow="hidden",i.style.transformOrigin="0px 0px"):i.classList.add(this.classes.hostClassName),e.__host={element:i,revision:null,relative:!1},this.updateHtmlHost(e,e.width,e.height),e.__onCreate&&e.__onCreate()}}triggerResize(){this.options.triggerResize()}updateHtmlHost(e,i,n){if(e.__revision!==e.__host.revision){let u=e.__host.element,s=[this.classes.hostClassName];if(e.props.interactive?this.options.inlineStyles?u.style.pointerEvents="all":s.push(this.classes.interactive):this.options.inlineStyles?u.style.pointerEvents="none":s.push(this.classes.nonInteractive),e.props.href){u.style.display="block",u.href=e.props.href;let m=e.props.hrefTarget||"_blank";u.target=m,m!=="_self"?u.rel="noopener noreferrer":u.rel=""}else u.href&&u.removeAttribute("href");if(e.props.title&&(u.title=e.props.title||""),e.props.className&&(s.push(e.props.className),e.hovering&&s.push(`${e.props.className}--hover`),e.pressing&&s.push(`${e.props.className}--active`)),e.props.relativeStyle?(u.style.width=`${i||e.width}px`,u.style.height=`${n||e.height}px`):(u.style.width=`${e.width}px`,u.style.height=`${e.height}px`),e.props.style){Object.assign(u.style,e.props.style||{},e.hovering?e.props.hoverStyles||{}:{},e.pressing?e.props.pressStyles||{}:{});return}if(this.options.text&&e instanceof il){e.text&&(u.innerText=e.text),e.backgroundColor&&(u.style.backgroundColor=e.backgroundColor),e.color&&(u.style.color=e.color),e.props.font&&(u.style.font=e.props.font),e.props.textAlign&&(u.style.textAlign=e.props.textAlign),e.__host.revision=e.__revision;let m=s.join(" ");u.className=m,u.part=m}e instanceof dn&&(this.options.box||e.props.className||e.props.html)&&(e.props.backgroundColor&&(u.style.backgroundColor=e.props.backgroundColor),e.props.border!==u.style.border&&(u.style.border=e.props.border));let f=s.join(" ");u.className=f,u.part=f}}afterFrame(e,i,n){this.stylesheet.updateSheet();for(let u of this.previousVisible)this.visible.indexOf(u)===-1&&this.htmlContainer&&u.__id&&this.htmlIds.indexOf(u.__id)!==-1&&this.htmlContainer.removeChild(u.__host.element);this.previousVisible=this.visible}afterPaintLayer(e,i){}beforeFrame(e,i,n){this.stylesheet.clearClasses(),this.paintTx++,this.zIndex=0,this.visible=[]}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){let n=this.rendererPosition.width/e,u=this.rendererPosition.height/i;return n<u?u:n}getViewportBounds(e,i,n){return null}isReady(){return!1}paint(e,i,n,u,s,r){if(this.zIndex++,(this.options.text&&e instanceof il||e instanceof dn&&(this.options.box||e.props.className||e.props.html))&&e.__host.tx!==this.paintTx&&(this.visible.push(e),e.__host.tx=this.paintTx,this.htmlContainer)){this.updateHtmlHost(e,s,r);let f=s/e.width,m=e.__host.element;m.style.zIndex=`${this.zIndex}`,e.props.relativeStyle?m.style.transform=`translate(${Math.round(n)}px, ${Math.round(u)}px)`:m.style.transform=`translate(${Math.round(n)}px, ${Math.round(u)}px) scale(${f})`,this.previousVisible.indexOf(e)===-1&&this.htmlContainer.appendChild(m),this.htmlIds.indexOf(e.__id)===-1&&this.htmlIds.push(e.__id)}}pendingUpdate(){return!1}prepareLayer(e){e.__host||(e instanceof il||e instanceof dn)&&this.createHtmlHost(e)}resize(e,i){typeof e<"u"&&typeof i<"u"&&(this.htmlContainer.style.width=`${e}px`,this.htmlContainer.style.height=`${i}px`),this.rendererPosition=this.htmlContainer.getBoundingClientRect()}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}};var as=class as{constructor(e,i,n){b(this,"element");b(this,"runtime");b(this,"unsubscribe");b(this,"activatedEvents",[]);b(this,"eventHandlers",[]);b(this,"bounds");b(this,"listening");b(this,"pointerMoveEvent");b(this,"pointerEventState",{isClicking:!1,isDragging:!1,isPressed:!1,mousedOver:[],itemsBeingDragged:[],mouseDownStart:{x:0,y:0},lastTouches:[]});b(this,"options");b(this,"_realPointerMove",e=>{this.pointerMoveEvent=e});b(this,"onWheelEvent",e=>{e.preventDefault(),this.onPointerEvent(e)});b(this,"onContextMenu",e=>{e.preventDefault();let i="onContextMenu";if(this.runtime.world.activatedEvents.indexOf(i)!==-1){let{x:n,y:u}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,n,u),this.runtime.world.propagatePointerEvent(i,e,n,u)}});b(this,"onTouchEvent",e=>{let i=hn[e.type],n=[],u=e.touches.length;for(let s=0;s<u;s++){let r=e.touches.item(s);if(!r)continue;let{x:f,y:m}=this.runtime.viewerToWorld(r.clientX-this.bounds.left,r.clientY-this.bounds.top),y={id:r.identifier,x:f,y:m};n.push(y)}n.length&&this.assignToEvent(e,n[0].x,n[0].y),i!=="onTouchEnd"?(this.pointerEventState.lastTouches=n,e.atlasTouches=n,this.runtime.world.propagateTouchEvent(i,e,n)):(e.atlasTouches=[],this.runtime.world.propagateTouchEvent(i,e,this.pointerEventState.lastTouches),this.pointerEventState.lastTouches=[])});b(this,"onPointerEvent",e=>{if(e.button===2)return;let i=hn[e.type];if(i&&this.runtime.world.activatedEvents.indexOf(i)!==-1){let{x:n,y:u}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,n,u),this.runtime.world.propagatePointerEvent(i,e,n,u)}});b(this,"onPointerDown",e=>{e.button!==2&&(this.pointerEventState.isPressed=!0,this.pointerEventState.isClicking=!0,this.pointerEventState.mouseDownStart.x=e.clientX,this.pointerEventState.mouseDownStart.y=e.clientY,setTimeout(()=>{this.runtime&&(this.pointerEventState.isClicking=!1)},250),setTimeout(()=>{if(this.runtime&&this.pointerEventState.isPressed&&!this.pointerEventState.isDragging){let i=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",e,i.x,i.y)}},800),this.onPointerEvent(e))});b(this,"onPointerUp",e=>{if(e.button!==2){if(this.pointerEventState.isClicking){let{x:i,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,i,n),this.runtime.world.propagatePointerEvent("onClick",e,i,n)}if(this.pointerEventState.isDragging){for(let i of this.pointerEventState.itemsBeingDragged)i.dispatchEvent("onDragEnd",e);this.pointerEventState.isDragging=!1}this.pointerEventState.isClicking=!1,this.pointerEventState.isPressed=!1,this.pointerEventState.itemsBeingDragged=[],this.onPointerEvent(e)}});b(this,"onPointerMove",e=>{this.pointerMoveEvent=void 0;let{x:i,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);if(Number.isNaN(i)||Number.isNaN(n))return;this.assignToEvent(e,i,n),this.runtime.world.propagatePointerEvent("onPointerMove",e,i,n);let u=this.runtime.world.propagatePointerEvent("onMouseMove",e,i,n),s=[],r=[];for(let f of u)s.push(f.id),r.push(f),this.pointerEventState.mousedOver.indexOf(f)===-1&&(f.dispatchEvent("onMouseEnter",e),f.dispatchEvent("onPointerEnter",e),f.dispatchEvent("onMouseOver",e),f.dispatchEvent("onPointerOver",e));for(let f of this.pointerEventState.mousedOver)s.indexOf(f.id)===-1&&(f.dispatchEvent("onMouseLeave",e),f.dispatchEvent("onPointerLeave",e),f.dispatchEvent("onMouseOut",e),f.dispatchEvent("onPointerOut",e));if(this.pointerEventState.isDragging)for(let f of this.pointerEventState.itemsBeingDragged)f.dispatchEvent("onDrag",e);if(this.pointerEventState.isPressed&&!this.pointerEventState.isDragging&&Qa(this.pointerEventState.mouseDownStart,{x:e.clientX,y:e.clientY})>50){let f=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",{...e,atlas:{x:f.x,y:f.y}},f.x,f.y)}this.pointerEventState.mousedOver=r});this.element=e,this.runtime=i,this.unsubscribe=i.world.addLayoutSubscriber(this.layoutSubscriber.bind(this)),this.bounds=e.getBoundingClientRect(),this.listening=!1,this.options={simulationRate:0,...n||{}};let u=0;i.registerHook("useFrame",s=>{u+=s,u>this.options.simulationRate&&this.pointerMoveEvent&&(u=0,i.updateNextFrame())}),i.registerHook("useBeforeFrame",()=>{this.pointerMoveEvent&&this.onPointerMove(this.pointerMoveEvent)}),this.activateEvents()}updateBounds(){this.bounds=this.element.getBoundingClientRect(),this.runtime.updateRendererScreenPosition()}layoutSubscriber(e){e==="event-activation"&&this.listening==!1&&this.activateEvents()}assignToEvent(e,i,n){as.eventPool.atlas.x=i,as.eventPool.atlas.y=n,e.atlas=as.eventPool.atlas}activateEvents(){this.listening=!0,this.element.addEventListener("pointermove",this._realPointerMove),this.element.addEventListener("pointerup",this.onPointerUp),this.element.addEventListener("pointerdown",this.onPointerDown),this.element.addEventListener("mousedown",this.onPointerEvent),this.element.addEventListener("mouseup",this.onPointerEvent),this.element.addEventListener("pointercancel",this.onPointerEvent),this.element.addEventListener("wheel",this.onWheelEvent),this.element.addEventListener("contextmenu",this.onContextMenu),this.element.addEventListener("touchstart",this.onTouchEvent),this.element.addEventListener("touchcancel",this.onTouchEvent),this.element.addEventListener("touchend",this.onTouchEvent),this.element.addEventListener("touchmove",this.onTouchEvent)}normalizeEventName(e){return e.startsWith("on")?e.slice(2).toLowerCase():e.toLowerCase()}stop(){this.listening=!1,this.element.removeEventListener("pointermove",this._realPointerMove),this.element.removeEventListener("pointerup",this.onPointerUp),this.element.removeEventListener("pointerdown",this.onPointerDown),this.element.removeEventListener("mousedown",this.onPointerEvent),this.element.removeEventListener("mouseup",this.onPointerEvent),this.element.removeEventListener("pointercancel",this.onPointerEvent),this.element.removeEventListener("wheel",this.onWheelEvent),this.element.removeEventListener("touchstart",this.onTouchEvent),this.element.removeEventListener("touchcancel",this.onTouchEvent),this.element.removeEventListener("touchend",this.onTouchEvent),this.element.removeEventListener("touchmove",this.onTouchEvent),this.unsubscribe();for(let[e,i]of this.eventHandlers)this.element.removeEventListener(this.normalizeEventName(e),i)}};b(as,"eventPool",{atlas:{x:0,y:0}});var Fa=as;function Zo({interactive:t=!0,viewport:e,forceRefresh:i,canvasElement:n,overlayElement:u,controllerConfig:s,unstable_webglRenderer:r,dpi:f,debug:m,canvasBox:y=!0,polygon:g=!0,navigatorElement:S,runtimeOptions:p}){if(!n)throw new Error("Invalid container");n.style.userSelect="none";let x=t?Bo({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,A=new Va([r?new Xo(n,{dpi:f}):new Ho(n,{dpi:f,debug:m,box:y,polygon:g}),u?new Ja(u,{box:r||!y,text:!0,triggerResize:i}):void 0,S?new Uo(S):void 0]),R=new _n(A,new Ji(1024,1024),e,x?[x]:[],p),w=new Fa(n,R);return{name:"default-preset",em:w,runtime:R,renderer:A,controller:x,canvas:n,navigator:S,unmount(){es(R),R.stopControllers(),R.stop(),R.reset(),w&&w.stop()}}}var Fl=1+Number.MIN_VALUE,Ko=class{constructor(e,i){b(this,"container");b(this,"width");b(this,"height");b(this,"pending",!0);b(this,"options");b(this,"stylesheet");b(this,"zIndex",0);b(this,"lastKnownScale",1);b(this,"rendererPosition");b(this,"currentlyVisible",[]);b(this,"previouslyVisible",[]);this.container=e,this.rendererPosition=e.getBoundingClientRect();let{width:n,height:u}=this.rendererPosition;this.width=n,this.height=u,this.options={addPart:!1,setDraggableFalse:!1,imageClass:"",widthStylesheet:!1,sheetPrefix:"position-",background:"#000",...i||{}},this.stylesheet=new ls({sheetPrefix:this.options.sheetPrefix}),this.container.classList.add(this.stylesheet.addStylesheet(`
59
- background: ${this.options.background};
60
- `)),this.options.widthStylesheet&&this.container.appendChild(this.stylesheet.getElement())}isReady(){return!0}resize(){this.rendererPosition=this.container.getBoundingClientRect(),this.width=this.rendererPosition.width,this.height=this.rendererPosition.height}getRendererScreenPosition(){return this.rendererPosition}afterFrame(e,i,n){this.stylesheet.updateSheet();for(let u of this.previouslyVisible)this.currentlyVisible.indexOf(u)===-1&&this.container.removeChild(u);for(let u of this.currentlyVisible)this.previouslyVisible.indexOf(u)===-1&&this.container.appendChild(u);this.previouslyVisible=this.currentlyVisible,this.currentlyVisible=[]}afterPaintLayer(e,i){}beforeFrame(e,i,n){this.stylesheet.clearClasses(),this.zIndex=0}getPointsAt(e,i,n,u){return e.getPointsAt(i,n,u)}getScale(e,i){if(Number.isNaN(e)||Number.isNaN(i))return this.lastKnownScale;let n=this.width/e,u=this.height/i,s=n<u?u:n;return Number.isNaN(s)||(this.lastKnownScale=s),this.lastKnownScale}getViewportBounds(e,i,n){return null}createImage(){let e=document.createElement("img");return this.options.imageClass?(e.className=this.options.imageClass,this.options.addPart&&e.setAttribute("part",this.options.imageClass)):(e.style.position="absolute",e.style.pointerEvents="none",e.style.userSelect="none"),this.options.setDraggableFalse&&e.setAttribute("draggable","false"),e}paint(e,i,n,u,s,r){if(this.pending=!1,this.zIndex++,e instanceof Ee){if(!e.__host){let m=this.createImage();m.src=e.uri,e.__host=m,this.container.appendChild(e.__host)}let f=e.__host;this.currentlyVisible.push(f),f.style.zIndex=`${this.zIndex}`,f.style.opacity=`${e.style.opacity}`,this.options.widthStylesheet?f.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(s+Fl).toFixed(2)}px;height:${(r+Fl).toFixed(2)}px;`):(f.style.width=`${s+Fl}px`,f.style.height=`${r+Fl}px`),f.style.transform=`translate(${n}px, ${u}px)`}if(e instanceof Ki){if(e.__host||(e.__host={images:[]}),!e.__host.images[i]){let m=e.getImageUrl(i),y=this.createImage();y.src=m,e.__host.images[i]=y,this.container.appendChild(y)}let f=e.__host.images[i];f.style.zIndex=`${this.zIndex}`,f.style.opacity=`${e.style.opacity}`,this.currentlyVisible.push(f),this.options.widthStylesheet?f.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(s+Fl).toFixed(2)}px;height:${(r+Fl).toFixed(2)}px;`):(f.style.width=`${s+Fl}px`,f.style.height=`${r+Fl}px`),f.style.transform=`translate(${n}px, ${u}px)`}}pendingUpdate(){return this.pending}prepareLayer(e){}finishLayer(e){}reset(){}};function Og({interactive:t,viewport:e,forceRefresh:i,containerElement:n,overlayElement:u,controllerConfig:s}){if(!n)throw new Error("Invalid container");n.style.userSelect="none";let r=t?Bo({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:n,...s||{}}):void 0,f=new Ko(n,{addPart:!1,setDraggableFalse:!1,imageClass:"atlas-static-image"}),m=u?new Va([f,new Ja(u,{box:!0,text:!0,triggerResize:i})]):f,y=new _n(m,new Ji(1024,1024),e,r?[r]:[]),g=new Fa(n,y);return{name:"static-preset",em:g,runtime:y,renderer:m,controller:r,container:n,overlay:u,unmount(){es(y),y.stopControllers(),y.stop(),g&&g.stop()}}}var Mg={"default-preset":Zo,"static-preset":Og};var Wi=F(vt(),1),S4={};function Tf(t,e){let i=(0,Wi.useRef)(),n=(0,Wi.useRef)(),u=(0,Wi.useRef)(),s=(0,Wi.useRef)(),r=(0,Wi.useRef)({width:e.width,height:e.height,didUpdate:!0}),[f="default-preset",m=S4]=Array.isArray(t)?t||[]:[t],[y,g]=(0,Wi.useState)(null);(0,Wi.useLayoutEffect)(()=>{let p=n.current,x=s.current,A=i.current,R=u.current,T=(Mg[f]||Zo)({containerElement:x,canvasElement:p,overlayElement:A,navigatorElement:R,viewport:r.current,dpi:window.devicePixelRatio||1,forceRefresh:e.forceRefresh,unstable_webglRenderer:e.unstable_webglRenderer,...m||{}});return g(T),()=>{T&&(T.unmount(),p&&(p.height=0,p.width=0),A&&(A.innerHTML=""),R&&(R.height=0,R.width=0))}},[f,m]);let S=(0,Wi.useMemo)(()=>({canvas:n,overlay:i,container:s,navigator:u}),[]);return[f,y,r,S]}var Qb=F(vt(),1);function Xb(t){return(0,Qb.useMemo)(()=>Vo(t),t)}var Vb=F(vt(),1),Zb=F(Ft(),1),Wa=Vb.default.forwardRef((t,e)=>(0,Zb.jsx)("div",{...t,ref:e,part:t.className}));var Kb=F(vt(),1);function b4(t,e){let i={},n=new Set([...Object.keys(t),...Object.keys(e)]);for(let u of n){let s=t[u],r=e[u];s!==r&&(i[u]={before:s,after:r})}return Object.keys(i).length>0?i:null}function Jb(t,e="",i=!1){let n=(0,Kb.useRef)(t);n.current&&i&&(console.log("Diff:",e,b4(n.current,t)),n.current=t)}var Ie=F(Ft(),1),Fb=["brightness","contrast","grayscale","hueRotate","invert","saturate","sepia","blur"],Cg=(0,jt.memo)(function(e){let{htmlChildren:i,renderPreset:n,onCreated:u,mode:s="explore",resetWorldOnChange:r=!0,unstable_webglRenderer:f=!1,unstable_noReconciler:m=!1,hideInlineStyle:y=!1,controllerConfig:g,children:S,overlayStyle:p,containerStyle:x,enableNavigator:A,className:R,containerProps:w={},homePosition:T,homeOnResize:E,homeCover:z,background:O,runtimeOptions:H,debug:q,filters:L,...G}=e;Jb(e,"Atlas.tsx",e.debug);let[J,B]=(0,jt.useState)(s),[I,ht]=(0,jt.useState)(!1),qn=(0,jt.useRef)(!1),At=(0,jt.useMemo)(()=>(typeof n=="string"&&(n=[n,{}]),q?n?[n[0],{debug:q,...n[1]||{}}]:["default-preset",{debug:q}]:n||"default-preset"),[n,q]),[ei,Qe,Gn]=yf({scroll:!0}),ue=(0,jt.useRef)(),ye=k=>{ue.current=k,ei(k)},[Ps,X,Ut,xa]=Tf(At,{width:G.width,height:G.height,forceRefresh:Gn,unstable_webglRenderer:f}),[bu,Yn]=(0,jt.useState)("");(0,jt.useEffect)(()=>{B(s)},[s]),(0,jt.useEffect)(()=>{X&&X.em&&X.em.updateBounds()},[X,Qe]),(0,jt.useEffect)(()=>{X?.runtime.setOptions(H||{})},[H]),(0,jt.useEffect)(()=>{X&&X.runtime&&(X.runtime.mode=J),I&&X&&(X.ready=!0)},[X,I,J]),(0,jt.useEffect)(()=>{X&&(z||(X.runtime.manualHomePosition=!!T,X.runtime.setHomePosition(T)))},[X,z,T]),(0,jt.useEffect)(()=>{if(X){let k=X.runtime;k.resize(Ut.current.width,G.width,Ut.current.height,G.height),Ut.current.width=G.width,Ut.current.height=G.height,k.updateNextFrame(),Ut.current.didUpdate=!0}},[X,G.width,G.height,Ut]),(0,jt.useEffect)(()=>{if(L&&X){let k=X.runtime,lt=!1;k.hookOptions.enableFilters=!0;for(let Rt of Fb)L[Rt]?L[Rt]!==X.runtime.hookOptions.filters[Rt]&&(k.hookOptions.filters[Rt]=L[Rt],lt=!0):k.hookOptions.filters[Rt]&&(k.hookOptions.filters[Rt]=0,lt=!0);lt&&k.updateNextFrame()}else if(X){let k=X.runtime;for(let lt of Fb)k.hookOptions.filters[lt]=0;k.hookOptions.enableFilters=!1,k.updateNextFrame()}},[X,L]);function Eu(){if(X&&(X.overlay&&(X.overlay.style.width=`${Qe.width}px`,X.overlay.style.height=`${Qe.height}px`),X.container&&(X.container.style.width=`${Qe.width}px`,X.container.style.height=`${Qe.height}px`),z)){let k=X.runtime.world.width,lt=X.runtime.world.height,Rt=k/lt,ve=Ut.current.width,Gi=Ut.current.height,gi=ve/Gi;if(Rt>gi){gi=Gi/ve,X.runtime.manualHomePosition=!0;let Je=(k-lt/gi)/2;z==="start"&&(Je=0),z==="end"&&(Je=k-lt/gi);let ee={x:Je,y:0,width:lt/gi,height:lt};X.runtime.setHomePosition(ee)}else{let Je=(lt-k/gi)/2;z==="start"&&(Je=0),z==="end"&&(Je=lt-k/gi),X.runtime.manualHomePosition=!0;let ee={x:0,y:Je,width:k,height:k/gi};X.runtime.setHomePosition(ee)}E&&X.runtime.goHome({})}}Mi(()=>{Eu()},[X,e.runtimeOptions?.maxOverZoom,Qe.height,Qe.width,z]),Mi(()=>{let k=()=>{if(X){let lt=X.runtime;Ut.current.width!==G.width&&Ut.current.height!==G.height&&(lt.resize(Ut.current.width,G.width,Ut.current.height,G.height),Ut.current.width=G.width,Ut.current.height=G.height,lt.updateNextFrame(),Ut.current.didUpdate=!0)}};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[X,G.height,G.width]);let Ta={width:120},qi=()=>{if(X&&X.navigator){let k=X.runtime.world.height,lt=X.runtime.world.width,Rt=window.devicePixelRatio||1,ve=Ta.width,Gi=Ta.width/lt*k;X.navigator.width=ve*Rt,X.navigator.height=Gi*Rt,X.navigator.style.width=ve+"px",X.navigator.style.height=Gi+"px"}};Mi(()=>{if(X){qi();let k=X.runtime;return k.world.addLayoutSubscriber(lt=>{lt==="recalculate-world-size"&&(qi(),Eu(),k.resize(Ut.current.width,G.width,Ut.current.height,G.height))})}return()=>{}},[X,G.width,G.height]);let Wc=(0,jt.useCallback)(function(lt){let Rt=()=>{ht(!0)};return(0,jt.useEffect)(()=>{if(X){X.runtime.goHome();let ve=u&&u(X);return void(ve&&ve.then?ve.then(Rt):Rt())}else throw new Error("Invalid configuration - no runtime found")},[]),lt.children},[X]);(0,jt.useEffect)(()=>{if(X){let k=X.runtime;if(r)return k.world.addLayoutSubscriber(lt=>{lt==="recalculate-world-size"&&k.goHome()})}return()=>{}},[X,r]),(0,jt.useEffect)(()=>X?X.runtime.registerHook("useBeforeFrame",()=>{if(Ut.current.didUpdate&&X.canvas){let lt=window.devicePixelRatio||1,Rt=Ut.current.width,ve=Ut.current.height;X.canvas.width=Rt*lt,X.canvas.height=ve*lt,X.canvas.style.width=Rt+"px",X.canvas.style.height=ve+"px",X.canvas.getContext("2d")?.scale(lt,lt),X&&X.em&&X.em.updateBounds(),Ut.current.didUpdate=!1}}):()=>{},[X,r]),(0,jt.useEffect)(()=>{let k=()=>{X&&(B("sketch"),Yn("mode-sketch")),window.removeEventListener("keyup",k)},lt=Rt=>{if(Rt.code==="Space"&&X&&X.runtime.mode==="sketch"){let ve=Rt.target?.tagName?.toLowerCase();if(ve==="input"||ve==="textarea"||Rt.target?.isContentEditable)return;Rt.preventDefault(),B("explore"),Yn("mode-explore"),window.addEventListener("keyup",k)}};return window.addEventListener("keydown",lt),()=>{window.removeEventListener("keydown",lt),window.removeEventListener("keyup",k)}},[X]),qn.current=!0;let{height:cd,width:za,...Qn}=G,_a=Xb([G.width,G.height]),zl=!0;return At&&Array.isArray(At)&&At.length>1&&At[1].interactive===!1&&(zl=!1),O=O??"#000",ue.current&&(O=getComputedStyle(ue.current).getPropertyValue("--atlas-background")||O),(0,Ie.jsxs)(Wa,{ref:ye,className:["atlas",y?"":`atlas-width-${_a}`,bu,R,`atlas-${Ps}`].filter(Boolean).join(" ").trim(),style:{...x,...y?{}:{width:G.width,height:G.height}},children:[Ps==="static-preset"?(0,Ie.jsx)(Wa,{className:"atlas-static-container",ref:xa.container,tabIndex:0,...w}):(0,Ie.jsx)("canvas",{className:"atlas-canvas",part:"atlas-canvas",tabIndex:0,...Qn,...w,ref:xa.canvas,"data-background":O}),(0,Ie.jsx)(Wa,{className:["atlas-overlay",zl?"atlas-overlay--interactive":""].filter(Boolean).join(" ").trim(),style:{...p||{}},ref:xa.overlay,children:m?(0,Ie.jsx)(Wc,{children:(0,Ie.jsx)(Zl.Provider,{value:Qe,children:(0,Ie.jsx)(An.Provider,{value:J,children:(0,Ie.jsx)(On.Provider,{value:X,children:S})})})}):(0,Ie.jsx)(Yb,{bounds:Qe,preset:X,mode:J,setIsReady:ht,onCreated:u,children:S})}),A?(0,Ie.jsx)(Wa,{className:"atlas-navigator",children:(0,Ie.jsx)("canvas",{className:"atlas-navigator-canvas",part:"atlas-navigator-canvas",ref:xa.navigator})}):null,y?(0,Ie.jsx)("style",{children:`.atlas-width-${_a} { width: ${G.width}px; height: ${G.height}px; }`}):(0,Ie.jsx)("style",{children:`
61
- .atlas { position: relative; display: flex; background: ${O}; z-index: var(--atlas-z-index, 10); -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
62
- .atlas-width-${_a} { width: ${G.width}px; height: ${G.height}px; }
63
- .atlas-canvas { flex: 1 1 0px; }
64
- .atlas-canvas:focus, .atlas-static-container:focus { outline: none }
65
- .atlas-canvas:focus-visible, .atlas-canvas-container:focus-visible { outline: var(--atlas-focus, 2px solid darkorange) }
66
- .atlas-static-preset { touch-action: inherit; }
67
- .atlas-static-container { position: relative; overflow: hidden; flex: 1 1 0px; }
68
- .atlas-overlay { position: absolute; top: 0; left: 0; none; overflow: hidden; }
69
- /** setting the pointer events to none means that Atlas will own the touch and mousewheel events **/
70
- .atlas-overlay--interactive { pointer-events: none; }
71
- .atlas-static-image { position: absolute; user-select: none; transform-origin: 0px 0px; }
72
- .atlas-navigator { position: absolute; top: var(--atlas-navigator-top, 10px); right: var(--atlas-navigator-bottom, 10px); left: var(--atlas-navigator-left); bottom: var(--atlas-navigator-bottom); opacity: .8 }
73
- .atlas-navigator-canvas { width: 100%; }
74
- `}),i]})});var us=F(vt(),1);function Wb(t){return Number(t)==t?`${t}px`:t}var Jo=F(Ft(),1),E4=(0,us.memo)(function({resizeHash:e,aspectRatio:i,containerProps:n={},htmlChildren:u,...s}){let[r,f,m]=yf(),{height:y,width:g,...S}=s;(0,us.useEffect)(()=>{m()},[g,y,e,m]);let p=(0,us.useMemo)(()=>i?{width:f.width,height:f.width*(1/i)}:f,[f,i]);return(0,Jo.jsxs)(Wa,{ref:r,className:"atlas-container",...n,children:[p.width?(0,Jo.jsx)(Cg,{width:p.width||100,height:p.height||100,...S,children:s.children}):null,s.hideInlineStyle?null:(0,Jo.jsx)("style",{children:`
75
- .atlas-container {
76
- display: var(--atlas-container-display, block);
77
- flex: var(--atlas-container-flex, none);
78
- width: var(--atlas-container-width, ${g?`${g}px`:"100%"});
79
- height: var(--atlas-container-height, ${Wb(y||(i?p.height:512))})
80
- }
81
- `}),u]})});var Rn=F(vt(),1);var Pb=F(vt(),1);var Fo=()=>(0,Pb.useContext)(On);var we=()=>{let t=Fo();return t?t.runtime:void 0};var Ib=F(vt(),1),Rg=(t,e=[])=>{let i=we();(0,Ib.useEffect)(()=>i?i.registerHook("useAfterFrame",t):()=>{},e)};var kb=F(vt(),1),Pa=(t,e=[])=>{let i=we();(0,kb.useEffect)(()=>i?i.registerHook("useFrame",t):()=>{},e)};var Ng=()=>{let t=Fo();return t&&t.canvas?t.canvas:void 0};var $b=F(vt(),1);function zf(){return(0,$b.useContext)(Zl)}var x4=({onCreate:t})=>{let e=(0,Rn.useRef)({x:0,y:0}),i=Ng(),n=zf(),u=we(),[s,r]=(0,Rn.useState)(),[f,m]=(0,Rn.useState)(),y=wo();return Pa(()=>{u&&s&&!f&&(u.pendingUpdate=!0)},[s,f]),Rg(()=>{if(s&&i&&u){let g=i.getContext("2d");if(g){let{x:S,y:p,width:x,height:A}=u.worldToViewer(s.x,s.y,(f?f.x:e.current.x)-s.x,(f?f.y:e.current.y)-s.y);g.lineWidth=f?3:1,g.strokeStyle="#fff",g.strokeRect(S,p,x,A),g.lineWidth=f?3:1,g.strokeStyle="#000",g.strokeRect(S+1,p+1,x-2,A-2)}}},[s,f]),(0,Rn.useEffect)(()=>{let g=S=>{if(n&&u){let{x:p,y:x}=u.viewerToWorld(S.clientX-n.left,S.clientY-n.top);e.current.x=~~p,e.current.y=~~x}};return i?(i.addEventListener("mousemove",g),()=>i.removeEventListener("mousemove",g)):()=>{}},[n,i,u]),(0,Rn.useEffect)(()=>{let g=S=>{y==="sketch"&&(r({x:Math.round(e.current.x),y:Math.round(e.current.y)}),m(void 0))};return i?(i.addEventListener("mousedown",g),()=>i.removeEventListener("mousedown",g)):()=>{}},[i,y]),(0,Rn.useEffect)(()=>{let g=S=>{s&&!f&&m({x:Math.round(e.current.x),y:Math.round(e.current.y)})};return i?(i.addEventListener("mouseup",g),()=>i.removeEventListener("mouseup",g)):()=>{}},[i,s,f]),(0,Rn.useEffect)(()=>{s&&f&&t({x:Math.min(s.x,f.x),y:Math.min(s.y,f.y),width:Math.abs(f.x-s.x),height:Math.abs(f.y-s.y)})},[s,t,f]),null};var jn=F(vt(),1);var np=F(vt(),1);async function Sz(t,e,i){if(np.version.startsWith("18.")||np.version.startsWith("19.")){let n=await Promise.resolve().then(()=>F(pz(),1)),u=n.default?n.default.createRoot:n.createRoot;i.current||(i.current=u(t)),i.current.render(e)}else if(typeof ReactDOM<"u"){let{render:n,unmountComponentAtNode:u}=ReactDOM;n(e,t),i.current={unmount(){u(t)}}}else{let n=await Promise.resolve().then(()=>F(Dg(),1)),u=n.default?n.default.render:n.render,s=n.default?n.default.unmountComponentAtNode:n.unmountComponentAtNode;u(e,t),i.current={unmount(){s(t)}}}}var lp=F(Ft(),1),Ih=jn.default.forwardRef(({children:t,...e},i)=>{let n=(0,jn.useRef)(),u=we(),s=(0,jn.useRef)(0),r=(0,jn.useRef)(),f=(0,jn.useRef)();return Pa(()=>{if(e.relative){let m=n.current;if(m&&u){let y=u.getScaleFactor();s.current!==y&&(s.current=y,m.style.transformOrigin="0 0",m.style.transform=`scale(${1/s.current})`,m.style.width=`${s.current*100}%`,m.style.height=`${s.current*100}%`,n.current&&r.current?.__owner.value?.rotation&&(m.style.transform=`scale(${1/s.current}) translate(50%, 50%) rotate(${r.current?.__owner.value?.rotation||0}deg) translate(-50%, -50%)`))}}},[e.relative]),(0,jn.useLayoutEffect)(()=>{let m=r.current;i&&m&&(typeof i=="function"?i(m):i.current=m);async function y(){if(m&&m.__host){let g=e.relative?(0,lp.jsx)("div",{ref:n,children:t}):t;await Sz(m.__host.element,g,f)}}m&&m.__host?y():m&&(m.__onCreate=y)},[i,t,r,e.relative]),(0,jn.useLayoutEffect)(()=>()=>{f.current&&setTimeout(()=>{f.current.unmount()},0)},[]),(0,lp.jsx)("box",{html:!0,...e,ref:r})});Ih.displayName="HTMLPortal";var xz=F(vt(),1);var Ln=F(vt(),1);var ze=F(vt(),1);var bz=F(vt(),1);var kh=(t,e,i=[])=>{let n=we(),u=n?n.world:void 0;(0,bz.useEffect)(()=>{if(n){let s=e,r=hn[t];n.world.activatedEvents.push(r);let f=r.slice(2).toLowerCase();return n.world.addEventListener(f,s),()=>{n.world.removeEventListener(f,s)}}return()=>{}},[u,t,...i])};function ap(t,e){if(t===0)return[0,1];if(e===0)return[1,0];let i=Math.abs(t)/Math.abs(e);return[i,1-i]}var $h=F(vt(),1);function Ez(){let t=(0,$h.useRef)({ctrl:!1,shift:!1,alt:!1});return(0,$h.useLayoutEffect)(()=>{function e(n){n.key==="Shift"&&(t.current.shift=!0),n.key==="Control"&&(t.current.ctrl=!0),n.key==="Alt"&&(t.current.alt=!0)}function i(n){n.key==="Shift"&&(t.current.shift=!1),n.key==="Control"&&(t.current.ctrl=!1),n.key==="Alt"&&(t.current.alt=!1)}return window.addEventListener("keydown",e),window.addEventListener("keyup",i),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",i)}},[]),t}var up=(t,e)=>{let i=wo(),n=we(),u=zf(),s=(0,ze.useRef)(),r=(0,ze.useRef)(null),f=(0,ze.useRef)(),[m,y]=(0,ze.useState)(!1),g=(0,ze.useRef)(!1),S=(0,ze.useRef)({north:0,south:0,east:0,west:0}),p=Ez(),x=(0,ze.useCallback)(E=>z=>{if(g.current=!0,y(!0),u&&n){let{top:O,left:H}=u,q=n.viewerToWorld(z.pageX-H,z.pageY-O);f.current={x:q.x,y:q.y},s.current=E}},[u,n]),A=(0,ze.useMemo)(()=>t.width/t.height,[t.width,t.height]),R=(0,ze.useCallback)(E=>{if(!Math.abs(E.north-E.south+(E.east-E.west)))return;let O=-E.west+E.east,H=-E.north+E.south,q=t.width+O,L=t.height+H;if(q/L>=A){let J=L*A,B=q-J,[I,ht]=ap(E.east,E.west);E.west=E.west+B*ht,E.east=E.east-B*I}else{let J=q/A,B=L-J,[I,ht]=ap(E.north,E.south);E.north=E.north+B*I,E.south=E.south-B*ht}},[t.width,t.height,A]);Pa(()=>{f&&n&&n.updateNextFrame()}),(0,ze.useEffect)(()=>{n&&n.updateNextFrame()},[n,m]);let w=(0,ze.useCallback)(E=>{if(!n||!u||n.mode!=="sketch")return;let{top:z,left:O}=u,H=n.viewerToWorld(E.pageX-O,E.pageY-z),q=r.current,L=!t.maintainAspectRatio&&p.current.alt,G=!L&&p.current.shift&&s.current?.indexOf("-")!==-1;if((s.current==="translate"||s.current==="east"||s.current==="north-east"||s.current==="south-east")&&(S.current.east=H.x-(f.current?f.current.x:0),L&&(S.current.west=-S.current.east)),(s.current==="translate"||s.current==="west"||s.current==="north-west"||s.current==="south-west")&&(S.current.west=H.x-(f.current?f.current.x:0),L&&(S.current.east=-S.current.west)),(s.current==="translate"||s.current==="north"||s.current==="north-east"||s.current==="north-west")&&(S.current.north=H.y-(f.current?f.current.y:0),L&&(S.current.south=-S.current.north)),(s.current==="translate"||s.current==="south"||s.current==="south-west"||s.current==="south-east")&&(S.current.south=H.y-(f.current?f.current.y:0),L&&(S.current.north=-S.current.south)),(t.maintainAspectRatio||G)&&R(S.current),q){let J=S.current.west,B=S.current.north,I=t.width+S.current.east,ht=t.height+S.current.south;q.points[1]=Math.min(J,I),q.points[2]=Math.min(B,ht),q.points[3]=Math.max(J,I),q.points[4]=Math.max(B,ht),n.updateNextFrame()}},[n,t.width,t.height,t.maintainAspectRatio,u]);kh("mousemove",w,[t.width,t.height,u]),kh("pointermove",w,[t.width,t.height,u]);let T=(0,ze.useRef)();return(0,ze.useEffect)(()=>{T.current=()=>{if(g.current){let E=S.current.west,z=S.current.north,O=t.width+S.current.east,H=t.height+S.current.south,q=Math.min(E,O),L=Math.min(z,H),G=Math.max(E,O),J=Math.max(z,H),B={x:(t.x||0)+q,y:(t.y||0)+L,width:G-q||1,height:J-L||1};t.maintainAspectRatio,e(B),s.current=void 0,f.current=void 0,S.current.east=0,S.current.west=0,S.current.north=0,S.current.south=0,g.current=!1,y(!1)}}},[e,t.height,t.width,t.x,t.y]),(0,ze.useEffect)(()=>{let E=()=>{T.current&&T.current()};return window.addEventListener("pointerup",E),window.addEventListener("touchend",E),()=>{window.removeEventListener("pointerup",E),window.removeEventListener("touchend",E)}},[]),{portalRef:r,mode:i,mouseEvent:x,onPointerMoveCallback:w,isEditing:m}};var ge=F(Ft(),1);function sp({handleSize:t,resizable:e,onSave:i,children:n,maintainAspectRatio:u,disableCardinalControls:s,...r}){let f=typeof t>"u"?u?10:8:t,{portalRef:m,mode:y,mouseEvent:g,isEditing:S}=up({x:r.x||0,y:r.y||0,width:r.width,height:r.height,maintainAspectRatio:u},i),p=(0,Ln.useMemo)(()=>g("translate"),[g]),x=(0,Ln.useMemo)(()=>g("east"),[g]),A=(0,Ln.useMemo)(()=>g("west"),[g]),R=(0,Ln.useMemo)(()=>g("south"),[g]),w=(0,Ln.useMemo)(()=>g("north"),[g]),T=(0,Ln.useMemo)(()=>g("south-east"),[g]),E=(0,Ln.useMemo)(()=>g("south-west"),[g]),z=(0,Ln.useMemo)(()=>g("north-east"),[g]),O=(0,Ln.useMemo)(()=>g("north-west"),[g]),H=y==="sketch",q={zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.2)",border:"1px solid rgba(155,155,155,.7)",borderRadius:u||s?"50%":2,position:"absolute",background:"#fff",pointerEvents:S?"none":H?"initial":"none"};return(0,ge.jsx)(ge.Fragment,{children:(0,ge.jsxs)("world-object",{...r,children:[n,H&&e?(0,ge.jsx)(Ih,{ref:m,target:{x:0,y:0,height:r.height,width:r.width},relative:!0,interactive:!1,children:H&&e?(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{onMouseDown:p,onTouchStart:p,style:{display:"block",width:"100%",height:"100%",position:"relative",border:"1px solid rgba(155,155,155, .7)",boxSizing:"border-box",pointerEvents:S?"none":H?"initial":"none"}}),u?null:(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("div",{title:"east",onTouchStart:x,onMouseDown:x,style:{...q,cursor:"e-resize",height:f*2,width:f,right:0,top:"50%",opacity:s?0:1,transform:`translate(${f/2}px, -${f}px)`}}),(0,ge.jsx)("div",{title:"west",onMouseDown:A,style:{...q,cursor:"w-resize",position:"absolute",height:f*2,width:f,left:0,top:"50%",opacity:s?0:1,transform:`translate(-${f/2}px, -${f}px)`}}),(0,ge.jsx)("div",{title:"north",onMouseDown:w,style:{...q,cursor:"n-resize",position:"absolute",height:f,width:f*2,left:"50%",top:0,opacity:s?0:1,transform:`translate(-${f}px, -${f/2}px)`}}),(0,ge.jsx)("div",{title:"south",onMouseDown:R,style:{...q,cursor:"s-resize",position:"absolute",height:f,width:f*2,left:"50%",bottom:0,opacity:s?0:1,transform:`translate(-${f}px, ${f/2}px)`}})]}),(0,ge.jsx)("div",{title:"north-east",onMouseDown:z,style:{...q,cursor:"ne-resize",position:"absolute",height:f,width:f,right:0,top:0,transform:`translate(${f/2}px, -${f/2}px)`}}),(0,ge.jsx)("div",{title:"south-east",onMouseDown:T,style:{...q,cursor:"se-resize",position:"absolute",height:f,width:f,bottom:0,right:0,transform:`translate(${f/2}px, ${f/2}px)`}}),(0,ge.jsx)("div",{title:"south-west",onMouseDown:E,style:{...q,cursor:"sw-resize",position:"absolute",height:f,width:f,bottom:0,left:0,transform:`translate(-${f/2}px, ${f/2}px)`}}),(0,ge.jsx)("div",{title:"north-west",onMouseDown:O,style:{...q,cursor:"nw-resize",position:"absolute",height:f,width:f,top:0,left:0,transform:`translate(-${f/2}px, -${f/2}px)`}})]}):null}):null]})})}var op=F(Ft(),1);function IM({interactive:t,region:e,onClick:i,onSave:n,maintainAspectRatio:u,disableCardinalControls:s,isEditing:r,rotation:f,style:m={backgroundColor:"rgba(0,0,0,.5)"}}){let y=(0,xz.useCallback)(g=>{n({id:e.id,x:e.x,y:e.y,height:e.height,width:e.width,...g})},[n,e.id,e.x,e.y,e.height,e.width]);return(0,op.jsx)(sp,{x:e.x,y:e.y,rotation:f,width:e.width,height:e.height,resizable:r,onSave:y,maintainAspectRatio:u,disableCardinalControls:s,children:(0,op.jsx)("box",{interactive:t,onContextMenu:g=>{g.preventDefault()},onClick:g=>{g.preventDefault(),g.stopPropagation(),i(e)},target:{x:0,y:0,width:e.width,height:e.height},style:m})})}var td=F(vt(),1),vu=F(Ft(),1),cp=t=>{let e=t.width/(t.crop?.width||t.tiles.width),i=t.tiles.imageService.sizes||[],n=t.enableThumbnail,u=t.enableSizes,s=(0,td.useMemo)(()=>{let m=t.tiles.imageService.id||t.tiles.imageService["@id"];return m&&m.endsWith("/info.json")?m.slice(0,-1*10):m},[t.tiles.imageService.id]),r=(0,td.useMemo)(()=>{let m=t.tiles.imageService.tiles||[];if(!m.length){let y=t.width,g=[1],S=1;for(;Math.pow(2,S)<y;)S=S*2,g.push(S);return[]}return m},[t.tiles.imageService]),f=(0,td.useMemo)(()=>{let m=t.tiles.imageService;return(m?m["@context"]?Array.isArray(m["@context"])?m["@context"]:[m["@context"]]:[]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1},[t.tiles.imageService.id]);return(0,vu.jsx)("world-object",{rotation:t.rotation,scale:e,height:t.crop?.height||t.tiles.height,width:t.crop?.width||t.tiles.width,x:t.x,y:t.y,onClick:t.onClick,children:(0,vu.jsxs)("composite-image",{id:t.tiles.imageService.id,width:t.crop?.width||t.tiles.width,height:t.crop?.height||t.tiles.height,crop:t.crop,renderOptions:t.renderOptions,children:[n&&t.tiles.thumbnail?(0,vu.jsx)("world-image",{priority:!0,uri:t.tiles.thumbnail.id,target:{width:t.tiles.width,height:t.tiles.height},display:{width:t.tiles.thumbnail.width,height:t.tiles.thumbnail.height},crop:t.crop}):null,u&&i.map((m,y)=>(0,vu.jsx)("world-image",{uri:`${s}/full/${m.width},${m.height}/0/default.jpg`,target:{width:t.tiles.width,height:t.tiles.height},display:{width:m.width,height:m.height},crop:t.crop},y)),r.map(m=>(m.scaleFactors||[]).map(y=>(0,vu.jsx)("tiled-image",{uri:t.tiles.imageService.id,display:{width:t.tiles.width,height:t.tiles.height},tile:m,scaleFactor:y,crop:t.crop,version3:f},`${t.tiles.imageService.id}-tile-${y}`)))]},t.tiles.imageService.id)},t.tiles.imageService.id)};var sd=F(vt(),1);function rp(t){return t.id||t["@id"]}var kM=Object.defineProperty,$M=(t,e,i)=>e in t?kM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ed=(t,e,i)=>($M(t,typeof e!="symbol"?e+"":e,i),i);function pu(t){return t.endsWith("info.json")?t:t.endsWith("/")?`${t}info.json`:`${t}/info.json`}var tC="http://library.stanford.edu/iiif/image-api/compliance.html#level0",Az="http://library.stanford.edu/iiif/image-api/compliance.html#level1",Oz="http://library.stanford.edu/iiif/image-api/compliance.html#level2",eC="http://library.stanford.edu/iiif/image-api/conformance.html#level0",Mz="http://library.stanford.edu/iiif/image-api/conformance.html#level1",Cz="http://library.stanford.edu/iiif/image-api/conformance.html#level2",iC="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",Rz="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",Nz="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",nC="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Dz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",Hz="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",lC="http://iiif.io/api/image/1/level0.json",aC="http://iiif.io/api/image/1/profiles/level0.json",Uz="http://iiif.io/api/image/1/level1.json",Bz="http://iiif.io/api/image/1/profiles/level1.json",wz="http://iiif.io/api/image/1/level2.json",jz="http://iiif.io/api/image/1/profiles/level2.json",uC="http://iiif.io/api/image/2/level0.json",sC="http://iiif.io/api/image/2/profiles/level0.json",Lz="http://iiif.io/api/image/2/level1.json",qz="http://iiif.io/api/image/2/profiles/level1.json",Gz="http://iiif.io/api/image/2/level2.json",Yz="http://iiif.io/api/image/2/profiles/level2.json",oC="level0",Qz="level1",Xz="level2",cC="http://iiif.io/api/image/2/level0",Vz="http://iiif.io/api/image/2/level1",Zz="http://iiif.io/api/image/2/level2",rC="https://iiif.io/api/image/1.1/compliance/#level0",Kz="https://iiif.io/api/image/1.1/compliance/#level1",Jz="https://iiif.io/api/image/1.1/compliance/#level2",Fz=[Zz,Oz,Cz,Nz,Hz,wz,jz,Gz,Yz,Xz,Jz],Wz=[...Fz,Vz,Az,Mz,Rz,Dz,Uz,Bz,Lz,qz,Qz,Kz],fC=[cC,Vz,Zz,tC,Az,Oz,eC,Mz,Cz,iC,Rz,Nz,nC,Dz,Hz,lC,aC,Uz,Bz,wz,jz,uC,sC,Lz,qz,Gz,Yz,oC,Qz,Xz,rC,Kz,Jz];var hC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},dC={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},mC={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regionByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function gC(t){return Fz.indexOf(t)!==-1?mC:Wz.indexOf(t)!==-1?dC:hC}function yC(t){let e=t?Array.isArray(t.profile)?t.profile:[t.profile]:[],i={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let n of e)if(typeof n=="string"&&(n=gC(n)),!!n){if(n.formats)for(let u of n.formats)i.extraFormats.indexOf(u)===-1&&i.extraFormats.push(u);if(n.qualities)for(let u of n.qualities)i.extraQualities.indexOf(u)===-1&&i.extraQualities.push(u);if(n.supports)for(let u of n.supports)i.extraFeatures.indexOf(u)===-1&&i.extraFeatures.push(u);if(n.maxHeight&&(i.maxHeight=n.maxHeight),n.maxWidth&&(i.maxWidth=n.maxWidth),n.maxArea&&(i.maxArea=n.maxArea),n.extraFormats)for(let u of n.extraFormats)i.extraFormats.indexOf(u)===-1&&i.extraFormats.push(u);if(n.extraQualities)for(let u of n.extraQualities)i.extraQualities.indexOf(u)===-1&&i.extraQualities.push(u);if(n.extraFeatures)for(let u of n.extraFeatures)i.extraFeatures.indexOf(u)===-1&&i.extraFeatures.push(u);n.maxHeight&&(i.maxHeight=n.maxHeight),n.maxWidth&&(i.maxWidth=n.maxWidth),n.maxArea&&(i.maxArea=n.maxArea)}if(t.extraFormats)for(let n of t.extraFormats)i.extraFormats.indexOf(n)===-1&&i.extraFormats.push(n);if(t.extraFeatures)for(let n of t.extraFeatures)i.extraFeatures.indexOf(n)===-1&&i.extraFeatures.push(n);if(t.extraQualities)for(let n of t.extraQualities)i.extraQualities.indexOf(n)===-1&&i.extraQualities.push(n);return i}function vC(t){try{if(t==="full")return{full:!0};if(t==="square")return{square:!0};let e=t.startsWith("pct:"),i=t.substr(e?4:0).split(",").map(n=>parseFloat(n));return{x:i[0],y:i[1],w:i[2],h:i[3],percent:e}}catch{throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+t)}}function pC(t){let e={upscaled:!1,max:!1,confined:!1};if(t[0]==="^"&&(e.upscaled=!0,t=t.slice(1)),t==="max"||t==="full")return e.max=!0,e.serialiseAsFull=t==="full",e;if(t[0]==="!"&&(e.confined=!0,t=t.slice(1)),t[0]==="p")return e.percentScale=parseFloat(t.slice(4)),e;let i=t.split(",").map(n=>n.trim());return i.length&&typeof i[0]<"u"&&(i[0]!==""&&(e.width=parseInt(i[0],10)),typeof i[1]<"u"&&i[1]!==""?(e.height=parseInt(i[1],10),e.version=2):e.version=3),e}function SC(t){let e={angle:0};if(t[0]==="!"&&(e.mirror=!0,t=t.substr(1)),e.angle=parseFloat(t)%360,Number.isNaN(e.angle))throw new Error(`Invalid rotation ${t}`);return e}function bC(t,e=""){let i=t.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!i)throw new Error(`Invalid or unknown input ${t}`);let n=i[2],u=i[3],s=i[4];if(s[0]==="/"&&(s=s.substring(1)),e.length>0){if(e[0]==="/"&&(e=e.substring(1)),e!==s.substring(0,e.length))throw new Error(`Path does not start with prefix (path: ${s}, prefix: ${e})`);s=s.substring(e.length)}return{scheme:n,server:u,path:s,prefix:e}}function EC(t,e=""){let{path:i,scheme:n,server:u,prefix:s}=bC(t,e),r=(i||"").split("/").reverse(),[f,m,y,g,...S]=r,p=S.reverse().filter(Boolean).join("/");if(r.length===1||f==="")return{type:"base",scheme:n,server:u,prefix:s,identifier:p};if(f==="info.json"){let[,...A]=r;return{type:"info",scheme:n,server:u,prefix:s,identifier:A.reverse().filter(Boolean).join("/")}}let x=(f||"").split(".");if(typeof x[1]>"u"||typeof x[0]>"u"||typeof g>"u"||typeof y>"u"||typeof m>"u")throw new Error("Invalid image request");return{type:"image",scheme:n,server:u,prefix:s,identifier:p,originalPath:i,region:vC(g),size:pC(y),rotation:SC(m),quality:x[0],format:x[1]}}function xC(t){let e=EC(pu(t.id));if(e.type!=="info")throw new Error("Invalid service URL");let i=yC(t);return{identifier:e.identifier,originalPath:"",server:e.server,prefix:e.prefix,scheme:e.scheme,type:"image",quality:i.extraQualities.indexOf("default")===-1?i.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function TC(t,e,i){let n=i.length,u=[];for(let s=0;s<n;s++){let r=i[s];if(r){let f=r.width;u.push(t/f)}}return u}function zC(t,e,i){let n=i.length,u=[];for(let s=0;s<n;s++){let r=i[s];r&&u.push({width:Math.floor(t/r),height:Math.floor(e/r)})}return u}function te(t){if(t["@id"])return t["@id"];if(t.id)return t.id}function nd(t){if(!t||!t.profile||!te(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"&&fC.indexOf(i)!==-1)return!0;return!1}function _C(t){if(!nd(t))return!1;let e=Array.isArray(t.profile)?t.profile:[t.profile];for(let i of e)if(typeof i=="string"){if(Wz.indexOf(i)!==-1)return!0}else{let n=[...i.supports||[],...i.extraFeatures||[]];if(n.indexOf("regionByPx")!==-1&&(n.indexOf("sizeByW")!==-1||n.indexOf("sizeByWh")!==-1))return!0}return!1}function id(t,e){if(e&&e.profile){let i=e.profile;if(i){let n=Array.isArray(i)?i:[i];return n.includes(`level${t}`)||n.includes(`http://iiif.io/api/image/2/level${t}.json`)||n.includes(`http://iiif.io/api/image/1/level${t}.json`)||n.includes(`http://iiif.io/api/image/1/profiles/level${t}.json`)}}return!1}function hp(t){return nd(t)?id(0,t)?0:id(1,t)?1:id(2,t)?2:null:null}function Pz(t){return(t["@context"]?Array.isArray(t["@context"])?t["@context"]:[t["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")!==-1}function AC(t){if(!_C(t))return[];let e=[],i=Array.isArray(t.profile)?t.profile:[t.profile],n=i.length;for(let u=0;u<n;u++){let s=i[u];if(s&&typeof s!="string"&&(s.maxHeight||s.maxWidth))return[{id:te(t),type:"variable",minWidth:0,minHeight:0,maxHeight:s.maxHeight||s.maxWidth,maxWidth:s.maxWidth||s.maxHeight,level:hp(t),version:t["@context"]==="http://iiif.io/api/image/3/context.json"?3:2}]}if(t.tiles){let u=t.tiles.length;for(let s=0;s<u;s++){let r=t.tiles[s];r&&(r.height||r.width)&&e.push({id:te(t),type:"variable",minHeight:0,minWidth:0,maxHeight:r.height||r.width,maxWidth:r.width,level:hp(t),version:Pz(t)?3:2})}}return e}function Tz(t){let e=/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/,i=t.match(e);if(i&&i[4]&&i[5]){let n=i[1],u=parseInt(i[4],10),s=parseInt(i[5],10),r=i[7];if((n==="max"||n==="full")&&u&&s&&r)return{type:"fixed",id:t,height:s,width:u}}return{type:"unknown",id:t}}function OC(t){if(t["@type"])return t["@type"];if(t.type)return t.type}function ld(t){if(typeof t=="string")return Tz(t);let e=OC(t);if(e!=="Image"&&e!=="sc:Image")return null;let i=t,n=te(i);return n?n&&i.width&&i.height?{id:n,type:"fixed",width:i.width,height:i.height,unsafe:!0}:Tz(n):null}function MC(t){return nd(t)?(t&&t.sizes?t.sizes:[]).map(e=>({id:te(t),type:"fixed-service",height:e.height,width:e.width,level:hp(t),version:Pz(t)?3:2})):[]}function zz(t){let e=[],i=t.length;for(let n=0;n<i;n++){let u=t[n];if(!u)continue;let s=MC(u);s.length&&e.push(...s);let r=AC(u);r.length&&e.push(...r)}return e}function Iz(t){let e=t.service?Array.isArray(t.service)?t.service:[t.service]:[],i=e.length,n=[];for(let u=0;u<i;u++)nd(e[u])&&n.push(e[u]);return n}function CC(t,e=!0,i){let n=[],u=ld(t);if(u===null)return n;let s=t;if(n.push(u),e&&s&&s.width&&s.height){let r=[],f=Iz(s);for(let m of f){let y={id:te(m),width:s.width,height:s.height};if(i.canLoadSync(y)){let g=i.loadServiceSync(y);g&&(g.height||(g.height=s.height),g.width||(g.width=s.width),r.push(...zz([g])))}}if(r.length)return n.push(...r),n}return s.service&&n.push(...zz(s.service)),n}function RC({x:t=0,y:e=0,w:i,h:n,full:u,square:s,percent:r}){if(u)return"full";if(s)return"square";if(typeof i>"u"||typeof n>"u")throw new Error("RegionParameter: invalid region");let f=`${t},${e},${i},${n}`;return r?`pct:${f}`:f}function NC({max:t,percentScale:e,upscaled:i,confined:n,width:u,height:s,serialiseAsFull:r,version:f}){let m=[];return i&&m.push("^"),t?(m.push(r?"full":"max"),m.join("")):(n&&m.push("!"),e&&m.push(`pct:${e}`),u&&m.push(`${u}`),m.push(","),s&&f===3&&m.push(`${s}`),m.join(""))}function DC(t){return`${t.mirror?"!":""}${(t.angle||0)%360}`}function HC(t,e){let i=t.prefix.startsWith("/")?t.prefix.substr(1):t.prefix,n=`${t.scheme}://${t.server}/${i?`${i}/`:""}${t.identifier}`;if(t.type==="base")return n;if(t.type==="info")return`${n}/info.json`;let{size:u}=t,{region:s,rotation:r,format:f,quality:m}=t;if(e){let y=e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[],g=e.profile,S=y.indexOf("http://iiif.io/api/image/2/context.json")!==-1||g==="level2",p=y.indexOf("http://iiif.io/api/image/3/context.json")!==-1;if((u.width===e.width&&!u.height||u.height===e.height&&!u.width||u.width===e.width&&u.height===e.height)&&(u={...u,max:!0}),S&&(u.max&&!u.serialiseAsFull&&(u={...u,serialiseAsFull:!0}),!u.max&&u.width&&u.height&&(u={...u,height:void 0}),u={...u,version:2}),p){if(u.max&&u.serialiseAsFull&&(u={...u,serialiseAsFull:!1}),u.width&&!u.height&&e.width&&e.height){let x=e.height/e.width;u={...u,height:Math.ceil(u.width*x)}}u={...u,version:3}}}return[n,RC(s),NC(u),DC(r),`${m}.${f}`].filter(Boolean).join("/")}function fp(t,e,i){let n=xC({"@context":t.version===3?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:pu(te(t)),profile:t.level===null||typeof t.level>"u"?"level0":`level${t.level}`,type:t.version===3?"ImageService3":"ImageService2"});if(n.type!=="image")throw new Error("Invalid service");return n.size.max=!1,n.size.width=e,n.size.height=i,{id:HC(n),type:"fixed",width:e,height:i||t.height/(t.width||1)*e,unsafe:t.width>e}}function Ws(t){let e=t.replace(/(https?:\/\/)?(www.)?/i,"");return e.indexOf("/")!==-1?e.split("/")[0]:e}function UC(t,e,i){let n=t.width?t.width:t.maxWidth;return i.height<=t.maxHeight&&i.width<=t.maxWidth&&i.height>=t.minHeight&&i.width>=t.minWidth&&(!e||Math.abs(i.width-n)<Math.abs(e.width-n))}function BC(t,e){let i=[],n=Object.assign({unsafeImageService:!1,atAnyCost:!0,fallback:!0,minHeight:64,minWidth:64,maxHeight:1/0,maxWidth:1/0,returnAllOptions:!1,preferFixedSize:!1,allowUnsafe:!1,explain:!1,height:0,width:0},t),u=(g,S=0)=>n.explain?i.push(new Array(S).fill(0).map(p=>" ").join("")+g().trim()):void 0,s=[],r=[],f=null;u(()=>`Using configuration: ${JSON.stringify(n,null,2)}`);let m=(g,S)=>{if(u(()=>"Swapping choice",3),UC(n,S,g)){if(n.preferFixedSize&&g.unsafe){u(()=>`We found an image that was marked as unsafe, but it was the best size. (${g.id})`,4),r.push(g);return}n.returnAllOptions&&S&&r.push(S),u(()=>`We found a new image that was the best size. (${g.id})`,4),f=g}else n.returnAllOptions&&r.push(g)};u(()=>`The input shows we have ${e.length} list(s) of candidates to choose from.`);let y=e.length;for(let g=0;g<y;g++){let S=e[g]();u(()=>`Candidate group ${g}: ${JSON.stringify(S,null,2)}`,1);let p=S.length;u(()=>`Checking candidate list number ${g} and found ${p} potential ways of creating image(s)`,1);for(let x=0;x<p;x++){let A=S[x];if(u(()=>`-> Checking candidate ${x}`,1),A.type==="unknown"&&n.atAnyCost&&(u(()=>`We've found an unknown image type, adding this to the "last resort" list`,2),s.push(A)),A.type==="fixed"&&(A.unsafe?(u(()=>`We've found an unsafe fixed image type, adding this to the "last resort" list`,2),s.push(A)):(u(()=>"We've found a fixed size image, checking if it matches the request",2),m(A,f))),A.type==="fixed-service")if(n.unsafeImageService){u(()=>"Checking for an image from the tile source, without calculating the right height and width (unsafeImageService)",2);let R=fp(A,n.width,n.height);m(R,f)}else{u(()=>"Checking for an image from the tile source 3",2);let R=fp(A,A.width,A.height);m(R,f)}if(A.type==="variable"&&A.maxWidth){let R=fp({id:A.id,type:"fixed-service",width:A.maxWidth,height:A.maxWidth,level:A.level,version:A.version},A.maxWidth);m(R,f)}}if(f&&!n.returnAllOptions){if(f.unsafe||n.allowUnsafe)continue;u(()=>`We found a match in choice list number ${g}, no searching any more`);break}}return n.atAnyCost&&r.length===0?(u(()=>f?`We found an image! ${f.id} of type ${f.type}`:'We found no images, but "atAnyCost" is set, so returning that'),{best:f||s[0]||null,fallback:s.slice(1),log:i}):n.returnAllOptions?(u(()=>"Returning all options that we have found"),{best:(n.atAnyCost?f||r[0]||s[0]:f||r[0])||null,fallback:[...r,...s],log:i}):(u(()=>"Returning the best image that we found, and a fallback"),{best:f||r[0]||null,fallback:f?r:r.slice(1),log:i})}function wC(t,e,i){let n=t>e?t:e,u=i.length,s=[];for(let r=0;r<u;r++){let f=i[r];if(!f||f.scaleFactors.length===0)continue;let m=f.scaleFactors[0];if(!m)continue;let y=n/m,g=[m];for(;y>=f.width;)m=m*2,g.push(m),y=y/2;s.push({...f,scaleFactors:g})}return s}function jC(t,e){if(t.length!==e.length)return!1;if(t.length===0&&e.length===0)return!0;let i=t.length,n=!0;for(let s=0;s<i;s++){let r=t[s],f=e[s];if(r.width!==f.width||r.height!==f.height){n=!1;break}}if(n)return!0;let u=0;for(let s=0;s<i;s++)for(let r=0;r<i;r++)if(t[s].width===e[r].width&&t[s].height===e[r].height){u++;break}return u===i}function _z(t){return id(0,t)}var Jc=class{constructor(t={}){ed(this,"config",{verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1}),ed(this,"fetchingCount",0),ed(this,"imageServices",{}),ed(this,"knownImageServers",{}),this.config=Object.assign(this.config,t)}setConfig(t){Object.assign(this.config,t)}sample(t,e,i=!0){let n=Ws(te(t)),u=pu(te(t)),s=this.knownImageServers[n];return this.imageServices[u]=Object.assign(t,{real:!0}),!s&&t.tiles&&!_z(t)?(this.knownImageServers[n]={verifications:0,malformed:!1,root:n,preLoaded:i,sampledId:te(t),verified:!1,server:null,result:{context:t["@context"]||[],sampledProfile:t.profile,resourceServiceRatio:e&&t.height?e.height/t.height:1,sampledSizes:t.sizes||[],sizeRatios:TC(t.width,t.height,t.sizes||[]),sampledTiles:t.tiles||[]}},!0):this.verify(t)}preLoad(t,e=!0){this.knownImageServers[t.root]=t,e&&(this.knownImageServers[t.root].malformed=!1,this.knownImageServers[t.root].verifications=this.config.verificationsRequired)}predict(t,e=!1,i=!1){let n=t?.source,u=Ws(te(t)),s=this.knownImageServers[u],r=pu(te(t));return this.imageServices[r]?this.imageServices[r]||null:!this.config.approximateServices||!s||!s.result||!(n?.height||t.height)||!(n?.width||t.width)||!i&&(s.malformed||s.verifications<this.config.verificationsRequired)||_z(t.source)?null:(this.imageServices[r]||(this.imageServices[r]={"@context":s.result.context,"@id":te(t),id:te(t),protocol:"http://iiif.io/api/image",tiles:n?.tiles||wC(t.width,t.height,s.result.sampledTiles),sizes:n?.sizes||zC(Math.round(t.width/s.result.resourceServiceRatio),Math.round(t.height/s.result.resourceServiceRatio),s.result.sizeRatios),profile:n?.profile||s.result.sampledProfile,height:n?.height||t.height,width:n?.width||t.width,real:!1}),this.imageServices[r]||null)}async getThumbnailFromResource(t,e,i=!0,n=[]){let u=t?await this.getImageCandidates(t,i):[];return BC(e,[()=>n,()=>u])}async getImageCandidates(t,e=!0){let i=t;if(e&&i&&i.height&&i.width){let n=Iz(i);for(let u of n){let s={id:te(u),width:u.width?u.width:i.width,height:u.height?u.height:i.height,source:u};await this.loadService(s)}}return CC(t,e,this)}async verify(t){let e=this.predict(t,!1,!0),i=await this.fetchService(te(t));if(!e)return!1;let n=e.height===i.height&&e.width===i.width&&e["@context"]===i["@context"]&&jC(e.sizes||[],i.sizes||[]);if(n){let u=Ws(te(t)),s=this.knownImageServers[u];s&&(s.verifications+=1,s.verifications>=this.config.verificationsRequired&&(s.verified=!0))}return n}canLoadSync(t){let e=typeof t=="string"?t:te(t),i=pu(e);if(this.imageServices[i])return!0;let n=this.knownImageServers[Ws(e)];return!!(n&&!n.malformed&&n.verifications>=this.config.verificationsRequired)}async markAsMalformed(t){return this.knownImageServers[Ws(te(t))].malformed=!0,this.loadService(t,!0)}async fetchService(t,e=!1){let i=pu(t),n=this.imageServices[i];if(n&&(!e||n.real))return n;if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let u=await this.fetch(i).then(s=>s.json());return!u.id&&u["@id"]&&(u.id=u["@id"]),u.id!==t&&(u.id=t,u["@id"]&&(u["@id"]=t)),this.imageServices[i]=Object.assign(u,{real:!0}),this.imageServices[i]}async fetch(t,e){return fetch(t,e)}async loadService(t,e=!1){if(!this.config.disableThrottling){let u=!0;for(;u;)if(this.fetchingCount>=this.config.verificationsRequired)await new Promise(s=>setTimeout(s,500));else{u=!1;break}}let i=this.knownImageServers[Ws(te(t))];if(i&&!i.malformed&&!e){await i.result;let u=this.loadServiceSync(t);if(u)return u}this.fetchingCount++;let n=await this.fetchService(te(t),e);return this.fetchingCount--,n.real&&this.sample(n,t),n}loadServiceSync(t){let e=pu(te(t));return this.imageServices[e]?this.imageServices[e]:this.config.approximateServices?this.predict(t):null}},D8=new Jc;var ad={},dp={get(t){return t},setMetaValue([t,e,i],n){let u=dp.getResourceMeta(t,e),s=u?u[i]:void 0,r=typeof n=="function"?n(s):n;ad[t]={...ad[t]||{},[e]:{...(ad[t]||{})[e]||{},[i]:r}}},getResourceMeta:(t,e)=>{let i=ad[t];if(i)return e?i[e]:i}};var kz=new Jc;function mp(t=dp,e={}){let i=e.imageServiceLoader||kz;async function n(u,s,r=!1,f=[],m){let y=()=>i.getThumbnailFromResource(void 0,s,r,f);if(!u)return await i.getThumbnailFromResource(void 0,s,r,f);if(typeof u=="string"){let p=ld(u);return p&&f.push(p),await i.getThumbnailFromResource(void 0,s,r,f)}let g=t.get(u,{skipSelfReturn:!1});if(typeof g=="string")return{best:ld(g),fallback:[],log:[]};if(!g)return await y();switch(await(async p=>{if(p&&p.thumbnail&&p.thumbnail.length){let x=t.get(p.thumbnail[0]),A=await i.getImageCandidates(x,r);A&&A.length&&f.push(...A)}})(g),g.type){case"Annotation":{let p=Array.isArray(g.body)?g.body:[g.body],x=t.get(p[0]);return m&&!x.width&&(x.width=m.width,x.height=m.height),await i.getThumbnailFromResource(x,s,r,f)}case"Canvas":{let p=g;return n(p.items[0],s,r,f,{width:p.width,height:p.height})}case"AnnotationPage":return n(g.items[0],s,r,f,m);case"Choice":{let p=g;return!p.items||p.items[0]?await y():n(p.items[0],s,r,f,m)}case"Collection":{let x=g.items[0];return x?n(x,s,r,f,m):await y()}case"Manifest":{let x=g.items[0];return x?n(x,s,r,f,m):await y()}case"SpecificResource":case"Image":case"Dataset":case"Sound":case"Text":case"TextualBody":case"Video":return m&&!g.width&&(g.width=m.width,g.height=m.height),i.getThumbnailFromResource(g,s,r,f)}return await y()}return{getBestThumbnailAtSize:n}}function LC(){return typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}function qC(){let t=LC();if(typeof t.IIIF_VAULT<"u")return t.IIIF_VAULT;if(typeof t.IIIFVault>"u")throw new Error("Vault not found");return t.IIIF_VAULT=new t.IIIFVault.Vault,t.IIIF_VAULT}var Su={};function Fc(){return Su.helper||(Su.vault=qC(),Su.loader=new Jc,Su.helper=mp(Su.vault,{imageServiceLoader:Su.loader})),Su}async function ud(t,e,i){let{loader:n}=Fc(),u=await n.loadService({id:t,width:e,height:i});return{id:rp(u),width:e,height:i,imageService:u,thumbnail:void 0}}async function $z(t,e=512){let{vault:i,loader:n,helper:u}=Fc(),s=[];for(let r of t.items)for(let f of i.get(r).items){let y=i.get(i.get(f).body[0]).service[0],g=await ud(y.id,t.width,t.height),{best:S}=await u.getBestThumbnailAtSize(i,n,t,{maxHeight:e,maxWidth:e},!0);S&&(g.thumbnail=S),s.push(g)}return s}async function t_(t){let{vault:e}=Fc(),i=[];for(let n of t.items){let u=e.get(n);i.push(...await $z(u))}return i}async function GC(t){try{let{vault:e}=Fc(),i=await e.loadManifest(t);return i?t_(i):[]}catch(e){return console.log("ERR",e),[]}}var gp=F(Ft(),1),YC=t=>{let[e,i]=(0,sd.useState)();return(0,sd.useEffect)(()=>{ud(t.id,t.width,t.height).then(n=>{i(n)})},[t.height,t.id,t.width]),(0,gp.jsx)("world-object",{x:t.x||0,y:t.y||0,width:t.width,height:t.height,scale:t.scale,children:e?(0,gp.jsx)(cp,{tiles:e,x:t.x,y:t.y,width:t.crop?.width||t.width,height:t.crop?.height||t.height,rotation:t.rotation,crop:t.crop,enableSizes:t.enableSizes,enableThumbnail:t.enableThumbnail,renderOptions:t.renderOptions,children:t.children}):null})};var e_=F(vt(),1),QC=(t,e=[])=>{let i=we();(0,e_.useEffect)(()=>i?i.registerHook("useAfterPaint",t):()=>{},e)};var _e=F(vt(),1);var od=F(Ft(),1),XC=(t,{onCreated:e,resetWorldOnChange:i=!0,mode:n="explore",cover:u,containerRef:s,...r})=>{let[f,m]=(0,_e.useState)(!1),[y,g]=(0,_e.useState)(void 0),[S,p]=(0,_e.useState)(void 0),x=(0,_e.useRef)(),A=(0,_e.useRef)(),R=(0,_e.useMemo)(()=>({width:r.width,height:r.height}),[r.width,r.height]),[w,T,E,z]=Tf(void 0,{width:r.width,height:r.height});Mi(()=>{let H=document.createElement("canvas");H.height=R.height,H.width=R.width,x.current=H},[]),Mi(()=>{let H=x.current;H&&(H.height=R.height,H.width=R.width)},[R.width,R.height]),(0,_e.useEffect)(()=>T?T.runtime.registerHook("useAfterFrame",()=>{if(x.current)try{g(x.current.toDataURL())}catch(q){q instanceof Error&&p(q.message)}}):()=>{},[]),(0,_e.useEffect)(()=>T?T.runtime.world.addLayoutSubscriber(q=>{q==="ready"&&m(!0)}):()=>{},[]),(0,_e.useEffect)(()=>{T&&T.em&&T.em.updateBounds()},[R]),(0,_e.useEffect)(()=>{T&&(T.runtime.mode=n)},[n]),(0,_e.useEffect)(()=>{if(T){let H=T.runtime;H.resize(E.current.width,r.width,E.current.height,r.height),u?H.cover():H.goHome(),E.current.width=r.width,E.current.height=r.height,H.updateNextFrame()}},[r.width,r.height]),Mi(()=>{let H=A.current;H&&(H.style.width=`${R.width}px`,H.style.height=`${R.height}px`,H.style.pointerEvents="none",H.style.overflow="hidden")},[R.height,R.width]),Mi(()=>{let H=()=>{if(T&&T.runtime){let q=T.runtime;q.resize(E.current.width,r.width,E.current.height,r.height),E.current.width=r.width,E.current.height=r.height,q.updateNextFrame()}};return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[T,r.height,r.width]);let O=(0,_e.useCallback)(function(q){let L=()=>{T&&(T.ready=!0)};return(0,_e.useEffect)(()=>{if(T){let G=e&&e(T);return void(G&&G.then?G.then(L):L())}return()=>{}},[]),q.children},[T]);return(0,_e.useEffect)(()=>{if(T&&T.runtime){let H=T.runtime;if(i)return H.world.addLayoutSubscriber(q=>{q==="recalculate-world-size"&&H.goHome({cover:u})})}return()=>{}},[T,u,i]),Mi(()=>{T&&is.render((0,od.jsx)(O,{children:(0,od.jsx)(An.Provider,{value:n,children:(0,od.jsx)(On.Provider,{value:T,children:t})})}),T.runtime)},[T,n,t]),{loading:!y&&f,uri:y,imageError:S}};var i_=F(vt(),1),VC=(t,e=[])=>{let i=we();(0,i_.useEffect)(()=>i?i.registerHook("useBeforeFrame",t):()=>{},e)};var Tl=F(vt(),1);var ZC=(t=[])=>{let[e,i]=(0,Tl.useState)(t),[n,u]=(0,Tl.useState)(!1),[s,r]=(0,Tl.useState)(),f=(0,Tl.useCallback)(()=>{u(!0),r(void 0)},[]),m=(0,Tl.useCallback)(p=>{u(!0),r(p)},[]),y=p=>{i(x=>x.map(A=>A.id===p.id?p:A))},g=(0,Tl.useCallback)(p=>{let x=Tn();i(A=>[...A,{id:x,...p}]),u(!1),r(void 0)},[]),S=(0,Tl.useCallback)(()=>{u(!1),r(void 0)},[]);return{isEditing:n,onDeselect:S,selectedAnnotation:s,onCreateNewAnnotation:g,annotations:e,onUpdateAnnotation:y,setIsEditing:u,setSelectedAnnotation:r,editAnnotation:m,addNewAnnotation:f}};function KC(t){return t.current==="sketch"}function JC(t,e){return t?e?{...t,...e||{},":hover":t[":hover"]?Object.assign(t[":hover"]||{},e[":hover"]||{}):e[":hover"],":active":t[":active"]?Object.assign(t[":active"]||{},e[":active"]||{}):e[":hover"]}:t:e}return CA(FC);})();
82
- /*! Bundled license information:
83
-
84
- normalize-wheel/src/isEventSupported.js:
85
- (**
86
- * Checks if an event is supported in the current execution environment.
87
- *
88
- * NOTE: This will not work correctly for non-generic events such as `change`,
89
- * `reset`, `load`, `error`, and `select`.
90
- *
91
- * Borrows from Modernizr.
92
- *
93
- * @param {string} eventNameSuffix Event name, e.g. "click".
94
- * @param {?boolean} capture Check if the capture phase is supported.
95
- * @return {boolean} True if the event is supported.
96
- * @internal
97
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
98
- *)
99
-
100
- react/cjs/react.production.js:
101
- (**
102
- * @license React
103
- * react.production.js
104
- *
105
- * Copyright (c) Meta Platforms, Inc. and affiliates.
106
- *
107
- * This source code is licensed under the MIT license found in the
108
- * LICENSE file in the root directory of this source tree.
109
- *)
110
-
111
- react/cjs/react-jsx-runtime.production.js:
112
- (**
113
- * @license React
114
- * react-jsx-runtime.production.js
115
- *
116
- * Copyright (c) Meta Platforms, Inc. and affiliates.
117
- *
118
- * This source code is licensed under the MIT license found in the
119
- * LICENSE file in the root directory of this source tree.
120
- *)
121
-
122
- scheduler/cjs/scheduler.production.js:
123
- (**
124
- * @license React
125
- * scheduler.production.js
126
- *
127
- * Copyright (c) Meta Platforms, Inc. and affiliates.
128
- *
129
- * This source code is licensed under the MIT license found in the
130
- * LICENSE file in the root directory of this source tree.
131
- *)
132
-
133
- react-reconciler/cjs/react-reconciler.production.js:
134
- (**
135
- * @license React
136
- * react-reconciler.production.js
137
- *
138
- * Copyright (c) Meta Platforms, Inc. and affiliates.
139
- *
140
- * This source code is licensed under the MIT license found in the
141
- * LICENSE file in the root directory of this source tree.
142
- *)
143
-
144
- react-reconciler/cjs/react-reconciler-constants.production.js:
145
- (**
146
- * @license React
147
- * react-reconciler-constants.production.js
148
- *
149
- * Copyright (c) Meta Platforms, Inc. and affiliates.
150
- *
151
- * This source code is licensed under the MIT license found in the
152
- * LICENSE file in the root directory of this source tree.
153
- *)
154
-
155
- react-dom/cjs/react-dom.production.js:
156
- (**
157
- * @license React
158
- * react-dom.production.js
159
- *
160
- * Copyright (c) Meta Platforms, Inc. and affiliates.
161
- *
162
- * This source code is licensed under the MIT license found in the
163
- * LICENSE file in the root directory of this source tree.
164
- *)
165
-
166
- react-dom/cjs/react-dom-client.production.js:
167
- (**
168
- * @license React
169
- * react-dom-client.production.js
170
- *
171
- * Copyright (c) Meta Platforms, Inc. and affiliates.
172
- *
173
- * This source code is licensed under the MIT license found in the
174
- * LICENSE file in the root directory of this source tree.
175
- *)
176
- */